| 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. | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.5. | 
| 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' | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 583 | PACKAGE_VERSION='3.5' | 
 | 584 | PACKAGE_STRING='python 3.5' | 
| 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 | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 671 | target_os | 
 | 672 | target_vendor | 
 | 673 | target_cpu | 
 | 674 | target | 
 | 675 | LLVM_PROFDATA | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 676 | LLVM_PROF_ERR | 
 | 677 | LLVM_PROF_FILE | 
 | 678 | LLVM_PROF_MERGER | 
 | 679 | PGO_PROF_USE_FLAG | 
 | 680 | PGO_PROF_GEN_FLAG | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 681 | LTOFLAGS | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 682 | DEF_MAKE_RULE | 
 | 683 | DEF_MAKE_ALL_RULE | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 684 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 685 | LN | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 686 | MKDIR_P | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 687 | INSTALL_DATA | 
 | 688 | INSTALL_SCRIPT | 
 | 689 | INSTALL_PROGRAM | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 690 | ac_ct_READELF | 
 | 691 | READELF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 692 | ARFLAGS | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 693 | ac_ct_AR | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 694 | AR | 
 | 695 | RANLIB | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 696 | USE_INLINE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 697 | GNULD | 
 | 698 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 699 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 700 | RUNSHARED | 
 | 701 | INSTSONAME | 
 | 702 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 703 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 704 | BLDLIBRARY | 
 | 705 | DLLLIBRARY | 
 | 706 | LDLIBRARY | 
 | 707 | LIBRARY | 
 | 708 | BUILDEXEEXT | 
 | 709 | EGREP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 710 | NO_AS_NEEDED | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 711 | PLATFORM_TRIPLET | 
| doko@ubuntu.com | 092f616 | 2015-04-15 20:45:33 +0200 | [diff] [blame] | 712 | PLATDIR | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 713 | MULTIARCH | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 714 | ac_ct_CXX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 715 | MAINCC | 
 | 716 | CXX | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 717 | GREP | 
 | 718 | CPP | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 719 | OBJEXT | 
 | 720 | EXEEXT | 
 | 721 | ac_ct_CC | 
 | 722 | CPPFLAGS | 
 | 723 | LDFLAGS | 
 | 724 | CFLAGS | 
 | 725 | CC | 
 | 726 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
 | 727 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
 | 728 | SGI_ABI | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 729 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 730 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 731 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 732 | FRAMEWORKUNIXTOOLSPREFIX | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 733 | FRAMEWORKPYTHONW | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 734 | FRAMEWORKALTINSTALLLAST | 
 | 735 | FRAMEWORKALTINSTALLFIRST | 
 | 736 | FRAMEWORKINSTALLLAST | 
 | 737 | FRAMEWORKINSTALLFIRST | 
 | 738 | PYTHONFRAMEWORKINSTALLDIR | 
 | 739 | PYTHONFRAMEWORKPREFIX | 
 | 740 | PYTHONFRAMEWORKDIR | 
 | 741 | PYTHONFRAMEWORKIDENTIFIER | 
 | 742 | PYTHONFRAMEWORK | 
 | 743 | LIPO_32BIT_FLAGS | 
 | 744 | ARCH_RUN_32BIT | 
 | 745 | UNIVERSALSDK | 
 | 746 | CONFIG_ARGS | 
 | 747 | SOVERSION | 
 | 748 | VERSION | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 749 | GENERATED_COMMENT | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 750 | PYTHON_FOR_BUILD | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 751 | PYTHON_FOR_GEN | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 752 | host_os | 
 | 753 | host_vendor | 
 | 754 | host_cpu | 
 | 755 | host | 
 | 756 | build_os | 
 | 757 | build_vendor | 
 | 758 | build_cpu | 
 | 759 | build | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 760 | HAS_HG | 
 | 761 | HGBRANCH | 
 | 762 | HGTAG | 
 | 763 | HGVERSION | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 764 | BASECPPFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 765 | target_alias | 
 | 766 | host_alias | 
 | 767 | build_alias | 
 | 768 | LIBS | 
 | 769 | ECHO_T | 
 | 770 | ECHO_N | 
 | 771 | ECHO_C | 
 | 772 | DEFS | 
 | 773 | mandir | 
 | 774 | localedir | 
 | 775 | libdir | 
 | 776 | psdir | 
 | 777 | pdfdir | 
 | 778 | dvidir | 
 | 779 | htmldir | 
 | 780 | infodir | 
 | 781 | docdir | 
 | 782 | oldincludedir | 
 | 783 | includedir | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 784 | runstatedir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 785 | localstatedir | 
 | 786 | sharedstatedir | 
 | 787 | sysconfdir | 
 | 788 | datadir | 
 | 789 | datarootdir | 
 | 790 | libexecdir | 
 | 791 | sbindir | 
 | 792 | bindir | 
 | 793 | program_transform_name | 
 | 794 | prefix | 
 | 795 | exec_prefix | 
 | 796 | PACKAGE_URL | 
 | 797 | PACKAGE_BUGREPORT | 
 | 798 | PACKAGE_STRING | 
 | 799 | PACKAGE_VERSION | 
 | 800 | PACKAGE_TARNAME | 
 | 801 | PACKAGE_NAME | 
 | 802 | PATH_SEPARATOR | 
 | 803 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 804 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 805 | ac_user_opts=' | 
 | 806 | enable_option_checking | 
 | 807 | enable_universalsdk | 
 | 808 | with_universal_archs | 
 | 809 | with_framework_name | 
 | 810 | enable_framework | 
 | 811 | with_gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 812 | with_icc | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 813 | with_cxx_main | 
 | 814 | with_suffix | 
 | 815 | enable_shared | 
 | 816 | enable_profiling | 
 | 817 | with_pydebug | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 818 | enable_optimizations | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 819 | with_lto | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 820 | with_hash_algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 821 | with_address_sanitizer | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 822 | with_libs | 
 | 823 | with_system_expat | 
 | 824 | with_system_ffi | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 825 | with_system_libmpdec | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 826 | enable_loadable_sqlite_extensions | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 827 | with_tcltk_includes | 
 | 828 | with_tcltk_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 829 | with_dbmliborder | 
 | 830 | with_signal_module | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 831 | with_threads | 
 | 832 | with_thread | 
 | 833 | enable_ipv6 | 
 | 834 | with_doc_strings | 
 | 835 | with_tsc | 
 | 836 | with_pymalloc | 
 | 837 | with_valgrind | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 838 | with_fpectl | 
 | 839 | with_libm | 
 | 840 | with_libc | 
 | 841 | enable_big_digits | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 842 | with_computed_gotos | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 843 | with_ensurepip | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 844 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 845 |       ac_precious_vars='build_alias | 
 | 846 | host_alias | 
 | 847 | target_alias | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 848 | MACHDEP | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 849 | CC | 
 | 850 | CFLAGS | 
 | 851 | LDFLAGS | 
 | 852 | LIBS | 
 | 853 | CPPFLAGS | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 854 | CPP | 
 | 855 | PKG_CONFIG | 
 | 856 | PKG_CONFIG_PATH | 
 | 857 | PKG_CONFIG_LIBDIR' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 858 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 859 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 860 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 861 | ac_init_help= | 
 | 862 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 863 | ac_unrecognized_opts= | 
 | 864 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 865 | # The variables have the same names as the options, with | 
 | 866 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 867 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 868 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 869 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 870 | no_recursion= | 
 | 871 | prefix=NONE | 
 | 872 | program_prefix=NONE | 
 | 873 | program_suffix=NONE | 
 | 874 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 875 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 876 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 877 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 878 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 879 | x_includes=NONE | 
 | 880 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 881 |  | 
 | 882 | # Installation directory options. | 
 | 883 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 884 | # and all the variables that are supposed to be based on exec_prefix | 
 | 885 | # by default will actually change. | 
 | 886 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 887 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 888 | bindir='${exec_prefix}/bin' | 
 | 889 | sbindir='${exec_prefix}/sbin' | 
 | 890 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 891 | datarootdir='${prefix}/share' | 
 | 892 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 893 | sysconfdir='${prefix}/etc' | 
 | 894 | sharedstatedir='${prefix}/com' | 
 | 895 | localstatedir='${prefix}/var' | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 896 | runstatedir='${localstatedir}/run' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 897 | includedir='${prefix}/include' | 
 | 898 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 899 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 900 | infodir='${datarootdir}/info' | 
 | 901 | htmldir='${docdir}' | 
 | 902 | dvidir='${docdir}' | 
 | 903 | pdfdir='${docdir}' | 
 | 904 | psdir='${docdir}' | 
 | 905 | libdir='${exec_prefix}/lib' | 
 | 906 | localedir='${datarootdir}/locale' | 
 | 907 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 908 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 909 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 910 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 911 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 912 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 913 |   # If the previous option needs an argument, assign it. | 
 | 914 |   if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 915 |     eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 916 |     ac_prev= | 
 | 917 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 918 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 919 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 920 |   case $ac_option in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 921 |   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 922 |   *=)   ac_optarg= ;; | 
 | 923 |   *)    ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 924 |   esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 925 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 926 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 927 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 928 |   case $ac_dashdash$ac_option in | 
 | 929 |   --) | 
 | 930 |     ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 931 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 932 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 933 |     ac_prev=bindir ;; | 
 | 934 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 935 |     bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 936 |  | 
 | 937 |   -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 938 |     ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 939 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 940 |     build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 941 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 942 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 943 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 944 |     ac_prev=cache_file ;; | 
 | 945 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 946 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 947 |     cache_file=$ac_optarg ;; | 
 | 948 |  | 
 | 949 |   --config-cache | -C) | 
 | 950 |     cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 951 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 952 |   -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 953 |     ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 954 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 955 |     datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 956 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 957 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 958 |   | --dataroo | --dataro | --datar) | 
 | 959 |     ac_prev=datarootdir ;; | 
 | 960 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 961 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 962 |     datarootdir=$ac_optarg ;; | 
 | 963 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 964 |   -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 965 |     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 966 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 967 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 968 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 969 |     ac_useropt_orig=$ac_useropt | 
 | 970 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 971 |     case $ac_user_opts in | 
 | 972 |       *" | 
 | 973 | "enable_$ac_useropt" | 
 | 974 | "*) ;; | 
 | 975 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
 | 976 | 	 ac_unrecognized_sep=', ';; | 
 | 977 |     esac | 
 | 978 |     eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 979 |  | 
 | 980 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 981 |     ac_prev=docdir ;; | 
 | 982 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 983 |     docdir=$ac_optarg ;; | 
 | 984 |  | 
 | 985 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 986 |     ac_prev=dvidir ;; | 
 | 987 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 988 |     dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 989 |  | 
 | 990 |   -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 991 |     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 992 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 993 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 994 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 995 |     ac_useropt_orig=$ac_useropt | 
 | 996 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 997 |     case $ac_user_opts in | 
 | 998 |       *" | 
 | 999 | "enable_$ac_useropt" | 
 | 1000 | "*) ;; | 
 | 1001 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
 | 1002 | 	 ac_unrecognized_sep=', ';; | 
 | 1003 |     esac | 
 | 1004 |     eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1005 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1006 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 1007 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 1008 |   | --exec | --exe | --ex) | 
 | 1009 |     ac_prev=exec_prefix ;; | 
 | 1010 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 1011 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 1012 |   | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1013 |     exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1014 |  | 
 | 1015 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1016 |     # Obsolete; use --with-gas. | 
 | 1017 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1018 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1019 |   -help | --help | --hel | --he | -h) | 
 | 1020 |     ac_init_help=long ;; | 
 | 1021 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 1022 |     ac_init_help=recursive ;; | 
 | 1023 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 1024 |     ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1025 |  | 
 | 1026 |   -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1027 |     ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1028 |   -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1029 |     host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1030 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1031 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 1032 |     ac_prev=htmldir ;; | 
 | 1033 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 1034 |   | --ht=*) | 
 | 1035 |     htmldir=$ac_optarg ;; | 
 | 1036 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1037 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 1038 |   | --includ | --inclu | --incl | --inc) | 
 | 1039 |     ac_prev=includedir ;; | 
 | 1040 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 1041 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1042 |     includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1043 |  | 
 | 1044 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 1045 |     ac_prev=infodir ;; | 
 | 1046 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1047 |     infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1048 |  | 
 | 1049 |   -libdir | --libdir | --libdi | --libd) | 
 | 1050 |     ac_prev=libdir ;; | 
 | 1051 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1052 |     libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1053 |  | 
 | 1054 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 1055 |   | --libexe | --libex | --libe) | 
 | 1056 |     ac_prev=libexecdir ;; | 
 | 1057 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 1058 |   | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 |     libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1060 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1061 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 1062 |     ac_prev=localedir ;; | 
 | 1063 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 1064 |     localedir=$ac_optarg ;; | 
 | 1065 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1066 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1067 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1068 |     ac_prev=localstatedir ;; | 
 | 1069 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1070 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1071 |     localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1072 |  | 
 | 1073 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 1074 |     ac_prev=mandir ;; | 
 | 1075 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1076 |     mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1077 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1078 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 |     # Obsolete; use --without-fp. | 
 | 1080 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1081 |  | 
 | 1082 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1083 |   | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1084 |     no_create=yes ;; | 
 | 1085 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1086 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1087 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1088 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1089 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1090 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1091 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1092 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1093 |     ac_prev=oldincludedir ;; | 
 | 1094 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1095 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1096 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1097 |     oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1098 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1099 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1100 |     ac_prev=prefix ;; | 
 | 1101 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1102 |     prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1103 |  | 
 | 1104 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1105 |   | --program-pre | --program-pr | --program-p) | 
 | 1106 |     ac_prev=program_prefix ;; | 
 | 1107 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1108 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1109 |     program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 |  | 
 | 1111 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1112 |   | --program-suf | --program-su | --program-s) | 
 | 1113 |     ac_prev=program_suffix ;; | 
 | 1114 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1115 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1116 |     program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1117 |  | 
 | 1118 |   -program-transform-name | --program-transform-name \ | 
 | 1119 |   | --program-transform-nam | --program-transform-na \ | 
 | 1120 |   | --program-transform-n | --program-transform- \ | 
 | 1121 |   | --program-transform | --program-transfor \ | 
 | 1122 |   | --program-transfo | --program-transf \ | 
 | 1123 |   | --program-trans | --program-tran \ | 
 | 1124 |   | --progr-tra | --program-tr | --program-t) | 
 | 1125 |     ac_prev=program_transform_name ;; | 
 | 1126 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1127 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1128 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1129 |   | --program-transform=* | --program-transfor=* \ | 
 | 1130 |   | --program-transfo=* | --program-transf=* \ | 
 | 1131 |   | --program-trans=* | --program-tran=* \ | 
 | 1132 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1133 |     program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1134 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1135 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1136 |     ac_prev=pdfdir ;; | 
 | 1137 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1138 |     pdfdir=$ac_optarg ;; | 
 | 1139 |  | 
 | 1140 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1141 |     ac_prev=psdir ;; | 
 | 1142 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1143 |     psdir=$ac_optarg ;; | 
 | 1144 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1145 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1146 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1147 |     silent=yes ;; | 
 | 1148 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 1149 |   -runstatedir | --runstatedir | --runstatedi | --runstated \ | 
 | 1150 |   | --runstate | --runstat | --runsta | --runst | --runs \ | 
 | 1151 |   | --run | --ru | --r) | 
 | 1152 |     ac_prev=runstatedir ;; | 
 | 1153 |   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | 
 | 1154 |   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | 
 | 1155 |   | --run=* | --ru=* | --r=*) | 
 | 1156 |     runstatedir=$ac_optarg ;; | 
 | 1157 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1158 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1159 |     ac_prev=sbindir ;; | 
 | 1160 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1161 |   | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1162 |     sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1163 |  | 
 | 1164 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1165 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1166 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1167 |   | --sha | --sh) | 
 | 1168 |     ac_prev=sharedstatedir ;; | 
 | 1169 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1170 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1171 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1172 |   | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1173 |     sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1174 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1175 |   -site | --site | --sit) | 
 | 1176 |     ac_prev=site ;; | 
 | 1177 |   -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1178 |     site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1179 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1180 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1181 |     ac_prev=srcdir ;; | 
 | 1182 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1183 |     srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1184 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1185 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1186 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1187 |     ac_prev=sysconfdir ;; | 
 | 1188 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1189 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1190 |     sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1191 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1192 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1193 |     ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1194 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1195 |     target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1196 |  | 
 | 1197 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1198 |     verbose=yes ;; | 
 | 1199 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1200 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1201 |     ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1202 |  | 
 | 1203 |   -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1204 |     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1205 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1206 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1207 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1208 |     ac_useropt_orig=$ac_useropt | 
 | 1209 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1210 |     case $ac_user_opts in | 
 | 1211 |       *" | 
 | 1212 | "with_$ac_useropt" | 
 | 1213 | "*) ;; | 
 | 1214 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
 | 1215 | 	 ac_unrecognized_sep=', ';; | 
 | 1216 |     esac | 
 | 1217 |     eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1218 |  | 
 | 1219 |   -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1220 |     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1221 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1222 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1223 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1224 |     ac_useropt_orig=$ac_useropt | 
 | 1225 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1226 |     case $ac_user_opts in | 
 | 1227 |       *" | 
 | 1228 | "with_$ac_useropt" | 
 | 1229 | "*) ;; | 
 | 1230 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
 | 1231 | 	 ac_unrecognized_sep=', ';; | 
 | 1232 |     esac | 
 | 1233 |     eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1234 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1235 |   --x) | 
 | 1236 |     # Obsolete; use --with-x. | 
 | 1237 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1238 |  | 
 | 1239 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1240 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1241 |     ac_prev=x_includes ;; | 
 | 1242 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1243 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1244 |     x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1245 |  | 
 | 1246 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1247 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1248 |     ac_prev=x_libraries ;; | 
 | 1249 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1250 |   | --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] | 1251 |     x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1252 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1253 |   -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
 | 1254 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1255 |     ;; | 
 | 1256 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1257 |   *=*) | 
 | 1258 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1259 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1260 |     case $ac_envvar in #( | 
 | 1261 |       '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1262 |       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1263 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1264 |     eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1265 |     export $ac_envvar ;; | 
 | 1266 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1267 |   *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1268 |     # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1269 |     $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] | 1270 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1271 |       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1272 |     : "${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] | 1273 |     ;; | 
 | 1274 |  | 
 | 1275 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1276 | done | 
 | 1277 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1278 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1279 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1280 |   as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1281 | fi | 
 | 1282 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1283 | if test -n "$ac_unrecognized_opts"; then | 
 | 1284 |   case $enable_option_checking in | 
 | 1285 |     no) ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1286 |     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1287 |     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
 | 1288 |   esac | 
 | 1289 | fi | 
 | 1290 |  | 
 | 1291 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1292 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1293 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1294 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 1295 | 		libdir localedir mandir runstatedir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1296 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1297 |   eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1298 |   # Remove trailing slashes. | 
 | 1299 |   case $ac_val in | 
 | 1300 |     */ ) | 
 | 1301 |       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
 | 1302 |       eval $ac_var=\$ac_val;; | 
 | 1303 |   esac | 
 | 1304 |   # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 |   case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1306 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1307 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1308 |   esac | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1309 |   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] | 1310 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1311 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1312 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1313 | # used to hold the argument of --host etc. | 
 | 1314 | # FIXME: To remove some day. | 
 | 1315 | build=$build_alias | 
 | 1316 | host=$host_alias | 
 | 1317 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1318 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1319 | # FIXME: To remove some day. | 
 | 1320 | if test "x$host_alias" != x; then | 
 | 1321 |   if test "x$build_alias" = x; then | 
 | 1322 |     cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1323 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1324 |     cross_compiling=yes | 
 | 1325 |   fi | 
 | 1326 | fi | 
 | 1327 |  | 
 | 1328 | ac_tool_prefix= | 
 | 1329 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1330 |  | 
 | 1331 | test "$silent" = yes && exec 6>/dev/null | 
 | 1332 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1333 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1334 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1335 | ac_ls_di=`ls -di .` && | 
 | 1336 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1337 |   as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1338 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1339 |   as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1340 |  | 
 | 1341 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1342 | # Find the source files, if location was not specified. | 
 | 1343 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1344 |   ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1345 |   # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1346 |   ac_confdir=`$as_dirname -- "$as_myself" || | 
 | 1347 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 1348 | 	 X"$as_myself" : 'X\(//\)[^/]' \| \ | 
 | 1349 | 	 X"$as_myself" : 'X\(//\)$' \| \ | 
 | 1350 | 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
 | 1351 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1352 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1353 | 	    s//\1/ | 
 | 1354 | 	    q | 
 | 1355 | 	  } | 
 | 1356 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1357 | 	    s//\1/ | 
 | 1358 | 	    q | 
 | 1359 | 	  } | 
 | 1360 | 	  /^X\(\/\/\)$/{ | 
 | 1361 | 	    s//\1/ | 
 | 1362 | 	    q | 
 | 1363 | 	  } | 
 | 1364 | 	  /^X\(\/\).*/{ | 
 | 1365 | 	    s//\1/ | 
 | 1366 | 	    q | 
 | 1367 | 	  } | 
 | 1368 | 	  s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1369 |   srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1370 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1371 |     srcdir=.. | 
 | 1372 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1373 | else | 
 | 1374 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1375 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1376 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1377 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1378 |   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1379 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1380 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1381 | ac_abs_confdir=`( | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1382 | 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1383 | 	pwd)` | 
 | 1384 | # When building in place, set srcdir=. | 
 | 1385 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1386 |   srcdir=. | 
 | 1387 | fi | 
 | 1388 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1389 | # Double slashes in file names in object file debugging info | 
 | 1390 | # mess up M-x gdb in Emacs. | 
 | 1391 | case $srcdir in | 
 | 1392 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1393 | esac | 
 | 1394 | for ac_var in $ac_precious_vars; do | 
 | 1395 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1396 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1397 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1398 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1399 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1400 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1401 | # | 
 | 1402 | # Report the --help message. | 
 | 1403 | # | 
 | 1404 | if test "$ac_init_help" = "long"; then | 
 | 1405 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1406 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1407 |   cat <<_ACEOF | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 1408 | \`configure' configures python 3.5 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1409 |  | 
 | 1410 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1411 |  | 
 | 1412 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1413 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1414 |  | 
 | 1415 | Defaults for the options are specified in brackets. | 
 | 1416 |  | 
 | 1417 | Configuration: | 
 | 1418 |   -h, --help              display this help and exit | 
 | 1419 |       --help=short        display options specific to this package | 
 | 1420 |       --help=recursive    display the short help of all the included packages | 
 | 1421 |   -V, --version           display version information and exit | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1422 |   -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1424 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1425 |   -n, --no-create         do not create output files | 
 | 1426 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1427 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1428 | Installation directories: | 
 | 1429 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1430 |                           [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1431 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1432 |                           [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1433 |  | 
 | 1434 | By default, \`make install' will install all the files in | 
 | 1435 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1436 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1437 | for instance \`--prefix=\$HOME'. | 
 | 1438 |  | 
 | 1439 | For better control, use the options below. | 
 | 1440 |  | 
 | 1441 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1442 |   --bindir=DIR            user executables [EPREFIX/bin] | 
 | 1443 |   --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
 | 1444 |   --libexecdir=DIR        program executables [EPREFIX/libexec] | 
 | 1445 |   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
 | 1446 |   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
 | 1447 |   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 1448 |   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1449 |   --libdir=DIR            object code libraries [EPREFIX/lib] | 
 | 1450 |   --includedir=DIR        C header files [PREFIX/include] | 
 | 1451 |   --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
 | 1452 |   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
 | 1453 |   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
 | 1454 |   --infodir=DIR           info documentation [DATAROOTDIR/info] | 
 | 1455 |   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
 | 1456 |   --mandir=DIR            man documentation [DATAROOTDIR/man] | 
 | 1457 |   --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
 | 1458 |   --htmldir=DIR           html documentation [DOCDIR] | 
 | 1459 |   --dvidir=DIR            dvi documentation [DOCDIR] | 
 | 1460 |   --pdfdir=DIR            pdf documentation [DOCDIR] | 
 | 1461 |   --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1462 | _ACEOF | 
 | 1463 |  | 
 | 1464 |   cat <<\_ACEOF | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1465 |  | 
 | 1466 | System types: | 
 | 1467 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1468 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 1469 |   --target=TARGET   configure for building compilers for TARGET [HOST] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1470 | _ACEOF | 
 | 1471 | fi | 
 | 1472 |  | 
 | 1473 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1474 |   case $ac_init_help in | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 1475 |      short | recursive ) echo "Configuration of python 3.5:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1476 |    esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1477 |   cat <<\_ACEOF | 
 | 1478 |  | 
 | 1479 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1480 |   --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1481 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1482 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1483 |   --enable-universalsdk[=SDKDIR] | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1484 |                           Build fat binary against Mac OS X SDK | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1485 |   --enable-framework[=INSTALLDIR] | 
 | 1486 |                           Build (MacOSX|Darwin) framework | 
 | 1487 |   --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1488 |   --enable-profiling      enable C-level code profiling | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 1489 |   --enable-optimizations  Enable expensive optimizations (PGO, maybe LTO, | 
 | 1490 |                           etc). Disabled by default. | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1491 |   --enable-loadable-sqlite-extensions | 
 | 1492 |                           support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1493 |   --enable-ipv6           Enable ipv6 (with ipv4) support | 
 | 1494 |   --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1495 |   --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1496 |                           use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1497 |  | 
 | 1498 | Optional Packages: | 
 | 1499 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1500 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1501 |   --with-universal-archs=ARCH | 
 | 1502 |                           select architectures for universal build ("32-bit", | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1503 |                           "64-bit", "3-way", "intel", "intel-32", or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1504 |   --with-framework-name=FRAMEWORK | 
 | 1505 |                           specify an alternate name of the framework built | 
 | 1506 |                           with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1507 |   --without-gcc           never use gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 1508 |   --with-icc              build with icc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1509 |   --with-cxx-main=<compiler> | 
 | 1510 |                           compile main() and link python executable with C++ | 
 | 1511 |                           compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1512 |   --with-suffix=.exe      set executable suffix | 
 | 1513 |   --with-pydebug          build with Py_DEBUG defined | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 1514 |   --with-lto              Enable Link Time Optimization in PGO builds. | 
 | 1515 |                           Disabled by default. | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1516 |   --with-hash-algorithm=[fnv|siphash24] | 
 | 1517 |                           select hash algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1518 |   --with-address-sanitizer | 
 | 1519 |                           enable AddressSanitizer | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1520 |   --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1521 |   --with-system-expat     build pyexpat module using an installed expat | 
 | 1522 |                           library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1523 |   --with-system-ffi       build _ctypes module using an installed ffi library | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1524 |   --with-system-libmpdec  build _decimal module using an installed libmpdec | 
 | 1525 |                           library | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1526 |   --with-tcltk-includes='-I...' | 
 | 1527 |                           override search for Tcl and Tk include files | 
 | 1528 |   --with-tcltk-libs='-L...' | 
 | 1529 |                           override search for Tcl and Tk libs | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1530 |   --with-dbmliborder=db1:db2:... | 
 | 1531 |                           order to check db backends for dbm. Valid value is a | 
 | 1532 |                           colon separated string with the backend names | 
 | 1533 |                           `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1534 |   --with-signal-module    disable/enable signal module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1535 |   --with(out)-threads[=DIRECTORY] | 
 | 1536 |                           disable/enable thread support | 
 | 1537 |   --with(out)-thread[=DIRECTORY] | 
 | 1538 |                           deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1539 |   --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1540 |   --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1541 |   --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1542 |   --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1543 |   --with-fpectl           enable SIGFPE catching | 
 | 1544 |   --with-libm=STRING      math library | 
 | 1545 |   --with-libc=STRING      C library | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1546 |   --with(out)-computed-gotos | 
 | 1547 |                           Use computed gotos in evaluation loop (enabled by | 
 | 1548 |                           default on supported compilers) | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1549 |   --with(out)-ensurepip=[=upgrade] | 
 | 1550 |                           "install" or "upgrade" using bundled pip | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1551 |  | 
 | 1552 | Some influential environment variables: | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1553 |   MACHDEP     name for machine-dependent library files | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1554 |   CC          C compiler command | 
 | 1555 |   CFLAGS      C compiler flags | 
 | 1556 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1557 |               nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1558 |   LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1559 |   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1560 |               you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1561 |   CPP         C preprocessor | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 1562 |   PKG_CONFIG  path to pkg-config utility | 
 | 1563 |   PKG_CONFIG_PATH | 
 | 1564 |               directories to add to pkg-config's search path | 
 | 1565 |   PKG_CONFIG_LIBDIR | 
 | 1566 |               path overriding pkg-config's built-in search path | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1567 |  | 
 | 1568 | Use these variables to override the choices made by `configure' or to help | 
 | 1569 | it to find libraries and programs with nonstandard names/locations. | 
 | 1570 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1571 | Report bugs to <https://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1572 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1573 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1574 | fi | 
 | 1575 |  | 
 | 1576 | if test "$ac_init_help" = "recursive"; then | 
 | 1577 |   # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1578 |   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] | 1579 |     test -d "$ac_dir" || | 
 | 1580 |       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
 | 1581 |       continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1582 |     ac_builddir=. | 
 | 1583 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1584 | case "$ac_dir" in | 
 | 1585 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1586 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1587 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1588 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1589 |   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] | 1590 |   case $ac_top_builddir_sub in | 
 | 1591 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1592 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1593 |   esac ;; | 
 | 1594 | esac | 
 | 1595 | ac_abs_top_builddir=$ac_pwd | 
 | 1596 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1597 | # for backward compatibility: | 
 | 1598 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1599 |  | 
 | 1600 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1601 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1602 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1603 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 1604 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 1605 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1606 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1607 |     ac_top_srcdir=$srcdir | 
 | 1608 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 1609 |   *) # Relative name. | 
 | 1610 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 1611 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 1612 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1613 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1614 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1615 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1616 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 1617 |     # Check for guested configure. | 
 | 1618 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 1619 |       echo && | 
 | 1620 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 1621 |     elif test -f "$ac_srcdir/configure"; then | 
 | 1622 |       echo && | 
 | 1623 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1624 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1625 |       $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] | 1626 |     fi || ac_status=$? | 
 | 1627 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1628 |   done | 
 | 1629 | fi | 
 | 1630 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1631 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1632 | if $ac_init_version; then | 
 | 1633 |   cat <<\_ACEOF | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 1634 | python configure 3.5 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1635 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1636 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1637 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1638 | This configure script is free software; the Free Software Foundation | 
 | 1639 | gives unlimited permission to copy, distribute and modify it. | 
 | 1640 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1641 |   exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1642 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1643 |  | 
 | 1644 | ## ------------------------ ## | 
 | 1645 | ## Autoconf initialization. ## | 
 | 1646 | ## ------------------------ ## | 
 | 1647 |  | 
 | 1648 | # ac_fn_c_try_compile LINENO | 
 | 1649 | # -------------------------- | 
 | 1650 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 1651 | ac_fn_c_try_compile () | 
 | 1652 | { | 
 | 1653 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1654 |   rm -f conftest.$ac_objext | 
 | 1655 |   if { { ac_try="$ac_compile" | 
 | 1656 | case "(($ac_try" in | 
 | 1657 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1658 |   *) ac_try_echo=$ac_try;; | 
 | 1659 | esac | 
 | 1660 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1661 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1662 |   (eval "$ac_compile") 2>conftest.err | 
 | 1663 |   ac_status=$? | 
 | 1664 |   if test -s conftest.err; then | 
 | 1665 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1666 |     cat conftest.er1 >&5 | 
 | 1667 |     mv -f conftest.er1 conftest.err | 
 | 1668 |   fi | 
 | 1669 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1670 |   test $ac_status = 0; } && { | 
 | 1671 | 	 test -z "$ac_c_werror_flag" || | 
 | 1672 | 	 test ! -s conftest.err | 
 | 1673 |        } && test -s conftest.$ac_objext; then : | 
 | 1674 |   ac_retval=0 | 
 | 1675 | else | 
 | 1676 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1677 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1678 |  | 
 | 1679 | 	ac_retval=1 | 
 | 1680 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1681 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1682 |   as_fn_set_status $ac_retval | 
 | 1683 |  | 
 | 1684 | } # ac_fn_c_try_compile | 
 | 1685 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1686 | # ac_fn_c_try_cpp LINENO | 
 | 1687 | # ---------------------- | 
 | 1688 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 1689 | ac_fn_c_try_cpp () | 
 | 1690 | { | 
 | 1691 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1692 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 1693 | case "(($ac_try" in | 
 | 1694 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1695 |   *) ac_try_echo=$ac_try;; | 
 | 1696 | esac | 
 | 1697 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1698 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1699 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 1700 |   ac_status=$? | 
 | 1701 |   if test -s conftest.err; then | 
 | 1702 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1703 |     cat conftest.er1 >&5 | 
 | 1704 |     mv -f conftest.er1 conftest.err | 
 | 1705 |   fi | 
 | 1706 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1707 |   test $ac_status = 0; } > conftest.i && { | 
 | 1708 | 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
 | 1709 | 	 test ! -s conftest.err | 
 | 1710 |        }; then : | 
 | 1711 |   ac_retval=0 | 
 | 1712 | else | 
 | 1713 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1714 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1715 |  | 
 | 1716 |     ac_retval=1 | 
 | 1717 | fi | 
 | 1718 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
 | 1719 |   as_fn_set_status $ac_retval | 
 | 1720 |  | 
 | 1721 | } # ac_fn_c_try_cpp | 
 | 1722 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1723 | # ac_fn_c_try_link LINENO | 
 | 1724 | # ----------------------- | 
 | 1725 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 1726 | ac_fn_c_try_link () | 
 | 1727 | { | 
 | 1728 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1729 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 1730 |   if { { ac_try="$ac_link" | 
 | 1731 | case "(($ac_try" in | 
 | 1732 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1733 |   *) ac_try_echo=$ac_try;; | 
 | 1734 | esac | 
 | 1735 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1736 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1737 |   (eval "$ac_link") 2>conftest.err | 
 | 1738 |   ac_status=$? | 
 | 1739 |   if test -s conftest.err; then | 
 | 1740 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1741 |     cat conftest.er1 >&5 | 
 | 1742 |     mv -f conftest.er1 conftest.err | 
 | 1743 |   fi | 
 | 1744 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1745 |   test $ac_status = 0; } && { | 
 | 1746 | 	 test -z "$ac_c_werror_flag" || | 
 | 1747 | 	 test ! -s conftest.err | 
 | 1748 |        } && test -s conftest$ac_exeext && { | 
 | 1749 | 	 test "$cross_compiling" = yes || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1750 | 	 test -x conftest$ac_exeext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1751 |        }; then : | 
 | 1752 |   ac_retval=0 | 
 | 1753 | else | 
 | 1754 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1755 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1756 |  | 
 | 1757 | 	ac_retval=1 | 
 | 1758 | fi | 
 | 1759 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 1760 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 1761 |   # interfere with the next link command; also delete a directory that is | 
 | 1762 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 1763 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1764 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1765 |   as_fn_set_status $ac_retval | 
 | 1766 |  | 
 | 1767 | } # ac_fn_c_try_link | 
 | 1768 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1769 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 1770 | # ------------------------------------------------------- | 
 | 1771 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 1772 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 1773 | # accordingly. | 
 | 1774 | ac_fn_c_check_header_mongrel () | 
 | 1775 | { | 
 | 1776 |   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] | 1777 |   if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1778 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1779 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1780 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1781 |   $as_echo_n "(cached) " >&6 | 
 | 1782 | fi | 
 | 1783 | eval ac_res=\$$3 | 
 | 1784 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1785 | $as_echo "$ac_res" >&6; } | 
 | 1786 | else | 
 | 1787 |   # Is the header compilable? | 
 | 1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 1789 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 1790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1791 | /* end confdefs.h.  */ | 
 | 1792 | $4 | 
 | 1793 | #include <$2> | 
 | 1794 | _ACEOF | 
 | 1795 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1796 |   ac_header_compiler=yes | 
 | 1797 | else | 
 | 1798 |   ac_header_compiler=no | 
 | 1799 | fi | 
 | 1800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 1802 | $as_echo "$ac_header_compiler" >&6; } | 
 | 1803 |  | 
 | 1804 | # Is the header present? | 
 | 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 1806 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 1807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1808 | /* end confdefs.h.  */ | 
 | 1809 | #include <$2> | 
 | 1810 | _ACEOF | 
 | 1811 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 1812 |   ac_header_preproc=yes | 
 | 1813 | else | 
 | 1814 |   ac_header_preproc=no | 
 | 1815 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1816 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 1818 | $as_echo "$ac_header_preproc" >&6; } | 
 | 1819 |  | 
 | 1820 | # So?  What about this header? | 
 | 1821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
 | 1822 |   yes:no: ) | 
 | 1823 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 1824 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 1825 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1826 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 1827 |     ;; | 
 | 1828 |   no:yes:* ) | 
 | 1829 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 1830 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 1831 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 1832 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 1833 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 1834 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 1835 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 1836 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 1837 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1838 | $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] | 1839 | ( $as_echo "## --------------------------------------- ## | 
 | 1840 | ## Report this to https://bugs.python.org/ ## | 
 | 1841 | ## --------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1842 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 1843 |     ;; | 
 | 1844 | esac | 
 | 1845 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1846 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1847 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1848 |   $as_echo_n "(cached) " >&6 | 
 | 1849 | else | 
 | 1850 |   eval "$3=\$ac_header_compiler" | 
 | 1851 | fi | 
 | 1852 | eval ac_res=\$$3 | 
 | 1853 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1854 | $as_echo "$ac_res" >&6; } | 
 | 1855 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1856 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1857 |  | 
 | 1858 | } # ac_fn_c_check_header_mongrel | 
 | 1859 |  | 
 | 1860 | # ac_fn_c_try_run LINENO | 
 | 1861 | # ---------------------- | 
 | 1862 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
 | 1863 | # that executables *can* be run. | 
 | 1864 | ac_fn_c_try_run () | 
 | 1865 | { | 
 | 1866 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1867 |   if { { ac_try="$ac_link" | 
 | 1868 | case "(($ac_try" in | 
 | 1869 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1870 |   *) ac_try_echo=$ac_try;; | 
 | 1871 | esac | 
 | 1872 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1873 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1874 |   (eval "$ac_link") 2>&5 | 
 | 1875 |   ac_status=$? | 
 | 1876 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1877 |   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
 | 1878 |   { { case "(($ac_try" in | 
 | 1879 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1880 |   *) ac_try_echo=$ac_try;; | 
 | 1881 | esac | 
 | 1882 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1883 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1884 |   (eval "$ac_try") 2>&5 | 
 | 1885 |   ac_status=$? | 
 | 1886 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1887 |   test $ac_status = 0; }; }; then : | 
 | 1888 |   ac_retval=0 | 
 | 1889 | else | 
 | 1890 |   $as_echo "$as_me: program exited with status $ac_status" >&5 | 
 | 1891 |        $as_echo "$as_me: failed program was:" >&5 | 
 | 1892 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1893 |  | 
 | 1894 |        ac_retval=$ac_status | 
 | 1895 | fi | 
 | 1896 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1897 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1898 |   as_fn_set_status $ac_retval | 
 | 1899 |  | 
 | 1900 | } # ac_fn_c_try_run | 
 | 1901 |  | 
 | 1902 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
 | 1903 | # ------------------------------------------------------- | 
 | 1904 | # Tests whether HEADER exists and can be compiled using the include files in | 
 | 1905 | # INCLUDES, setting the cache variable VAR accordingly. | 
 | 1906 | ac_fn_c_check_header_compile () | 
 | 1907 | { | 
 | 1908 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1909 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1910 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1911 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1912 |   $as_echo_n "(cached) " >&6 | 
 | 1913 | else | 
 | 1914 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1915 | /* end confdefs.h.  */ | 
 | 1916 | $4 | 
 | 1917 | #include <$2> | 
 | 1918 | _ACEOF | 
 | 1919 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1920 |   eval "$3=yes" | 
 | 1921 | else | 
 | 1922 |   eval "$3=no" | 
 | 1923 | fi | 
 | 1924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1925 | fi | 
 | 1926 | eval ac_res=\$$3 | 
 | 1927 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1928 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1929 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1930 |  | 
 | 1931 | } # ac_fn_c_check_header_compile | 
 | 1932 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1933 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
 | 1934 | # ------------------------------------------- | 
 | 1935 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
 | 1936 | # variable VAR accordingly. | 
 | 1937 | ac_fn_c_check_type () | 
 | 1938 | { | 
 | 1939 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1940 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1941 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1942 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1943 |   $as_echo_n "(cached) " >&6 | 
 | 1944 | else | 
 | 1945 |   eval "$3=no" | 
 | 1946 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1947 | /* end confdefs.h.  */ | 
 | 1948 | $4 | 
 | 1949 | int | 
 | 1950 | main () | 
 | 1951 | { | 
 | 1952 | if (sizeof ($2)) | 
 | 1953 | 	 return 0; | 
 | 1954 |   ; | 
 | 1955 |   return 0; | 
 | 1956 | } | 
 | 1957 | _ACEOF | 
 | 1958 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1959 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1960 | /* end confdefs.h.  */ | 
 | 1961 | $4 | 
 | 1962 | int | 
 | 1963 | main () | 
 | 1964 | { | 
 | 1965 | if (sizeof (($2))) | 
 | 1966 | 	    return 0; | 
 | 1967 |   ; | 
 | 1968 |   return 0; | 
 | 1969 | } | 
 | 1970 | _ACEOF | 
 | 1971 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1972 |  | 
 | 1973 | else | 
 | 1974 |   eval "$3=yes" | 
 | 1975 | fi | 
 | 1976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1977 | fi | 
 | 1978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1979 | fi | 
 | 1980 | eval ac_res=\$$3 | 
 | 1981 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1982 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1983 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1984 |  | 
 | 1985 | } # ac_fn_c_check_type | 
 | 1986 |  | 
 | 1987 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
 | 1988 | # ------------------------------------ | 
 | 1989 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
 | 1990 | # accordingly. | 
 | 1991 | ac_fn_c_find_uintX_t () | 
 | 1992 | { | 
 | 1993 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1994 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
 | 1995 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1996 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1997 |   $as_echo_n "(cached) " >&6 | 
 | 1998 | else | 
 | 1999 |   eval "$3=no" | 
 | 2000 |      # Order is important - never check a type that is potentially smaller | 
 | 2001 |      # than half of the expected target width. | 
 | 2002 |      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
 | 2003 | 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
 | 2004 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2005 | /* end confdefs.h.  */ | 
 | 2006 | $ac_includes_default | 
 | 2007 | int | 
 | 2008 | main () | 
 | 2009 | { | 
 | 2010 | 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] | 2011 | test_array [0] = 0; | 
 | 2012 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2013 |  | 
 | 2014 |   ; | 
 | 2015 |   return 0; | 
 | 2016 | } | 
 | 2017 | _ACEOF | 
 | 2018 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2019 |   case $ac_type in #( | 
 | 2020 |   uint$2_t) : | 
 | 2021 |     eval "$3=yes" ;; #( | 
 | 2022 |   *) : | 
 | 2023 |     eval "$3=\$ac_type" ;; | 
 | 2024 | esac | 
 | 2025 | fi | 
 | 2026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2027 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2028 |  | 
 | 2029 | else | 
 | 2030 |   break | 
 | 2031 | fi | 
 | 2032 |      done | 
 | 2033 | fi | 
 | 2034 | eval ac_res=\$$3 | 
 | 2035 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2036 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2037 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2038 |  | 
 | 2039 | } # ac_fn_c_find_uintX_t | 
 | 2040 |  | 
 | 2041 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
 | 2042 | # ----------------------------------- | 
 | 2043 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
 | 2044 | # accordingly. | 
 | 2045 | ac_fn_c_find_intX_t () | 
 | 2046 | { | 
 | 2047 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2048 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
 | 2049 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2050 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2051 |   $as_echo_n "(cached) " >&6 | 
 | 2052 | else | 
 | 2053 |   eval "$3=no" | 
 | 2054 |      # Order is important - never check a type that is potentially smaller | 
 | 2055 |      # than half of the expected target width. | 
 | 2056 |      for ac_type in int$2_t 'int' 'long int' \ | 
 | 2057 | 	 'long long int' 'short int' 'signed char'; do | 
 | 2058 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2059 | /* end confdefs.h.  */ | 
 | 2060 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2061 | 	     enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2062 | int | 
 | 2063 | main () | 
 | 2064 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2065 | 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] | 2066 | test_array [0] = 0; | 
 | 2067 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2068 |  | 
 | 2069 |   ; | 
 | 2070 |   return 0; | 
 | 2071 | } | 
 | 2072 | _ACEOF | 
 | 2073 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2074 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2075 | /* end confdefs.h.  */ | 
 | 2076 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2077 | 	        enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2078 | int | 
 | 2079 | main () | 
 | 2080 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2081 | 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] | 2082 | 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2083 | test_array [0] = 0; | 
 | 2084 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2085 |  | 
 | 2086 |   ; | 
 | 2087 |   return 0; | 
 | 2088 | } | 
 | 2089 | _ACEOF | 
 | 2090 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2091 |  | 
 | 2092 | else | 
 | 2093 |   case $ac_type in #( | 
 | 2094 |   int$2_t) : | 
 | 2095 |     eval "$3=yes" ;; #( | 
 | 2096 |   *) : | 
 | 2097 |     eval "$3=\$ac_type" ;; | 
 | 2098 | esac | 
 | 2099 | fi | 
 | 2100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2101 | fi | 
 | 2102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2103 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2104 |  | 
 | 2105 | else | 
 | 2106 |   break | 
 | 2107 | fi | 
 | 2108 |      done | 
 | 2109 | fi | 
 | 2110 | eval ac_res=\$$3 | 
 | 2111 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2112 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2113 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2114 |  | 
 | 2115 | } # ac_fn_c_find_intX_t | 
 | 2116 |  | 
 | 2117 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
 | 2118 | # -------------------------------------------- | 
 | 2119 | # Tries to find the compile-time value of EXPR in a program that includes | 
 | 2120 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
 | 2121 | # computed | 
 | 2122 | ac_fn_c_compute_int () | 
 | 2123 | { | 
 | 2124 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2125 |   if test "$cross_compiling" = yes; then | 
 | 2126 |     # Depending upon the size, compute the lo and hi bounds. | 
 | 2127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2128 | /* end confdefs.h.  */ | 
 | 2129 | $4 | 
 | 2130 | int | 
 | 2131 | main () | 
 | 2132 | { | 
 | 2133 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2134 | test_array [0] = 0; | 
 | 2135 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2136 |  | 
 | 2137 |   ; | 
 | 2138 |   return 0; | 
 | 2139 | } | 
 | 2140 | _ACEOF | 
 | 2141 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2142 |   ac_lo=0 ac_mid=0 | 
 | 2143 |   while :; do | 
 | 2144 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2145 | /* end confdefs.h.  */ | 
 | 2146 | $4 | 
 | 2147 | int | 
 | 2148 | main () | 
 | 2149 | { | 
 | 2150 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2151 | test_array [0] = 0; | 
 | 2152 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2153 |  | 
 | 2154 |   ; | 
 | 2155 |   return 0; | 
 | 2156 | } | 
 | 2157 | _ACEOF | 
 | 2158 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2159 |   ac_hi=$ac_mid; break | 
 | 2160 | else | 
 | 2161 |   as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
 | 2162 | 			if test $ac_lo -le $ac_mid; then | 
 | 2163 | 			  ac_lo= ac_hi= | 
 | 2164 | 			  break | 
 | 2165 | 			fi | 
 | 2166 | 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
 | 2167 | fi | 
 | 2168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2169 |   done | 
 | 2170 | else | 
 | 2171 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2172 | /* end confdefs.h.  */ | 
 | 2173 | $4 | 
 | 2174 | int | 
 | 2175 | main () | 
 | 2176 | { | 
 | 2177 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2178 | test_array [0] = 0; | 
 | 2179 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2180 |  | 
 | 2181 |   ; | 
 | 2182 |   return 0; | 
 | 2183 | } | 
 | 2184 | _ACEOF | 
 | 2185 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2186 |   ac_hi=-1 ac_mid=-1 | 
 | 2187 |   while :; do | 
 | 2188 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2189 | /* end confdefs.h.  */ | 
 | 2190 | $4 | 
 | 2191 | int | 
 | 2192 | main () | 
 | 2193 | { | 
 | 2194 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2195 | test_array [0] = 0; | 
 | 2196 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2197 |  | 
 | 2198 |   ; | 
 | 2199 |   return 0; | 
 | 2200 | } | 
 | 2201 | _ACEOF | 
 | 2202 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2203 |   ac_lo=$ac_mid; break | 
 | 2204 | else | 
 | 2205 |   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
 | 2206 | 			if test $ac_mid -le $ac_hi; then | 
 | 2207 | 			  ac_lo= ac_hi= | 
 | 2208 | 			  break | 
 | 2209 | 			fi | 
 | 2210 | 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
 | 2211 | fi | 
 | 2212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2213 |   done | 
 | 2214 | else | 
 | 2215 |   ac_lo= ac_hi= | 
 | 2216 | fi | 
 | 2217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2218 | fi | 
 | 2219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2220 | # Binary search between lo and hi bounds. | 
 | 2221 | while test "x$ac_lo" != "x$ac_hi"; do | 
 | 2222 |   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
 | 2223 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2224 | /* end confdefs.h.  */ | 
 | 2225 | $4 | 
 | 2226 | int | 
 | 2227 | main () | 
 | 2228 | { | 
 | 2229 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2230 | test_array [0] = 0; | 
 | 2231 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2232 |  | 
 | 2233 |   ; | 
 | 2234 |   return 0; | 
 | 2235 | } | 
 | 2236 | _ACEOF | 
 | 2237 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2238 |   ac_hi=$ac_mid | 
 | 2239 | else | 
 | 2240 |   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
 | 2241 | fi | 
 | 2242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2243 | done | 
 | 2244 | case $ac_lo in #(( | 
 | 2245 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
 | 2246 | '') ac_retval=1 ;; | 
 | 2247 | esac | 
 | 2248 |   else | 
 | 2249 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2250 | /* end confdefs.h.  */ | 
 | 2251 | $4 | 
 | 2252 | static long int longval () { return $2; } | 
 | 2253 | static unsigned long int ulongval () { return $2; } | 
 | 2254 | #include <stdio.h> | 
 | 2255 | #include <stdlib.h> | 
 | 2256 | int | 
 | 2257 | main () | 
 | 2258 | { | 
 | 2259 |  | 
 | 2260 |   FILE *f = fopen ("conftest.val", "w"); | 
 | 2261 |   if (! f) | 
 | 2262 |     return 1; | 
 | 2263 |   if (($2) < 0) | 
 | 2264 |     { | 
 | 2265 |       long int i = longval (); | 
 | 2266 |       if (i != ($2)) | 
 | 2267 | 	return 1; | 
 | 2268 |       fprintf (f, "%ld", i); | 
 | 2269 |     } | 
 | 2270 |   else | 
 | 2271 |     { | 
 | 2272 |       unsigned long int i = ulongval (); | 
 | 2273 |       if (i != ($2)) | 
 | 2274 | 	return 1; | 
 | 2275 |       fprintf (f, "%lu", i); | 
 | 2276 |     } | 
 | 2277 |   /* Do not output a trailing newline, as this causes \r\n confusion | 
 | 2278 |      on some platforms.  */ | 
 | 2279 |   return ferror (f) || fclose (f) != 0; | 
 | 2280 |  | 
 | 2281 |   ; | 
 | 2282 |   return 0; | 
 | 2283 | } | 
 | 2284 | _ACEOF | 
 | 2285 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 2286 |   echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
 | 2287 | else | 
 | 2288 |   ac_retval=1 | 
 | 2289 | fi | 
 | 2290 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 2291 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 2292 | rm -f conftest.val | 
 | 2293 |  | 
 | 2294 |   fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2295 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2296 |   as_fn_set_status $ac_retval | 
 | 2297 |  | 
 | 2298 | } # ac_fn_c_compute_int | 
 | 2299 |  | 
 | 2300 | # ac_fn_c_check_func LINENO FUNC VAR | 
 | 2301 | # ---------------------------------- | 
 | 2302 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
 | 2303 | ac_fn_c_check_func () | 
 | 2304 | { | 
 | 2305 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2306 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2307 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2308 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2309 |   $as_echo_n "(cached) " >&6 | 
 | 2310 | else | 
 | 2311 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2312 | /* end confdefs.h.  */ | 
 | 2313 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
 | 2314 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 2315 | #define $2 innocuous_$2 | 
 | 2316 |  | 
 | 2317 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2318 |     which can conflict with char $2 (); below. | 
 | 2319 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2320 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 2321 |  | 
 | 2322 | #ifdef __STDC__ | 
 | 2323 | # include <limits.h> | 
 | 2324 | #else | 
 | 2325 | # include <assert.h> | 
 | 2326 | #endif | 
 | 2327 |  | 
 | 2328 | #undef $2 | 
 | 2329 |  | 
 | 2330 | /* Override any GCC internal prototype to avoid an error. | 
 | 2331 |    Use char because int might match the return type of a GCC | 
 | 2332 |    builtin and then its argument prototype would still apply.  */ | 
 | 2333 | #ifdef __cplusplus | 
 | 2334 | extern "C" | 
 | 2335 | #endif | 
 | 2336 | char $2 (); | 
 | 2337 | /* The GNU C library defines this for functions which it implements | 
 | 2338 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2339 |     something starting with __ and the normal name is an alias.  */ | 
 | 2340 | #if defined __stub_$2 || defined __stub___$2 | 
 | 2341 | choke me | 
 | 2342 | #endif | 
 | 2343 |  | 
 | 2344 | int | 
 | 2345 | main () | 
 | 2346 | { | 
 | 2347 | return $2 (); | 
 | 2348 |   ; | 
 | 2349 |   return 0; | 
 | 2350 | } | 
 | 2351 | _ACEOF | 
 | 2352 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 2353 |   eval "$3=yes" | 
 | 2354 | else | 
 | 2355 |   eval "$3=no" | 
 | 2356 | fi | 
 | 2357 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 2358 |     conftest$ac_exeext conftest.$ac_ext | 
 | 2359 | fi | 
 | 2360 | eval ac_res=\$$3 | 
 | 2361 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2362 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2363 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2364 |  | 
 | 2365 | } # ac_fn_c_check_func | 
 | 2366 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2367 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
 | 2368 | # --------------------------------------------- | 
 | 2369 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
 | 2370 | # accordingly. | 
 | 2371 | ac_fn_c_check_decl () | 
 | 2372 | { | 
 | 2373 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2374 |   as_decl_name=`echo $2|sed 's/ *(.*//'` | 
 | 2375 |   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
 | 2376 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
 | 2377 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
 | 2378 | if eval \${$3+:} false; then : | 
 | 2379 |   $as_echo_n "(cached) " >&6 | 
 | 2380 | else | 
 | 2381 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2382 | /* end confdefs.h.  */ | 
 | 2383 | $4 | 
 | 2384 | int | 
 | 2385 | main () | 
 | 2386 | { | 
 | 2387 | #ifndef $as_decl_name | 
 | 2388 | #ifdef __cplusplus | 
 | 2389 |   (void) $as_decl_use; | 
 | 2390 | #else | 
 | 2391 |   (void) $as_decl_name; | 
 | 2392 | #endif | 
 | 2393 | #endif | 
 | 2394 |  | 
 | 2395 |   ; | 
 | 2396 |   return 0; | 
 | 2397 | } | 
 | 2398 | _ACEOF | 
 | 2399 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2400 |   eval "$3=yes" | 
 | 2401 | else | 
 | 2402 |   eval "$3=no" | 
 | 2403 | fi | 
 | 2404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2405 | fi | 
 | 2406 | eval ac_res=\$$3 | 
 | 2407 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2408 | $as_echo "$ac_res" >&6; } | 
 | 2409 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
 | 2410 |  | 
 | 2411 | } # ac_fn_c_check_decl | 
 | 2412 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2413 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
 | 2414 | # ---------------------------------------------------- | 
 | 2415 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
 | 2416 | # INCLUDES, setting cache variable VAR accordingly. | 
 | 2417 | ac_fn_c_check_member () | 
 | 2418 | { | 
 | 2419 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2420 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
 | 2421 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2422 | if eval \${$4+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2423 |   $as_echo_n "(cached) " >&6 | 
 | 2424 | else | 
 | 2425 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2426 | /* end confdefs.h.  */ | 
 | 2427 | $5 | 
 | 2428 | int | 
 | 2429 | main () | 
 | 2430 | { | 
 | 2431 | static $2 ac_aggr; | 
 | 2432 | if (ac_aggr.$3) | 
 | 2433 | return 0; | 
 | 2434 |   ; | 
 | 2435 |   return 0; | 
 | 2436 | } | 
 | 2437 | _ACEOF | 
 | 2438 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2439 |   eval "$4=yes" | 
 | 2440 | else | 
 | 2441 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2442 | /* end confdefs.h.  */ | 
 | 2443 | $5 | 
 | 2444 | int | 
 | 2445 | main () | 
 | 2446 | { | 
 | 2447 | static $2 ac_aggr; | 
 | 2448 | if (sizeof ac_aggr.$3) | 
 | 2449 | return 0; | 
 | 2450 |   ; | 
 | 2451 |   return 0; | 
 | 2452 | } | 
 | 2453 | _ACEOF | 
 | 2454 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2455 |   eval "$4=yes" | 
 | 2456 | else | 
 | 2457 |   eval "$4=no" | 
 | 2458 | fi | 
 | 2459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2460 | fi | 
 | 2461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2462 | fi | 
 | 2463 | eval ac_res=\$$4 | 
 | 2464 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2465 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2466 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2467 |  | 
 | 2468 | } # ac_fn_c_check_member | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2469 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | This file contains any messages produced by compilers while | 
 | 2471 | running configure, to aid debugging if configure makes a mistake. | 
 | 2472 |  | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 2473 | It was created by python $as_me 3.5, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2474 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2475 |  | 
 | 2476 |   $ $0 $@ | 
 | 2477 |  | 
 | 2478 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2479 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2480 | { | 
 | 2481 | cat <<_ASUNAME | 
 | 2482 | ## --------- ## | 
 | 2483 | ## Platform. ## | 
 | 2484 | ## --------- ## | 
 | 2485 |  | 
 | 2486 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 2487 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 2488 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 2489 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 2490 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 2491 |  | 
 | 2492 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 2493 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 2494 |  | 
 | 2495 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 2496 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 2497 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2498 | /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] | 2499 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 2500 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 2501 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 2502 |  | 
 | 2503 | _ASUNAME | 
 | 2504 |  | 
 | 2505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2506 | for as_dir in $PATH | 
 | 2507 | do | 
 | 2508 |   IFS=$as_save_IFS | 
 | 2509 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2510 |     $as_echo "PATH: $as_dir" | 
 | 2511 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2512 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2513 |  | 
 | 2514 | } >&5 | 
 | 2515 |  | 
 | 2516 | cat >&5 <<_ACEOF | 
 | 2517 |  | 
 | 2518 |  | 
 | 2519 | ## ----------- ## | 
 | 2520 | ## Core tests. ## | 
 | 2521 | ## ----------- ## | 
 | 2522 |  | 
 | 2523 | _ACEOF | 
 | 2524 |  | 
 | 2525 |  | 
 | 2526 | # Keep a trace of the command line. | 
 | 2527 | # 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] | 2528 | # 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] | 2529 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2530 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2532 | ac_configure_args0= | 
 | 2533 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2534 | ac_must_keep_next=false | 
 | 2535 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2536 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2537 |   for ac_arg | 
 | 2538 |   do | 
 | 2539 |     case $ac_arg in | 
 | 2540 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 2541 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 2542 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 2543 |       continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2544 |     *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2545 |       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2546 |     esac | 
 | 2547 |     case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2548 |     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2549 |     2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2550 |       as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2551 |       if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2552 | 	ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2553 |       else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2554 | 	case $ac_arg in | 
 | 2555 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 2556 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 2557 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 2558 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 2559 | 	    case "$ac_configure_args0 " in | 
 | 2560 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 2561 | 	    esac | 
 | 2562 | 	    ;; | 
 | 2563 | 	  -* ) ac_must_keep_next=true ;; | 
 | 2564 | 	esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2565 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2566 |       as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2567 |       ;; | 
 | 2568 |     esac | 
 | 2569 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2570 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2571 | { ac_configure_args0=; unset ac_configure_args0;} | 
 | 2572 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2573 |  | 
 | 2574 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 2575 | # config.log.  We remove comments because anyway the quotes in there | 
 | 2576 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2577 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 2578 | # 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] | 2579 | trap 'exit_status=$? | 
 | 2580 |   # Save into config.log some information that might help in debugging. | 
 | 2581 |   { | 
 | 2582 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2583 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2584 |     $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2585 | ## Cache variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2586 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2587 |     echo | 
 | 2588 |     # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2589 | ( | 
 | 2590 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 2591 |     eval ac_val=\$$ac_var | 
 | 2592 |     case $ac_val in #( | 
 | 2593 |     *${as_nl}*) | 
 | 2594 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2595 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 2596 | $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] | 2597 |       esac | 
 | 2598 |       case $ac_var in #( | 
 | 2599 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2600 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 2601 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2602 |       esac ;; | 
 | 2603 |     esac | 
 | 2604 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2606 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 2607 |     *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 |       sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2609 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 2610 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 2611 |       ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2612 |     *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2613 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2614 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2615 |     esac | | 
 | 2616 |     sort | 
 | 2617 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2618 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2619 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2620 |     $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2621 | ## Output variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2622 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2623 |     echo | 
 | 2624 |     for ac_var in $ac_subst_vars | 
 | 2625 |     do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2626 |       eval ac_val=\$$ac_var | 
 | 2627 |       case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2628 |       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2629 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2630 |       $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2631 |     done | sort | 
 | 2632 |     echo | 
 | 2633 |  | 
 | 2634 |     if test -n "$ac_subst_files"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2635 |       $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2636 | ## File substitutions. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2637 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2638 |       echo | 
 | 2639 |       for ac_var in $ac_subst_files | 
 | 2640 |       do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2641 | 	eval ac_val=\$$ac_var | 
 | 2642 | 	case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2643 | 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2644 | 	esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2645 | 	$as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2646 |       done | sort | 
 | 2647 |       echo | 
 | 2648 |     fi | 
 | 2649 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 |     if test -s confdefs.h; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2651 |       $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2652 | ## confdefs.h. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2653 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2654 |       echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2655 |       cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2656 |       echo | 
 | 2657 |     fi | 
 | 2658 |     test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2659 |       $as_echo "$as_me: caught signal $ac_signal" | 
 | 2660 |     $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2661 |   } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2662 |   rm -f core *.core core.conftest.* && | 
 | 2663 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2664 |     exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2665 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2666 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2667 |   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] | 2668 | done | 
 | 2669 | ac_signal=0 | 
 | 2670 |  | 
 | 2671 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2672 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2674 | $as_echo "/* confdefs.h */" > confdefs.h | 
 | 2675 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | # Predefined preprocessor variables. | 
 | 2677 |  | 
 | 2678 | cat >>confdefs.h <<_ACEOF | 
 | 2679 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 2680 | _ACEOF | 
 | 2681 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2682 | cat >>confdefs.h <<_ACEOF | 
 | 2683 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 2684 | _ACEOF | 
 | 2685 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2686 | cat >>confdefs.h <<_ACEOF | 
 | 2687 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 2688 | _ACEOF | 
 | 2689 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2690 | cat >>confdefs.h <<_ACEOF | 
 | 2691 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 2692 | _ACEOF | 
 | 2693 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2694 | cat >>confdefs.h <<_ACEOF | 
 | 2695 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 2696 | _ACEOF | 
 | 2697 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2698 | cat >>confdefs.h <<_ACEOF | 
 | 2699 | #define PACKAGE_URL "$PACKAGE_URL" | 
 | 2700 | _ACEOF | 
 | 2701 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2702 |  | 
 | 2703 | # 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] | 2704 | # Prefer an explicitly selected file to automatically selected ones. | 
 | 2705 | ac_site_file1=NONE | 
 | 2706 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2707 | if test -n "$CONFIG_SITE"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2708 |   # We do not want a PATH search for config.site. | 
 | 2709 |   case $CONFIG_SITE in #(( | 
 | 2710 |     -*)  ac_site_file1=./$CONFIG_SITE;; | 
 | 2711 |     */*) ac_site_file1=$CONFIG_SITE;; | 
 | 2712 |     *)   ac_site_file1=./$CONFIG_SITE;; | 
 | 2713 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2714 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2715 |   ac_site_file1=$prefix/share/config.site | 
 | 2716 |   ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2717 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2718 |   ac_site_file1=$ac_default_prefix/share/config.site | 
 | 2719 |   ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2720 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2721 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2722 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2723 |   test "x$ac_site_file" = xNONE && continue | 
 | 2724 |   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
 | 2725 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
 | 2726 | $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] | 2727 |     sed 's/^/| /' "$ac_site_file" >&5 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2728 |     . "$ac_site_file" \ | 
 | 2729 |       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2730 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2731 | as_fn_error $? "failed to load site script $ac_site_file | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2732 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2733 |   fi | 
 | 2734 | done | 
 | 2735 |  | 
 | 2736 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2737 |   # Some versions of bash will fail to source /dev/null (special files | 
 | 2738 |   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
 | 2739 |   if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
 | 2740 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
 | 2741 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2742 |     case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2743 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 2744 |       *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2745 |     esac | 
 | 2746 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2747 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2748 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
 | 2749 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2750 |   >$cache_file | 
 | 2751 | fi | 
 | 2752 |  | 
 | 2753 | # Check that the precious variables saved in the cache have kept the same | 
 | 2754 | # value. | 
 | 2755 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2756 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2757 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 2758 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2759 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 2760 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2761 |   case $ac_old_set,$ac_new_set in | 
 | 2762 |     set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2763 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 2764 | $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] | 2765 |       ac_cache_corrupted=: ;; | 
 | 2766 |     ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2767 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 2768 | $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] | 2769 |       ac_cache_corrupted=: ;; | 
 | 2770 |     ,);; | 
 | 2771 |     *) | 
 | 2772 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2773 | 	# differences in whitespace do not lead to failure. | 
 | 2774 | 	ac_old_val_w=`echo x $ac_old_val` | 
 | 2775 | 	ac_new_val_w=`echo x $ac_new_val` | 
 | 2776 | 	if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
 | 2777 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
 | 2778 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 2779 | 	  ac_cache_corrupted=: | 
 | 2780 | 	else | 
 | 2781 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
 | 2782 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
 | 2783 | 	  eval $ac_var=\$ac_old_val | 
 | 2784 | 	fi | 
 | 2785 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
 | 2786 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
 | 2787 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
 | 2788 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2789 |       fi;; | 
 | 2790 |   esac | 
 | 2791 |   # Pass precious variables to config.status. | 
 | 2792 |   if test "$ac_new_set" = set; then | 
 | 2793 |     case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2794 |     *\'*) 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] | 2795 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 2796 |     esac | 
 | 2797 |     case " $ac_configure_args " in | 
 | 2798 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2799 |       *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2800 |     esac | 
 | 2801 |   fi | 
 | 2802 | done | 
 | 2803 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2804 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2805 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2806 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
 | 2807 | $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] | 2808 |   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] | 2809 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2810 | ## -------------------- ## | 
 | 2811 | ## Main body of script. ## | 
 | 2812 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2813 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2814 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2815 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2819 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2820 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2821 |  | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2822 |  | 
| Martin Panter | c5ee3ca | 2016-09-12 01:32:03 +0000 | [diff] [blame] | 2823 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2824 |     # If we're building out-of-tree, we need to make sure the following | 
 | 2825 |     # resources get picked up before their $srcdir counterparts. | 
 | 2826 |     #   Objects/ -> typeslots.inc | 
 | 2827 |     #   Include/ -> Python-ast.h, graminit.h | 
 | 2828 |     #   Python/  -> importlib.h | 
 | 2829 |     # (A side effect of this is that these resources will automatically be | 
 | 2830 |     #  regenerated when building out-of-tree, regardless of whether or not | 
 | 2831 |     #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
 | 2832 |     #  off.) | 
 | 2833 |     BASECPPFLAGS="-IObjects -IInclude -IPython" | 
 | 2834 | else | 
 | 2835 |     BASECPPFLAGS="" | 
 | 2836 | fi | 
 | 2837 |  | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2838 |  | 
 | 2839 |  | 
 | 2840 |  | 
 | 2841 |  | 
| Antoine Pitrou | d3b2aef | 2011-07-27 01:22:41 +0200 | [diff] [blame] | 2842 | if test -e $srcdir/.hg/dirstate | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2843 | then | 
 | 2844 | # Extract the first word of "hg", so it can be a program name with args. | 
 | 2845 | set dummy hg; ac_word=$2 | 
 | 2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 2847 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2848 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2849 |   $as_echo_n "(cached) " >&6 | 
 | 2850 | else | 
 | 2851 |   if test -n "$HAS_HG"; then | 
 | 2852 |   ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
 | 2853 | else | 
 | 2854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2855 | for as_dir in $PATH | 
 | 2856 | do | 
 | 2857 |   IFS=$as_save_IFS | 
 | 2858 |   test -z "$as_dir" && as_dir=. | 
 | 2859 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2860 |   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] | 2861 |     ac_cv_prog_HAS_HG="found" | 
 | 2862 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2863 |     break 2 | 
 | 2864 |   fi | 
 | 2865 | done | 
 | 2866 |   done | 
 | 2867 | IFS=$as_save_IFS | 
 | 2868 |  | 
 | 2869 |   test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
 | 2870 | fi | 
 | 2871 | fi | 
 | 2872 | HAS_HG=$ac_cv_prog_HAS_HG | 
 | 2873 | if test -n "$HAS_HG"; then | 
 | 2874 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
 | 2875 | $as_echo "$HAS_HG" >&6; } | 
 | 2876 | else | 
 | 2877 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 2878 | $as_echo "no" >&6; } | 
 | 2879 | fi | 
 | 2880 |  | 
 | 2881 |  | 
 | 2882 | else | 
 | 2883 | HAS_HG=no-repository | 
 | 2884 | fi | 
 | 2885 | if test $HAS_HG = found | 
 | 2886 | then | 
 | 2887 |     HGVERSION="hg id -i \$(srcdir)" | 
 | 2888 |     HGTAG="hg id -t \$(srcdir)" | 
 | 2889 |     HGBRANCH="hg id -b \$(srcdir)" | 
 | 2890 | else | 
 | 2891 |     HGVERSION="" | 
 | 2892 |     HGTAG="" | 
 | 2893 |     HGBRANCH="" | 
 | 2894 | fi | 
 | 2895 |  | 
 | 2896 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2897 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2898 |  | 
 | 2899 |  | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2900 | ac_aux_dir= | 
 | 2901 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
 | 2902 |   if test -f "$ac_dir/install-sh"; then | 
 | 2903 |     ac_aux_dir=$ac_dir | 
 | 2904 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 2905 |     break | 
 | 2906 |   elif test -f "$ac_dir/install.sh"; then | 
 | 2907 |     ac_aux_dir=$ac_dir | 
 | 2908 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 2909 |     break | 
 | 2910 |   elif test -f "$ac_dir/shtool"; then | 
 | 2911 |     ac_aux_dir=$ac_dir | 
 | 2912 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 2913 |     break | 
 | 2914 |   fi | 
 | 2915 | done | 
 | 2916 | if test -z "$ac_aux_dir"; then | 
 | 2917 |   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
 | 2918 | fi | 
 | 2919 |  | 
 | 2920 | # These three variables are undocumented and unsupported, | 
 | 2921 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 2922 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 2923 | # whose full name contains unusual characters. | 
 | 2924 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 2925 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 2926 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 2927 |  | 
 | 2928 |  | 
 | 2929 | # Make sure we can run config.sub. | 
 | 2930 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
 | 2931 |   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
 | 2932 |  | 
 | 2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
 | 2934 | $as_echo_n "checking build system type... " >&6; } | 
 | 2935 | if ${ac_cv_build+:} false; then : | 
 | 2936 |   $as_echo_n "(cached) " >&6 | 
 | 2937 | else | 
 | 2938 |   ac_build_alias=$build_alias | 
 | 2939 | test "x$ac_build_alias" = x && | 
 | 2940 |   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
 | 2941 | test "x$ac_build_alias" = x && | 
 | 2942 |   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
 | 2943 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
 | 2944 |   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
 | 2945 |  | 
 | 2946 | fi | 
 | 2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
 | 2948 | $as_echo "$ac_cv_build" >&6; } | 
 | 2949 | case $ac_cv_build in | 
 | 2950 | *-*-*) ;; | 
 | 2951 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
 | 2952 | esac | 
 | 2953 | build=$ac_cv_build | 
 | 2954 | ac_save_IFS=$IFS; IFS='-' | 
 | 2955 | set x $ac_cv_build | 
 | 2956 | shift | 
 | 2957 | build_cpu=$1 | 
 | 2958 | build_vendor=$2 | 
 | 2959 | shift; shift | 
 | 2960 | # Remember, the first character of IFS is used to create $*, | 
 | 2961 | # except with old shells: | 
 | 2962 | build_os=$* | 
 | 2963 | IFS=$ac_save_IFS | 
 | 2964 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
 | 2965 |  | 
 | 2966 |  | 
 | 2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
 | 2968 | $as_echo_n "checking host system type... " >&6; } | 
 | 2969 | if ${ac_cv_host+:} false; then : | 
 | 2970 |   $as_echo_n "(cached) " >&6 | 
 | 2971 | else | 
 | 2972 |   if test "x$host_alias" = x; then | 
 | 2973 |   ac_cv_host=$ac_cv_build | 
 | 2974 | else | 
 | 2975 |   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
 | 2976 |     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
 | 2977 | fi | 
 | 2978 |  | 
 | 2979 | fi | 
 | 2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
 | 2981 | $as_echo "$ac_cv_host" >&6; } | 
 | 2982 | case $ac_cv_host in | 
 | 2983 | *-*-*) ;; | 
 | 2984 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
 | 2985 | esac | 
 | 2986 | host=$ac_cv_host | 
 | 2987 | ac_save_IFS=$IFS; IFS='-' | 
 | 2988 | set x $ac_cv_host | 
 | 2989 | shift | 
 | 2990 | host_cpu=$1 | 
 | 2991 | host_vendor=$2 | 
 | 2992 | shift; shift | 
 | 2993 | # Remember, the first character of IFS is used to create $*, | 
 | 2994 | # except with old shells: | 
 | 2995 | host_os=$* | 
 | 2996 | IFS=$ac_save_IFS | 
 | 2997 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
 | 2998 |  | 
 | 2999 |  | 
 | 3000 |  | 
| doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 3001 |  | 
 | 3002 |  | 
| Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 3003 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile | 
 | 3004 | rm -f pybuilddir.txt | 
 | 3005 |  | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3006 | for ac_prog in python$PACKAGE_VERSION python3 python | 
 | 3007 | do | 
 | 3008 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3009 | set dummy $ac_prog; ac_word=$2 | 
 | 3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3011 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 3012 | if ${ac_cv_prog_PYTHON_FOR_GEN+:} false; then : | 
 | 3013 |   $as_echo_n "(cached) " >&6 | 
 | 3014 | else | 
 | 3015 |   if test -n "$PYTHON_FOR_GEN"; then | 
 | 3016 |   ac_cv_prog_PYTHON_FOR_GEN="$PYTHON_FOR_GEN" # Let the user override the test. | 
 | 3017 | else | 
 | 3018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3019 | for as_dir in $PATH | 
 | 3020 | do | 
 | 3021 |   IFS=$as_save_IFS | 
 | 3022 |   test -z "$as_dir" && as_dir=. | 
 | 3023 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3024 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3025 |     ac_cv_prog_PYTHON_FOR_GEN="$ac_prog" | 
 | 3026 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3027 |     break 2 | 
 | 3028 |   fi | 
 | 3029 | done | 
 | 3030 |   done | 
 | 3031 | IFS=$as_save_IFS | 
 | 3032 |  | 
 | 3033 | fi | 
 | 3034 | fi | 
 | 3035 | PYTHON_FOR_GEN=$ac_cv_prog_PYTHON_FOR_GEN | 
 | 3036 | if test -n "$PYTHON_FOR_GEN"; then | 
 | 3037 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_GEN" >&5 | 
 | 3038 | $as_echo "$PYTHON_FOR_GEN" >&6; } | 
 | 3039 | else | 
 | 3040 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3041 | $as_echo "no" >&6; } | 
 | 3042 | fi | 
 | 3043 |  | 
 | 3044 |  | 
 | 3045 |   test -n "$PYTHON_FOR_GEN" && break | 
 | 3046 | done | 
 | 3047 | test -n "$PYTHON_FOR_GEN" || PYTHON_FOR_GEN="not-found" | 
 | 3048 |  | 
 | 3049 | if test "$PYTHON_FOR_GEN" = not-found; then | 
 | 3050 |     PYTHON_FOR_GEN='@echo "Cannot generate $@, python not found !" && \ | 
 | 3051 |     echo "To skip re-generation of $@ run <make touch> or <make -t $@>." && \ | 
 | 3052 |     echo "Otherwise, set python in PATH and run configure or run <make PYTHON_FOR_GEN=python>." && false &&' | 
 | 3053 | fi | 
 | 3054 |  | 
 | 3055 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3056 | if test "$cross_compiling" = yes; then | 
 | 3057 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
 | 3058 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
 | 3059 |     if test -z "$PYTHON_FOR_BUILD"; then | 
 | 3060 |         for interp in python$PACKAGE_VERSION python3 python; do | 
 | 3061 | 	    which $interp >/dev/null 2>&1 || continue | 
 | 3062 | 	    if $interp -c 'import sys;sys.exit(not sys.version_info[:2] >= (3,3))'; then | 
 | 3063 | 	        break | 
 | 3064 | 	    fi | 
 | 3065 |             interp= | 
 | 3066 | 	done | 
 | 3067 |         if test x$interp = x; then | 
 | 3068 | 	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
 | 3069 | 	fi | 
 | 3070 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
 | 3071 | $as_echo "$interp" >&6; } | 
| doko@python.org | 244b687 | 2013-01-26 12:08:25 +0100 | [diff] [blame] | 3072 | 	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] | 3073 |     fi | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 3074 |     # Used to comment out stuff for rebuilding generated files | 
 | 3075 |     GENERATED_COMMENT='#' | 
| Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 3076 | elif test "$cross_compiling" = maybe; then | 
 | 3077 |     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] | 3078 | else | 
 | 3079 |     PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 3080 |     GENERATED_COMMENT='' | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3081 | fi | 
 | 3082 |  | 
 | 3083 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3084 |  | 
| Martin Panter | eac67be | 2016-07-28 01:28:27 +0000 | [diff] [blame] | 3085 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 3086 | if test "$prefix" != "/"; then | 
 | 3087 |     prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
 | 3088 | fi | 
 | 3089 |  | 
 | 3090 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3091 |  | 
 | 3092 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 3093 | # We don't use PACKAGE_ variables, and they cause conflicts | 
 | 3094 | # with other autoconf-based packages that include Python.h | 
 | 3095 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
 | 3096 | rm confdefs.h | 
 | 3097 | mv confdefs.h.new confdefs.h | 
 | 3098 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 3099 |  | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 3100 | VERSION=3.5 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 3101 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 3102 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3103 |  | 
 | 3104 | SOVERSION=1.0 | 
 | 3105 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3106 | # The later defininition of _XOPEN_SOURCE disables certain features | 
 | 3107 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
 | 3108 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3109 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3110 |  | 
 | 3111 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3112 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3113 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
 | 3114 | # them. | 
 | 3115 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3116 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3117 |  | 
 | 3118 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3119 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3120 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
 | 3121 | # them. | 
 | 3122 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3123 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3124 |  | 
 | 3125 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3126 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3127 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
 | 3128 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3129 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3130 |  | 
 | 3131 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3132 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3133 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
 | 3134 | # them. | 
 | 3135 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3136 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3137 |  | 
 | 3138 |  | 
 | 3139 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3140 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3141 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3142 | # Arguments passed to configure. | 
 | 3143 |  | 
 | 3144 | CONFIG_ARGS="$ac_configure_args" | 
 | 3145 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
 | 3147 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3148 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3149 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3150 |   enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3151 | 	case $enableval in | 
 | 3152 | 	yes) | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3153 | 		# Locate the best usable SDK, see Mac/README.txt for more | 
 | 3154 | 		# information | 
 | 3155 | 		enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3156 | 		if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3157 | 		then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3158 | 			enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
 | 3159 | 			if test ! -d "${enableval}" | 
 | 3160 | 			then | 
 | 3161 | 				enableval=/ | 
 | 3162 | 			fi | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3163 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3164 | 		;; | 
 | 3165 | 	esac | 
 | 3166 | 	case $enableval in | 
 | 3167 | 	no) | 
 | 3168 | 		UNIVERSALSDK= | 
 | 3169 | 		enable_universalsdk= | 
 | 3170 | 		;; | 
 | 3171 | 	*) | 
 | 3172 | 		UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3173 | 		if test ! -d "${UNIVERSALSDK}" | 
 | 3174 | 		then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3175 | 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3176 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3177 | 		;; | 
 | 3178 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3179 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3180 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3181 | else | 
 | 3182 |  | 
 | 3183 |    	UNIVERSALSDK= | 
 | 3184 | 	enable_universalsdk= | 
 | 3185 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3186 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3187 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3188 | if test -n "${UNIVERSALSDK}" | 
 | 3189 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3190 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
 | 3191 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3192 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3193 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3194 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3195 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3196 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3197 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3198 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3199 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3200 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3201 | # For backward compatibility reasons we prefer to select '32-bit' if available, | 
 | 3202 | # otherwise use 'intel' | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3203 | UNIVERSAL_ARCHS="32-bit" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3204 | if test "`uname -s`" = "Darwin" | 
 | 3205 | then | 
 | 3206 | 	if test -n "${UNIVERSALSDK}" | 
 | 3207 | 	then | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3208 | 		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] | 3209 | 		then | 
 | 3210 | 			UNIVERSAL_ARCHS="intel" | 
 | 3211 | 		fi | 
 | 3212 | 	fi | 
 | 3213 | fi | 
 | 3214 |  | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3215 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
 | 3217 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3218 |  | 
 | 3219 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3220 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3221 |   withval=$with_universal_archs; | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3222 | 	UNIVERSAL_ARCHS="$withval" | 
 | 3223 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3224 | fi | 
 | 3225 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3226 | if test -n "${UNIVERSALSDK}" | 
 | 3227 | then | 
 | 3228 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | 
 | 3229 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | 
 | 3230 | else | 
 | 3231 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3232 | $as_echo "no" >&6; } | 
 | 3233 | fi | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3234 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3235 |  | 
 | 3236 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3237 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3238 |   withval=$with_framework_name; | 
 | 3239 |     PYTHONFRAMEWORK=${withval} | 
 | 3240 |     PYTHONFRAMEWORKDIR=${withval}.framework | 
 | 3241 |     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
 | 3242 |  | 
 | 3243 | else | 
 | 3244 |  | 
 | 3245 |     PYTHONFRAMEWORK=Python | 
 | 3246 |     PYTHONFRAMEWORKDIR=Python.framework | 
 | 3247 |     PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
 | 3248 |  | 
 | 3249 | fi | 
 | 3250 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3251 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3252 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3253 |   enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3254 | 	case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3255 | 	yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3256 | 		enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3257 | 	esac | 
 | 3258 | 	case $enableval in | 
 | 3259 | 	no) | 
 | 3260 | 		PYTHONFRAMEWORK= | 
 | 3261 | 		PYTHONFRAMEWORKDIR=no-framework | 
 | 3262 | 		PYTHONFRAMEWORKPREFIX= | 
 | 3263 | 		PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3264 | 		FRAMEWORKINSTALLFIRST= | 
 | 3265 | 		FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3266 | 		FRAMEWORKALTINSTALLFIRST= | 
 | 3267 | 		FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3268 | 		FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3269 | 		if test "x${prefix}" = "xNONE"; then | 
 | 3270 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3271 | 		else | 
 | 3272 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3273 | 		fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3274 | 		enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3275 | 		;; | 
 | 3276 | 	*) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3277 | 		PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3278 | 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3279 | 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3280 | 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3281 | 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
 | 3282 | 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3283 | 		FRAMEWORKPYTHONW="frameworkpythonw" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3284 | 		FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3285 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3286 | 		if test "x${prefix}" = "xNONE" ; then | 
 | 3287 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3288 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3289 | 		else | 
 | 3290 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3291 | 		fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3292 |  | 
 | 3293 | 		case "${enableval}" in | 
 | 3294 | 		/System*) | 
 | 3295 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3296 | 			if test "${prefix}" = "NONE" ; then | 
 | 3297 | 				# See below | 
 | 3298 | 				FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
 | 3299 | 			fi | 
 | 3300 | 			;; | 
 | 3301 |  | 
 | 3302 | 		/Library*) | 
 | 3303 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3304 | 			;; | 
 | 3305 |  | 
 | 3306 | 		*/Library/Frameworks) | 
 | 3307 | 			MDIR="`dirname "${enableval}"`" | 
 | 3308 | 			MDIR="`dirname "${MDIR}"`" | 
 | 3309 | 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
 | 3310 |  | 
 | 3311 | 			if test "${prefix}" = "NONE"; then | 
 | 3312 | 				# User hasn't specified the | 
 | 3313 | 				# --prefix option, but wants to install | 
 | 3314 | 				# the framework in a non-default location, | 
 | 3315 | 				# ensure that the compatibility links get | 
 | 3316 | 				# installed relative to that prefix as well | 
 | 3317 | 				# instead of in /usr/local. | 
 | 3318 | 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
 | 3319 | 			fi | 
 | 3320 | 			;; | 
 | 3321 |  | 
 | 3322 | 		*) | 
 | 3323 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3324 | 			;; | 
 | 3325 | 		esac | 
 | 3326 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3327 | 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3328 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3329 | 		# Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3330 | 		# files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3331 | 		ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3332 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3333 | 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3334 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3335 | 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
 | 3336 |  | 
 | 3337 | 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
 | 3338 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3339 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3340 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3341 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3342 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3343 | 	PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3344 | 	PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3345 | 	PYTHONFRAMEWORKPREFIX= | 
 | 3346 | 	PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3347 | 	FRAMEWORKINSTALLFIRST= | 
 | 3348 | 	FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3349 | 	FRAMEWORKALTINSTALLFIRST= | 
 | 3350 | 	FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3351 | 	FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3352 | 	if test "x${prefix}" = "xNONE" ; then | 
 | 3353 | 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3354 | 	else | 
 | 3355 | 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3356 | 	fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3357 | 	enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3358 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3359 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3360 | fi | 
 | 3361 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3362 |  | 
 | 3363 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3364 |  | 
 | 3365 |  | 
 | 3366 |  | 
 | 3367 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3368 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3369 |  | 
 | 3370 |  | 
 | 3371 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3372 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3373 |  | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3374 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3375 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3376 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3377 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3378 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3379 | # Set name for machine-dependent library files | 
 | 3380 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
 | 3382 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3383 | if test -z "$MACHDEP" | 
 | 3384 | then | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3385 |     # avoid using uname for cross builds | 
 | 3386 |     if test "$cross_compiling" = yes; then | 
| doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3387 |        # ac_sys_system and ac_sys_release are used for setting | 
 | 3388 |        # a lot of different things including 'define_xopen_source' | 
 | 3389 |        # in the case statement below. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3390 | 	case "$host" in | 
 | 3391 | 	*-*-linux*) | 
 | 3392 | 		ac_sys_system=Linux | 
 | 3393 | 		;; | 
 | 3394 | 	*-*-cygwin*) | 
 | 3395 | 		ac_sys_system=Cygwin | 
 | 3396 | 		;; | 
 | 3397 | 	*) | 
 | 3398 | 		# for now, limit cross builds to known configurations | 
 | 3399 | 		MACHDEP="unknown" | 
 | 3400 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3401 | 	esac | 
 | 3402 | 	ac_sys_release= | 
 | 3403 |     else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3404 | 	ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3405 | 	if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3406 | 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3407 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3408 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3409 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3410 | 	fi | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3411 |     fi | 
 | 3412 |     ac_md_system=`echo $ac_sys_system | | 
 | 3413 | 			tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 3414 |     ac_md_release=`echo $ac_sys_release | | 
 | 3415 | 			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
 | 3416 |     MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3417 |  | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3418 |     case $MACHDEP in | 
| Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3419 | 	linux*) MACHDEP="linux";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3420 | 	cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3421 | 	darwin*) MACHDEP="darwin";; | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 3422 | 	irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3423 | 	'')	MACHDEP="unknown";; | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3424 |     esac | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3425 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3426 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3427 |  | 
 | 3428 | if test "$cross_compiling" = yes; then | 
 | 3429 | 	case "$host" in | 
 | 3430 | 	*-*-linux*) | 
 | 3431 | 		case "$host_cpu" in | 
 | 3432 | 		arm*) | 
 | 3433 | 			_host_cpu=arm | 
 | 3434 | 			;; | 
 | 3435 | 		*) | 
 | 3436 | 			_host_cpu=$host_cpu | 
 | 3437 | 		esac | 
 | 3438 | 		;; | 
 | 3439 | 	*-*-cygwin*) | 
 | 3440 | 		_host_cpu= | 
 | 3441 | 		;; | 
 | 3442 | 	*) | 
 | 3443 | 		# for now, limit cross builds to known configurations | 
 | 3444 | 		MACHDEP="unknown" | 
 | 3445 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3446 | 	esac | 
 | 3447 | 	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
 | 3448 | fi | 
 | 3449 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3450 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
 | 3451 | # disable features if it is defined, without any means to access these | 
 | 3452 | # features as extensions. For these systems, we skip the definition of | 
 | 3453 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
 | 3454 | # some feature, make sure there is no alternative way to access this | 
 | 3455 | # feature. Also, when using wildcards, make sure you have verified the | 
 | 3456 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
 | 3457 | # wildcard, and that the wildcard does not include future systems | 
 | 3458 | # (which may remove their limitations). | 
 | 3459 | case $ac_sys_system/$ac_sys_release in | 
 | 3460 |   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
 | 3461 |   # 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] | 3462 |   # 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] | 3463 |   # In addition, Stefan Krah confirms that issue #1244610 exists through | 
 | 3464 |   # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3465 |   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3466 |     define_xopen_source=no | 
 | 3467 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3468 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3469 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3470 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3471 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3472 |  | 
 | 3473 |     ;; | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3474 |   OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3475 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3476 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3477 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3478 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3479 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3480 |  | 
 | 3481 |     ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3482 |   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
 | 3483 |   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
 | 3484 |   # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3485 |   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] | 3486 |     define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3487 |   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
 | 3488 |   # request to enable features supported by the standard as a request | 
 | 3489 |   # to disable features not supported by the standard.  The best way | 
 | 3490 |   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
 | 3491 |   # entirely and define __EXTENSIONS__ instead. | 
 | 3492 |   SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3493 |     define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3494 |   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
 | 3495 |   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3496 |   # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3497 |   OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3498 |     define_xopen_source=no;; | 
 | 3499 |   # 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] | 3500 |   # 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] | 3501 |   SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3502 |     define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3503 |   # On FreeBSD 4, the math functions C89 does not cover are never defined | 
 | 3504 |   # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
 | 3505 |   FreeBSD/4.*) | 
 | 3506 |     define_xopen_source=no;; | 
 | 3507 |   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
 | 3508 |   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
 | 3509 |   # identifies itself as Darwin/7.* | 
 | 3510 |   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3511 |   # disables platform specific features beyond repair. | 
 | 3512 |   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3513 |   # has no effect, don't bother defining them | 
 | 3514 |   Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3515 |     define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3516 |   Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3517 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3518 |   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
 | 3519 |   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
 | 3520 |   # 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] | 3521 |   AIX/4) | 
 | 3522 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3523 |   AIX/5) | 
 | 3524 |     if test `uname -r` -eq 1; then | 
 | 3525 |       define_xopen_source=no | 
 | 3526 |     fi | 
 | 3527 |     ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3528 |   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
 | 3529 |   # defining NI_NUMERICHOST. | 
 | 3530 |   QNX/6.3.2) | 
 | 3531 |     define_xopen_source=no | 
 | 3532 |     ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3533 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3534 | esac | 
 | 3535 |  | 
 | 3536 | if test $define_xopen_source = yes | 
 | 3537 | then | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3538 |   # X/Open 7, incorporating POSIX.1-2008 | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3539 |  | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3540 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3541 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3542 |  | 
 | 3543 |   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
 | 3544 |   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
 | 3545 |   # several APIs are not declared. Since this is also needed in some | 
 | 3546 |   # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3547 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3548 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3549 |  | 
 | 3550 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3551 |  | 
| Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3552 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3553 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3554 | fi | 
 | 3555 |  | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3556 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE | 
 | 3557 | case $ac_sys_system in | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3558 |   hp*|HP*) | 
 | 3559 |     define_stdc_a1=yes;; | 
 | 3560 |   *) | 
 | 3561 |     define_stdc_a1=no;; | 
 | 3562 | esac | 
 | 3563 |  | 
 | 3564 | if test $define_stdc_a1 = yes | 
 | 3565 | then | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3566 |  | 
 | 3567 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | 
 | 3568 |  | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3569 | fi | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3570 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3571 | # | 
 | 3572 | # SGI compilers allow the specification of the both the ABI and the | 
 | 3573 | # ISA on the command line.  Depending on the values of these switches, | 
| Martin Panter | 46f5072 | 2016-05-26 05:35:26 +0000 | [diff] [blame] | 3574 | # different and often incompatible code will be generated. | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3575 | # | 
 | 3576 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
 | 3577 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
 | 3578 | # variable is also adjusted. | 
 | 3579 | # | 
 | 3580 |  | 
 | 3581 | if test ! -z "$SGI_ABI" | 
 | 3582 | then | 
 | 3583 |         CC="cc $SGI_ABI" | 
 | 3584 |         LDFLAGS="$SGI_ABI $LDFLAGS" | 
 | 3585 |         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
 | 3586 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
 | 3588 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3589 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3590 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
 | 3591 | # it may influence the way we can build extensions, so distutils | 
 | 3592 | # needs to check it | 
 | 3593 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3594 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3595 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3596 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3597 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3598 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3599 |  | 
 | 3600 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
 | 3601 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
 | 3602 | # just to get things to compile and link.  Users are free to override OPT | 
 | 3603 | # when running configure or make.  The build should not break if they do. | 
 | 3604 | # BASECFLAGS should generally not be messed with, however. | 
 | 3605 |  | 
 | 3606 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
 | 3607 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
 | 3609 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3610 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3611 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3612 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3613 |   withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3614 | 	case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3615 | 	no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3616 | 		without_gcc=yes;; | 
 | 3617 | 	yes)	CC=gcc | 
 | 3618 | 		without_gcc=no;; | 
 | 3619 | 	*)	CC=$withval | 
 | 3620 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3621 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3622 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3623 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3624 | 	case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3625 | 	AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3626 | 		without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3627 | 	*)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3628 | 	esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3629 | fi | 
 | 3630 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
 | 3632 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3633 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 3634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 | 
 | 3635 | $as_echo_n "checking for --with-icc... " >&6; } | 
 | 3636 |  | 
 | 3637 | # Check whether --with-icc was given. | 
 | 3638 | if test "${with_icc+set}" = set; then : | 
 | 3639 |   withval=$with_icc; | 
 | 3640 | 	case $withval in | 
 | 3641 | 	no)	CC=${CC:-cc} | 
 | 3642 | 		with_icc=no;; | 
 | 3643 | 	yes)	CC=icc | 
 | 3644 | 		CXX=icpc | 
 | 3645 | 		with_icc=yes;; | 
 | 3646 | 	*)	CC=$withval | 
 | 3647 | 		with_icc=$withval;; | 
 | 3648 | 	esac | 
 | 3649 | else | 
 | 3650 |  | 
 | 3651 | 	with_icc=no | 
 | 3652 | fi | 
 | 3653 |  | 
 | 3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 | 
 | 3655 | $as_echo "$with_icc" >&6; } | 
 | 3656 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3657 | # If the user switches compilers, we can't believe the cache | 
 | 3658 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 3659 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3660 |   as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3661 | (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] | 3662 | fi | 
 | 3663 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3664 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
 | 3665 | # when the compiler supports them, but we don't always want -O2, and | 
 | 3666 | # we set -g later. | 
 | 3667 | if test -z "$CFLAGS"; then | 
 | 3668 |         CFLAGS= | 
 | 3669 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3670 |  | 
 | 3671 | if test "$ac_sys_system" = "Darwin" | 
 | 3672 | then | 
 | 3673 | 	# Compiler selection on MacOSX is more complicated than | 
 | 3674 | 	# AC_PROG_CC can handle, see Mac/README.txt for more | 
 | 3675 | 	# information | 
 | 3676 | 	if test -z "${CC}" | 
 | 3677 | 	then | 
 | 3678 | 		found_gcc= | 
 | 3679 | 		found_clang= | 
 | 3680 | 		as_save_IFS=$IFS; IFS=: | 
 | 3681 | 		for as_dir in $PATH | 
 | 3682 | 		do | 
 | 3683 | 			IFS=$as_save_IFS | 
 | 3684 | 			if test -x $as_dir/gcc; then | 
 | 3685 | 				if test -z "${found_gcc}"; then | 
 | 3686 | 					found_gcc=$as_dir/gcc | 
 | 3687 | 				fi | 
 | 3688 | 			fi | 
 | 3689 | 			if test -x $as_dir/clang; then | 
 | 3690 | 				if test -z "${found_clang}"; then | 
 | 3691 | 					found_clang=$as_dir/clang | 
 | 3692 | 				fi | 
 | 3693 | 			fi | 
 | 3694 | 		done | 
 | 3695 | 		IFS=$as_save_IFS | 
 | 3696 |  | 
 | 3697 | 		if test -n "$found_gcc" -a -n "$found_clang" | 
 | 3698 | 		then | 
 | 3699 | 			if test -n "`"$found_gcc" --version | grep llvm-gcc`" | 
 | 3700 | 			then | 
 | 3701 | 				{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | 
 | 3702 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | 
 | 3703 | 				CC="$found_clang" | 
 | 3704 | 				CXX="$found_clang++" | 
 | 3705 | 			fi | 
 | 3706 |  | 
 | 3707 |  | 
 | 3708 | 		elif test -z "$found_gcc" -a -n "$found_clang" | 
 | 3709 | 		then | 
 | 3710 | 			{ $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | 
 | 3711 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | 
 | 3712 | 			CC="$found_clang" | 
 | 3713 | 			CXX="$found_clang++" | 
 | 3714 |  | 
 | 3715 | 		elif test -z "$found_gcc" -a -z "$found_clang" | 
 | 3716 | 		then | 
 | 3717 | 			found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | 
 | 3718 | 			if test -n "${found_clang}" | 
 | 3719 | 			then | 
 | 3720 | 				{ $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | 
 | 3721 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | 
 | 3722 | 				CC="${found_clang}" | 
 | 3723 | 				CXX="`/usr/bin/xcrun -find clang++`" | 
 | 3724 |  | 
 | 3725 | 			# else: use default behaviour | 
 | 3726 | 			fi | 
 | 3727 | 		fi | 
 | 3728 | 	fi | 
 | 3729 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3730 | ac_ext=c | 
 | 3731 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3732 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3733 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3734 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3735 | if test -n "$ac_tool_prefix"; then | 
 | 3736 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 3737 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3739 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3740 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3741 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3742 | else | 
 | 3743 |   if test -n "$CC"; then | 
 | 3744 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3745 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3747 | for as_dir in $PATH | 
 | 3748 | do | 
 | 3749 |   IFS=$as_save_IFS | 
 | 3750 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3751 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3752 |   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] | 3753 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3754 |     $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] | 3755 |     break 2 | 
 | 3756 |   fi | 
 | 3757 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3758 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3759 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3760 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3761 | fi | 
 | 3762 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3763 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3764 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3765 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3766 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3767 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3768 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3769 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 | fi | 
 | 3771 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3772 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | fi | 
 | 3774 | if test -z "$ac_cv_prog_CC"; then | 
 | 3775 |   ac_ct_CC=$CC | 
 | 3776 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 3777 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3779 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3780 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3781 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | else | 
 | 3783 |   if test -n "$ac_ct_CC"; then | 
 | 3784 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3785 | else | 
 | 3786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3787 | for as_dir in $PATH | 
 | 3788 | do | 
 | 3789 |   IFS=$as_save_IFS | 
 | 3790 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3791 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3792 |   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] | 3793 |     ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3794 |     $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] | 3795 |     break 2 | 
 | 3796 |   fi | 
 | 3797 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3798 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3799 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3800 |  | 
 | 3801 | fi | 
 | 3802 | fi | 
 | 3803 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3804 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3805 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3806 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3807 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3808 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3809 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3810 | fi | 
 | 3811 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3812 |   if test "x$ac_ct_CC" = x; then | 
 | 3813 |     CC="" | 
 | 3814 |   else | 
 | 3815 |     case $cross_compiling:$ac_tool_warned in | 
 | 3816 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3818 | $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] | 3819 | ac_tool_warned=yes ;; | 
 | 3820 | esac | 
 | 3821 |     CC=$ac_ct_CC | 
 | 3822 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3823 | else | 
 | 3824 |   CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3825 | fi | 
 | 3826 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3827 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3828 |           if test -n "$ac_tool_prefix"; then | 
 | 3829 |     # 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] | 3830 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3832 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3833 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3834 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3835 | else | 
 | 3836 |   if test -n "$CC"; then | 
 | 3837 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3838 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3840 | for as_dir in $PATH | 
 | 3841 | do | 
 | 3842 |   IFS=$as_save_IFS | 
 | 3843 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3844 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3845 |   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] | 3846 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3847 |     $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] | 3848 |     break 2 | 
 | 3849 |   fi | 
 | 3850 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3851 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3852 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3853 |  | 
 | 3854 | fi | 
 | 3855 | fi | 
 | 3856 | CC=$ac_cv_prog_CC | 
 | 3857 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3858 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3859 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3860 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3861 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3862 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3863 | fi | 
 | 3864 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3865 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3866 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3867 | fi | 
 | 3868 | if test -z "$CC"; then | 
 | 3869 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 3870 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3872 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3873 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3874 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3875 | else | 
 | 3876 |   if test -n "$CC"; then | 
 | 3877 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3878 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3879 |   ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3881 | for as_dir in $PATH | 
 | 3882 | do | 
 | 3883 |   IFS=$as_save_IFS | 
 | 3884 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3885 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3886 |   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] | 3887 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 3888 |        ac_prog_rejected=yes | 
 | 3889 |        continue | 
 | 3890 |      fi | 
 | 3891 |     ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3892 |     $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] | 3893 |     break 2 | 
 | 3894 |   fi | 
 | 3895 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3896 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3897 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3898 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3899 | if test $ac_prog_rejected = yes; then | 
 | 3900 |   # We found a bogon in the path, so make sure we never use it. | 
 | 3901 |   set dummy $ac_cv_prog_CC | 
 | 3902 |   shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3903 |   if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3904 |     # We chose a different compiler from the bogus one. | 
 | 3905 |     # However, it has the same basename, so the bogon will be chosen | 
 | 3906 |     # first if we set CC to just the basename; use the full file name. | 
 | 3907 |     shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3908 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3909 |   fi | 
 | 3910 | fi | 
 | 3911 | fi | 
 | 3912 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3913 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3914 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3915 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3916 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3917 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3918 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3919 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3920 | fi | 
 | 3921 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3922 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3923 | fi | 
 | 3924 | if test -z "$CC"; then | 
 | 3925 |   if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3926 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3927 |   do | 
 | 3928 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3929 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3931 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3932 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3933 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3934 | else | 
 | 3935 |   if test -n "$CC"; then | 
 | 3936 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3937 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3939 | for as_dir in $PATH | 
 | 3940 | do | 
 | 3941 |   IFS=$as_save_IFS | 
 | 3942 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3943 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3944 |   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] | 3945 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3946 |     $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] | 3947 |     break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3948 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3949 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3950 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3951 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3952 |  | 
 | 3953 | fi | 
 | 3954 | fi | 
 | 3955 | CC=$ac_cv_prog_CC | 
 | 3956 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3957 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3958 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3959 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3960 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3961 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3962 | fi | 
 | 3963 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3964 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3965 |     test -n "$CC" && break | 
 | 3966 |   done | 
 | 3967 | fi | 
 | 3968 | if test -z "$CC"; then | 
 | 3969 |   ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3970 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3971 | do | 
 | 3972 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3973 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3975 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3976 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3977 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3978 | else | 
 | 3979 |   if test -n "$ac_ct_CC"; then | 
 | 3980 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3981 | else | 
 | 3982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3983 | for as_dir in $PATH | 
 | 3984 | do | 
 | 3985 |   IFS=$as_save_IFS | 
 | 3986 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3987 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3988 |   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] | 3989 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3990 |     $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] | 3991 |     break 2 | 
 | 3992 |   fi | 
 | 3993 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3994 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3995 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3996 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3997 | fi | 
 | 3998 | fi | 
 | 3999 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 4000 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4001 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 4002 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4003 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4004 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4005 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4006 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4007 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4008 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4009 |   test -n "$ac_ct_CC" && break | 
 | 4010 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4011 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4012 |   if test "x$ac_ct_CC" = x; then | 
 | 4013 |     CC="" | 
 | 4014 |   else | 
 | 4015 |     case $cross_compiling:$ac_tool_warned in | 
 | 4016 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4018 | $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] | 4019 | ac_tool_warned=yes ;; | 
 | 4020 | esac | 
 | 4021 |     CC=$ac_ct_CC | 
 | 4022 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4023 | fi | 
 | 4024 |  | 
 | 4025 | fi | 
 | 4026 |  | 
 | 4027 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4028 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4029 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4030 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4031 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4032 |  | 
 | 4033 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4034 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
 | 4035 | set X $ac_compile | 
 | 4036 | ac_compiler=$2 | 
 | 4037 | for ac_option in --version -v -V -qversion; do | 
 | 4038 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4039 | case "(($ac_try" in | 
 | 4040 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4041 |   *) ac_try_echo=$ac_try;; | 
 | 4042 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4043 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4044 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4045 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4046 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4047 |   if test -s conftest.err; then | 
 | 4048 |     sed '10a\ | 
 | 4049 | ... rest of stderr output deleted ... | 
 | 4050 |          10q' conftest.err >conftest.er1 | 
 | 4051 |     cat conftest.er1 >&5 | 
 | 4052 |   fi | 
 | 4053 |   rm -f conftest.er1 conftest.err | 
 | 4054 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4055 |   test $ac_status = 0; } | 
 | 4056 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4057 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4059 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4060 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4061 | int | 
 | 4062 | main () | 
 | 4063 | { | 
 | 4064 |  | 
 | 4065 |   ; | 
 | 4066 |   return 0; | 
 | 4067 | } | 
 | 4068 | _ACEOF | 
 | 4069 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4070 | 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] | 4071 | # Try to create an executable without -o first, disregard a.out. | 
 | 4072 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 4073 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
 | 4075 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
 | 4076 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 4077 |  | 
 | 4078 | # The possible output files: | 
 | 4079 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
 | 4080 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4081 | ac_rmfiles= | 
 | 4082 | for ac_file in $ac_files | 
 | 4083 | do | 
 | 4084 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4085 |     *.$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] | 4086 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 4087 |   esac | 
 | 4088 | done | 
 | 4089 | rm -f $ac_rmfiles | 
 | 4090 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4091 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4092 | case "(($ac_try" in | 
 | 4093 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4094 |   *) ac_try_echo=$ac_try;; | 
 | 4095 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4096 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4097 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4098 |   (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4099 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4100 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4101 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4102 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 4103 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 4104 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 4105 | # so that the user can short-circuit this test for compilers unknown to | 
 | 4106 | # Autoconf. | 
 | 4107 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4108 | do | 
 | 4109 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4110 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4111 |     *.$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] | 4112 | 	;; | 
 | 4113 |     [ab].out ) | 
 | 4114 | 	# We found the default executable, but exeext='' is most | 
 | 4115 | 	# certainly right. | 
 | 4116 | 	break;; | 
 | 4117 |     *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4118 | 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4119 | 	then :; else | 
 | 4120 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 4121 | 	fi | 
 | 4122 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 4123 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 4124 | 	# argument, so we may need to know it at that point already. | 
 | 4125 | 	# Even if this section looks crufty: it has the advantage of | 
 | 4126 | 	# actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4127 | 	break;; | 
 | 4128 |     * ) | 
 | 4129 | 	break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4130 |   esac | 
 | 4131 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4132 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 4133 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4134 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4135 |   ac_file='' | 
 | 4136 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4137 | if test -z "$ac_file"; then : | 
 | 4138 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4139 | $as_echo "no" >&6; } | 
 | 4140 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4141 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4142 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4143 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4144 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4145 | as_fn_error 77 "C compiler cannot create executables | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4146 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4147 | else | 
 | 4148 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 4149 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4150 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
 | 4152 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
 | 4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
 | 4154 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4155 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4156 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4157 | 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] | 4158 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
 | 4160 | $as_echo_n "checking for suffix of executables... " >&6; } | 
 | 4161 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4162 | case "(($ac_try" in | 
 | 4163 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4164 |   *) ac_try_echo=$ac_try;; | 
 | 4165 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4166 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4167 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4168 |   (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4169 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4170 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4171 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4172 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 4173 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 4174 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 4175 | # `rm'. | 
 | 4176 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 4177 |   test -f "$ac_file" || continue | 
 | 4178 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4179 |     *.$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] | 4180 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 4181 | 	  break;; | 
 | 4182 |     * ) break;; | 
 | 4183 |   esac | 
 | 4184 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4185 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4186 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4187 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4188 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4189 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4190 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4191 | rm -f conftest conftest$ac_cv_exeext | 
 | 4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
 | 4193 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4194 |  | 
 | 4195 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4196 | EXEEXT=$ac_cv_exeext | 
 | 4197 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4199 | /* end confdefs.h.  */ | 
 | 4200 | #include <stdio.h> | 
 | 4201 | int | 
 | 4202 | main () | 
 | 4203 | { | 
 | 4204 | FILE *f = fopen ("conftest.out", "w"); | 
 | 4205 |  return ferror (f) || fclose (f) != 0; | 
 | 4206 |  | 
 | 4207 |   ; | 
 | 4208 |   return 0; | 
 | 4209 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4210 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4211 | ac_clean_files="$ac_clean_files conftest.out" | 
 | 4212 | # Check that the compiler produces executables we can run.  If not, either | 
 | 4213 | # the compiler is broken, or we cross compile. | 
 | 4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
 | 4215 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
 | 4216 | if test "$cross_compiling" != yes; then | 
 | 4217 |   { { ac_try="$ac_link" | 
 | 4218 | case "(($ac_try" in | 
 | 4219 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4220 |   *) ac_try_echo=$ac_try;; | 
 | 4221 | esac | 
 | 4222 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4223 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4224 |   (eval "$ac_link") 2>&5 | 
 | 4225 |   ac_status=$? | 
 | 4226 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4227 |   test $ac_status = 0; } | 
 | 4228 |   if { ac_try='./conftest$ac_cv_exeext' | 
 | 4229 |   { { case "(($ac_try" in | 
 | 4230 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4231 |   *) ac_try_echo=$ac_try;; | 
 | 4232 | esac | 
 | 4233 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4234 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4235 |   (eval "$ac_try") 2>&5 | 
 | 4236 |   ac_status=$? | 
 | 4237 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4238 |   test $ac_status = 0; }; }; then | 
 | 4239 |     cross_compiling=no | 
 | 4240 |   else | 
 | 4241 |     if test "$cross_compiling" = maybe; then | 
 | 4242 | 	cross_compiling=yes | 
 | 4243 |     else | 
 | 4244 | 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4245 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4246 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4247 | If you meant to cross compile, use \`--host'. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4248 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4249 |     fi | 
 | 4250 |   fi | 
 | 4251 | fi | 
 | 4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
 | 4253 | $as_echo "$cross_compiling" >&6; } | 
 | 4254 |  | 
 | 4255 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
 | 4256 | ac_clean_files=$ac_clean_files_save | 
 | 4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
 | 4258 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4259 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4260 |   $as_echo_n "(cached) " >&6 | 
 | 4261 | else | 
 | 4262 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4263 | /* end confdefs.h.  */ | 
 | 4264 |  | 
 | 4265 | int | 
 | 4266 | main () | 
 | 4267 | { | 
 | 4268 |  | 
 | 4269 |   ; | 
 | 4270 |   return 0; | 
 | 4271 | } | 
 | 4272 | _ACEOF | 
 | 4273 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4274 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4275 | case "(($ac_try" in | 
 | 4276 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4277 |   *) ac_try_echo=$ac_try;; | 
 | 4278 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4279 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4280 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4281 |   (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4282 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4283 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4284 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4285 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 4286 |   test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4287 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4288 |     *.$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] | 4289 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 4290 |        break;; | 
 | 4291 |   esac | 
 | 4292 | done | 
 | 4293 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4294 |   $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4295 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4296 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4297 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4298 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4299 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4300 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4301 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4302 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4303 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
 | 4305 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4306 | OBJEXT=$ac_cv_objext | 
 | 4307 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
 | 4309 | $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] | 4310 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4311 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4312 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4313 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4314 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4315 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4316 | int | 
 | 4317 | main () | 
 | 4318 | { | 
 | 4319 | #ifndef __GNUC__ | 
 | 4320 |        choke me | 
 | 4321 | #endif | 
 | 4322 |  | 
 | 4323 |   ; | 
 | 4324 |   return 0; | 
 | 4325 | } | 
 | 4326 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4327 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4328 |   ac_compiler_gnu=yes | 
 | 4329 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4330 |   ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4331 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4332 | 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] | 4333 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 4334 |  | 
 | 4335 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 4337 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 4338 | if test $ac_compiler_gnu = yes; then | 
 | 4339 |   GCC=yes | 
 | 4340 | else | 
 | 4341 |   GCC= | 
 | 4342 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4343 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 4344 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
 | 4346 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4347 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4348 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4349 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4350 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 4351 |    ac_c_werror_flag=yes | 
 | 4352 |    ac_cv_prog_cc_g=no | 
 | 4353 |    CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4354 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4355 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4356 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4357 | int | 
 | 4358 | main () | 
 | 4359 | { | 
 | 4360 |  | 
 | 4361 |   ; | 
 | 4362 |   return 0; | 
 | 4363 | } | 
 | 4364 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4365 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4366 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4367 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4368 |   CFLAGS="" | 
 | 4369 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4370 | /* end confdefs.h.  */ | 
 | 4371 |  | 
 | 4372 | int | 
 | 4373 | main () | 
 | 4374 | { | 
 | 4375 |  | 
 | 4376 |   ; | 
 | 4377 |   return 0; | 
 | 4378 | } | 
 | 4379 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4380 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4381 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4382 | else | 
 | 4383 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4384 | 	 CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4385 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4386 | /* end confdefs.h.  */ | 
 | 4387 |  | 
 | 4388 | int | 
 | 4389 | main () | 
 | 4390 | { | 
 | 4391 |  | 
 | 4392 |   ; | 
 | 4393 |   return 0; | 
 | 4394 | } | 
 | 4395 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4396 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4397 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4398 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4400 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4402 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4404 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 4405 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
 | 4407 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4408 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4409 |   CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4410 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 4411 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4412 |     CFLAGS="-g -O2" | 
 | 4413 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4414 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4415 |   fi | 
 | 4416 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4417 |   if test "$GCC" = yes; then | 
 | 4418 |     CFLAGS="-O2" | 
 | 4419 |   else | 
 | 4420 |     CFLAGS= | 
 | 4421 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4422 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
 | 4424 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4425 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4426 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4427 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4428 |   ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4429 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4431 | /* end confdefs.h.  */ | 
 | 4432 | #include <stdarg.h> | 
 | 4433 | #include <stdio.h> | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4434 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4435 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 4436 | struct buf { int x; }; | 
 | 4437 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 4438 | static char *e (p, i) | 
 | 4439 |      char **p; | 
 | 4440 |      int i; | 
 | 4441 | { | 
 | 4442 |   return p[i]; | 
 | 4443 | } | 
 | 4444 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 4445 | { | 
 | 4446 |   char *s; | 
 | 4447 |   va_list v; | 
 | 4448 |   va_start (v,p); | 
 | 4449 |   s = g (p, va_arg (v,int)); | 
 | 4450 |   va_end (v); | 
 | 4451 |   return s; | 
 | 4452 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4453 |  | 
 | 4454 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 4455 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 4456 |    These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4457 |    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] | 4458 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 4459 |    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] | 4460 |    that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4461 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 4462 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4463 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 4464 |    inside strings and character constants.  */ | 
 | 4465 | #define FOO(x) 'x' | 
 | 4466 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 4467 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4468 | int test (int i, double x); | 
 | 4469 | struct s1 {int (*f) (int a);}; | 
 | 4470 | struct s2 {int (*f) (double a);}; | 
 | 4471 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 4472 | int argc; | 
 | 4473 | char **argv; | 
 | 4474 | int | 
 | 4475 | main () | 
 | 4476 | { | 
 | 4477 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 4478 |   ; | 
 | 4479 |   return 0; | 
 | 4480 | } | 
 | 4481 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4482 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 4483 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4484 | do | 
 | 4485 |   CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4486 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4487 |   ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4488 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4489 | rm -f core conftest.err conftest.$ac_objext | 
 | 4490 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4491 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4492 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4493 | CC=$ac_save_CC | 
 | 4494 |  | 
 | 4495 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4496 | # AC_CACHE_VAL | 
 | 4497 | case "x$ac_cv_prog_cc_c89" in | 
 | 4498 |   x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4499 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 4500 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4501 |   xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4502 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 4503 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4504 |   *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4505 |     CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4506 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
 | 4507 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4508 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4509 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4510 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4511 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4512 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4513 | ac_ext=c | 
 | 4514 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4518 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4519 | ac_ext=c | 
 | 4520 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
 | 4525 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
 | 4526 | # On Suns, sometimes $CPP names a directory. | 
 | 4527 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 4528 |   CPP= | 
 | 4529 | fi | 
 | 4530 | if test -z "$CPP"; then | 
 | 4531 |   if ${ac_cv_prog_CPP+:} false; then : | 
 | 4532 |   $as_echo_n "(cached) " >&6 | 
 | 4533 | else | 
 | 4534 |       # Double quotes because CPP needs to be expanded | 
 | 4535 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 4536 |     do | 
 | 4537 |       ac_preproc_ok=false | 
 | 4538 | for ac_c_preproc_warn_flag in '' yes | 
 | 4539 | do | 
 | 4540 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4541 |   # with a fresh cross-compiler works. | 
 | 4542 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4543 |   # <limits.h> exists even on freestanding compilers. | 
 | 4544 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4545 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4546 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4547 | /* end confdefs.h.  */ | 
 | 4548 | #ifdef __STDC__ | 
 | 4549 | # include <limits.h> | 
 | 4550 | #else | 
 | 4551 | # include <assert.h> | 
 | 4552 | #endif | 
 | 4553 | 		     Syntax error | 
 | 4554 | _ACEOF | 
 | 4555 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4556 |  | 
 | 4557 | else | 
 | 4558 |   # Broken: fails on valid input. | 
 | 4559 | continue | 
 | 4560 | fi | 
 | 4561 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4562 |  | 
 | 4563 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 4564 |   # can be detected and how. | 
 | 4565 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4566 | /* end confdefs.h.  */ | 
 | 4567 | #include <ac_nonexistent.h> | 
 | 4568 | _ACEOF | 
 | 4569 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4570 |   # Broken: success on invalid input. | 
 | 4571 | continue | 
 | 4572 | else | 
 | 4573 |   # Passes both tests. | 
 | 4574 | ac_preproc_ok=: | 
 | 4575 | break | 
 | 4576 | fi | 
 | 4577 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4578 |  | 
 | 4579 | done | 
 | 4580 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4581 | rm -f conftest.i conftest.err conftest.$ac_ext | 
 | 4582 | if $ac_preproc_ok; then : | 
 | 4583 |   break | 
 | 4584 | fi | 
 | 4585 |  | 
 | 4586 |     done | 
 | 4587 |     ac_cv_prog_CPP=$CPP | 
 | 4588 |  | 
 | 4589 | fi | 
 | 4590 |   CPP=$ac_cv_prog_CPP | 
 | 4591 | else | 
 | 4592 |   ac_cv_prog_CPP=$CPP | 
 | 4593 | fi | 
 | 4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
 | 4595 | $as_echo "$CPP" >&6; } | 
 | 4596 | ac_preproc_ok=false | 
 | 4597 | for ac_c_preproc_warn_flag in '' yes | 
 | 4598 | do | 
 | 4599 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4600 |   # with a fresh cross-compiler works. | 
 | 4601 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4602 |   # <limits.h> exists even on freestanding compilers. | 
 | 4603 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4604 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4605 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4606 | /* end confdefs.h.  */ | 
 | 4607 | #ifdef __STDC__ | 
 | 4608 | # include <limits.h> | 
 | 4609 | #else | 
 | 4610 | # include <assert.h> | 
 | 4611 | #endif | 
 | 4612 | 		     Syntax error | 
 | 4613 | _ACEOF | 
 | 4614 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4615 |  | 
 | 4616 | else | 
 | 4617 |   # Broken: fails on valid input. | 
 | 4618 | continue | 
 | 4619 | fi | 
 | 4620 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4621 |  | 
 | 4622 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 4623 |   # can be detected and how. | 
 | 4624 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4625 | /* end confdefs.h.  */ | 
 | 4626 | #include <ac_nonexistent.h> | 
 | 4627 | _ACEOF | 
 | 4628 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4629 |   # Broken: success on invalid input. | 
 | 4630 | continue | 
 | 4631 | else | 
 | 4632 |   # Passes both tests. | 
 | 4633 | ac_preproc_ok=: | 
 | 4634 | break | 
 | 4635 | fi | 
 | 4636 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4637 |  | 
 | 4638 | done | 
 | 4639 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4640 | rm -f conftest.i conftest.err conftest.$ac_ext | 
 | 4641 | if $ac_preproc_ok; then : | 
 | 4642 |  | 
 | 4643 | else | 
 | 4644 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4645 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 4646 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
 | 4647 | See \`config.log' for more details" "$LINENO" 5; } | 
 | 4648 | fi | 
 | 4649 |  | 
 | 4650 | ac_ext=c | 
 | 4651 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4655 |  | 
 | 4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
 | 4657 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
 | 4658 | if ${ac_cv_path_GREP+:} false; then : | 
 | 4659 |   $as_echo_n "(cached) " >&6 | 
 | 4660 | else | 
 | 4661 |   if test -z "$GREP"; then | 
 | 4662 |   ac_path_GREP_found=false | 
 | 4663 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4664 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4665 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4666 | do | 
 | 4667 |   IFS=$as_save_IFS | 
 | 4668 |   test -z "$as_dir" && as_dir=. | 
 | 4669 |     for ac_prog in grep ggrep; do | 
 | 4670 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4671 |       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 4672 |       as_fn_executable_p "$ac_path_GREP" || continue | 
 | 4673 | # Check for GNU ac_path_GREP and select it if it is found. | 
 | 4674 |   # Check for GNU $ac_path_GREP | 
 | 4675 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 4676 | *GNU*) | 
 | 4677 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 4678 | *) | 
 | 4679 |   ac_count=0 | 
 | 4680 |   $as_echo_n 0123456789 >"conftest.in" | 
 | 4681 |   while : | 
 | 4682 |   do | 
 | 4683 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4684 |     mv "conftest.tmp" "conftest.in" | 
 | 4685 |     cp "conftest.in" "conftest.nl" | 
 | 4686 |     $as_echo 'GREP' >> "conftest.nl" | 
 | 4687 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4688 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
 | 4689 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
 | 4690 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 4691 |       # Best one so far, save it but keep looking for a better one | 
 | 4692 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 4693 |       ac_path_GREP_max=$ac_count | 
 | 4694 |     fi | 
 | 4695 |     # 10*(2^10) chars as input seems more than enough | 
 | 4696 |     test $ac_count -gt 10 && break | 
 | 4697 |   done | 
 | 4698 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4699 | esac | 
 | 4700 |  | 
 | 4701 |       $ac_path_GREP_found && break 3 | 
 | 4702 |     done | 
 | 4703 |   done | 
 | 4704 |   done | 
 | 4705 | IFS=$as_save_IFS | 
 | 4706 |   if test -z "$ac_cv_path_GREP"; then | 
 | 4707 |     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
 | 4708 |   fi | 
 | 4709 | else | 
 | 4710 |   ac_cv_path_GREP=$GREP | 
 | 4711 | fi | 
 | 4712 |  | 
 | 4713 | fi | 
 | 4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
 | 4715 | $as_echo "$ac_cv_path_GREP" >&6; } | 
 | 4716 |  GREP="$ac_cv_path_GREP" | 
 | 4717 |  | 
 | 4718 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4719 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4720 |  | 
 | 4721 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
 | 4723 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4724 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4725 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4726 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4727 |   withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4728 |  | 
 | 4729 | 	case $withval in | 
 | 4730 | 	no)	with_cxx_main=no | 
 | 4731 | 		MAINCC='$(CC)';; | 
 | 4732 | 	yes)	with_cxx_main=yes | 
 | 4733 | 		MAINCC='$(CXX)';; | 
 | 4734 | 	*)	with_cxx_main=yes | 
 | 4735 | 		MAINCC=$withval | 
 | 4736 | 		if test -z "$CXX" | 
 | 4737 | 		then | 
 | 4738 | 			CXX=$withval | 
 | 4739 | 		fi;; | 
 | 4740 | 	esac | 
 | 4741 | else | 
 | 4742 |  | 
 | 4743 | 	with_cxx_main=no | 
 | 4744 | 	MAINCC='$(CC)' | 
 | 4745 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4746 | fi | 
 | 4747 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
 | 4749 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4750 |  | 
 | 4751 | preset_cxx="$CXX" | 
 | 4752 | if test -z "$CXX" | 
 | 4753 | then | 
 | 4754 |         case "$CC" in | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4755 |         gcc)    if test -n "$ac_tool_prefix"; then | 
 | 4756 |   # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
 | 4757 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
 | 4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4759 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4760 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4761 |   $as_echo_n "(cached) " >&6 | 
 | 4762 | else | 
 | 4763 |   case $CXX in | 
 | 4764 |   [\\/]* | ?:[\\/]*) | 
 | 4765 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4766 |   ;; | 
 | 4767 |   *) | 
 | 4768 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4769 | for as_dir in notfound | 
 | 4770 | do | 
 | 4771 |   IFS=$as_save_IFS | 
 | 4772 |   test -z "$as_dir" && as_dir=. | 
 | 4773 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4774 |   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] | 4775 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4776 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4777 |     break 2 | 
 | 4778 |   fi | 
 | 4779 | done | 
 | 4780 |   done | 
 | 4781 | IFS=$as_save_IFS | 
 | 4782 |  | 
 | 4783 |   ;; | 
 | 4784 | esac | 
 | 4785 | fi | 
 | 4786 | CXX=$ac_cv_path_CXX | 
 | 4787 | if test -n "$CXX"; then | 
 | 4788 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4789 | $as_echo "$CXX" >&6; } | 
 | 4790 | else | 
 | 4791 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4792 | $as_echo "no" >&6; } | 
 | 4793 | fi | 
 | 4794 |  | 
 | 4795 |  | 
 | 4796 | fi | 
 | 4797 | if test -z "$ac_cv_path_CXX"; then | 
 | 4798 |   ac_pt_CXX=$CXX | 
 | 4799 |   # 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] | 4800 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4802 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4803 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 4804 |   $as_echo_n "(cached) " >&6 | 
 | 4805 | else | 
 | 4806 |   case $ac_pt_CXX in | 
 | 4807 |   [\\/]* | ?:[\\/]*) | 
 | 4808 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 4809 |   ;; | 
 | 4810 |   *) | 
 | 4811 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4812 | for as_dir in notfound | 
 | 4813 | do | 
 | 4814 |   IFS=$as_save_IFS | 
 | 4815 |   test -z "$as_dir" && as_dir=. | 
 | 4816 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4817 |   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] | 4818 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4819 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4820 |     break 2 | 
 | 4821 |   fi | 
 | 4822 | done | 
 | 4823 |   done | 
 | 4824 | IFS=$as_save_IFS | 
 | 4825 |  | 
 | 4826 |   ;; | 
 | 4827 | esac | 
 | 4828 | fi | 
 | 4829 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4830 | if test -n "$ac_pt_CXX"; then | 
 | 4831 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4832 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 4833 | else | 
 | 4834 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4835 | $as_echo "no" >&6; } | 
 | 4836 | fi | 
 | 4837 |  | 
 | 4838 |   if test "x$ac_pt_CXX" = x; then | 
 | 4839 |     CXX="g++" | 
 | 4840 |   else | 
 | 4841 |     case $cross_compiling:$ac_tool_warned in | 
 | 4842 | yes:) | 
 | 4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4844 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4845 | ac_tool_warned=yes ;; | 
 | 4846 | esac | 
 | 4847 |     CXX=$ac_pt_CXX | 
 | 4848 |   fi | 
 | 4849 | else | 
 | 4850 |   CXX="$ac_cv_path_CXX" | 
 | 4851 | fi | 
 | 4852 |  ;; | 
 | 4853 |         cc)     if test -n "$ac_tool_prefix"; then | 
 | 4854 |   # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
 | 4855 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
 | 4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4857 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4858 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4859 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4860 | else | 
 | 4861 |   case $CXX in | 
 | 4862 |   [\\/]* | ?:[\\/]*) | 
 | 4863 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4864 |   ;; | 
 | 4865 |   *) | 
 | 4866 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4867 | for as_dir in notfound | 
 | 4868 | do | 
 | 4869 |   IFS=$as_save_IFS | 
 | 4870 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4871 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4872 |   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] | 4873 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4874 |     $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] | 4875 |     break 2 | 
 | 4876 |   fi | 
 | 4877 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4878 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4879 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4880 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4881 |   ;; | 
 | 4882 | esac | 
 | 4883 | fi | 
 | 4884 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4885 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4886 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4887 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4888 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4889 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4890 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4891 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4892 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4893 |  | 
 | 4894 | fi | 
 | 4895 | if test -z "$ac_cv_path_CXX"; then | 
 | 4896 |   ac_pt_CXX=$CXX | 
 | 4897 |   # 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] | 4898 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4900 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4901 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4902 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4903 | else | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4904 |   case $ac_pt_CXX in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4905 |   [\\/]* | ?:[\\/]*) | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4906 |   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] | 4907 |   ;; | 
 | 4908 |   *) | 
 | 4909 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4910 | for as_dir in notfound | 
 | 4911 | do | 
 | 4912 |   IFS=$as_save_IFS | 
 | 4913 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4914 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4915 |   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] | 4916 |     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] | 4917 |     $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] | 4918 |     break 2 | 
 | 4919 |   fi | 
 | 4920 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4921 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4922 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4923 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4924 |   ;; | 
 | 4925 | esac | 
 | 4926 | fi | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4927 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4928 | if test -n "$ac_pt_CXX"; then | 
 | 4929 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4930 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4931 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4932 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4933 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4934 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4935 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4936 |   if test "x$ac_pt_CXX" = x; then | 
 | 4937 |     CXX="c++" | 
 | 4938 |   else | 
 | 4939 |     case $cross_compiling:$ac_tool_warned in | 
 | 4940 | yes:) | 
 | 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4942 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4943 | ac_tool_warned=yes ;; | 
 | 4944 | esac | 
 | 4945 |     CXX=$ac_pt_CXX | 
 | 4946 |   fi | 
 | 4947 | else | 
 | 4948 |   CXX="$ac_cv_path_CXX" | 
 | 4949 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4950 |  ;; | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4951 |         clang|*/clang)     if test -n "$ac_tool_prefix"; then | 
 | 4952 |   # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | 
 | 4953 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4955 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4956 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4957 |   $as_echo_n "(cached) " >&6 | 
 | 4958 | else | 
 | 4959 |   case $CXX in | 
 | 4960 |   [\\/]* | ?:[\\/]*) | 
 | 4961 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4962 |   ;; | 
 | 4963 |   *) | 
 | 4964 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4965 | for as_dir in notfound | 
 | 4966 | do | 
 | 4967 |   IFS=$as_save_IFS | 
 | 4968 |   test -z "$as_dir" && as_dir=. | 
 | 4969 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4970 |   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] | 4971 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4972 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4973 |     break 2 | 
 | 4974 |   fi | 
 | 4975 | done | 
 | 4976 |   done | 
 | 4977 | IFS=$as_save_IFS | 
 | 4978 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4979 |   ;; | 
 | 4980 | esac | 
 | 4981 | fi | 
 | 4982 | CXX=$ac_cv_path_CXX | 
 | 4983 | if test -n "$CXX"; then | 
 | 4984 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4985 | $as_echo "$CXX" >&6; } | 
 | 4986 | else | 
 | 4987 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4988 | $as_echo "no" >&6; } | 
 | 4989 | fi | 
 | 4990 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4991 |  | 
 | 4992 | fi | 
 | 4993 | if test -z "$ac_cv_path_CXX"; then | 
 | 4994 |   ac_pt_CXX=$CXX | 
 | 4995 |   # Extract the first word of "clang++", so it can be a program name with args. | 
 | 4996 | set dummy clang++; ac_word=$2 | 
 | 4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4998 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4999 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 5000 |   $as_echo_n "(cached) " >&6 | 
 | 5001 | else | 
 | 5002 |   case $ac_pt_CXX in | 
 | 5003 |   [\\/]* | ?:[\\/]*) | 
 | 5004 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 5005 |   ;; | 
 | 5006 |   *) | 
 | 5007 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5008 | for as_dir in notfound | 
 | 5009 | do | 
 | 5010 |   IFS=$as_save_IFS | 
 | 5011 |   test -z "$as_dir" && as_dir=. | 
 | 5012 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5013 |   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] | 5014 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 5015 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5016 |     break 2 | 
 | 5017 |   fi | 
 | 5018 | done | 
 | 5019 |   done | 
 | 5020 | IFS=$as_save_IFS | 
 | 5021 |  | 
 | 5022 |   ;; | 
 | 5023 | esac | 
 | 5024 | fi | 
 | 5025 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 5026 | if test -n "$ac_pt_CXX"; then | 
 | 5027 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 5028 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 5029 | else | 
 | 5030 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5031 | $as_echo "no" >&6; } | 
 | 5032 | fi | 
 | 5033 |  | 
 | 5034 |   if test "x$ac_pt_CXX" = x; then | 
 | 5035 |     CXX="clang++" | 
 | 5036 |   else | 
 | 5037 |     case $cross_compiling:$ac_tool_warned in | 
 | 5038 | yes:) | 
 | 5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5040 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5041 | ac_tool_warned=yes ;; | 
 | 5042 | esac | 
 | 5043 |     CXX=$ac_pt_CXX | 
 | 5044 |   fi | 
 | 5045 | else | 
 | 5046 |   CXX="$ac_cv_path_CXX" | 
 | 5047 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 5048 |  ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5049 |         icc|*/icc)         if test -n "$ac_tool_prefix"; then | 
 | 5050 |   # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | 
 | 5051 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | 
 | 5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5053 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5054 | if ${ac_cv_path_CXX+:} false; then : | 
 | 5055 |   $as_echo_n "(cached) " >&6 | 
 | 5056 | else | 
 | 5057 |   case $CXX in | 
 | 5058 |   [\\/]* | ?:[\\/]*) | 
 | 5059 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 5060 |   ;; | 
 | 5061 |   *) | 
 | 5062 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5063 | for as_dir in notfound | 
 | 5064 | do | 
 | 5065 |   IFS=$as_save_IFS | 
 | 5066 |   test -z "$as_dir" && as_dir=. | 
 | 5067 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5068 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5069 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 5070 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5071 |     break 2 | 
 | 5072 |   fi | 
 | 5073 | done | 
 | 5074 |   done | 
 | 5075 | IFS=$as_save_IFS | 
 | 5076 |  | 
 | 5077 |   ;; | 
 | 5078 | esac | 
 | 5079 | fi | 
 | 5080 | CXX=$ac_cv_path_CXX | 
 | 5081 | if test -n "$CXX"; then | 
 | 5082 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 5083 | $as_echo "$CXX" >&6; } | 
 | 5084 | else | 
 | 5085 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5086 | $as_echo "no" >&6; } | 
 | 5087 | fi | 
 | 5088 |  | 
 | 5089 |  | 
 | 5090 | fi | 
 | 5091 | if test -z "$ac_cv_path_CXX"; then | 
 | 5092 |   ac_pt_CXX=$CXX | 
 | 5093 |   # Extract the first word of "icpc", so it can be a program name with args. | 
 | 5094 | set dummy icpc; ac_word=$2 | 
 | 5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5096 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5097 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 5098 |   $as_echo_n "(cached) " >&6 | 
 | 5099 | else | 
 | 5100 |   case $ac_pt_CXX in | 
 | 5101 |   [\\/]* | ?:[\\/]*) | 
 | 5102 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 5103 |   ;; | 
 | 5104 |   *) | 
 | 5105 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5106 | for as_dir in notfound | 
 | 5107 | do | 
 | 5108 |   IFS=$as_save_IFS | 
 | 5109 |   test -z "$as_dir" && as_dir=. | 
 | 5110 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5111 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5112 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 5113 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5114 |     break 2 | 
 | 5115 |   fi | 
 | 5116 | done | 
 | 5117 |   done | 
 | 5118 | IFS=$as_save_IFS | 
 | 5119 |  | 
 | 5120 |   ;; | 
 | 5121 | esac | 
 | 5122 | fi | 
 | 5123 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 5124 | if test -n "$ac_pt_CXX"; then | 
 | 5125 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 5126 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 5127 | else | 
 | 5128 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5129 | $as_echo "no" >&6; } | 
 | 5130 | fi | 
 | 5131 |  | 
 | 5132 |   if test "x$ac_pt_CXX" = x; then | 
 | 5133 |     CXX="icpc" | 
 | 5134 |   else | 
 | 5135 |     case $cross_compiling:$ac_tool_warned in | 
 | 5136 | yes:) | 
 | 5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5138 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5139 | ac_tool_warned=yes ;; | 
 | 5140 | esac | 
 | 5141 |     CXX=$ac_pt_CXX | 
 | 5142 |   fi | 
 | 5143 | else | 
 | 5144 |   CXX="$ac_cv_path_CXX" | 
 | 5145 | fi | 
 | 5146 |  ;; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5147 |         esac | 
 | 5148 | 	if test "$CXX" = "notfound" | 
 | 5149 | 	then | 
 | 5150 | 		CXX="" | 
 | 5151 | 	fi | 
 | 5152 | fi | 
 | 5153 | if test -z "$CXX" | 
 | 5154 | then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5155 | 	if test -n "$ac_tool_prefix"; then | 
 | 5156 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 5157 |   do | 
 | 5158 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 5159 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5161 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5162 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5163 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5164 | else | 
 | 5165 |   if test -n "$CXX"; then | 
 | 5166 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 5167 | else | 
 | 5168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5169 | for as_dir in $PATH | 
 | 5170 | do | 
 | 5171 |   IFS=$as_save_IFS | 
 | 5172 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5173 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5174 |   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] | 5175 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5176 |     $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] | 5177 |     break 2 | 
 | 5178 |   fi | 
 | 5179 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5180 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5181 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5182 |  | 
 | 5183 | fi | 
 | 5184 | fi | 
 | 5185 | CXX=$ac_cv_prog_CXX | 
 | 5186 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5187 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 5188 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5189 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5190 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5191 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5192 | fi | 
 | 5193 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5194 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5195 |     test -n "$CXX" && break | 
 | 5196 |   done | 
 | 5197 | fi | 
 | 5198 | if test -z "$CXX"; then | 
 | 5199 |   ac_ct_CXX=$CXX | 
 | 5200 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 5201 | do | 
 | 5202 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5203 | set dummy $ac_prog; ac_word=$2 | 
 | 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5205 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5206 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
 | 5207 |   $as_echo_n "(cached) " >&6 | 
 | 5208 | else | 
 | 5209 |   if test -n "$ac_ct_CXX"; then | 
 | 5210 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 5211 | else | 
 | 5212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5213 | for as_dir in $PATH | 
 | 5214 | do | 
 | 5215 |   IFS=$as_save_IFS | 
 | 5216 |   test -z "$as_dir" && as_dir=. | 
 | 5217 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5218 |   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] | 5219 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 5220 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5221 |     break 2 | 
 | 5222 |   fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5223 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5224 |   done | 
 | 5225 | IFS=$as_save_IFS | 
 | 5226 |  | 
 | 5227 | fi | 
 | 5228 | fi | 
 | 5229 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 5230 | if test -n "$ac_ct_CXX"; then | 
 | 5231 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
 | 5232 | $as_echo "$ac_ct_CXX" >&6; } | 
 | 5233 | else | 
 | 5234 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5235 | $as_echo "no" >&6; } | 
 | 5236 | fi | 
 | 5237 |  | 
 | 5238 |  | 
 | 5239 |   test -n "$ac_ct_CXX" && break | 
 | 5240 | done | 
 | 5241 |  | 
 | 5242 |   if test "x$ac_ct_CXX" = x; then | 
 | 5243 |     CXX="notfound" | 
 | 5244 |   else | 
 | 5245 |     case $cross_compiling:$ac_tool_warned in | 
 | 5246 | yes:) | 
 | 5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5248 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5249 | ac_tool_warned=yes ;; | 
 | 5250 | esac | 
 | 5251 |     CXX=$ac_ct_CXX | 
 | 5252 |   fi | 
 | 5253 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5254 |  | 
 | 5255 | 	if test "$CXX" = "notfound" | 
 | 5256 | 	then | 
 | 5257 | 		CXX="" | 
 | 5258 | 	fi | 
 | 5259 | fi | 
 | 5260 | if test "$preset_cxx" != "$CXX" | 
 | 5261 | then | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5262 |         { $as_echo "$as_me:${as_lineno-$LINENO}: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5263 |  | 
 | 5264 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 5265 |   If this is not intended, then set CXX on the configure command line. | 
 | 5266 |   " >&5 | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5267 | $as_echo "$as_me: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5268 |  | 
 | 5269 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 5270 |   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] | 5271 |   " >&6;} | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5272 | fi | 
 | 5273 |  | 
 | 5274 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5275 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
 | 5276 |  | 
 | 5277 |  | 
 | 5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 | 
 | 5279 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | 
 | 5280 | cat >> conftest.c <<EOF | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5281 | #undef bfin | 
 | 5282 | #undef cris | 
 | 5283 | #undef fr30 | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5284 | #undef linux | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5285 | #undef hppa | 
 | 5286 | #undef hpux | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5287 | #undef i386 | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5288 | #undef mips | 
| doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5289 | #undef powerpc | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5290 | #undef sparc | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5291 | #undef unix | 
 | 5292 | #if defined(__linux__) | 
 | 5293 | # if defined(__x86_64__) && defined(__LP64__) | 
 | 5294 |         x86_64-linux-gnu | 
 | 5295 | # elif defined(__x86_64__) && defined(__ILP32__) | 
 | 5296 |         x86_64-linux-gnux32 | 
 | 5297 | # elif defined(__i386__) | 
 | 5298 |         i386-linux-gnu | 
 | 5299 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
 | 5300 | #  if defined(__ILP32__) | 
 | 5301 |         aarch64_ilp32-linux-gnu | 
 | 5302 | #  else | 
 | 5303 |         aarch64-linux-gnu | 
 | 5304 | #  endif | 
 | 5305 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | 
 | 5306 | #  if defined(__ILP32__) | 
 | 5307 |         aarch64_be_ilp32-linux-gnu | 
 | 5308 | #  else | 
 | 5309 |         aarch64_be-linux-gnu | 
 | 5310 | #  endif | 
 | 5311 | # elif defined(__alpha__) | 
 | 5312 |         alpha-linux-gnu | 
 | 5313 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | 
 | 5314 | #  if defined(__ARMEL__) | 
 | 5315 |         arm-linux-gnueabihf | 
 | 5316 | #  else | 
 | 5317 |         armeb-linux-gnueabihf | 
 | 5318 | #  endif | 
 | 5319 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | 
 | 5320 | #  if defined(__ARMEL__) | 
 | 5321 |         arm-linux-gnueabi | 
 | 5322 | #  else | 
 | 5323 |         armeb-linux-gnueabi | 
 | 5324 | #  endif | 
 | 5325 | # elif defined(__hppa__) | 
 | 5326 |         hppa-linux-gnu | 
 | 5327 | # elif defined(__ia64__) | 
 | 5328 |         ia64-linux-gnu | 
 | 5329 | # elif defined(__m68k__) && !defined(__mcoldfire__) | 
 | 5330 |         m68k-linux-gnu | 
 | 5331 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
 | 5332 | #  if _MIPS_SIM == _ABIO32 | 
 | 5333 |         mipsel-linux-gnu | 
 | 5334 | #  elif _MIPS_SIM == _ABIN32 | 
 | 5335 |         mips64el-linux-gnuabin32 | 
 | 5336 | #  elif _MIPS_SIM == _ABI64 | 
 | 5337 |         mips64el-linux-gnuabi64 | 
 | 5338 | #  else | 
 | 5339 | #   error unknown platform triplet | 
 | 5340 | #  endif | 
 | 5341 | # elif defined(__mips_hard_float) | 
 | 5342 | #  if _MIPS_SIM == _ABIO32 | 
 | 5343 |         mips-linux-gnu | 
 | 5344 | #  elif _MIPS_SIM == _ABIN32 | 
 | 5345 |         mips64-linux-gnuabin32 | 
 | 5346 | #  elif _MIPS_SIM == _ABI64 | 
 | 5347 |         mips64-linux-gnuabi64 | 
 | 5348 | #  else | 
 | 5349 | #   error unknown platform triplet | 
 | 5350 | #  endif | 
 | 5351 | # elif defined(__or1k__) | 
 | 5352 |         or1k-linux-gnu | 
 | 5353 | # elif defined(__powerpc__) && defined(__SPE__) | 
 | 5354 |         powerpc-linux-gnuspe | 
 | 5355 | # elif defined(__powerpc64__) | 
 | 5356 | #  if defined(__LITTLE_ENDIAN__) | 
 | 5357 |         powerpc64le-linux-gnu | 
 | 5358 | #  else | 
 | 5359 |         powerpc64-linux-gnu | 
 | 5360 | #  endif | 
 | 5361 | # elif defined(__powerpc__) | 
 | 5362 |         powerpc-linux-gnu | 
 | 5363 | # elif defined(__s390x__) | 
 | 5364 |         s390x-linux-gnu | 
 | 5365 | # elif defined(__s390__) | 
 | 5366 |         s390-linux-gnu | 
 | 5367 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | 
 | 5368 |         sh4-linux-gnu | 
 | 5369 | # elif defined(__sparc__) && defined(__arch64__) | 
 | 5370 |         sparc64-linux-gnu | 
 | 5371 | # elif defined(__sparc__) | 
 | 5372 |         sparc-linux-gnu | 
 | 5373 | # else | 
 | 5374 | #   error unknown platform triplet | 
 | 5375 | # endif | 
 | 5376 | #elif defined(__FreeBSD_kernel__) | 
 | 5377 | # if defined(__LP64__) | 
 | 5378 |         x86_64-kfreebsd-gnu | 
 | 5379 | # elif defined(__i386__) | 
 | 5380 |         i386-kfreebsd-gnu | 
 | 5381 | # else | 
 | 5382 | #   error unknown platform triplet | 
 | 5383 | # endif | 
 | 5384 | #elif defined(__gnu_hurd__) | 
 | 5385 |         i386-gnu | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5386 | #elif defined(__APPLE__) | 
 | 5387 |         darwin | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5388 | #else | 
 | 5389 | # error unknown platform triplet | 
 | 5390 | #endif | 
 | 5391 |  | 
 | 5392 | EOF | 
 | 5393 |  | 
| Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5394 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5395 |   PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' 	'` | 
 | 5396 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | 
 | 5397 | $as_echo "$PLATFORM_TRIPLET" >&6; } | 
 | 5398 | else | 
 | 5399 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 5400 | $as_echo "none" >&6; } | 
 | 5401 | fi | 
 | 5402 | rm -f conftest.c conftest.out | 
 | 5403 |  | 
 | 5404 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | 
 | 5405 |   if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | 
 | 5406 |     as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | 
 | 5407 |   fi | 
 | 5408 | fi | 
 | 5409 | PLATDIR=plat-$MACHDEP | 
 | 5410 |  | 
 | 5411 |  | 
 | 5412 |  | 
 | 5413 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
 | 5415 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
 | 5416 | save_LDFLAGS="$LDFLAGS" | 
 | 5417 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5418 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5420 | /* end confdefs.h.  */ | 
 | 5421 |  | 
 | 5422 | int | 
 | 5423 | main () | 
 | 5424 | { | 
 | 5425 |  | 
 | 5426 |   ; | 
 | 5427 |   return 0; | 
 | 5428 | } | 
 | 5429 | _ACEOF | 
 | 5430 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 5431 |   NO_AS_NEEDED="-Wl,--no-as-needed" | 
 | 5432 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5433 | $as_echo "yes" >&6; } | 
 | 5434 | else | 
 | 5435 |   NO_AS_NEEDED="" | 
 | 5436 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5437 | $as_echo "no" >&6; } | 
 | 5438 | fi | 
 | 5439 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 5440 |     conftest$ac_exeext conftest.$ac_ext | 
 | 5441 | LDFLAGS="$save_LDFLAGS" | 
 | 5442 |  | 
 | 5443 |  | 
 | 5444 |  | 
 | 5445 | # checks for UNIX variants that set C preprocessor variables | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5446 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
 | 5448 | $as_echo_n "checking for egrep... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5449 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5450 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5451 | else | 
 | 5452 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 5453 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 5454 |    else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5455 |      if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5456 |   ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5457 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 5458 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5459 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 5460 | do | 
 | 5461 |   IFS=$as_save_IFS | 
 | 5462 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5463 |     for ac_prog in egrep; do | 
 | 5464 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5465 |       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5466 |       as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5467 | # 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] | 5468 |   # Check for GNU $ac_path_EGREP | 
 | 5469 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 5470 | *GNU*) | 
 | 5471 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 5472 | *) | 
 | 5473 |   ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5474 |   $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5475 |   while : | 
 | 5476 |   do | 
 | 5477 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 5478 |     mv "conftest.tmp" "conftest.in" | 
 | 5479 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5480 |     $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5481 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 5482 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5483 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5484 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 5485 |       # Best one so far, save it but keep looking for a better one | 
 | 5486 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 5487 |       ac_path_EGREP_max=$ac_count | 
 | 5488 |     fi | 
 | 5489 |     # 10*(2^10) chars as input seems more than enough | 
 | 5490 |     test $ac_count -gt 10 && break | 
 | 5491 |   done | 
 | 5492 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 5493 | esac | 
 | 5494 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5495 |       $ac_path_EGREP_found && break 3 | 
 | 5496 |     done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5497 |   done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5498 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5499 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5500 |   if test -z "$ac_cv_path_EGREP"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5501 |     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] | 5502 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5503 | else | 
 | 5504 |   ac_cv_path_EGREP=$EGREP | 
 | 5505 | fi | 
 | 5506 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5507 |    fi | 
 | 5508 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
 | 5510 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5511 |  EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5512 |  | 
 | 5513 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 5515 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5516 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5517 |   $as_echo_n "(cached) " >&6 | 
 | 5518 | else | 
 | 5519 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5520 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5521 | #include <stdlib.h> | 
 | 5522 | #include <stdarg.h> | 
 | 5523 | #include <string.h> | 
 | 5524 | #include <float.h> | 
 | 5525 |  | 
 | 5526 | int | 
 | 5527 | main () | 
 | 5528 | { | 
 | 5529 |  | 
 | 5530 |   ; | 
 | 5531 |   return 0; | 
 | 5532 | } | 
 | 5533 | _ACEOF | 
 | 5534 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5535 |   ac_cv_header_stdc=yes | 
 | 5536 | else | 
 | 5537 |   ac_cv_header_stdc=no | 
 | 5538 | fi | 
 | 5539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5540 |  | 
 | 5541 | if test $ac_cv_header_stdc = yes; then | 
 | 5542 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 5543 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5544 | /* end confdefs.h.  */ | 
 | 5545 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5546 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5547 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5548 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5549 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5550 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5551 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5552 |   ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5553 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5554 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5555 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5556 | fi | 
 | 5557 |  | 
 | 5558 | if test $ac_cv_header_stdc = yes; then | 
 | 5559 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 5560 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5561 | /* end confdefs.h.  */ | 
 | 5562 | #include <stdlib.h> | 
 | 5563 |  | 
 | 5564 | _ACEOF | 
 | 5565 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 5566 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 5567 |  | 
 | 5568 | else | 
 | 5569 |   ac_cv_header_stdc=no | 
 | 5570 | fi | 
 | 5571 | rm -f conftest* | 
 | 5572 |  | 
 | 5573 | fi | 
 | 5574 |  | 
 | 5575 | if test $ac_cv_header_stdc = yes; then | 
 | 5576 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 5577 |   if test "$cross_compiling" = yes; then : | 
 | 5578 |   : | 
 | 5579 | else | 
 | 5580 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5581 | /* end confdefs.h.  */ | 
 | 5582 | #include <ctype.h> | 
 | 5583 | #include <stdlib.h> | 
 | 5584 | #if ((' ' & 0x0FF) == 0x020) | 
 | 5585 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 5586 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 5587 | #else | 
 | 5588 | # define ISLOWER(c) \ | 
 | 5589 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 5590 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 5591 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 5592 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 5593 | #endif | 
 | 5594 |  | 
 | 5595 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 5596 | int | 
 | 5597 | main () | 
 | 5598 | { | 
 | 5599 |   int i; | 
 | 5600 |   for (i = 0; i < 256; i++) | 
 | 5601 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 5602 | 	|| toupper (i) != TOUPPER (i)) | 
 | 5603 |       return 2; | 
 | 5604 |   return 0; | 
 | 5605 | } | 
 | 5606 | _ACEOF | 
 | 5607 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 5608 |  | 
 | 5609 | else | 
 | 5610 |   ac_cv_header_stdc=no | 
 | 5611 | fi | 
 | 5612 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5613 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 5614 | fi | 
 | 5615 |  | 
 | 5616 | fi | 
 | 5617 | fi | 
 | 5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 5619 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 5620 | if test $ac_cv_header_stdc = yes; then | 
 | 5621 |  | 
 | 5622 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
 | 5623 |  | 
 | 5624 | fi | 
 | 5625 |  | 
 | 5626 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 5627 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 5628 | 		  inttypes.h stdint.h unistd.h | 
 | 5629 | do : | 
 | 5630 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 5631 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 5632 | " | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5633 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5634 |   cat >>confdefs.h <<_ACEOF | 
 | 5635 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 5636 | _ACEOF | 
 | 5637 |  | 
 | 5638 | fi | 
 | 5639 |  | 
 | 5640 | done | 
 | 5641 |  | 
 | 5642 |  | 
 | 5643 |  | 
 | 5644 |   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] | 5645 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5646 |   MINIX=yes | 
 | 5647 | else | 
 | 5648 |   MINIX= | 
 | 5649 | fi | 
 | 5650 |  | 
 | 5651 |  | 
 | 5652 |   if test "$MINIX" = yes; then | 
 | 5653 |  | 
 | 5654 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
 | 5655 |  | 
 | 5656 |  | 
 | 5657 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
 | 5658 |  | 
 | 5659 |  | 
 | 5660 | $as_echo "#define _MINIX 1" >>confdefs.h | 
 | 5661 |  | 
 | 5662 |   fi | 
 | 5663 |  | 
 | 5664 |  | 
 | 5665 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
 | 5666 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5667 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5668 |   $as_echo_n "(cached) " >&6 | 
 | 5669 | else | 
 | 5670 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5671 | /* end confdefs.h.  */ | 
 | 5672 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5673 | #         define __EXTENSIONS__ 1 | 
 | 5674 |           $ac_includes_default | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5675 | int | 
 | 5676 | main () | 
 | 5677 | { | 
 | 5678 |  | 
 | 5679 |   ; | 
 | 5680 |   return 0; | 
 | 5681 | } | 
 | 5682 | _ACEOF | 
 | 5683 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5684 |   ac_cv_safe_to_define___extensions__=yes | 
 | 5685 | else | 
 | 5686 |   ac_cv_safe_to_define___extensions__=no | 
 | 5687 | fi | 
 | 5688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5689 | fi | 
 | 5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
 | 5691 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
 | 5692 |   test $ac_cv_safe_to_define___extensions__ = yes && | 
 | 5693 |     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
 | 5694 |  | 
 | 5695 |   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
 | 5696 |  | 
 | 5697 |   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
 | 5698 |  | 
 | 5699 |   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
 | 5700 |  | 
 | 5701 |   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
 | 5702 |  | 
 | 5703 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5704 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5705 | # Check for unsupported systems | 
 | 5706 | case $ac_sys_system/$ac_sys_release in | 
 | 5707 | atheos*|Linux*/1*) | 
 | 5708 |    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
 | 5709 |    echo See README for details. | 
 | 5710 |    exit 1;; | 
 | 5711 | esac | 
 | 5712 |  | 
 | 5713 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
 | 5715 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5716 |  | 
 | 5717 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5718 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5719 |   withval=$with_suffix; | 
 | 5720 | 	case $withval in | 
 | 5721 | 	no)	EXEEXT=;; | 
 | 5722 | 	yes)	EXEEXT=.exe;; | 
 | 5723 | 	*)	EXEEXT=$withval;; | 
 | 5724 | 	esac | 
 | 5725 | fi | 
 | 5726 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
 | 5728 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5729 |  | 
 | 5730 | # Test whether we're running on a non-case-sensitive system, in which | 
 | 5731 | # case we give a warning if no ext is given | 
 | 5732 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
 | 5734 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5735 | if test ! -d CaseSensitiveTestDir; then | 
 | 5736 | mkdir CaseSensitiveTestDir | 
 | 5737 | fi | 
 | 5738 |  | 
 | 5739 | if test -d casesensitivetestdir | 
 | 5740 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5741 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5742 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5743 |     BUILDEXEEXT=.exe | 
 | 5744 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5745 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5746 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5747 | 	BUILDEXEEXT=$EXEEXT | 
 | 5748 | fi | 
 | 5749 | rmdir CaseSensitiveTestDir | 
 | 5750 |  | 
 | 5751 | case $MACHDEP in | 
 | 5752 | bsdos*) | 
 | 5753 |     case $CC in | 
 | 5754 |     gcc) CC="$CC -D_HAVE_BSDI";; | 
 | 5755 |     esac;; | 
 | 5756 | esac | 
 | 5757 |  | 
 | 5758 | case $ac_sys_system in | 
 | 5759 | hp*|HP*) | 
 | 5760 |     case $CC in | 
 | 5761 |     cc|*/cc) CC="$CC -Ae";; | 
 | 5762 |     esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5763 | esac | 
 | 5764 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5765 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
 | 5767 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5768 | if test -z "$LIBRARY" | 
 | 5769 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5770 | 	LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5771 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
 | 5773 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5774 |  | 
 | 5775 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
 | 5776 | # name of the library into which to insert object files). BLDLIBRARY is also | 
 | 5777 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
 | 5778 | # is blank as the main program is not linked directly against LDLIBRARY. | 
 | 5779 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
 | 5780 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
 | 5781 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
 | 5782 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
 | 5783 | # | 
 | 5784 | # RUNSHARED is used to run shared python without installed libraries | 
 | 5785 | # | 
 | 5786 | # INSTSONAME is the name of the shared library that will be use to install | 
 | 5787 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5788 | # | 
 | 5789 | # LDVERSION is the shared library version number, normally the Python version | 
 | 5790 | # with the ABI build flags appended. | 
 | 5791 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5792 |  | 
 | 5793 |  | 
 | 5794 |  | 
 | 5795 |  | 
 | 5796 |  | 
 | 5797 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5798 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5799 | LDLIBRARY="$LIBRARY" | 
 | 5800 | BLDLIBRARY='$(LDLIBRARY)' | 
 | 5801 | INSTSONAME='$(LDLIBRARY)' | 
 | 5802 | DLLLIBRARY='' | 
 | 5803 | LDLIBRARYDIR='' | 
 | 5804 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5805 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5806 |  | 
 | 5807 | # LINKCC is the command that links the python executable -- default is $(CC). | 
 | 5808 | # If CXX is set, and if it is needed to link a main function that was | 
 | 5809 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
 | 5810 | # python might then depend on the C++ runtime | 
 | 5811 | # This is altered for AIX in order to build the export list before | 
 | 5812 | # linking. | 
 | 5813 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
 | 5815 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5816 | if test -z "$LINKCC" | 
 | 5817 | then | 
 | 5818 | 	LINKCC='$(PURIFY) $(MAINCC)' | 
 | 5819 | 	case $ac_sys_system in | 
 | 5820 | 	AIX*) | 
 | 5821 | 	   exp_extra="\"\"" | 
 | 5822 | 	   if test $ac_sys_release -ge 5 -o \ | 
 | 5823 | 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
 | 5824 | 	       exp_extra="." | 
 | 5825 | 	   fi | 
 | 5826 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5827 | 	QNX*) | 
 | 5828 | 	   # qcc must be used because the other compilers do not | 
 | 5829 | 	   # support -N. | 
 | 5830 | 	   LINKCC=qcc;; | 
 | 5831 | 	esac | 
 | 5832 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
 | 5834 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5835 |  | 
 | 5836 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
 | 5837 | # make sure we default having it set to "no": this is used by | 
 | 5838 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
 | 5839 | # to linker command lines, and failing to detect GNU ld simply results | 
 | 5840 | # in the same bahaviour as before. | 
 | 5841 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 5843 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5844 | ac_prog=ld | 
 | 5845 | if test "$GCC" = yes; then | 
 | 5846 |        ac_prog=`$CC -print-prog-name=ld` | 
 | 5847 | fi | 
 | 5848 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
 | 5849 |       *GNU*) | 
 | 5850 |           GNULD=yes;; | 
 | 5851 |       *) | 
 | 5852 |           GNULD=no;; | 
 | 5853 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
 | 5855 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5856 |  | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
 | 5858 | $as_echo_n "checking for inline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5859 | if ${ac_cv_c_inline+:} false; then : | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5860 |   $as_echo_n "(cached) " >&6 | 
 | 5861 | else | 
 | 5862 |   ac_cv_c_inline=no | 
 | 5863 | for ac_kw in inline __inline__ __inline; do | 
 | 5864 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5865 | /* end confdefs.h.  */ | 
 | 5866 | #ifndef __cplusplus | 
 | 5867 | typedef int foo_t; | 
 | 5868 | static $ac_kw foo_t static_foo () {return 0; } | 
 | 5869 | $ac_kw foo_t foo () {return 0; } | 
 | 5870 | #endif | 
 | 5871 |  | 
 | 5872 | _ACEOF | 
 | 5873 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5874 |   ac_cv_c_inline=$ac_kw | 
 | 5875 | fi | 
 | 5876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5877 |   test "$ac_cv_c_inline" != no && break | 
 | 5878 | done | 
 | 5879 |  | 
 | 5880 | fi | 
 | 5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
 | 5882 | $as_echo "$ac_cv_c_inline" >&6; } | 
 | 5883 |  | 
 | 5884 | case $ac_cv_c_inline in | 
 | 5885 |   inline | yes) ;; | 
 | 5886 |   *) | 
 | 5887 |     case $ac_cv_c_inline in | 
 | 5888 |       no) ac_val=;; | 
 | 5889 |       *) ac_val=$ac_cv_c_inline;; | 
 | 5890 |     esac | 
 | 5891 |     cat >>confdefs.h <<_ACEOF | 
 | 5892 | #ifndef __cplusplus | 
 | 5893 | #define inline $ac_val | 
 | 5894 | #endif | 
 | 5895 | _ACEOF | 
 | 5896 |     ;; | 
 | 5897 | esac | 
 | 5898 |  | 
 | 5899 | if test "$ac_cv_c_inline" != no ; then | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 5900 |  | 
 | 5901 | $as_echo "#define USE_INLINE 1" >>confdefs.h | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5902 |  | 
 | 5903 |  | 
 | 5904 | fi | 
 | 5905 |  | 
 | 5906 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
 | 5908 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5909 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5910 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5911 |   enableval=$enable_shared; | 
 | 5912 | fi | 
 | 5913 |  | 
 | 5914 |  | 
 | 5915 | if test -z "$enable_shared" | 
 | 5916 | then | 
 | 5917 |   case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5918 |   CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5919 |     enable_shared="yes";; | 
 | 5920 |   *) | 
 | 5921 |     enable_shared="no";; | 
 | 5922 |   esac | 
 | 5923 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
 | 5925 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5926 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
 | 5928 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5929 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5930 | if test "${enable_profiling+set}" = set; then : | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5931 |   enableval=$enable_profiling; | 
 | 5932 | fi | 
 | 5933 |  | 
 | 5934 | if test "x$enable_profiling" = xyes; then | 
 | 5935 |   ac_save_cc="$CC" | 
| Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5936 |   CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5937 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5938 | /* end confdefs.h.  */ | 
 | 5939 | int main() { return 0; } | 
 | 5940 | _ACEOF | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5941 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 5942 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5943 | else | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5944 |   enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5945 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5946 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 5947 |     conftest$ac_exeext conftest.$ac_ext | 
 | 5948 |   CC="$ac_save_cc" | 
 | 5949 | else | 
 | 5950 |   enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5951 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
 | 5953 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5954 |  | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5955 | if test "x$enable_profiling" = xyes; then | 
 | 5956 |   BASECFLAGS="-pg $BASECFLAGS" | 
 | 5957 |   LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5958 | fi | 
 | 5959 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
 | 5961 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5962 |  | 
 | 5963 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
 | 5964 | # library that we build, but we do not want to link against it (we | 
 | 5965 | # will find it with a -framework option). For this reason there is an | 
 | 5966 | # extra variable BLDLIBRARY against which Python and the extension | 
 | 5967 | # modules are linked, BLDLIBRARY. This is normally the same as | 
 | 5968 | # LDLIBRARY, but empty for MacOSX framework builds. | 
 | 5969 | if test "$enable_framework" | 
 | 5970 | then | 
 | 5971 |   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5972 |   RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5973 |   BLDLIBRARY='' | 
 | 5974 | else | 
 | 5975 |   BLDLIBRARY='$(LDLIBRARY)' | 
 | 5976 | fi | 
 | 5977 |  | 
 | 5978 | # Other platforms follow | 
 | 5979 | if test $enable_shared = "yes"; then | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5980 |   PY_ENABLE_SHARED=1 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5981 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5982 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5983 |  | 
 | 5984 |   case $ac_sys_system in | 
 | 5985 |     CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5986 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
 | 5987 |           DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5988 |           ;; | 
 | 5989 |     SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5990 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 5991 | 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5992 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5993 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5994 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5995 | 	  then | 
 | 5996 | 	      PY3LIBRARY=libpython3.so | 
 | 5997 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5998 |           ;; | 
| Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 5999 |     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6000 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 6001 | 	  BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6002 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6003 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6004 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 6005 |           then | 
 | 6006 | 	      PY3LIBRARY=libpython3.so | 
 | 6007 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6008 | 	  ;; | 
 | 6009 |     hp*|HP*) | 
 | 6010 | 	  case `uname -m` in | 
 | 6011 | 		ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6012 | 			LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6013 | 			;; | 
 | 6014 | 		*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6015 | 			LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6016 | 			;; | 
 | 6017 | 	  esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6018 | 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6019 | 	  RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6020 | 	  ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6021 |     Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6022 |     	LDLIBRARY='libpython$(LDVERSION).dylib' | 
 | 6023 | 	BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6024 | 	RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6025 | 	;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6026 |     AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6027 | 	LDLIBRARY='libpython$(LDVERSION).so' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6028 | 	RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6029 | 	;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6030 |  | 
 | 6031 |   esac | 
 | 6032 | else # shared is disabled | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 6033 |   PY_ENABLE_SHARED=0 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6034 |   case $ac_sys_system in | 
 | 6035 |     CYGWIN*) | 
 | 6036 |           BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6037 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6038 |           ;; | 
 | 6039 |   esac | 
 | 6040 | fi | 
 | 6041 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 6042 | if test "$cross_compiling" = yes; then | 
 | 6043 | 	RUNSHARED= | 
 | 6044 | fi | 
 | 6045 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
 | 6047 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6048 |  | 
 | 6049 | if test -n "$ac_tool_prefix"; then | 
 | 6050 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 6051 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6053 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6054 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6055 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6056 | else | 
 | 6057 |   if test -n "$RANLIB"; then | 
 | 6058 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 6059 | else | 
 | 6060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6061 | for as_dir in $PATH | 
 | 6062 | do | 
 | 6063 |   IFS=$as_save_IFS | 
 | 6064 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6065 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6066 |   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] | 6067 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6068 |     $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] | 6069 |     break 2 | 
 | 6070 |   fi | 
 | 6071 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6072 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6073 | IFS=$as_save_IFS | 
 | 6074 |  | 
 | 6075 | fi | 
 | 6076 | fi | 
 | 6077 | RANLIB=$ac_cv_prog_RANLIB | 
 | 6078 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6079 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
 | 6080 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6081 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6082 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6083 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6084 | fi | 
 | 6085 |  | 
 | 6086 |  | 
 | 6087 | fi | 
 | 6088 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 6089 |   ac_ct_RANLIB=$RANLIB | 
 | 6090 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 6091 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6093 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6094 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6095 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6096 | else | 
 | 6097 |   if test -n "$ac_ct_RANLIB"; then | 
 | 6098 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 6099 | else | 
 | 6100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6101 | for as_dir in $PATH | 
 | 6102 | do | 
 | 6103 |   IFS=$as_save_IFS | 
 | 6104 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6105 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6106 |   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] | 6107 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6108 |     $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] | 6109 |     break 2 | 
 | 6110 |   fi | 
 | 6111 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6112 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6113 | IFS=$as_save_IFS | 
 | 6114 |  | 
 | 6115 | fi | 
 | 6116 | fi | 
 | 6117 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 6118 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6119 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
 | 6120 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6121 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6122 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6123 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6124 | fi | 
 | 6125 |  | 
 | 6126 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 6127 |     RANLIB=":" | 
 | 6128 |   else | 
 | 6129 |     case $cross_compiling:$ac_tool_warned in | 
 | 6130 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6131 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 6132 | $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] | 6133 | ac_tool_warned=yes ;; | 
 | 6134 | esac | 
 | 6135 |     RANLIB=$ac_ct_RANLIB | 
 | 6136 |   fi | 
 | 6137 | else | 
 | 6138 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 6139 | fi | 
 | 6140 |  | 
 | 6141 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6142 | if test -n "$ac_tool_prefix"; then | 
 | 6143 |   for ac_prog in ar aal | 
 | 6144 |   do | 
 | 6145 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 6146 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6148 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6149 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6150 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6151 | else | 
 | 6152 |   if test -n "$AR"; then | 
 | 6153 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 6154 | else | 
 | 6155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6156 | for as_dir in $PATH | 
 | 6157 | do | 
 | 6158 |   IFS=$as_save_IFS | 
 | 6159 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6160 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6161 |   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] | 6162 |     ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6163 |     $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] | 6164 |     break 2 | 
 | 6165 |   fi | 
 | 6166 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6167 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6168 | IFS=$as_save_IFS | 
 | 6169 |  | 
 | 6170 | fi | 
 | 6171 | fi | 
 | 6172 | AR=$ac_cv_prog_AR | 
 | 6173 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6174 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
 | 6175 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6176 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6177 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6178 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6179 | fi | 
 | 6180 |  | 
 | 6181 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6182 |     test -n "$AR" && break | 
 | 6183 |   done | 
 | 6184 | fi | 
 | 6185 | if test -z "$AR"; then | 
 | 6186 |   ac_ct_AR=$AR | 
 | 6187 |   for ac_prog in ar aal | 
 | 6188 | do | 
 | 6189 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 6190 | set dummy $ac_prog; ac_word=$2 | 
 | 6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6192 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6193 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
 | 6194 |   $as_echo_n "(cached) " >&6 | 
 | 6195 | else | 
 | 6196 |   if test -n "$ac_ct_AR"; then | 
 | 6197 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 6198 | else | 
 | 6199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6200 | for as_dir in $PATH | 
 | 6201 | do | 
 | 6202 |   IFS=$as_save_IFS | 
 | 6203 |   test -z "$as_dir" && as_dir=. | 
 | 6204 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6205 |   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] | 6206 |     ac_cv_prog_ac_ct_AR="$ac_prog" | 
 | 6207 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6208 |     break 2 | 
 | 6209 |   fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6210 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6211 |   done | 
 | 6212 | IFS=$as_save_IFS | 
 | 6213 |  | 
 | 6214 | fi | 
 | 6215 | fi | 
 | 6216 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 6217 | if test -n "$ac_ct_AR"; then | 
 | 6218 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
 | 6219 | $as_echo "$ac_ct_AR" >&6; } | 
 | 6220 | else | 
 | 6221 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6222 | $as_echo "no" >&6; } | 
 | 6223 | fi | 
 | 6224 |  | 
 | 6225 |  | 
 | 6226 |   test -n "$ac_ct_AR" && break | 
 | 6227 | done | 
 | 6228 |  | 
 | 6229 |   if test "x$ac_ct_AR" = x; then | 
 | 6230 |     AR="ar" | 
 | 6231 |   else | 
 | 6232 |     case $cross_compiling:$ac_tool_warned in | 
 | 6233 | yes:) | 
 | 6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 6235 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 6236 | ac_tool_warned=yes ;; | 
 | 6237 | esac | 
 | 6238 |     AR=$ac_ct_AR | 
 | 6239 |   fi | 
 | 6240 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6241 |  | 
 | 6242 |  | 
 | 6243 | # tweak ARFLAGS only if the user didn't set it on the command line | 
 | 6244 |  | 
 | 6245 | if test -z "$ARFLAGS" | 
 | 6246 | then | 
 | 6247 |         ARFLAGS="rc" | 
 | 6248 | fi | 
 | 6249 |  | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6250 | if test -n "$ac_tool_prefix"; then | 
 | 6251 |   for ac_prog in readelf | 
 | 6252 |   do | 
 | 6253 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 6254 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6256 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6257 | if ${ac_cv_prog_READELF+:} false; then : | 
 | 6258 |   $as_echo_n "(cached) " >&6 | 
 | 6259 | else | 
 | 6260 |   if test -n "$READELF"; then | 
 | 6261 |   ac_cv_prog_READELF="$READELF" # Let the user override the test. | 
 | 6262 | else | 
 | 6263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6264 | for as_dir in $PATH | 
 | 6265 | do | 
 | 6266 |   IFS=$as_save_IFS | 
 | 6267 |   test -z "$as_dir" && as_dir=. | 
 | 6268 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6269 |   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] | 6270 |     ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" | 
 | 6271 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6272 |     break 2 | 
 | 6273 |   fi | 
 | 6274 | done | 
 | 6275 |   done | 
 | 6276 | IFS=$as_save_IFS | 
 | 6277 |  | 
 | 6278 | fi | 
 | 6279 | fi | 
 | 6280 | READELF=$ac_cv_prog_READELF | 
 | 6281 | if test -n "$READELF"; then | 
 | 6282 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | 
 | 6283 | $as_echo "$READELF" >&6; } | 
 | 6284 | else | 
 | 6285 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6286 | $as_echo "no" >&6; } | 
 | 6287 | fi | 
 | 6288 |  | 
 | 6289 |  | 
 | 6290 |     test -n "$READELF" && break | 
 | 6291 |   done | 
 | 6292 | fi | 
 | 6293 | if test -z "$READELF"; then | 
 | 6294 |   ac_ct_READELF=$READELF | 
 | 6295 |   for ac_prog in readelf | 
 | 6296 | do | 
 | 6297 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 6298 | set dummy $ac_prog; ac_word=$2 | 
 | 6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6300 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6301 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | 
 | 6302 |   $as_echo_n "(cached) " >&6 | 
 | 6303 | else | 
 | 6304 |   if test -n "$ac_ct_READELF"; then | 
 | 6305 |   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | 
 | 6306 | else | 
 | 6307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6308 | for as_dir in $PATH | 
 | 6309 | do | 
 | 6310 |   IFS=$as_save_IFS | 
 | 6311 |   test -z "$as_dir" && as_dir=. | 
 | 6312 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6313 |   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] | 6314 |     ac_cv_prog_ac_ct_READELF="$ac_prog" | 
 | 6315 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6316 |     break 2 | 
 | 6317 |   fi | 
 | 6318 | done | 
 | 6319 |   done | 
 | 6320 | IFS=$as_save_IFS | 
 | 6321 |  | 
 | 6322 | fi | 
 | 6323 | fi | 
 | 6324 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | 
 | 6325 | if test -n "$ac_ct_READELF"; then | 
 | 6326 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | 
 | 6327 | $as_echo "$ac_ct_READELF" >&6; } | 
 | 6328 | else | 
 | 6329 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6330 | $as_echo "no" >&6; } | 
 | 6331 | fi | 
 | 6332 |  | 
 | 6333 |  | 
 | 6334 |   test -n "$ac_ct_READELF" && break | 
 | 6335 | done | 
 | 6336 |  | 
 | 6337 |   if test "x$ac_ct_READELF" = x; then | 
 | 6338 |     READELF=":" | 
 | 6339 |   else | 
 | 6340 |     case $cross_compiling:$ac_tool_warned in | 
 | 6341 | yes:) | 
 | 6342 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 6343 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 6344 | ac_tool_warned=yes ;; | 
 | 6345 | esac | 
 | 6346 |     READELF=$ac_ct_READELF | 
 | 6347 |   fi | 
 | 6348 | fi | 
 | 6349 |  | 
 | 6350 | if test "$cross_compiling" = yes; then | 
 | 6351 |     case "$READELF" in | 
 | 6352 | 	readelf|:) | 
 | 6353 | 	as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | 
 | 6354 | 	;; | 
 | 6355 |     esac | 
 | 6356 | fi | 
 | 6357 |  | 
 | 6358 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6359 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6360 | case $MACHDEP in | 
 | 6361 | bsdos*|hp*|HP*) | 
 | 6362 | 	# install -d does not work on BSDI or HP-UX | 
 | 6363 | 	if test -z "$INSTALL" | 
 | 6364 | 	then | 
 | 6365 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 6366 | 	fi | 
 | 6367 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6368 | # Find a good install program.  We prefer a C program (faster), | 
 | 6369 | # so one script is as good as another.  But avoid the broken or | 
 | 6370 | # incompatible versions: | 
 | 6371 | # SysV /etc/install, /usr/sbin/install | 
 | 6372 | # SunOS /usr/etc/install | 
 | 6373 | # IRIX /sbin/install | 
 | 6374 | # AIX /bin/install | 
 | 6375 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 6376 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 6377 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 6378 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 6379 | # OS/2's system install, which has a completely different semantic | 
 | 6380 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6381 | # Reject install programs that cannot install multiple files. | 
 | 6382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
 | 6383 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6384 | if test -z "$INSTALL"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6385 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6386 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6387 | else | 
 | 6388 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6389 | for as_dir in $PATH | 
 | 6390 | do | 
 | 6391 |   IFS=$as_save_IFS | 
 | 6392 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6393 |     # Account for people who put trailing slashes in PATH elements. | 
 | 6394 | case $as_dir/ in #(( | 
 | 6395 |   ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6396 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6397 |   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6398 |   /usr/ucb/* ) ;; | 
 | 6399 |   *) | 
 | 6400 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 6401 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 6402 |     # by default. | 
 | 6403 |     for ac_prog in ginstall scoinst install; do | 
 | 6404 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6405 | 	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] | 6406 | 	  if test $ac_prog = install && | 
 | 6407 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 6408 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 6409 | 	    : | 
 | 6410 | 	  elif test $ac_prog = install && | 
 | 6411 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 6412 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 6413 | 	    : | 
 | 6414 | 	  else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6415 | 	    rm -rf conftest.one conftest.two conftest.dir | 
 | 6416 | 	    echo one > conftest.one | 
 | 6417 | 	    echo two > conftest.two | 
 | 6418 | 	    mkdir conftest.dir | 
 | 6419 | 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
 | 6420 | 	      test -s conftest.one && test -s conftest.two && | 
 | 6421 | 	      test -s conftest.dir/conftest.one && | 
 | 6422 | 	      test -s conftest.dir/conftest.two | 
 | 6423 | 	    then | 
 | 6424 | 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 6425 | 	      break 3 | 
 | 6426 | 	    fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6427 | 	  fi | 
 | 6428 | 	fi | 
 | 6429 |       done | 
 | 6430 |     done | 
 | 6431 |     ;; | 
 | 6432 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6433 |  | 
 | 6434 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6435 | IFS=$as_save_IFS | 
 | 6436 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6437 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6438 |  | 
 | 6439 | fi | 
 | 6440 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 6441 |     INSTALL=$ac_cv_path_install | 
 | 6442 |   else | 
 | 6443 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 6444 |     # value for INSTALL within a source directory, because that will | 
 | 6445 |     # break other packages using the cache if that directory is | 
 | 6446 |     # removed, or if the value is a relative name. | 
 | 6447 |     INSTALL=$ac_install_sh | 
 | 6448 |   fi | 
 | 6449 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
 | 6451 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6452 |  | 
 | 6453 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 6454 | # It thinks the first close brace ends the variable substitution. | 
 | 6455 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 6456 |  | 
 | 6457 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 6458 |  | 
 | 6459 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 6460 |  | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
 | 6462 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
 | 6463 | if test -z "$MKDIR_P"; then | 
 | 6464 |   if ${ac_cv_path_mkdir+:} false; then : | 
 | 6465 |   $as_echo_n "(cached) " >&6 | 
 | 6466 | else | 
 | 6467 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6468 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
 | 6469 | do | 
 | 6470 |   IFS=$as_save_IFS | 
 | 6471 |   test -z "$as_dir" && as_dir=. | 
 | 6472 |     for ac_prog in mkdir gmkdir; do | 
 | 6473 | 	 for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6474 | 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6475 | 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
 | 6476 | 	     'mkdir (GNU coreutils) '* | \ | 
 | 6477 | 	     'mkdir (coreutils) '* | \ | 
 | 6478 | 	     'mkdir (fileutils) '4.1*) | 
 | 6479 | 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
 | 6480 | 	       break 3;; | 
 | 6481 | 	   esac | 
 | 6482 | 	 done | 
 | 6483 |        done | 
 | 6484 |   done | 
 | 6485 | IFS=$as_save_IFS | 
 | 6486 |  | 
 | 6487 | fi | 
 | 6488 |  | 
 | 6489 |   test -d ./--version && rmdir ./--version | 
 | 6490 |   if test "${ac_cv_path_mkdir+set}" = set; then | 
 | 6491 |     MKDIR_P="$ac_cv_path_mkdir -p" | 
 | 6492 |   else | 
 | 6493 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 6494 |     # value for MKDIR_P within a source directory, because that will | 
 | 6495 |     # break other packages using the cache if that directory is | 
 | 6496 |     # removed, or if the value is a relative name. | 
 | 6497 |     MKDIR_P="$ac_install_sh -d" | 
 | 6498 |   fi | 
 | 6499 | fi | 
 | 6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
 | 6501 | $as_echo "$MKDIR_P" >&6; } | 
 | 6502 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6503 |  | 
 | 6504 | # Not every filesystem supports hard links | 
 | 6505 |  | 
 | 6506 | if test -z "$LN" ; then | 
 | 6507 | 	case $ac_sys_system in | 
 | 6508 | 		CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6509 | 		*) LN=ln;; | 
 | 6510 | 	esac | 
 | 6511 | fi | 
 | 6512 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6513 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6514 |  | 
 | 6515 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6516 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6517 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
 | 6519 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6520 |  | 
 | 6521 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6522 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6523 |   withval=$with_pydebug; | 
 | 6524 | if test "$withval" != no | 
 | 6525 | then | 
 | 6526 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6527 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6528 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6529 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6530 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6531 |   Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6532 |   ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6533 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6534 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6535 | fi | 
 | 6536 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6537 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6538 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6539 | fi | 
 | 6540 |  | 
 | 6541 |  | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 6542 | # Enable optimization flags | 
 | 6543 |  | 
 | 6544 |  | 
 | 6545 | Py_OPT='false' | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 | 
 | 6547 | $as_echo_n "checking for --enable-optimizations... " >&6; } | 
 | 6548 | # Check whether --enable-optimizations was given. | 
 | 6549 | if test "${enable_optimizations+set}" = set; then : | 
 | 6550 |   enableval=$enable_optimizations; | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 6551 | if test "$withval" != no | 
 | 6552 | then | 
 | 6553 |   Py_OPT='true' | 
 | 6554 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6555 | $as_echo "yes" >&6; }; | 
 | 6556 | else | 
 | 6557 |   Py_OPT='false' | 
 | 6558 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6559 | $as_echo "no" >&6; }; | 
 | 6560 | fi | 
 | 6561 | else | 
 | 6562 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6563 | $as_echo "no" >&6; } | 
 | 6564 | fi | 
 | 6565 |  | 
 | 6566 | if test "$Py_OPT" = 'true' ; then | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6567 |   # Intentionally not forcing Py_LTO='true' here.  Too many toolchains do not | 
 | 6568 |   # compile working code using it and both test_distutils and test_gdb are | 
 | 6569 |   # broken when you do managed to get a toolchain that works with it.  People | 
 | 6570 |   # who want LTO need to use --with-lto themselves. | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 6571 |   DEF_MAKE_ALL_RULE="profile-opt" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6572 |   REQUIRE_PGO="yes" | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 6573 |   DEF_MAKE_RULE="build_all" | 
 | 6574 | else | 
 | 6575 |   DEF_MAKE_ALL_RULE="build_all" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6576 |   REQUIRE_PGO="no" | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 6577 |   DEF_MAKE_RULE="all" | 
 | 6578 | fi | 
 | 6579 |  | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6580 | # Enable LTO flags | 
 | 6581 |  | 
 | 6582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 | 
 | 6583 | $as_echo_n "checking for --with-lto... " >&6; } | 
 | 6584 |  | 
 | 6585 | # Check whether --with-lto was given. | 
 | 6586 | if test "${with_lto+set}" = set; then : | 
 | 6587 |   withval=$with_lto; | 
 | 6588 | if test "$withval" != no | 
 | 6589 | then | 
 | 6590 |   Py_LTO='true' | 
 | 6591 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6592 | $as_echo "yes" >&6; }; | 
 | 6593 | else | 
 | 6594 |   Py_LTO='false' | 
 | 6595 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6596 | $as_echo "no" >&6; }; | 
 | 6597 | fi | 
 | 6598 | else | 
 | 6599 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6600 | $as_echo "no" >&6; } | 
 | 6601 | fi | 
 | 6602 |  | 
 | 6603 | if test "$Py_LTO" = 'true' ; then | 
 | 6604 |   case $CC in | 
 | 6605 |     *clang*) | 
 | 6606 |       # Any changes made here should be reflected in the GCC+Darwin case below | 
 | 6607 |       LTOFLAGS="-flto" | 
 | 6608 |       ;; | 
 | 6609 |     *gcc*) | 
 | 6610 |       case $ac_sys_system in | 
 | 6611 |         Darwin*) | 
 | 6612 |           LTOFLAGS="-flto" | 
 | 6613 |           ;; | 
 | 6614 |         *) | 
 | 6615 |           LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | 
 | 6616 |           ;; | 
 | 6617 |       esac | 
 | 6618 |       ;; | 
 | 6619 |   esac | 
 | 6620 | fi | 
 | 6621 |  | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6622 | # Enable PGO flags. | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6623 |  | 
 | 6624 |  | 
 | 6625 |  | 
 | 6626 |  | 
 | 6627 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6628 | # Make this work on systems where llvm tools are not installed with their | 
 | 6629 | # normal names in the default $PATH (ie: Ubuntu).  They exist under the | 
 | 6630 | # non-suffixed name in their versioned llvm directory. | 
 | 6631 | llvm_bin_dir='' | 
 | 6632 | llvm_path="${PATH}" | 
 | 6633 | if test "${CC}" = "clang" | 
 | 6634 | then | 
 | 6635 |   clang_bin=`which clang` | 
 | 6636 |   # Some systems install clang elsewhere as a symlink to the real path | 
 | 6637 |   # which is where the related llvm tools are located. | 
 | 6638 |   if test -L "${clang_bin}" | 
 | 6639 |   then | 
 | 6640 |     clang_dir=`dirname "${clang_bin}"` | 
 | 6641 |     clang_bin=`readlink "${clang_bin}"` | 
 | 6642 |     llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` | 
 | 6643 |     llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" | 
 | 6644 |   fi | 
 | 6645 | fi | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6646 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | 
 | 6648 | $as_echo_n "checking target system type... " >&6; } | 
 | 6649 | if ${ac_cv_target+:} false; then : | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6650 |   $as_echo_n "(cached) " >&6 | 
 | 6651 | else | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6652 |   if test "x$target_alias" = x; then | 
 | 6653 |   ac_cv_target=$ac_cv_host | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6654 | else | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6655 |   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
 | 6656 |     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | 
 | 6657 | fi | 
 | 6658 |  | 
 | 6659 | fi | 
 | 6660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | 
 | 6661 | $as_echo "$ac_cv_target" >&6; } | 
 | 6662 | case $ac_cv_target in | 
 | 6663 | *-*-*) ;; | 
 | 6664 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | 
 | 6665 | esac | 
 | 6666 | target=$ac_cv_target | 
 | 6667 | ac_save_IFS=$IFS; IFS='-' | 
 | 6668 | set x $ac_cv_target | 
 | 6669 | shift | 
 | 6670 | target_cpu=$1 | 
 | 6671 | target_vendor=$2 | 
 | 6672 | shift; shift | 
 | 6673 | # Remember, the first character of IFS is used to create $*, | 
 | 6674 | # except with old shells: | 
 | 6675 | target_os=$* | 
 | 6676 | IFS=$ac_save_IFS | 
 | 6677 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
 | 6678 |  | 
 | 6679 |  | 
 | 6680 | # The aliases save the names the user supplied, while $host etc. | 
 | 6681 | # will get canonicalized. | 
 | 6682 | test -n "$target_alias" && | 
 | 6683 |   test "$program_prefix$program_suffix$program_transform_name" = \ | 
 | 6684 |     NONENONEs,x,x, && | 
 | 6685 |   program_prefix=${target_alias}- | 
 | 6686 | # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args. | 
 | 6687 | set dummy $target_alias-llvm-profdata; ac_word=$2 | 
 | 6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6689 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6690 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : | 
 | 6691 |   $as_echo_n "(cached) " >&6 | 
 | 6692 | else | 
 | 6693 |   case $LLVM_PROFDATA in | 
 | 6694 |   [\\/]* | ?:[\\/]*) | 
 | 6695 |   ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. | 
 | 6696 |   ;; | 
 | 6697 |   *) | 
 | 6698 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6699 | for as_dir in ${llvm_path} | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6700 | do | 
 | 6701 |   IFS=$as_save_IFS | 
 | 6702 |   test -z "$as_dir" && as_dir=. | 
 | 6703 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 6704 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6705 |     ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6706 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6707 |     break 2 | 
 | 6708 |   fi | 
 | 6709 | done | 
 | 6710 |   done | 
 | 6711 | IFS=$as_save_IFS | 
 | 6712 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6713 |   ;; | 
 | 6714 | esac | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6715 | fi | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6716 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA | 
 | 6717 | if test -n "$LLVM_PROFDATA"; then | 
 | 6718 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 | 
 | 6719 | $as_echo "$LLVM_PROFDATA" >&6; } | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6720 | else | 
 | 6721 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6722 | $as_echo "no" >&6; } | 
 | 6723 | fi | 
 | 6724 |  | 
 | 6725 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6726 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then | 
 | 6727 |   if test "$build" = "$target"; then | 
 | 6728 |     ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA | 
 | 6729 |     # Extract the first word of "llvm-profdata", so it can be a program name with args. | 
 | 6730 | set dummy llvm-profdata; ac_word=$2 | 
 | 6731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6732 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6733 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : | 
 | 6734 |   $as_echo_n "(cached) " >&6 | 
 | 6735 | else | 
 | 6736 |   case $ac_pt_LLVM_PROFDATA in | 
 | 6737 |   [\\/]* | ?:[\\/]*) | 
 | 6738 |   ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. | 
 | 6739 |   ;; | 
 | 6740 |   *) | 
 | 6741 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6742 | for as_dir in ${llvm_path} | 
 | 6743 | do | 
 | 6744 |   IFS=$as_save_IFS | 
 | 6745 |   test -z "$as_dir" && as_dir=. | 
 | 6746 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 6747 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 6748 |     ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | 
 | 6749 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6750 |     break 2 | 
 | 6751 |   fi | 
 | 6752 | done | 
 | 6753 |   done | 
 | 6754 | IFS=$as_save_IFS | 
 | 6755 |  | 
 | 6756 |   test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''" | 
 | 6757 |   ;; | 
 | 6758 | esac | 
 | 6759 | fi | 
 | 6760 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA | 
 | 6761 | if test -n "$ac_pt_LLVM_PROFDATA"; then | 
 | 6762 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 | 
 | 6763 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } | 
 | 6764 | else | 
 | 6765 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6766 | $as_echo "no" >&6; } | 
 | 6767 | fi | 
 | 6768 |  | 
 | 6769 |     LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA | 
 | 6770 |   else | 
 | 6771 |     LLVM_PROFDATA="''" | 
 | 6772 |   fi | 
 | 6773 | else | 
 | 6774 |   LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" | 
 | 6775 | fi | 
 | 6776 |  | 
 | 6777 |  | 
 | 6778 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" | 
 | 6779 | then | 
 | 6780 |   LLVM_PROF_FOUND="found" | 
 | 6781 | else | 
 | 6782 |   LLVM_PROF_FOUND="not-found" | 
 | 6783 | fi | 
 | 6784 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" | 
 | 6785 | then | 
 | 6786 |   found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` | 
 | 6787 |   if test -n "${found_llvm_profdata}" | 
 | 6788 |   then | 
 | 6789 |     # llvm-profdata isn't directly in $PATH in some cases. | 
 | 6790 |     # https://apple.stackexchange.com/questions/197053/ | 
 | 6791 |     LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' | 
 | 6792 |     LLVM_PROF_FOUND=found | 
 | 6793 |     { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 | 
 | 6794 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} | 
 | 6795 |   fi | 
 | 6796 | fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6797 | LLVM_PROF_ERR=no | 
 | 6798 | case $CC in | 
 | 6799 |   *clang*) | 
 | 6800 |     # Any changes made here should be reflected in the GCC+Darwin case below | 
 | 6801 |     PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
 | 6802 |     PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6803 |     LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6804 |     LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
 | 6805 |     if test $LLVM_PROF_FOUND = not-found | 
 | 6806 |     then | 
 | 6807 |       LLVM_PROF_ERR=yes | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6808 |       if test "${REQUIRE_PGO}" = "yes" | 
 | 6809 |       then | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6810 |         as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6811 |       fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6812 |     fi | 
 | 6813 |     ;; | 
 | 6814 |   *gcc*) | 
 | 6815 |     case $ac_sys_system in | 
 | 6816 |       Darwin*) | 
 | 6817 |         PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
 | 6818 |         PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6819 |         LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6820 |         LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6821 |         if test "${LLVM_PROF_FOUND}" = "not-found" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6822 |         then | 
 | 6823 |           LLVM_PROF_ERR=yes | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6824 |           if test "${REQUIRE_PGO}" = "yes" | 
 | 6825 | 	  then | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6826 | 	    as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6827 | 	  fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6828 |         fi | 
 | 6829 |         ;; | 
 | 6830 |       *) | 
 | 6831 |         PGO_PROF_GEN_FLAG="-fprofile-generate" | 
 | 6832 |         PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | 
 | 6833 |         LLVM_PROF_MERGER="true" | 
 | 6834 |         LLVM_PROF_FILE="" | 
 | 6835 |         ;; | 
 | 6836 |     esac | 
 | 6837 |     ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6838 |   *icc*) | 
 | 6839 |     PGO_PROF_GEN_FLAG="-prof-gen" | 
 | 6840 |     PGO_PROF_USE_FLAG="-prof-use" | 
 | 6841 |     LLVM_PROF_MERGER="true" | 
 | 6842 |     LLVM_PROF_FILE="" | 
 | 6843 |     ;; | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6844 | esac | 
 | 6845 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6846 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
 | 6847 | # merged with this chunk of code? | 
 | 6848 |  | 
 | 6849 | # Optimizer/debugger flags | 
 | 6850 | # ------------------------ | 
 | 6851 | # (The following bit of code is complicated enough - please keep things | 
 | 6852 | # indented properly.  Just pretend you're editing Python code. ;-) | 
 | 6853 |  | 
 | 6854 | # There are two parallel sets of case statements below, one that checks to | 
 | 6855 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
 | 6856 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
 | 6857 | # user set OPT. | 
 | 6858 |  | 
 | 6859 | # tweak OPT based on compiler and platform, only if the user didn't set | 
 | 6860 | # it on the command line | 
 | 6861 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6862 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6863 | then | 
 | 6864 |     case $GCC in | 
 | 6865 |     yes) | 
 | 6866 |         if test "$CC" != 'g++' ; then | 
 | 6867 | 	    STRICT_PROTO="-Wstrict-prototypes" | 
 | 6868 | 	fi | 
 | 6869 |         # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
 | 6870 |         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
 | 6871 |            WRAP="-fwrapv" | 
 | 6872 |         fi | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6873 |  | 
 | 6874 |         # Clang also needs -fwrapv | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6875 |         case $CC in | 
 | 6876 |             *clang*) WRAP="-fwrapv" | 
 | 6877 |             ;; | 
 | 6878 |         esac | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6879 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6880 | 	case $ac_cv_prog_cc_g in | 
 | 6881 | 	yes) | 
 | 6882 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 6883 | 		# Optimization messes up debuggers, so turn it off for | 
 | 6884 | 		# debug builds. | 
| Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6885 |                 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then | 
 | 6886 |                     OPT="-g -Og -Wall $STRICT_PROTO" | 
 | 6887 |                 else | 
 | 6888 |                     OPT="-g -O0 -Wall $STRICT_PROTO" | 
 | 6889 |                 fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6890 | 	    else | 
 | 6891 | 		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
 | 6892 | 	    fi | 
 | 6893 | 	    ;; | 
 | 6894 | 	*) | 
 | 6895 | 	    OPT="-O3 -Wall $STRICT_PROTO" | 
 | 6896 | 	    ;; | 
 | 6897 | 	esac | 
 | 6898 | 	case $ac_sys_system in | 
 | 6899 | 	    SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
 | 6900 | 	    ;; | 
 | 6901 |         esac | 
 | 6902 | 	;; | 
 | 6903 |  | 
 | 6904 |     *) | 
 | 6905 | 	OPT="-O" | 
 | 6906 | 	;; | 
 | 6907 |     esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6908 | fi | 
 | 6909 |  | 
 | 6910 |  | 
 | 6911 |  | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6912 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6913 | # The -arch flags for universal builds on OSX | 
 | 6914 | UNIVERSAL_ARCH_FLAGS= | 
 | 6915 |  | 
 | 6916 |  | 
 | 6917 | # tweak BASECFLAGS based on compiler and platform | 
 | 6918 | case $GCC in | 
 | 6919 | yes) | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6920 |     # Python doesn't violate C99 aliasing rules, but older versions of | 
 | 6921 |     # GCC produce warnings for legal Python code.  Enable | 
 | 6922 |     # -fno-strict-aliasing on versions of GCC that support but produce | 
 | 6923 |     # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6924 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
 | 6925 | $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] | 6926 |      ac_save_cc="$CC" | 
 | 6927 |      CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6928 |      save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6929 |      if ${ac_cv_no_strict_aliasing+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6930 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6931 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6932 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6933 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6934 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6935 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6936 | int | 
 | 6937 | main () | 
 | 6938 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6939 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6940 |   ; | 
 | 6941 |   return 0; | 
 | 6942 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6943 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6944 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6945 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6946 |  | 
 | 6947 | 	   CC="$ac_save_cc -fstrict-aliasing" | 
 | 6948 |            CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
 | 6949 |            cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6950 | /* end confdefs.h.  */ | 
 | 6951 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6952 | 	       void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6953 | int | 
 | 6954 | main () | 
 | 6955 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6956 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6957 |   ; | 
 | 6958 |   return 0; | 
 | 6959 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6960 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6961 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6962 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6963 |  | 
 | 6964 | 	       ac_cv_no_strict_aliasing=no | 
 | 6965 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6966 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6967 |  | 
 | 6968 |                ac_cv_no_strict_aliasing=yes | 
 | 6969 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6970 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6972 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6973 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6974 |  | 
 | 6975 | 	   ac_cv_no_strict_aliasing=no | 
 | 6976 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6977 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6979 | fi | 
 | 6980 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6981 |      CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6982 |      CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6983 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
 | 6984 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6985 |     if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6986 |     then | 
 | 6987 |       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
 | 6988 |     fi | 
 | 6989 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6990 |     # ICC doesn't recognize the option, but only emits a warning | 
 | 6991 |     ## XXX does it emit an unused result warning and can it be disabled? | 
 | 6992 |     case "$CC" in | 
 | 6993 |     *icc*) | 
 | 6994 |     ac_cv_disable_unused_result_warning=no | 
 | 6995 |     ;; | 
 | 6996 |     *) | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6997 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 | 
 | 6998 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | 
 | 6999 |      ac_save_cc="$CC" | 
 | 7000 |      CC="$CC -Wunused-result -Werror" | 
 | 7001 |      save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7002 |      if ${ac_cv_disable_unused_result_warning+:} false; then : | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7003 |   $as_echo_n "(cached) " >&6 | 
 | 7004 | else | 
 | 7005 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7006 | /* end confdefs.h.  */ | 
 | 7007 |  | 
 | 7008 |  | 
 | 7009 | int | 
 | 7010 | main () | 
 | 7011 | { | 
 | 7012 |  | 
 | 7013 |   ; | 
 | 7014 |   return 0; | 
 | 7015 | } | 
 | 7016 |  | 
 | 7017 | _ACEOF | 
 | 7018 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7019 |  | 
 | 7020 |            ac_cv_disable_unused_result_warning=yes | 
 | 7021 |  | 
 | 7022 | else | 
 | 7023 |  | 
 | 7024 |            ac_cv_disable_unused_result_warning=no | 
 | 7025 |  | 
 | 7026 | fi | 
 | 7027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7028 | fi | 
 | 7029 |  | 
 | 7030 |      CFLAGS="$save_CFLAGS" | 
 | 7031 |      CC="$ac_save_cc" | 
 | 7032 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | 
 | 7033 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7034 |     ;; | 
 | 7035 |     esac | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7036 |  | 
 | 7037 |     if test $ac_cv_disable_unused_result_warning = yes | 
 | 7038 |     then | 
 | 7039 |       BASECFLAGS="$BASECFLAGS -Wno-unused-result" | 
 | 7040 |     fi | 
 | 7041 |  | 
| Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 7042 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=declaration-after-statement" >&5 | 
 | 7043 | $as_echo_n "checking for -Werror=declaration-after-statement... " >&6; } | 
 | 7044 |      ac_save_cc="$CC" | 
 | 7045 |      CC="$CC -Werror=declaration-after-statement" | 
 | 7046 |      save_CFLAGS="$CFLAGS" | 
 | 7047 |      if ${ac_cv_declaration_after_statement_warning+:} false; then : | 
 | 7048 |   $as_echo_n "(cached) " >&6 | 
 | 7049 | else | 
 | 7050 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7051 | /* end confdefs.h.  */ | 
 | 7052 |  | 
 | 7053 |  | 
 | 7054 | int | 
 | 7055 | main () | 
 | 7056 | { | 
 | 7057 |  | 
 | 7058 |   ; | 
 | 7059 |   return 0; | 
 | 7060 | } | 
 | 7061 |  | 
 | 7062 | _ACEOF | 
 | 7063 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7064 |  | 
 | 7065 |            ac_cv_declaration_after_statement_warning=yes | 
 | 7066 |  | 
 | 7067 | else | 
 | 7068 |  | 
 | 7069 |            ac_cv_declaration_after_statement_warning=no | 
 | 7070 |  | 
 | 7071 | fi | 
 | 7072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7073 | fi | 
 | 7074 |  | 
 | 7075 |      CFLAGS="$save_CFLAGS" | 
 | 7076 |      CC="$ac_save_cc" | 
 | 7077 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declaration_after_statement_warning" >&5 | 
 | 7078 | $as_echo "$ac_cv_declaration_after_statement_warning" >&6; } | 
 | 7079 |  | 
 | 7080 |     if test $ac_cv_declaration_after_statement_warning = yes | 
 | 7081 |     then | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 7082 |       CFLAGS_NODIST="$CFLAGS_NODIST -Werror=declaration-after-statement" | 
| Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 7083 |     fi | 
 | 7084 |  | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7085 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 | 
 | 7086 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | 
 | 7087 |      ac_save_cc="$CC" | 
 | 7088 |      CC="$CC -Wsign-compare" | 
 | 7089 |      save_CFLAGS="$CFLAGS" | 
 | 7090 |      if ${ac_cv_enable_sign_compare_warning+:} false; then : | 
 | 7091 |   $as_echo_n "(cached) " >&6 | 
 | 7092 | else | 
 | 7093 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7094 | /* end confdefs.h.  */ | 
 | 7095 |  | 
 | 7096 |  | 
 | 7097 | int | 
 | 7098 | main () | 
 | 7099 | { | 
 | 7100 |  | 
 | 7101 |   ; | 
 | 7102 |   return 0; | 
 | 7103 | } | 
 | 7104 |  | 
 | 7105 | _ACEOF | 
 | 7106 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7107 |  | 
 | 7108 |            ac_cv_enable_sign_compare_warning=yes | 
 | 7109 |  | 
 | 7110 | else | 
 | 7111 |  | 
 | 7112 |            ac_cv_enable_sign_compare_warning=no | 
 | 7113 |  | 
 | 7114 | fi | 
 | 7115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7116 | fi | 
 | 7117 |  | 
 | 7118 |      CFLAGS="$save_CFLAGS" | 
 | 7119 |      CC="$ac_save_cc" | 
 | 7120 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | 
 | 7121 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | 
 | 7122 |  | 
 | 7123 |     if test $ac_cv_enable_sign_compare_warning = yes | 
 | 7124 |     then | 
 | 7125 |       BASECFLAGS="$BASECFLAGS -Wsign-compare" | 
 | 7126 |     fi | 
 | 7127 |  | 
 | 7128 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | 
 | 7129 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | 
 | 7130 |      ac_save_cc="$CC" | 
 | 7131 |      CC="$CC -Wunreachable-code" | 
 | 7132 |      save_CFLAGS="$CFLAGS" | 
 | 7133 |      if ${ac_cv_enable_unreachable_code_warning+:} false; then : | 
 | 7134 |   $as_echo_n "(cached) " >&6 | 
 | 7135 | else | 
 | 7136 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7137 | /* end confdefs.h.  */ | 
 | 7138 |  | 
 | 7139 |  | 
 | 7140 | int | 
 | 7141 | main () | 
 | 7142 | { | 
 | 7143 |  | 
 | 7144 |   ; | 
 | 7145 |   return 0; | 
 | 7146 | } | 
 | 7147 |  | 
 | 7148 | _ACEOF | 
 | 7149 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7150 |  | 
 | 7151 |            ac_cv_enable_unreachable_code_warning=yes | 
 | 7152 |  | 
 | 7153 | else | 
 | 7154 |  | 
 | 7155 |            ac_cv_enable_unreachable_code_warning=no | 
 | 7156 |  | 
 | 7157 | fi | 
 | 7158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7159 | fi | 
 | 7160 |  | 
 | 7161 |      CFLAGS="$save_CFLAGS" | 
 | 7162 |      CC="$ac_save_cc" | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7163 |  | 
 | 7164 |     # Don't enable unreachable code warning in debug mode, since it usually | 
 | 7165 |     # results in non-standard code paths. | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7166 |     # Issue #24324: Unfortunately, the unreachable code warning does not work | 
 | 7167 |     # correctly on gcc and has been silently removed from the compiler. | 
 | 7168 |     # It is supported on clang but on OS X systems gcc may be an alias | 
 | 7169 |     # for clang.  Try to determine if the compiler is not really gcc and, | 
 | 7170 |     # if so, only then enable the warning. | 
 | 7171 |     if test $ac_cv_enable_unreachable_code_warning = yes && \ | 
 | 7172 |         test "$Py_DEBUG" != "true" && \ | 
 | 7173 |         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] | 7174 |     then | 
 | 7175 |       BASECFLAGS="$BASECFLAGS -Wunreachable-code" | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7176 |     else | 
 | 7177 |       ac_cv_enable_unreachable_code_warning=no | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7178 |     fi | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7179 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 | 
 | 7180 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7181 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7182 |     # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
 | 7183 |     # support.  Without this, treatment of subnormals doesn't follow | 
 | 7184 |     # the standard. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7185 |     case $host in | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7186 |          alpha*) | 
 | 7187 |                 BASECFLAGS="$BASECFLAGS -mieee" | 
 | 7188 |                 ;; | 
 | 7189 |     esac | 
 | 7190 |  | 
 | 7191 |     case $ac_sys_system in | 
 | 7192 | 	SCO_SV*) | 
 | 7193 | 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
 | 7194 | 	    ;; | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7195 |  | 
 | 7196 |     # is there any other compiler on Darwin besides gcc? | 
 | 7197 |     Darwin*) | 
 | 7198 |         # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
 | 7199 |         # used to be here, but non-Apple gcc doesn't accept them. | 
 | 7200 |         if test "${CC}" = gcc | 
 | 7201 |         then | 
 | 7202 |             { $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] | 7203 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7204 |             case "${UNIVERSALSDK}" in | 
 | 7205 |             */MacOSX10.4u.sdk) | 
 | 7206 |                 # Build using 10.4 SDK, force usage of gcc when the | 
 | 7207 |                 # compiler is gcc, otherwise the user will get very | 
 | 7208 |                 # confusing error messages when building on OSX 10.6 | 
 | 7209 |                 CC=gcc-4.0 | 
 | 7210 |                 CPP=cpp-4.0 | 
 | 7211 |                 ;; | 
 | 7212 |             esac | 
 | 7213 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7214 | $as_echo "$CC" >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7215 |         fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7216 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7217 |         if test "${enable_universalsdk}" | 
 | 7218 |         then | 
 | 7219 |             case "$UNIVERSAL_ARCHS" in | 
 | 7220 |             32-bit) | 
 | 7221 |                UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
 | 7222 |                LIPO_32BIT_FLAGS="" | 
 | 7223 |                ARCH_RUN_32BIT="" | 
 | 7224 |                ;; | 
 | 7225 |             64-bit) | 
 | 7226 |                UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
 | 7227 |                LIPO_32BIT_FLAGS="" | 
 | 7228 |                ARCH_RUN_32BIT="true" | 
 | 7229 |                ;; | 
 | 7230 |             all) | 
 | 7231 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
 | 7232 |                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
 | 7233 |                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
 | 7234 |                ;; | 
 | 7235 |             intel) | 
 | 7236 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
 | 7237 |                LIPO_32BIT_FLAGS="-extract i386" | 
 | 7238 |                ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
 | 7239 |                ;; | 
 | 7240 |             intel-32) | 
 | 7241 |                UNIVERSAL_ARCH_FLAGS="-arch i386" | 
 | 7242 |                LIPO_32BIT_FLAGS="" | 
 | 7243 |                ARCH_RUN_32BIT="" | 
 | 7244 |                ;; | 
 | 7245 |             3-way) | 
 | 7246 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
 | 7247 |                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
 | 7248 |                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
 | 7249 |                ;; | 
 | 7250 |             *) | 
 | 7251 |                as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
 | 7252 |                ;; | 
 | 7253 |             esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7254 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7255 |             CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
 | 7256 |             LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
 | 7257 |             if test "${UNIVERSALSDK}" != "/" | 
 | 7258 |             then | 
 | 7259 |                 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
 | 7260 |             fi | 
 | 7261 |         fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7262 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7263 |         # Calculate an appropriate deployment target for this build: | 
 | 7264 |         # The deployment target value is used explicitly to enable certain | 
 | 7265 |         # features are enabled (such as builtin libedit support for readline) | 
| Martin Panter | 0be894b | 2016-09-07 12:03:06 +0000 | [diff] [blame] | 7266 |         # 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] | 7267 |         # component of the string returned by distutils.get_platform(). | 
 | 7268 |         # | 
 | 7269 |         # Use the value from: | 
 | 7270 |         # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | 
 | 7271 |         # 2. the operating system version of the build machine if >= 10.6 | 
 | 7272 |         # 3. If running on OS X 10.3 through 10.5, use the legacy tests | 
 | 7273 |         #       below to pick either 10.3, 10.4, or 10.5 as the target. | 
 | 7274 |         # 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] | 7275 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7276 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 | 
 | 7277 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7278 |         cur_target_major=`sw_vers -productVersion | \ | 
 | 7279 |                 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
 | 7280 |         cur_target_minor=`sw_vers -productVersion | \ | 
 | 7281 |                 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
 | 7282 |         cur_target="${cur_target_major}.${cur_target_minor}" | 
 | 7283 |         if test ${cur_target_major} -eq 10 && \ | 
 | 7284 |            test ${cur_target_minor} -ge 3 && \ | 
 | 7285 |            test ${cur_target_minor} -le 5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7286 |         then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7287 |             # OS X 10.3 through 10.5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7288 |             cur_target=10.3 | 
 | 7289 |             if test ${enable_universalsdk} | 
 | 7290 |             then | 
 | 7291 |                 case "$UNIVERSAL_ARCHS" in | 
 | 7292 |                 all|3-way|intel|64-bit) | 
 | 7293 |                     # These configurations were first supported in 10.5 | 
 | 7294 |                     cur_target='10.5' | 
 | 7295 |                     ;; | 
 | 7296 |                 esac | 
 | 7297 |             else | 
 | 7298 |                 if test `/usr/bin/arch` = "i386" | 
 | 7299 |                 then | 
 | 7300 |                     # 10.4 was the first release to support Intel archs | 
 | 7301 |                     cur_target="10.4" | 
 | 7302 |                 fi | 
 | 7303 |             fi | 
 | 7304 |         fi | 
 | 7305 |         CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7306 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7307 |         # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
 | 7308 |         # environment with a value that is the same as what we'll use | 
 | 7309 |         # in the Makefile to ensure that we'll get the same compiler | 
 | 7310 |         # environment during configure and build time. | 
 | 7311 |         MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
 | 7312 |         export MACOSX_DEPLOYMENT_TARGET | 
 | 7313 |         EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
 | 7314 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | 
 | 7315 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7316 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7317 |         # end of Darwin* tests | 
 | 7318 |         ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7319 |     esac | 
 | 7320 |     ;; | 
 | 7321 |  | 
 | 7322 | *) | 
 | 7323 |     case $ac_sys_system in | 
 | 7324 |     OpenUNIX*|UnixWare*) | 
 | 7325 | 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
 | 7326 | 	;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7327 |     SCO_SV*) | 
 | 7328 | 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
 | 7329 | 	;; | 
 | 7330 |     esac | 
 | 7331 |     ;; | 
 | 7332 | esac | 
 | 7333 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7334 | # ICC needs -fp-model strict or floats behave badly | 
 | 7335 | case "$CC" in | 
 | 7336 | *icc*) | 
 | 7337 |     CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | 
 | 7338 |     ;; | 
 | 7339 | esac | 
 | 7340 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7341 | if test "$Py_DEBUG" = 'true'; then | 
 | 7342 |   : | 
 | 7343 | else | 
 | 7344 |   OPT="-DNDEBUG $OPT" | 
 | 7345 | fi | 
 | 7346 |  | 
 | 7347 | if test "$ac_arch_flags" | 
 | 7348 | then | 
 | 7349 | 	BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
 | 7350 | fi | 
 | 7351 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7352 | # On some compilers, pthreads are available without further options | 
 | 7353 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
 | 7354 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
 | 7355 | # So we have to see first whether pthreads are available without | 
 | 7356 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
 | 7358 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7359 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7360 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7361 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7362 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7363 |   ac_cv_pthread_is_default=no | 
 | 7364 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7365 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7366 | /* end confdefs.h.  */ | 
 | 7367 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7368 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7369 | #include <pthread.h> | 
 | 7370 |  | 
 | 7371 | void* routine(void* p){return NULL;} | 
 | 7372 |  | 
 | 7373 | int main(){ | 
 | 7374 |   pthread_t p; | 
 | 7375 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7376 |     return 1; | 
 | 7377 |   (void)pthread_detach(p); | 
 | 7378 |   return 0; | 
 | 7379 | } | 
 | 7380 |  | 
 | 7381 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7382 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7383 |  | 
 | 7384 |   ac_cv_pthread_is_default=yes | 
 | 7385 |   ac_cv_kthread=no | 
 | 7386 |   ac_cv_pthread=no | 
 | 7387 |  | 
 | 7388 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7389 |   ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7390 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7391 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7392 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7393 | fi | 
 | 7394 |  | 
 | 7395 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7396 | fi | 
 | 7397 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
 | 7399 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7400 |  | 
 | 7401 |  | 
 | 7402 | if test $ac_cv_pthread_is_default = yes | 
 | 7403 | then | 
 | 7404 |   ac_cv_kpthread=no | 
 | 7405 | else | 
 | 7406 | # -Kpthread, if available, provides the right #defines | 
 | 7407 | # and linker options to make pthread_create available | 
 | 7408 | # Some compilers won't report that they do not support -Kpthread, | 
 | 7409 | # so we need to run a program to see whether it really made the | 
 | 7410 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
 | 7412 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7413 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7414 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7415 | else | 
 | 7416 |   ac_save_cc="$CC" | 
 | 7417 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7418 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7419 |   ac_cv_kpthread=no | 
 | 7420 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7421 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7422 | /* end confdefs.h.  */ | 
 | 7423 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7424 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7425 | #include <pthread.h> | 
 | 7426 |  | 
 | 7427 | void* routine(void* p){return NULL;} | 
 | 7428 |  | 
 | 7429 | int main(){ | 
 | 7430 |   pthread_t p; | 
 | 7431 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7432 |     return 1; | 
 | 7433 |   (void)pthread_detach(p); | 
 | 7434 |   return 0; | 
 | 7435 | } | 
 | 7436 |  | 
 | 7437 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7438 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7439 |   ac_cv_kpthread=yes | 
 | 7440 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7441 |   ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7442 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7443 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7444 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7445 | fi | 
 | 7446 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7447 | CC="$ac_save_cc" | 
 | 7448 | fi | 
 | 7449 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
 | 7451 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7452 | fi | 
 | 7453 |  | 
 | 7454 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
 | 7455 | then | 
 | 7456 | # -Kthread, if available, provides the right #defines | 
 | 7457 | # and linker options to make pthread_create available | 
 | 7458 | # Some compilers won't report that they do not support -Kthread, | 
 | 7459 | # so we need to run a program to see whether it really made the | 
 | 7460 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
 | 7462 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7463 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7464 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7465 | else | 
 | 7466 |   ac_save_cc="$CC" | 
 | 7467 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7468 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7469 |   ac_cv_kthread=no | 
 | 7470 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7471 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7472 | /* end confdefs.h.  */ | 
 | 7473 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7474 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7475 | #include <pthread.h> | 
 | 7476 |  | 
 | 7477 | void* routine(void* p){return NULL;} | 
 | 7478 |  | 
 | 7479 | int main(){ | 
 | 7480 |   pthread_t p; | 
 | 7481 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7482 |     return 1; | 
 | 7483 |   (void)pthread_detach(p); | 
 | 7484 |   return 0; | 
 | 7485 | } | 
 | 7486 |  | 
 | 7487 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7488 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7489 |   ac_cv_kthread=yes | 
 | 7490 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7491 |   ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7492 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7493 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7494 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7495 | fi | 
 | 7496 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7497 | CC="$ac_save_cc" | 
 | 7498 | fi | 
 | 7499 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
 | 7501 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7502 | fi | 
 | 7503 |  | 
 | 7504 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
 | 7505 | then | 
 | 7506 | # -pthread, if available, provides the right #defines | 
 | 7507 | # and linker options to make pthread_create available | 
 | 7508 | # Some compilers won't report that they do not support -pthread, | 
 | 7509 | # so we need to run a program to see whether it really made the | 
 | 7510 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
 | 7512 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7513 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7514 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7515 | else | 
 | 7516 |   ac_save_cc="$CC" | 
 | 7517 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7518 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7519 |   ac_cv_pthread=no | 
 | 7520 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7521 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7522 | /* end confdefs.h.  */ | 
 | 7523 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7524 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7525 | #include <pthread.h> | 
 | 7526 |  | 
 | 7527 | void* routine(void* p){return NULL;} | 
 | 7528 |  | 
 | 7529 | int main(){ | 
 | 7530 |   pthread_t p; | 
 | 7531 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7532 |     return 1; | 
 | 7533 |   (void)pthread_detach(p); | 
 | 7534 |   return 0; | 
 | 7535 | } | 
 | 7536 |  | 
 | 7537 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7538 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7539 |   ac_cv_pthread=yes | 
 | 7540 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7541 |   ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7542 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7543 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7544 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7545 | fi | 
 | 7546 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7547 | CC="$ac_save_cc" | 
 | 7548 | fi | 
 | 7549 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
 | 7551 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7552 | fi | 
 | 7553 |  | 
 | 7554 | # If we have set a CC compiler flag for thread support then | 
 | 7555 | # check if it works for CXX, too. | 
 | 7556 | ac_cv_cxx_thread=no | 
 | 7557 | if test ! -z "$CXX" | 
 | 7558 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
 | 7560 | $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] | 7561 | ac_save_cxx="$CXX" | 
 | 7562 |  | 
 | 7563 | if test "$ac_cv_kpthread" = "yes" | 
 | 7564 | then | 
 | 7565 |   CXX="$CXX -Kpthread" | 
 | 7566 |   ac_cv_cxx_thread=yes | 
 | 7567 | elif test "$ac_cv_kthread" = "yes" | 
 | 7568 | then | 
 | 7569 |   CXX="$CXX -Kthread" | 
 | 7570 |   ac_cv_cxx_thread=yes | 
 | 7571 | elif test "$ac_cv_pthread" = "yes" | 
 | 7572 | then | 
 | 7573 |   CXX="$CXX -pthread" | 
 | 7574 |   ac_cv_cxx_thread=yes | 
 | 7575 | fi | 
 | 7576 |  | 
 | 7577 | if test $ac_cv_cxx_thread = yes | 
 | 7578 | then | 
 | 7579 |   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
 | 7580 |   $CXX -c conftest.$ac_ext 2>&5 | 
 | 7581 |   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
 | 7582 |      && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
 | 7583 |   then | 
 | 7584 |     ac_cv_cxx_thread=yes | 
 | 7585 |   else | 
 | 7586 |     ac_cv_cxx_thread=no | 
 | 7587 |   fi | 
 | 7588 |   rm -fr conftest* | 
 | 7589 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
 | 7591 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7592 | fi | 
 | 7593 | CXX="$ac_save_cxx" | 
 | 7594 |  | 
 | 7595 |  | 
 | 7596 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 7598 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7599 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7600 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7601 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7602 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7603 | /* end confdefs.h.  */ | 
 | 7604 | #include <stdlib.h> | 
 | 7605 | #include <stdarg.h> | 
 | 7606 | #include <string.h> | 
 | 7607 | #include <float.h> | 
 | 7608 |  | 
 | 7609 | int | 
 | 7610 | main () | 
 | 7611 | { | 
 | 7612 |  | 
 | 7613 |   ; | 
 | 7614 |   return 0; | 
 | 7615 | } | 
 | 7616 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7617 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7618 |   ac_cv_header_stdc=yes | 
 | 7619 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7620 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7621 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7623 |  | 
 | 7624 | if test $ac_cv_header_stdc = yes; then | 
 | 7625 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7626 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7627 | /* end confdefs.h.  */ | 
 | 7628 | #include <string.h> | 
 | 7629 |  | 
 | 7630 | _ACEOF | 
 | 7631 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7632 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 7633 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7634 | else | 
 | 7635 |   ac_cv_header_stdc=no | 
 | 7636 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7637 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7638 |  | 
 | 7639 | fi | 
 | 7640 |  | 
 | 7641 | if test $ac_cv_header_stdc = yes; then | 
 | 7642 |   # 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] | 7643 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7644 | /* end confdefs.h.  */ | 
 | 7645 | #include <stdlib.h> | 
 | 7646 |  | 
 | 7647 | _ACEOF | 
 | 7648 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7649 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 7650 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7651 | else | 
 | 7652 |   ac_cv_header_stdc=no | 
 | 7653 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7654 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7655 |  | 
 | 7656 | fi | 
 | 7657 |  | 
 | 7658 | if test $ac_cv_header_stdc = yes; then | 
 | 7659 |   # /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] | 7660 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7661 |   : | 
 | 7662 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7663 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7664 | /* end confdefs.h.  */ | 
 | 7665 | #include <ctype.h> | 
 | 7666 | #include <stdlib.h> | 
 | 7667 | #if ((' ' & 0x0FF) == 0x020) | 
 | 7668 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 7669 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 7670 | #else | 
 | 7671 | # define ISLOWER(c) \ | 
 | 7672 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 7673 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 7674 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 7675 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 7676 | #endif | 
 | 7677 |  | 
 | 7678 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 7679 | int | 
 | 7680 | main () | 
 | 7681 | { | 
 | 7682 |   int i; | 
 | 7683 |   for (i = 0; i < 256; i++) | 
 | 7684 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 7685 | 	|| toupper (i) != TOUPPER (i)) | 
 | 7686 |       return 2; | 
 | 7687 |   return 0; | 
 | 7688 | } | 
 | 7689 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7690 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 7691 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7692 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7693 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7694 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7695 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7696 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7697 | fi | 
 | 7698 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7699 | fi | 
 | 7700 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 7702 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7703 | if test $ac_cv_header_stdc = yes; then | 
 | 7704 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7705 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7706 |  | 
 | 7707 | fi | 
 | 7708 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7709 | 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] | 7710 | fcntl.h grp.h \ | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7711 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ | 
| Benjamin Peterson | 94b580d | 2011-08-02 17:30:04 -0500 | [diff] [blame] | 7712 | 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] | 7713 | unistd.h utime.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7714 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ | 
| Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7715 | 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] | 7716 | 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] | 7717 | 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] | 7718 | 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] | 7719 | 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] | 7720 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 7721 | 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] | 7722 | sys/endian.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7723 | do : | 
 | 7724 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 7725 | 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] | 7726 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7727 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7728 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7729 | _ACEOF | 
 | 7730 |  | 
 | 7731 | fi | 
 | 7732 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7733 | done | 
 | 7734 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7735 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7736 | 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] | 7737 |   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 7738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
 | 7739 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7740 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7741 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7742 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7743 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7744 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7745 | #include <sys/types.h> | 
 | 7746 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7747 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7748 | int | 
 | 7749 | main () | 
 | 7750 | { | 
 | 7751 | if ((DIR *) 0) | 
 | 7752 | return 0; | 
 | 7753 |   ; | 
 | 7754 |   return 0; | 
 | 7755 | } | 
 | 7756 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7757 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7758 |   eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7759 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7760 |   eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7761 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7763 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7764 | eval ac_res=\$$as_ac_Header | 
 | 7765 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 7766 | $as_echo "$ac_res" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7767 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7768 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7769 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7770 | _ACEOF | 
 | 7771 |  | 
 | 7772 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7773 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7774 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7775 | done | 
 | 7776 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 7777 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7778 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 7779 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7780 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7781 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7782 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7783 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7785 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7786 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7787 | /* Override any GCC internal prototype to avoid an error. | 
 | 7788 |    Use char because int might match the return type of a GCC | 
 | 7789 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7790 | #ifdef __cplusplus | 
 | 7791 | extern "C" | 
 | 7792 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7793 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7794 | int | 
 | 7795 | main () | 
 | 7796 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7797 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7798 |   ; | 
 | 7799 |   return 0; | 
 | 7800 | } | 
 | 7801 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7802 | for ac_lib in '' dir; do | 
 | 7803 |   if test -z "$ac_lib"; then | 
 | 7804 |     ac_res="none required" | 
 | 7805 |   else | 
 | 7806 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7807 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7808 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7809 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7810 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7811 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7812 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7813 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7814 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7815 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7816 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7817 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7818 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7819 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7820 | else | 
 | 7821 |   ac_cv_search_opendir=no | 
 | 7822 | fi | 
 | 7823 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7824 | LIBS=$ac_func_search_save_LIBS | 
 | 7825 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 7827 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7828 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7829 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7830 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7831 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7832 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7833 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7834 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7835 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 7836 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7837 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7838 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7839 | else | 
 | 7840 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7842 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7843 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7844 | /* Override any GCC internal prototype to avoid an error. | 
 | 7845 |    Use char because int might match the return type of a GCC | 
 | 7846 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7847 | #ifdef __cplusplus | 
 | 7848 | extern "C" | 
 | 7849 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7850 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7851 | int | 
 | 7852 | main () | 
 | 7853 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7854 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7855 |   ; | 
 | 7856 |   return 0; | 
 | 7857 | } | 
 | 7858 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7859 | for ac_lib in '' x; do | 
 | 7860 |   if test -z "$ac_lib"; then | 
 | 7861 |     ac_res="none required" | 
 | 7862 |   else | 
 | 7863 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7864 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7865 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7866 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7867 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7868 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7869 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7870 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7871 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7872 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7873 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7874 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7875 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7876 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7877 | else | 
 | 7878 |   ac_cv_search_opendir=no | 
 | 7879 | fi | 
 | 7880 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7881 | LIBS=$ac_func_search_save_LIBS | 
 | 7882 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 7884 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7885 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7886 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7887 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7888 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7889 | fi | 
 | 7890 |  | 
 | 7891 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7892 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
 | 7894 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7895 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7896 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7897 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7898 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7899 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7900 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7901 | int | 
 | 7902 | main () | 
 | 7903 | { | 
 | 7904 | return makedev(0, 0); | 
 | 7905 |   ; | 
 | 7906 |   return 0; | 
 | 7907 | } | 
 | 7908 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7909 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7910 |   ac_cv_header_sys_types_h_makedev=yes | 
 | 7911 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7912 |   ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7913 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7914 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7915 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7916 |  | 
 | 7917 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
 | 7919 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7920 |  | 
 | 7921 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7922 | 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] | 7923 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7924 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7925 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7926 |  | 
 | 7927 | fi | 
 | 7928 |  | 
 | 7929 |  | 
 | 7930 |  | 
 | 7931 |   if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7932 |     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] | 7933 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7934 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7935 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7936 |  | 
 | 7937 | fi | 
 | 7938 |  | 
 | 7939 |  | 
 | 7940 |   fi | 
 | 7941 | fi | 
 | 7942 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7943 |  | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7944 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. | 
 | 7945 | for ac_header in net/if.h | 
 | 7946 | do : | 
 | 7947 |   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | 
 | 7948 | #ifdef STDC_HEADERS | 
 | 7949 | # include <stdlib.h> | 
 | 7950 | # include <stddef.h> | 
 | 7951 | #else | 
 | 7952 | # ifdef HAVE_STDLIB_H | 
 | 7953 | #  include <stdlib.h> | 
 | 7954 | # endif | 
 | 7955 | #endif | 
 | 7956 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7957 | # include <sys/socket.h> | 
 | 7958 | #endif | 
 | 7959 |  | 
 | 7960 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7961 | if test "x$ac_cv_header_net_if_h" = xyes; then : | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7962 |   cat >>confdefs.h <<_ACEOF | 
 | 7963 | #define HAVE_NET_IF_H 1 | 
 | 7964 | _ACEOF | 
 | 7965 |  | 
 | 7966 | fi | 
 | 7967 |  | 
 | 7968 | done | 
 | 7969 |  | 
 | 7970 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7971 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7972 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7973 | do : | 
 | 7974 |   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] | 7975 | #ifdef HAVE_ASM_TYPES_H | 
 | 7976 | #include <asm/types.h> | 
 | 7977 | #endif | 
 | 7978 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7979 | #include <sys/socket.h> | 
 | 7980 | #endif | 
 | 7981 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7982 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7983 | 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] | 7984 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7985 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7986 | _ACEOF | 
 | 7987 |  | 
 | 7988 | fi | 
 | 7989 |  | 
 | 7990 | done | 
 | 7991 |  | 
 | 7992 |  | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 7993 | # 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] | 7994 | 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] | 7995 | do : | 
 | 7996 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 7997 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | 
 | 7998 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7999 | #include <sys/socket.h> | 
 | 8000 | #endif | 
 | 8001 |  | 
 | 8002 | " | 
 | 8003 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
 | 8004 |   cat >>confdefs.h <<_ACEOF | 
 | 8005 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 8006 | _ACEOF | 
 | 8007 |  | 
 | 8008 | fi | 
 | 8009 |  | 
 | 8010 | done | 
 | 8011 |  | 
 | 8012 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8013 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8014 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
 | 8016 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
 | 8017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8018 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8019 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8020 |  | 
 | 8021 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8023 |   $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8024 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8025 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8026 |  | 
 | 8027 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8028 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8029 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8030 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8031 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8032 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8033 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 8035 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8036 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
 | 8038 | $as_echo_n "checking for makedev... " >&6; } | 
 | 8039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8040 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8041 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8042 | #if defined(MAJOR_IN_MKDEV) | 
 | 8043 | #include <sys/mkdev.h> | 
 | 8044 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 8045 | #include <sys/sysmacros.h> | 
 | 8046 | #else | 
 | 8047 | #include <sys/types.h> | 
 | 8048 | #endif | 
 | 8049 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8050 | int | 
 | 8051 | main () | 
 | 8052 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8053 |  | 
 | 8054 |   makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8055 |   ; | 
 | 8056 |   return 0; | 
 | 8057 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8058 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8059 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8060 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8061 |   ac_cv_has_makedev=yes | 
 | 8062 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8063 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8064 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8065 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8066 |     conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
 | 8068 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8069 | if test "$ac_cv_has_makedev" = "yes"; then | 
 | 8070 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8071 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8072 |  | 
 | 8073 | fi | 
 | 8074 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8075 | # byte swapping | 
 | 8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | 
 | 8077 | $as_echo_n "checking for le64toh... " >&6; } | 
 | 8078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8079 | /* end confdefs.h.  */ | 
 | 8080 |  | 
 | 8081 | #ifdef HAVE_ENDIAN_H | 
 | 8082 | #include <endian.h> | 
 | 8083 | #elif defined(HAVE_SYS_ENDIAN_H) | 
 | 8084 | #include <sys/endian.h> | 
 | 8085 | #endif | 
 | 8086 |  | 
 | 8087 | int | 
 | 8088 | main () | 
 | 8089 | { | 
 | 8090 |  | 
 | 8091 |    le64toh(1) | 
 | 8092 |   ; | 
 | 8093 |   return 0; | 
 | 8094 | } | 
 | 8095 |  | 
 | 8096 | _ACEOF | 
 | 8097 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 8098 |   ac_cv_has_le64toh=yes | 
 | 8099 | else | 
 | 8100 |   ac_cv_has_le64toh=no | 
 | 8101 | fi | 
 | 8102 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8103 |     conftest$ac_exeext conftest.$ac_ext | 
 | 8104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | 
 | 8105 | $as_echo "$ac_cv_has_le64toh" >&6; } | 
 | 8106 | if test "$ac_cv_has_le64toh" = "yes"; then | 
 | 8107 |  | 
 | 8108 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | 
 | 8109 |  | 
 | 8110 | fi | 
 | 8111 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8112 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
 | 8113 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
 | 8114 | # defined, but the compiler does not support pragma redefine_extname, | 
 | 8115 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
 | 8116 | # structures (such as rlimit64) without declaring them. As a | 
 | 8117 | # work-around, disable LFS on such configurations | 
 | 8118 |  | 
 | 8119 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
 | 8121 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
 | 8122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8123 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8124 |  | 
 | 8125 | #define _LARGEFILE_SOURCE 1 | 
 | 8126 | #define _FILE_OFFSET_BITS 64 | 
 | 8127 | #include <sys/resource.h> | 
 | 8128 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8129 | int | 
 | 8130 | main () | 
 | 8131 | { | 
 | 8132 | struct rlimit foo; | 
 | 8133 |   ; | 
 | 8134 |   return 0; | 
 | 8135 | } | 
 | 8136 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8137 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8138 |   sol_lfs_bug=no | 
 | 8139 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8140 |   sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8141 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
 | 8144 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8145 | if test "$sol_lfs_bug" = "yes"; then | 
 | 8146 |   use_lfs=no | 
 | 8147 | fi | 
 | 8148 |  | 
 | 8149 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8150 | # Two defines needed to enable largefile support on various platforms | 
 | 8151 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8152 | case $ac_sys_system/$ac_sys_release in | 
 | 8153 | AIX*) | 
 | 8154 |  | 
 | 8155 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
 | 8156 |  | 
 | 8157 |     ;; | 
 | 8158 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8159 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8160 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8161 |  | 
 | 8162 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8163 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8164 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8165 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8166 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8167 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 8168 | cat >> confdefs.h <<\EOF | 
 | 8169 | #if defined(SCO_DS) | 
 | 8170 | #undef _OFF_T | 
 | 8171 | #endif | 
 | 8172 | EOF | 
 | 8173 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8174 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8175 | 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] | 8176 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8177 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8178 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 |  | 
 | 8180 | cat >>confdefs.h <<_ACEOF | 
 | 8181 | #define mode_t int | 
 | 8182 | _ACEOF | 
 | 8183 |  | 
 | 8184 | fi | 
 | 8185 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8186 | 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] | 8187 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8188 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8189 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8190 |  | 
 | 8191 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8192 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8193 | _ACEOF | 
 | 8194 |  | 
 | 8195 | fi | 
 | 8196 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8197 | 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] | 8198 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8199 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8200 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8201 |  | 
 | 8202 | cat >>confdefs.h <<_ACEOF | 
 | 8203 | #define pid_t int | 
 | 8204 | _ACEOF | 
 | 8205 |  | 
 | 8206 | fi | 
 | 8207 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8208 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8209 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 8210 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8211 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8212 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8213 | 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] | 8214 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8215 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8216 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8217 |  | 
 | 8218 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8219 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8220 | _ACEOF | 
 | 8221 |  | 
 | 8222 | fi | 
 | 8223 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
 | 8225 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8226 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8227 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8228 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8229 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8230 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8231 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 |  | 
 | 8233 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8235 |   $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8236 |   ac_cv_type_uid_t=yes | 
 | 8237 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8238 |   ac_cv_type_uid_t=no | 
 | 8239 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8240 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8241 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8242 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
 | 8244 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8245 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8246 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8247 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8248 |  | 
 | 8249 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8250 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8251 |  | 
 | 8252 | fi | 
 | 8253 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8254 |  | 
 | 8255 | # There are two separate checks for each of the exact-width integer types we | 
 | 8256 | # need.  First we check whether the type is available using the usual | 
 | 8257 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> | 
 | 8258 | # and <stdint.h> where available).  We then also use the special type checks of | 
 | 8259 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available | 
 | 8260 | # directly, #define's uint32_t to be a suitable type. | 
 | 8261 |  | 
 | 8262 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | 
 | 8263 | if test "x$ac_cv_type_uint32_t" = xyes; then : | 
 | 8264 |  | 
 | 8265 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h | 
 | 8266 |  | 
 | 8267 | fi | 
 | 8268 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8269 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
 | 8270 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8271 |   no|yes) ;; #( | 
 | 8272 |   *) | 
 | 8273 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8274 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8275 |  | 
 | 8276 |  | 
 | 8277 | cat >>confdefs.h <<_ACEOF | 
 | 8278 | #define uint32_t $ac_cv_c_uint32_t | 
 | 8279 | _ACEOF | 
 | 8280 | ;; | 
 | 8281 |   esac | 
 | 8282 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8283 |  | 
 | 8284 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" | 
 | 8285 | if test "x$ac_cv_type_uint64_t" = xyes; then : | 
 | 8286 |  | 
 | 8287 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h | 
 | 8288 |  | 
 | 8289 | fi | 
 | 8290 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8291 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
 | 8292 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8293 |   no|yes) ;; #( | 
 | 8294 |   *) | 
 | 8295 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8296 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8297 |  | 
 | 8298 |  | 
 | 8299 | cat >>confdefs.h <<_ACEOF | 
 | 8300 | #define uint64_t $ac_cv_c_uint64_t | 
 | 8301 | _ACEOF | 
 | 8302 | ;; | 
 | 8303 |   esac | 
 | 8304 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8305 |  | 
 | 8306 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" | 
 | 8307 | if test "x$ac_cv_type_int32_t" = xyes; then : | 
 | 8308 |  | 
 | 8309 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h | 
 | 8310 |  | 
 | 8311 | fi | 
 | 8312 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8313 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
 | 8314 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8315 |   no|yes) ;; #( | 
 | 8316 |   *) | 
 | 8317 |  | 
 | 8318 | cat >>confdefs.h <<_ACEOF | 
 | 8319 | #define int32_t $ac_cv_c_int32_t | 
 | 8320 | _ACEOF | 
 | 8321 | ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8322 | esac | 
 | 8323 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8324 |  | 
 | 8325 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" | 
 | 8326 | if test "x$ac_cv_type_int64_t" = xyes; then : | 
 | 8327 |  | 
 | 8328 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | 
 | 8329 |  | 
 | 8330 | fi | 
 | 8331 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8332 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
 | 8333 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8334 |   no|yes) ;; #( | 
 | 8335 |   *) | 
 | 8336 |  | 
 | 8337 | cat >>confdefs.h <<_ACEOF | 
 | 8338 | #define int64_t $ac_cv_c_int64_t | 
 | 8339 | _ACEOF | 
 | 8340 | ;; | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 8341 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8342 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8343 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8344 | 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] | 8345 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8346 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8347 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8348 |  | 
 | 8349 | fi | 
 | 8350 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8351 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" | 
 | 8352 | if test "x$ac_cv_type___uint128_t" = xyes; then : | 
 | 8353 |  | 
 | 8354 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | 
 | 8355 |  | 
 | 8356 | fi | 
 | 8357 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8358 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8359 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8360 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8361 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8362 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8363 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8364 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
 | 8366 | $as_echo_n "checking size of int... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8367 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8368 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8369 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8370 |   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] | 8371 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8372 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8373 |   if test "$ac_cv_type_int" = yes; then | 
 | 8374 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8375 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8376 | as_fn_error 77 "cannot compute sizeof (int) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8377 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8378 |    else | 
 | 8379 |      ac_cv_sizeof_int=0 | 
 | 8380 |    fi | 
| 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 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8383 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
 | 8385 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8386 |  | 
 | 8387 |  | 
 | 8388 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8389 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8390 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8391 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8392 |  | 
 | 8393 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8394 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8395 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8396 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8397 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
 | 8399 | $as_echo_n "checking size of long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8400 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8401 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8402 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8403 |   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] | 8404 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8405 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8406 |   if test "$ac_cv_type_long" = yes; then | 
 | 8407 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8408 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8409 | as_fn_error 77 "cannot compute sizeof (long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8410 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8411 |    else | 
 | 8412 |      ac_cv_sizeof_long=0 | 
 | 8413 |    fi | 
| 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 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
 | 8418 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8419 |  | 
 | 8420 |  | 
 | 8421 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8422 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8423 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8425 |  | 
 | 8426 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8427 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8428 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8429 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8430 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
 | 8432 | $as_echo_n "checking size of void *... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8433 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8434 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8435 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8436 |   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] | 8437 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8438 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8439 |   if test "$ac_cv_type_void_p" = yes; then | 
 | 8440 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8442 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8443 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8444 |    else | 
 | 8445 |      ac_cv_sizeof_void_p=0 | 
 | 8446 |    fi | 
| 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 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8449 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
 | 8451 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8452 |  | 
 | 8453 |  | 
 | 8454 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8455 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8456 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8457 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8458 |  | 
 | 8459 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8460 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8461 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8462 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8463 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
 | 8465 | $as_echo_n "checking size of short... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8466 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8467 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8468 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8469 |   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] | 8470 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8472 |   if test "$ac_cv_type_short" = yes; then | 
 | 8473 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8474 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8475 | as_fn_error 77 "cannot compute sizeof (short) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8476 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8477 |    else | 
 | 8478 |      ac_cv_sizeof_short=0 | 
 | 8479 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8480 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8481 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
 | 8484 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8485 |  | 
 | 8486 |  | 
 | 8487 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8488 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8489 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8490 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8491 |  | 
 | 8492 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8493 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8494 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8495 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8496 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
 | 8498 | $as_echo_n "checking size of float... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8499 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8500 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8501 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8502 |   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] | 8503 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8504 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8505 |   if test "$ac_cv_type_float" = yes; then | 
 | 8506 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8507 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8508 | as_fn_error 77 "cannot compute sizeof (float) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8509 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8510 |    else | 
 | 8511 |      ac_cv_sizeof_float=0 | 
 | 8512 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8513 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8514 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8515 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
 | 8517 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8518 |  | 
 | 8519 |  | 
 | 8520 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8521 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8522 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8523 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8524 |  | 
 | 8525 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8526 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8527 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8528 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8529 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
 | 8531 | $as_echo_n "checking size of double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8532 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8533 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8535 |   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] | 8536 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8537 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8538 |   if test "$ac_cv_type_double" = yes; then | 
 | 8539 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8540 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8541 | as_fn_error 77 "cannot compute sizeof (double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8542 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8543 |    else | 
 | 8544 |      ac_cv_sizeof_double=0 | 
 | 8545 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8546 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8547 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8548 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
 | 8550 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8551 |  | 
 | 8552 |  | 
 | 8553 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8555 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8556 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8557 |  | 
 | 8558 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8559 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8560 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8561 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8562 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
 | 8564 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8565 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8566 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8567 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8568 |   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] | 8569 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8571 |   if test "$ac_cv_type_fpos_t" = yes; then | 
 | 8572 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8573 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8574 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8575 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8576 |    else | 
 | 8577 |      ac_cv_sizeof_fpos_t=0 | 
 | 8578 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8579 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8580 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8581 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
 | 8583 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8584 |  | 
 | 8585 |  | 
 | 8586 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8587 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8588 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8589 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8590 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8591 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8592 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8593 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8594 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8595 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
 | 8597 | $as_echo_n "checking size of size_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8598 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8599 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8600 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8601 |   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] | 8602 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8603 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8604 |   if test "$ac_cv_type_size_t" = yes; then | 
 | 8605 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8606 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8607 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8608 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8609 |    else | 
 | 8610 |      ac_cv_sizeof_size_t=0 | 
 | 8611 |    fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8612 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8613 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8614 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
 | 8616 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8617 |  | 
 | 8618 |  | 
 | 8619 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8620 | cat >>confdefs.h <<_ACEOF | 
 | 8621 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
 | 8622 | _ACEOF | 
 | 8623 |  | 
 | 8624 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8625 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8626 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8627 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8628 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
 | 8630 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8631 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8632 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8633 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8634 |   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] | 8635 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8636 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8637 |   if test "$ac_cv_type_pid_t" = yes; then | 
 | 8638 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8639 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8640 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8641 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8642 |    else | 
 | 8643 |      ac_cv_sizeof_pid_t=0 | 
 | 8644 |    fi | 
 | 8645 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8646 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8647 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
 | 8649 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8650 |  | 
 | 8651 |  | 
 | 8652 |  | 
 | 8653 | cat >>confdefs.h <<_ACEOF | 
 | 8654 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
 | 8655 | _ACEOF | 
 | 8656 |  | 
 | 8657 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8658 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
 | 8660 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8661 | have_long_long=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8663 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8664 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8665 | int | 
 | 8666 | main () | 
 | 8667 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8668 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8669 |   ; | 
 | 8670 |   return 0; | 
 | 8671 | } | 
 | 8672 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8673 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8674 |  | 
 | 8675 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8676 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8677 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8678 |   have_long_long=yes | 
 | 8679 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8680 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
 | 8683 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8684 | if test "$have_long_long" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8685 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8686 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8687 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8688 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
 | 8690 | $as_echo_n "checking size of long long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8691 | if ${ac_cv_sizeof_long_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8692 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8693 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8694 |   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] | 8695 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8696 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8697 |   if test "$ac_cv_type_long_long" = yes; then | 
 | 8698 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8699 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8700 | as_fn_error 77 "cannot compute sizeof (long long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8701 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8702 |    else | 
 | 8703 |      ac_cv_sizeof_long_long=0 | 
 | 8704 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8706 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8707 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
 | 8709 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8710 |  | 
 | 8711 |  | 
 | 8712 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8713 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8714 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8715 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8716 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8717 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8718 | fi | 
 | 8719 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
 | 8721 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8722 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8724 | /* end confdefs.h.  */ | 
 | 8725 |  | 
 | 8726 | int | 
 | 8727 | main () | 
 | 8728 | { | 
 | 8729 | long double x; x = (long double)0; | 
 | 8730 |   ; | 
 | 8731 |   return 0; | 
 | 8732 | } | 
 | 8733 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8734 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8735 |  | 
 | 8736 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8737 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8738 |  | 
 | 8739 |   have_long_double=yes | 
 | 8740 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8741 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
 | 8744 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8745 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8746 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8747 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8748 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8749 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
 | 8751 | $as_echo_n "checking size of long double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8752 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8753 |   $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8754 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8755 |   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] | 8756 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8757 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8758 |   if test "$ac_cv_type_long_double" = yes; then | 
 | 8759 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8760 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8761 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8762 | See \`config.log' for more details" "$LINENO" 5; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8763 |    else | 
 | 8764 |      ac_cv_sizeof_long_double=0 | 
 | 8765 |    fi | 
 | 8766 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8767 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8768 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
 | 8770 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8771 |  | 
 | 8772 |  | 
 | 8773 |  | 
 | 8774 | cat >>confdefs.h <<_ACEOF | 
 | 8775 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
 | 8776 | _ACEOF | 
 | 8777 |  | 
 | 8778 |  | 
 | 8779 | fi | 
 | 8780 |  | 
 | 8781 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
 | 8783 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8784 | have_c99_bool=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8786 | /* end confdefs.h.  */ | 
 | 8787 |  | 
 | 8788 | int | 
 | 8789 | main () | 
 | 8790 | { | 
 | 8791 | _Bool x; x = (_Bool)0; | 
 | 8792 |   ; | 
 | 8793 |   return 0; | 
 | 8794 | } | 
 | 8795 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8796 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8797 |  | 
 | 8798 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8799 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8800 |  | 
 | 8801 |   have_c99_bool=yes | 
 | 8802 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8803 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
 | 8806 | $as_echo "$have_c99_bool" >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8807 | if test "$have_c99_bool" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8808 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8809 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8810 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8811 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
 | 8813 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8814 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8815 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8816 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8817 |   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] | 8818 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8819 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8820 |   if test "$ac_cv_type__Bool" = yes; then | 
 | 8821 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8822 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8823 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8824 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8825 |    else | 
 | 8826 |      ac_cv_sizeof__Bool=0 | 
 | 8827 |    fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8828 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8829 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8830 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
 | 8832 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8833 |  | 
 | 8834 |  | 
 | 8835 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8836 | cat >>confdefs.h <<_ACEOF | 
 | 8837 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
 | 8838 | _ACEOF | 
 | 8839 |  | 
 | 8840 |  | 
 | 8841 | fi | 
 | 8842 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8843 | 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] | 8844 |         #include <stdint.h> | 
 | 8845 |         #endif | 
| Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 8846 |         #ifdef HAVE_INTTYPES_H | 
 | 8847 |         #include <inttypes.h> | 
 | 8848 |         #endif | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8849 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8850 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8851 |  | 
 | 8852 | cat >>confdefs.h <<_ACEOF | 
 | 8853 | #define HAVE_UINTPTR_T 1 | 
 | 8854 | _ACEOF | 
 | 8855 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8856 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8857 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8858 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8859 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
 | 8861 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8862 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8863 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8864 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8865 |   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] | 8866 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8867 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8868 |   if test "$ac_cv_type_uintptr_t" = yes; then | 
 | 8869 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8870 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8871 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8872 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8873 |    else | 
 | 8874 |      ac_cv_sizeof_uintptr_t=0 | 
 | 8875 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8877 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8878 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
 | 8880 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8881 |  | 
 | 8882 |  | 
 | 8883 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8884 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8885 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8886 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8887 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8888 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8889 | fi | 
 | 8890 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8891 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8892 | # The cast to long int works around a bug in the HP C Compiler | 
 | 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 off_t" >&5 | 
 | 8897 | $as_echo_n "checking size of off_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8898 | if ${ac_cv_sizeof_off_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 (off_t))" "ac_cv_sizeof_off_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8902 | #ifdef HAVE_SYS_TYPES_H | 
 | 8903 | #include <sys/types.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_off_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 (off_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_off_t=0 | 
 | 8916 |    fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8917 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8918 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +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_off_t" >&5 | 
 | 8921 | $as_echo "$ac_cv_sizeof_off_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 | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8926 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8928 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8929 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8930 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
 | 8932 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8933 | if test "$have_long_long" = yes | 
 | 8934 | then | 
 | 8935 | 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] | 8936 | 	"$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] | 8937 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8938 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8939 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8940 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8941 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8942 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8943 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8944 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8945 | fi | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8946 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8947 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8948 | $as_echo "no" >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8949 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8950 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8951 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8952 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8953 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8954 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
 | 8956 | $as_echo_n "checking size of time_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8957 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8958 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8959 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8960 |   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] | 8961 | #ifdef HAVE_SYS_TYPES_H | 
 | 8962 | #include <sys/types.h> | 
 | 8963 | #endif | 
 | 8964 | #ifdef HAVE_TIME_H | 
 | 8965 | #include <time.h> | 
 | 8966 | #endif | 
 | 8967 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8968 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8969 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8970 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8971 |   if test "$ac_cv_type_time_t" = yes; then | 
 | 8972 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8973 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8974 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8975 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8976 |    else | 
 | 8977 |      ac_cv_sizeof_time_t=0 | 
 | 8978 |    fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8979 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8980 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8981 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
 | 8983 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8984 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8985 |  | 
 | 8986 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8987 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8988 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8990 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8991 |  | 
 | 8992 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8993 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8994 | ac_save_cc="$CC" | 
 | 8995 | if test "$ac_cv_kpthread" = "yes" | 
 | 8996 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8997 | elif test "$ac_cv_kthread" = "yes" | 
 | 8998 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8999 | elif test "$ac_cv_pthread" = "yes" | 
 | 9000 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9001 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9002 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
 | 9004 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9005 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9007 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9008 |  | 
 | 9009 |   #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9010 | int | 
 | 9011 | main () | 
 | 9012 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9013 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9014 |   ; | 
 | 9015 |   return 0; | 
 | 9016 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9017 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9018 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9019 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9020 |   have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9021 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
 | 9024 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9025 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9026 |   # 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] | 9027 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 9028 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 9029 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
 | 9031 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9032 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9033 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9034 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9035 |   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] | 9036 | #ifdef HAVE_PTHREAD_H | 
 | 9037 | #include <pthread.h> | 
 | 9038 | #endif | 
 | 9039 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9040 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9041 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9042 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9043 |   if test "$ac_cv_type_pthread_t" = yes; then | 
 | 9044 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 9045 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9046 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9047 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9048 |    else | 
 | 9049 |      ac_cv_sizeof_pthread_t=0 | 
 | 9050 |    fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9051 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9052 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9053 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
 | 9055 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9056 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9057 |  | 
 | 9058 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9059 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9060 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9061 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9062 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9063 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9064 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9065 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9066 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9067 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9068 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9069 |   Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9070 |     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
 | 9071 |     ;; | 
 | 9072 |   Darwin/*) | 
 | 9073 |     OTHER_LIBTOOL_OPT="" | 
 | 9074 |     ;; | 
 | 9075 | esac | 
 | 9076 |  | 
 | 9077 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9078 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9079 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9080 |   Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9081 |     LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
 | 9082 |     if test "${enable_universalsdk}"; then | 
 | 9083 | 	    : | 
 | 9084 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9085 |         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9086 |     fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9087 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9088 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9089 |   Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 9090 |     gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9091 |     if test ${gcc_version} '<' 4.0 | 
 | 9092 |         then | 
 | 9093 |             LIBTOOL_CRUFT="-lcc_dynamic" | 
 | 9094 |         else | 
 | 9095 |             LIBTOOL_CRUFT="" | 
 | 9096 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9097 |     if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9098 |   ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9099 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9100 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9101 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9102 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9103 |     #include <unistd.h> | 
 | 9104 |     int main(int argc, char*argv[]) | 
 | 9105 |     { | 
 | 9106 |       if (sizeof(long) == 4) { | 
 | 9107 |     	  return 0; | 
 | 9108 |       } else { | 
 | 9109 |       	  return 1; | 
 | 9110 |       } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9111 |     } | 
 | 9112 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9113 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9114 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9115 |   ac_osx_32bit=yes | 
 | 9116 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9117 |   ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9118 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9119 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9120 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9121 | fi | 
 | 9122 |  | 
 | 9123 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9124 |     if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9125 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9126 |     	i386) | 
 | 9127 |     		MACOSX_DEFAULT_ARCH="i386" | 
 | 9128 |     		;; | 
 | 9129 |     	ppc) | 
 | 9130 |     		MACOSX_DEFAULT_ARCH="ppc" | 
 | 9131 |     		;; | 
 | 9132 |     	*) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9133 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9134 |     		;; | 
 | 9135 |     	esac | 
 | 9136 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9137 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9138 |     	i386) | 
 | 9139 |     		MACOSX_DEFAULT_ARCH="x86_64" | 
 | 9140 |     		;; | 
 | 9141 |     	ppc) | 
 | 9142 |     		MACOSX_DEFAULT_ARCH="ppc64" | 
 | 9143 |     		;; | 
 | 9144 |     	*) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9145 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9146 |     		;; | 
 | 9147 |     	esac | 
 | 9148 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9149 |     fi | 
 | 9150 |  | 
 | 9151 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9152 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9153 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9154 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
 | 9156 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9157 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9158 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9159 | 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9160 | 	# -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9161 | 	# in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9162 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9163 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9164 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9165 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9166 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9167 | 	if test $enable_shared = "yes" | 
 | 9168 | 	then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9169 | 		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] | 9170 | 	fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9171 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9172 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9173 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9174 | fi | 
 | 9175 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
 | 9177 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9178 | case $ac_sys_system/$ac_sys_release in | 
 | 9179 |   Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9180 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9181 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9183 |   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
 | 9184 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9185 |   	;; | 
 | 9186 |   *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9187 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9188 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9189 | 	;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9190 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9191 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9192 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9193 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9194 |  | 
 | 9195 |  | 
 | 9196 |  | 
 | 9197 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9198 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9199 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9200 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) | 
 | 9201 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
 | 9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | 
 | 9203 | $as_echo_n "checking the extension of shared libraries... " >&6; } | 
 | 9204 | if test -z "$SHLIB_SUFFIX"; then | 
 | 9205 | 	case $ac_sys_system in | 
 | 9206 | 	hp*|HP*) | 
 | 9207 | 		case `uname -m` in | 
 | 9208 | 			ia64) SHLIB_SUFFIX=.so;; | 
 | 9209 | 	  		*)    SHLIB_SUFFIX=.sl;; | 
 | 9210 | 		esac | 
 | 9211 | 		;; | 
 | 9212 | 	CYGWIN*)   SHLIB_SUFFIX=.dll;; | 
 | 9213 | 	*)	   SHLIB_SUFFIX=.so;; | 
 | 9214 | 	esac | 
 | 9215 | fi | 
 | 9216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | 
 | 9217 | $as_echo "$SHLIB_SUFFIX" >&6; } | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9218 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9219 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 9220 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9221 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 9222 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
 | 9224 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9225 | if test -z "$LDSHARED" | 
 | 9226 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9227 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9228 | 	AIX*) | 
| Martin Panter | 395733d | 2016-11-20 07:56:37 +0000 | [diff] [blame] | 9229 | 		BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" | 
| Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9230 | 		LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9231 | 		;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9232 | 	IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9233 | 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9234 | 	SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9235 | 		if test "$GCC" = "yes" ; then | 
 | 9236 | 			LDSHARED='$(CC) -shared' | 
 | 9237 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 9238 | 		else | 
 | 9239 | 			LDSHARED='$(CC) -G' | 
 | 9240 | 			LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9241 | 		fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9242 | 	hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9243 | 		if test "$GCC" = "yes" ; then | 
 | 9244 | 			LDSHARED='$(CC) -shared' | 
 | 9245 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 9246 | 		else | 
 | 9247 | 			LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9248 | 		fi ;; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9249 | 	Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9250 | 		LDSHARED='$(CC) -bundle' | 
 | 9251 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9252 | 		if test "$enable_framework" ; then | 
 | 9253 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9254 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 9255 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9256 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9257 | 		else | 
 | 9258 | 			# No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9259 | 			LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9260 | 			LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9261 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9262 | 	Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9263 | 		LDSHARED='$(CC) -bundle' | 
 | 9264 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9265 | 		if test "$enable_framework" ; then | 
 | 9266 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9267 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 9268 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9269 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9270 | 		else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9271 | 			# No framework, use the Python app as bundle-loader | 
 | 9272 | 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9273 | 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9274 | 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9275 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9276 | 	Darwin/*) | 
 | 9277 | 		# Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
 | 9278 | 		# This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9279 |  | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9280 | 		dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
 | 9281 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
 | 9282 | 		dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
 | 9283 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
 | 9284 | 		if test ${dep_target_major} -eq 10 && \ | 
 | 9285 | 		   test ${dep_target_minor} -le 2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9286 | 		then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9287 | 			# building for OS X 10.0 through 10.2 | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9288 | 			LDSHARED='$(CC) -bundle' | 
 | 9289 | 			LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9290 | 			if test "$enable_framework" ; then | 
 | 9291 | 				# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9292 | 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 9293 | 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9294 | 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9295 | 			else | 
 | 9296 | 				# No framework, use the Python app as bundle-loader | 
 | 9297 | 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
 | 9298 | 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9299 | 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9300 | 			fi | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9301 | 		else | 
 | 9302 | 			# building for OS X 10.3 and later | 
 | 9303 | 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
 | 9304 | 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
 | 9305 | 			BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9306 | 		fi | 
 | 9307 | 		;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9308 | 	Linux*|GNU*|QNX*) | 
 | 9309 | 		LDSHARED='$(CC) -shared' | 
 | 9310 | 		LDCXXSHARED='$(CXX) -shared';; | 
 | 9311 | 	BSD/OS*/4*) | 
 | 9312 | 		LDSHARED="gcc -shared" | 
 | 9313 | 		LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9314 | 	FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9315 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9316 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9317 | 			LDSHARED='$(CC) -shared' | 
 | 9318 | 			LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9319 | 		else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9320 | 			LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9321 | 		fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9322 | 	OpenBSD*) | 
 | 9323 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 9324 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9325 | 				LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 9326 | 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9327 | 		else | 
 | 9328 | 				case `uname -r` in | 
 | 9329 | 				[01].* | 2.[0-7] | 2.[0-7].*) | 
 | 9330 | 				   LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 9331 | 				   ;; | 
 | 9332 | 				*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9333 | 				   LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 9334 | 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9335 | 				   ;; | 
 | 9336 | 				esac | 
 | 9337 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9338 | 	NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9339 | 		LDSHARED='$(CC) -shared' | 
 | 9340 | 		LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9341 | 	OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9342 | 		if test "$GCC" = "yes" ; then | 
 | 9343 | 			LDSHARED='$(CC) -shared' | 
 | 9344 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 9345 | 		else | 
 | 9346 | 			LDSHARED='$(CC) -G' | 
 | 9347 | 			LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9348 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9349 | 	SCO_SV*) | 
 | 9350 | 		LDSHARED='$(CC) -Wl,-G,-Bexport' | 
 | 9351 | 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
 | 9352 | 	CYGWIN*) | 
 | 9353 | 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
 | 9354 | 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9355 | 	*)	LDSHARED="ld";; | 
 | 9356 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9357 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
 | 9359 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9360 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9361 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9362 | # 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] | 9363 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
 | 9365 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9366 | if test -z "$CCSHARED" | 
 | 9367 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9368 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9369 | 	SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9370 | 		then CCSHARED="-fPIC"; | 
 | 9371 | 		elif test `uname -p` = sparc; | 
 | 9372 | 		then CCSHARED="-xcode=pic32"; | 
 | 9373 | 		else CCSHARED="-Kpic"; | 
 | 9374 | 		fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9375 | 	hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9376 | 		 then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9377 | 		 else CCSHARED="+z"; | 
 | 9378 | 		 fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9379 | 	Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9380 | 	BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9381 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9382 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9383 | 		if test "$GCC" = "yes" | 
 | 9384 | 		then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9385 | 		else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9386 | 		fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9387 | 	SCO_SV*) | 
 | 9388 | 		if test "$GCC" = "yes" | 
 | 9389 | 		then CCSHARED="-fPIC" | 
 | 9390 | 		else CCSHARED="-Kpic -belf" | 
 | 9391 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9392 | 	IRIX*/6*)  case $CC in | 
 | 9393 | 		   *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9394 | 		   *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9395 | 		   esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9396 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9397 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
 | 9399 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9400 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9401 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
 | 9403 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9404 | if test -z "$LINKFORSHARED" | 
 | 9405 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9406 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9407 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9408 | 	hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9409 | 	    LINKFORSHARED="-Wl,-E -Wl,+s";; | 
 | 9410 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9411 | 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9412 | 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9413 | 	# -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9414 | 	Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9415 | 		LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9416 |  | 
 | 9417 | 		# Issue #18075: the default maximum stack size (8MBytes) is too | 
 | 9418 | 		# small for the default recursion limit. Increase the stack size | 
 | 9419 | 		# to ensure that tests don't crash | 
 | 9420 | 		LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | 
 | 9421 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9422 | 		if test "$enable_framework" | 
 | 9423 | 		then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9424 | 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9425 | 		fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9426 | 		LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9427 | 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9428 | 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9429 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9430 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9431 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 9432 | 		then | 
 | 9433 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 9434 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9435 | 	SunOS/5*) case $CC in | 
 | 9436 | 		  *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9437 | 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9438 | 		    then | 
 | 9439 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9440 | 		    fi;; | 
 | 9441 | 		  esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9442 | 	CYGWIN*) | 
 | 9443 | 		if test $enable_shared = "no" | 
 | 9444 | 		then | 
 | 9445 | 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
 | 9446 | 		fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9447 | 	QNX*) | 
 | 9448 | 		# -Wl,-E causes the symbols to be added to the dynamic | 
 | 9449 | 		# symbol table so that they can be found when a module | 
 | 9450 | 		# is loaded.  -N 2048K causes the stack size to be set | 
 | 9451 | 		# to 2048 kilobytes so that the stack doesn't overflow | 
 | 9452 | 		# when running test_compile.py. | 
 | 9453 | 		LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9454 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9455 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
 | 9457 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9458 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9459 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9460 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
 | 9462 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9463 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 9464 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9465 | 	case $ac_sys_system in | 
 | 9466 | 	CYGWIN*) | 
 | 9467 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 9468 | 		# but not when building the interpreter DLL. | 
 | 9469 | 		CFLAGSFORSHARED='';; | 
 | 9470 | 	*) | 
 | 9471 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 9472 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9473 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
 | 9475 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9476 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9477 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
 | 9478 | # library (with --enable-shared). | 
 | 9479 | # 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] | 9480 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
 | 9481 | # if it is not required, since it creates a dependency of the shared library | 
 | 9482 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
 | 9483 | # don't need to link LIBS explicitly. The default should be only changed | 
 | 9484 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9485 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
 | 9487 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9488 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9489 | 	*) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9490 | 		SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9491 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
 | 9493 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9494 |  | 
 | 9495 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9496 | # checks for libraries | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 | 
 | 9498 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9499 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9500 |   $as_echo_n "(cached) " >&6 | 
 | 9501 | else | 
 | 9502 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9503 | LIBS="-lsendfile  $LIBS" | 
 | 9504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9505 | /* end confdefs.h.  */ | 
 | 9506 |  | 
 | 9507 | /* Override any GCC internal prototype to avoid an error. | 
 | 9508 |    Use char because int might match the return type of a GCC | 
 | 9509 |    builtin and then its argument prototype would still apply.  */ | 
 | 9510 | #ifdef __cplusplus | 
 | 9511 | extern "C" | 
 | 9512 | #endif | 
 | 9513 | char sendfile (); | 
 | 9514 | int | 
 | 9515 | main () | 
 | 9516 | { | 
 | 9517 | return sendfile (); | 
 | 9518 |   ; | 
 | 9519 |   return 0; | 
 | 9520 | } | 
 | 9521 | _ACEOF | 
 | 9522 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9523 |   ac_cv_lib_sendfile_sendfile=yes | 
 | 9524 | else | 
 | 9525 |   ac_cv_lib_sendfile_sendfile=no | 
 | 9526 | fi | 
 | 9527 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9528 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9529 | LIBS=$ac_check_lib_save_LIBS | 
 | 9530 | fi | 
 | 9531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | 
 | 9532 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9533 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9534 |   cat >>confdefs.h <<_ACEOF | 
 | 9535 | #define HAVE_LIBSENDFILE 1 | 
 | 9536 | _ACEOF | 
 | 9537 |  | 
 | 9538 |   LIBS="-lsendfile $LIBS" | 
 | 9539 |  | 
 | 9540 | fi | 
 | 9541 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 9543 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9544 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9545 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9546 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9548 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9550 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9551 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9552 | /* Override any GCC internal prototype to avoid an error. | 
 | 9553 |    Use char because int might match the return type of a GCC | 
 | 9554 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9555 | #ifdef __cplusplus | 
 | 9556 | extern "C" | 
 | 9557 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9558 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 | int | 
 | 9560 | main () | 
 | 9561 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9562 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9563 |   ; | 
 | 9564 |   return 0; | 
 | 9565 | } | 
 | 9566 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9567 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9568 |   ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9569 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9570 |   ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9571 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9572 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9573 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9574 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9575 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 9577 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9578 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9579 |   cat >>confdefs.h <<_ACEOF | 
 | 9580 | #define HAVE_LIBDL 1 | 
 | 9581 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9582 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9583 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9584 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9585 | fi | 
 | 9586 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 9588 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9589 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9590 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9591 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9592 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9593 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9595 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9596 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9597 | /* Override any GCC internal prototype to avoid an error. | 
 | 9598 |    Use char because int might match the return type of a GCC | 
 | 9599 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9600 | #ifdef __cplusplus | 
 | 9601 | extern "C" | 
 | 9602 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9603 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | int | 
 | 9605 | main () | 
 | 9606 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9607 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9608 |   ; | 
 | 9609 |   return 0; | 
 | 9610 | } | 
 | 9611 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9612 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 |   ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9614 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9615 |   ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9616 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9617 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9618 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9619 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9620 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 9622 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9623 | 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] | 9624 |   cat >>confdefs.h <<_ACEOF | 
 | 9625 | #define HAVE_LIBDLD 1 | 
 | 9626 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9627 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9628 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9629 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9630 | fi | 
 | 9631 | 	# Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9632 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 9633 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9634 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9635 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
 | 9636 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9637 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9638 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9639 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9640 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9642 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9643 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9644 | /* Override any GCC internal prototype to avoid an error. | 
 | 9645 |    Use char because int might match the return type of a GCC | 
 | 9646 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9647 | #ifdef __cplusplus | 
 | 9648 | extern "C" | 
 | 9649 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9650 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9651 | int | 
 | 9652 | main () | 
 | 9653 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9654 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9655 |   ; | 
 | 9656 |   return 0; | 
 | 9657 | } | 
 | 9658 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9659 | for ac_lib in '' pthread rt posix4; do | 
 | 9660 |   if test -z "$ac_lib"; then | 
 | 9661 |     ac_res="none required" | 
 | 9662 |   else | 
 | 9663 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9664 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9665 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9666 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9667 |   ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9668 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9669 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9670 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9671 |   if ${ac_cv_search_sem_init+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9672 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9673 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9674 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9675 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9676 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9677 | else | 
 | 9678 |   ac_cv_search_sem_init=no | 
 | 9679 | fi | 
 | 9680 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9681 | LIBS=$ac_func_search_save_LIBS | 
 | 9682 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
 | 9684 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9685 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9686 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9687 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9688 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9689 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9690 |  # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9691 | 						# posix4 on Solaris 2.6 | 
 | 9692 | 						# pthread (first!) on Linux | 
 | 9693 | fi | 
 | 9694 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9695 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
 | 9697 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9698 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9699 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9700 | else | 
 | 9701 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9702 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9704 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9705 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9706 | /* Override any GCC internal prototype to avoid an error. | 
 | 9707 |    Use char because int might match the return type of a GCC | 
 | 9708 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9709 | #ifdef __cplusplus | 
 | 9710 | extern "C" | 
 | 9711 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9712 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9713 | int | 
 | 9714 | main () | 
 | 9715 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9716 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9717 |   ; | 
 | 9718 |   return 0; | 
 | 9719 | } | 
 | 9720 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9721 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9722 |   ac_cv_lib_intl_textdomain=yes | 
 | 9723 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9724 |   ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9725 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9726 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9727 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9728 | LIBS=$ac_check_lib_save_LIBS | 
 | 9729 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
 | 9731 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9732 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9733 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9734 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9735 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9736 |         LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9737 | fi | 
 | 9738 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9739 |  | 
 | 9740 | # checks for system dependent C++ extensions support | 
 | 9741 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9742 | 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
 | 9743 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
 | 9744 | 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9745 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9746 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9747 | 		  #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | int | 
 | 9749 | main () | 
 | 9750 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9751 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9752 |   ; | 
 | 9753 |   return 0; | 
 | 9754 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9755 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9756 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9757 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9758 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9759 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9760 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9762 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9763 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9764 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9765 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9766 |  | 
 | 9767 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9768 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9769 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9770 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9771 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9772 |     conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9773 | 	*) ;; | 
 | 9774 | esac | 
 | 9775 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9776 | # check for systems that require aligned memory access | 
 | 9777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | 
 | 9778 | $as_echo_n "checking aligned memory access is required... " >&6; } | 
 | 9779 | if test "$cross_compiling" = yes; then : | 
 | 9780 |   aligned_required=yes | 
 | 9781 | else | 
 | 9782 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9783 | /* end confdefs.h.  */ | 
 | 9784 |  | 
 | 9785 | int main() | 
 | 9786 | { | 
 | 9787 |     char s[16]; | 
 | 9788 |     int i, *p1, *p2; | 
 | 9789 |     for (i=0; i < 16; i++) | 
 | 9790 |         s[i] = i; | 
 | 9791 |     p1 = (int*)(s+1); | 
 | 9792 |     p2 = (int*)(s+2); | 
 | 9793 |     if (*p1 == *p2) | 
 | 9794 |         return 1; | 
 | 9795 |     return 0; | 
 | 9796 | } | 
 | 9797 |  | 
 | 9798 | _ACEOF | 
 | 9799 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 9800 |   aligned_required=no | 
 | 9801 | else | 
 | 9802 |   aligned_required=yes | 
 | 9803 | fi | 
 | 9804 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9805 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 9806 | fi | 
 | 9807 |  | 
 | 9808 |  | 
 | 9809 | if test "$aligned_required" = yes ; then | 
 | 9810 |  | 
 | 9811 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | 
 | 9812 |  | 
 | 9813 | fi | 
 | 9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5 | 
 | 9815 | $as_echo "$aligned_required" >&6; } | 
 | 9816 |  | 
 | 9817 |  | 
 | 9818 | # str, bytes and memoryview hash algorithm | 
 | 9819 |  | 
 | 9820 |  | 
 | 9821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | 
 | 9822 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | 
 | 9823 |  | 
 | 9824 | # Check whether --with-hash_algorithm was given. | 
 | 9825 | if test "${with_hash_algorithm+set}" = set; then : | 
 | 9826 |   withval=$with_hash_algorithm; | 
 | 9827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9828 | $as_echo "$withval" >&6; } | 
 | 9829 | case "$withval" in | 
 | 9830 |     siphash24) | 
 | 9831 |         $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | 
 | 9832 |  | 
 | 9833 |         ;; | 
 | 9834 |     fnv) | 
 | 9835 |         $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | 
 | 9836 |  | 
 | 9837 |         ;; | 
 | 9838 |     *) | 
 | 9839 |         as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | 
 | 9840 |         ;; | 
 | 9841 | esac | 
 | 9842 |  | 
 | 9843 | else | 
 | 9844 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | 
 | 9845 | $as_echo "default" >&6; } | 
 | 9846 | fi | 
 | 9847 |  | 
 | 9848 |  | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 | 
 | 9850 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | 
 | 9851 |  | 
 | 9852 | # Check whether --with-address_sanitizer was given. | 
 | 9853 | if test "${with_address_sanitizer+set}" = set; then : | 
 | 9854 |   withval=$with_address_sanitizer; | 
 | 9855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9856 | $as_echo "$withval" >&6; } | 
 | 9857 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | 
 | 9858 | LDFLAGS="-fsanitize=address $LDFLAGS" | 
 | 9859 |  | 
 | 9860 | else | 
 | 9861 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9862 | $as_echo "no" >&6; } | 
 | 9863 | fi | 
 | 9864 |  | 
 | 9865 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9866 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
 | 9868 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9869 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9870 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9871 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9872 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9873 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9875 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9876 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9877 | /* Override any GCC internal prototype to avoid an error. | 
 | 9878 |    Use char because int might match the return type of a GCC | 
 | 9879 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9880 | #ifdef __cplusplus | 
 | 9881 | extern "C" | 
 | 9882 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9883 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9884 | int | 
 | 9885 | main () | 
 | 9886 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9887 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9888 |   ; | 
 | 9889 |   return 0; | 
 | 9890 | } | 
 | 9891 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9892 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9893 |   ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9894 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9895 |   ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9896 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9897 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9898 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9899 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9900 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
 | 9902 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9903 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9904 |   LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9905 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9906 |  # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
 | 9908 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9909 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9910 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9911 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9912 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9913 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9915 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9916 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9917 | /* Override any GCC internal prototype to avoid an error. | 
 | 9918 |    Use char because int might match the return type of a GCC | 
 | 9919 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9920 | #ifdef __cplusplus | 
 | 9921 | extern "C" | 
 | 9922 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9923 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9924 | int | 
 | 9925 | main () | 
 | 9926 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9927 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9928 |   ; | 
 | 9929 |   return 0; | 
 | 9930 | } | 
 | 9931 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9932 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9933 |   ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9934 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9935 |   ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9936 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9937 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9938 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9939 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9940 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
 | 9942 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9943 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9944 |   LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9945 | fi | 
 | 9946 |  # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9947 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
 | 9949 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9950 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9951 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9952 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9953 |   withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9955 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9956 | LIBS="$withval $LIBS" | 
 | 9957 |  | 
 | 9958 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9959 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9960 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9961 | fi | 
 | 9962 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9963 |  | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 9964 |  | 
 | 9965 |  | 
 | 9966 |  | 
 | 9967 |  | 
 | 9968 |  | 
 | 9969 |  | 
 | 9970 |  | 
 | 9971 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
 | 9972 | 	if test -n "$ac_tool_prefix"; then | 
 | 9973 |   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
 | 9974 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
 | 9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9976 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 9977 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
 | 9978 |   $as_echo_n "(cached) " >&6 | 
 | 9979 | else | 
 | 9980 |   case $PKG_CONFIG in | 
 | 9981 |   [\\/]* | ?:[\\/]*) | 
 | 9982 |   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
 | 9983 |   ;; | 
 | 9984 |   *) | 
 | 9985 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9986 | for as_dir in $PATH | 
 | 9987 | do | 
 | 9988 |   IFS=$as_save_IFS | 
 | 9989 |   test -z "$as_dir" && as_dir=. | 
 | 9990 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 9991 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 9992 |     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
 | 9993 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 9994 |     break 2 | 
 | 9995 |   fi | 
 | 9996 | done | 
 | 9997 |   done | 
 | 9998 | IFS=$as_save_IFS | 
 | 9999 |  | 
 | 10000 |   ;; | 
 | 10001 | esac | 
 | 10002 | fi | 
 | 10003 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
 | 10004 | if test -n "$PKG_CONFIG"; then | 
 | 10005 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
 | 10006 | $as_echo "$PKG_CONFIG" >&6; } | 
 | 10007 | else | 
 | 10008 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10009 | $as_echo "no" >&6; } | 
 | 10010 | fi | 
 | 10011 |  | 
 | 10012 |  | 
 | 10013 | fi | 
 | 10014 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
 | 10015 |   ac_pt_PKG_CONFIG=$PKG_CONFIG | 
 | 10016 |   # Extract the first word of "pkg-config", so it can be a program name with args. | 
 | 10017 | set dummy pkg-config; ac_word=$2 | 
 | 10018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10019 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 10020 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
 | 10021 |   $as_echo_n "(cached) " >&6 | 
 | 10022 | else | 
 | 10023 |   case $ac_pt_PKG_CONFIG in | 
 | 10024 |   [\\/]* | ?:[\\/]*) | 
 | 10025 |   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
 | 10026 |   ;; | 
 | 10027 |   *) | 
 | 10028 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10029 | for as_dir in $PATH | 
 | 10030 | do | 
 | 10031 |   IFS=$as_save_IFS | 
 | 10032 |   test -z "$as_dir" && as_dir=. | 
 | 10033 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10034 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 10035 |     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
 | 10036 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 10037 |     break 2 | 
 | 10038 |   fi | 
 | 10039 | done | 
 | 10040 |   done | 
 | 10041 | IFS=$as_save_IFS | 
 | 10042 |  | 
 | 10043 |   ;; | 
 | 10044 | esac | 
 | 10045 | fi | 
 | 10046 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
 | 10047 | if test -n "$ac_pt_PKG_CONFIG"; then | 
 | 10048 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
 | 10049 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
 | 10050 | else | 
 | 10051 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10052 | $as_echo "no" >&6; } | 
 | 10053 | fi | 
 | 10054 |  | 
 | 10055 |   if test "x$ac_pt_PKG_CONFIG" = x; then | 
 | 10056 |     PKG_CONFIG="" | 
 | 10057 |   else | 
 | 10058 |     case $cross_compiling:$ac_tool_warned in | 
 | 10059 | yes:) | 
 | 10060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 10061 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 10062 | ac_tool_warned=yes ;; | 
 | 10063 | esac | 
 | 10064 |     PKG_CONFIG=$ac_pt_PKG_CONFIG | 
 | 10065 |   fi | 
 | 10066 | else | 
 | 10067 |   PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
 | 10068 | fi | 
 | 10069 |  | 
 | 10070 | fi | 
 | 10071 | if test -n "$PKG_CONFIG"; then | 
 | 10072 | 	_pkg_min_version=0.9.0 | 
 | 10073 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
 | 10074 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
 | 10075 | 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
 | 10076 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10077 | $as_echo "yes" >&6; } | 
 | 10078 | 	else | 
 | 10079 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10080 | $as_echo "no" >&6; } | 
 | 10081 | 		PKG_CONFIG="" | 
 | 10082 | 	fi | 
 | 10083 | fi | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10084 |  | 
 | 10085 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
 | 10087 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10088 |  | 
 | 10089 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10090 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10091 |   withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 10092 | else | 
 | 10093 |   with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10094 | fi | 
 | 10095 |  | 
 | 10096 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
 | 10098 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10099 |  | 
 | 10100 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
 | 10102 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10103 |  | 
 | 10104 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10105 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10106 |   withval=$with_system_ffi; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 10107 | else | 
 | 10108 |   with_system_ffi="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10109 | fi | 
 | 10110 |  | 
 | 10111 |  | 
 | 10112 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 10113 |     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
 | 10114 | else | 
 | 10115 |     LIBFFI_INCLUDEDIR="" | 
 | 10116 | fi | 
 | 10117 |  | 
 | 10118 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
 | 10120 | $as_echo "$with_system_ffi" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 10121 |  | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10122 | # Check for use of the system libmpdec library | 
 | 10123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | 
 | 10124 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | 
 | 10125 |  | 
 | 10126 | # Check whether --with-system_libmpdec was given. | 
 | 10127 | if test "${with_system_libmpdec+set}" = set; then : | 
 | 10128 |   withval=$with_system_libmpdec; | 
 | 10129 | else | 
 | 10130 |   with_system_libmpdec="no" | 
 | 10131 | fi | 
 | 10132 |  | 
 | 10133 |  | 
 | 10134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | 
 | 10135 | $as_echo "$with_system_libmpdec" >&6; } | 
 | 10136 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10137 | # Check for support for loadable sqlite extensions | 
 | 10138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
 | 10139 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
 | 10140 | # Check whether --enable-loadable-sqlite-extensions was given. | 
 | 10141 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
 | 10142 |   enableval=$enable_loadable_sqlite_extensions; | 
 | 10143 | else | 
 | 10144 |   enable_loadable_sqlite_extensions="no" | 
 | 10145 | fi | 
 | 10146 |  | 
 | 10147 |  | 
 | 10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
 | 10149 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
 | 10150 |  | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10151 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
 | 10152 |  | 
 | 10153 |  | 
 | 10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
 | 10155 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
 | 10156 |  | 
 | 10157 | # Check whether --with-tcltk-includes was given. | 
 | 10158 | if test "${with_tcltk_includes+set}" = set; then : | 
 | 10159 |   withval=$with_tcltk_includes; | 
 | 10160 | else | 
 | 10161 |   with_tcltk_includes="default" | 
 | 10162 | fi | 
 | 10163 |  | 
 | 10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
 | 10165 | $as_echo "$with_tcltk_includes" >&6; } | 
 | 10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
 | 10167 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
 | 10168 |  | 
 | 10169 | # Check whether --with-tcltk-libs was given. | 
 | 10170 | if test "${with_tcltk_libs+set}" = set; then : | 
 | 10171 |   withval=$with_tcltk_libs; | 
 | 10172 | else | 
 | 10173 |   with_tcltk_libs="default" | 
 | 10174 | fi | 
 | 10175 |  | 
 | 10176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
 | 10177 | $as_echo "$with_tcltk_libs" >&6; } | 
 | 10178 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
 | 10179 | then | 
 | 10180 |   if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
 | 10181 |   then | 
 | 10182 |     as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
 | 10183 |   fi | 
 | 10184 |   TCLTK_INCLUDES="" | 
 | 10185 |   TCLTK_LIBS="" | 
 | 10186 | else | 
 | 10187 |   TCLTK_INCLUDES="$with_tcltk_includes" | 
 | 10188 |   TCLTK_LIBS="$with_tcltk_libs" | 
 | 10189 | fi | 
 | 10190 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10191 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
 | 10193 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10194 |  | 
 | 10195 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10196 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10197 |   withval=$with_dbmliborder; | 
 | 10198 | if test x$with_dbmliborder = xyes | 
 | 10199 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10200 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10201 | else | 
 | 10202 |   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
 | 10203 |     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
 | 10204 |     then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10205 |       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10206 |     fi | 
 | 10207 |   done | 
 | 10208 | fi | 
 | 10209 | fi | 
 | 10210 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
 | 10212 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10213 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10214 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10215 |  | 
 | 10216 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
 | 10218 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10219 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10220 | # Check whether --with-signal-module was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10221 | if test "${with_signal_module+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10222 |   withval=$with_signal_module; | 
 | 10223 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10224 |  | 
 | 10225 |  | 
 | 10226 | if test -z "$with_signal_module" | 
 | 10227 | then with_signal_module="yes" | 
 | 10228 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
 | 10230 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10231 |  | 
 | 10232 | if test "${with_signal_module}" = "yes"; then | 
 | 10233 | 	USE_SIGNAL_MODULE="" | 
 | 10234 | 	SIGNAL_OBJS="" | 
 | 10235 | else | 
 | 10236 | 	USE_SIGNAL_MODULE="#" | 
 | 10237 | 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
 | 10238 | fi | 
 | 10239 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10240 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10241 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10242 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10243 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10244 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10245 |  | 
 | 10246 | # Templates for things AC_DEFINEd more than once. | 
 | 10247 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10248 |  | 
 | 10249 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10250 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
 | 10252 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10254 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10255 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10256 |   withval=$with_threads; | 
 | 10257 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10258 |  | 
 | 10259 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10260 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10261 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10262 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10263 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10264 |   withval=$with_thread; with_threads=$with_thread | 
 | 10265 | fi | 
 | 10266 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10267 |  | 
 | 10268 | if test -z "$with_threads" | 
 | 10269 | then with_threads="yes" | 
 | 10270 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
 | 10272 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10273 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10274 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10275 | if test "$with_threads" = "no" | 
 | 10276 | then | 
 | 10277 |     USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10278 | elif test "$ac_cv_pthread_is_default" = yes | 
 | 10279 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10280 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10281 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10282 |     # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10283 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10284 |  | 
 | 10285 |     posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10286 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10287 | elif test "$ac_cv_kpthread" = "yes" | 
 | 10288 | then | 
 | 10289 |     CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10290 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 10291 |         CXX="$CXX -Kpthread" | 
 | 10292 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10293 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10294 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10295 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10296 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10297 | elif test "$ac_cv_kthread" = "yes" | 
 | 10298 | then | 
 | 10299 |     CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10300 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 10301 |         CXX="$CXX -Kthread" | 
 | 10302 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10303 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10304 |  | 
 | 10305 |     posix_threads=yes | 
 | 10306 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10307 | elif test "$ac_cv_pthread" = "yes" | 
 | 10308 | then | 
 | 10309 |     CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10310 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 10311 |         CXX="$CXX -pthread" | 
 | 10312 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10313 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10314 |  | 
 | 10315 |     posix_threads=yes | 
 | 10316 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10317 | else | 
 | 10318 |     if test ! -z "$with_threads" -a -d "$with_threads" | 
 | 10319 |     then LDFLAGS="$LDFLAGS -L$with_threads" | 
 | 10320 |     fi | 
 | 10321 |     if test ! -z "$withval" -a -d "$withval" | 
 | 10322 |     then LDFLAGS="$LDFLAGS -L$withval" | 
 | 10323 |     fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10324 |  | 
 | 10325 |     # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10326 |     # define _POSIX_THREADS in unistd.h. Some apparently don't | 
 | 10327 |     # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10328 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
 | 10329 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
 | 10330 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10331 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10332 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10333 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10334 | #ifdef _POSIX_THREADS | 
 | 10335 | yes | 
 | 10336 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10337 |  | 
 | 10338 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10339 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10340 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10341 |   unistd_defines_pthreads=yes | 
 | 10342 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10343 |   unistd_defines_pthreads=no | 
 | 10344 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10345 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10346 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10347 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
 | 10348 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10349 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10350 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10351 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10352 |     # Just looking for pthread_create in libpthread is not enough: | 
 | 10353 |     # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
 | 10354 |     # So we really have to include pthread.h, and then link. | 
 | 10355 |     _libs=$LIBS | 
 | 10356 |     LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10357 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
 | 10358 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
 | 10359 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10360 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10361 |  | 
 | 10362 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10363 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10364 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10365 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10366 | int | 
 | 10367 | main () | 
 | 10368 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10369 |  | 
 | 10370 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10371 |   ; | 
 | 10372 |   return 0; | 
 | 10373 | } | 
 | 10374 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10375 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10377 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10378 | $as_echo "yes" >&6; } | 
 | 10379 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10380 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10381 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10382 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10383 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10385 |     LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10386 |     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] | 10387 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10388 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10389 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10390 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10391 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10392 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10393 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10394 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
 | 10395 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10396 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10397 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10398 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10399 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10400 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10402 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10403 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10404 | /* Override any GCC internal prototype to avoid an error. | 
 | 10405 |    Use char because int might match the return type of a GCC | 
 | 10406 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | #ifdef __cplusplus | 
 | 10408 | extern "C" | 
 | 10409 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10410 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10411 | int | 
 | 10412 | main () | 
 | 10413 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10414 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 |   ; | 
 | 10416 |   return 0; | 
 | 10417 | } | 
 | 10418 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10419 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10420 |   ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10421 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10422 |   ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10423 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10424 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10425 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10426 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10427 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
 | 10429 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10430 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10431 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10432 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10433 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10434 |     LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10435 |     THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10436 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10437 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10438 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
 | 10439 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10440 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10441 |   $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10442 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10443 |   ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10444 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10446 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10447 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10448 | /* Override any GCC internal prototype to avoid an error. | 
 | 10449 |    Use char because int might match the return type of a GCC | 
 | 10450 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10451 | #ifdef __cplusplus | 
 | 10452 | extern "C" | 
 | 10453 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10454 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10455 | int | 
 | 10456 | main () | 
 | 10457 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10458 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10459 |   ; | 
 | 10460 |   return 0; | 
 | 10461 | } | 
 | 10462 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10463 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10464 |   ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10465 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10466 |   ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10467 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10468 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10469 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10470 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10471 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
 | 10473 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10474 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10475 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10476 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10477 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10478 |     LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10479 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10480 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10481 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10482 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
 | 10483 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10484 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10485 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10486 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10487 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10488 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10490 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10491 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10492 | /* Override any GCC internal prototype to avoid an error. | 
 | 10493 |    Use char because int might match the return type of a GCC | 
 | 10494 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10495 | #ifdef __cplusplus | 
 | 10496 | extern "C" | 
 | 10497 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10498 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10499 | int | 
 | 10500 | main () | 
 | 10501 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10502 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10503 |   ; | 
 | 10504 |   return 0; | 
 | 10505 | } | 
 | 10506 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10507 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10508 |   ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10509 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10510 |   ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10511 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10512 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10513 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10514 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10515 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
 | 10517 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10518 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10519 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10520 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10521 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10522 |     LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10523 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10524 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10525 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10526 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
 | 10527 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10528 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10529 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10530 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10531 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10532 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10534 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10535 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10536 | /* Override any GCC internal prototype to avoid an error. | 
 | 10537 |    Use char because int might match the return type of a GCC | 
 | 10538 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10539 | #ifdef __cplusplus | 
 | 10540 | extern "C" | 
 | 10541 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10542 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10543 | int | 
 | 10544 | main () | 
 | 10545 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10546 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10547 |   ; | 
 | 10548 |   return 0; | 
 | 10549 | } | 
 | 10550 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10551 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10552 |   ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10553 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10554 |   ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10555 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10556 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10557 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10558 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10559 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
 | 10561 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10562 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10563 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10564 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10565 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10566 |     LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10567 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10568 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10569 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10570 |     USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10571 | fi | 
 | 10572 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10573 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10574 | fi | 
 | 10575 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10576 | fi | 
 | 10577 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10578 | fi | 
 | 10579 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10580 | fi | 
 | 10581 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10582 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10583 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10584 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10585 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10586 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
 | 10587 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10588 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10589 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10590 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10591 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10592 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10594 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10595 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10596 | /* Override any GCC internal prototype to avoid an error. | 
 | 10597 |    Use char because int might match the return type of a GCC | 
 | 10598 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10599 | #ifdef __cplusplus | 
 | 10600 | extern "C" | 
 | 10601 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10602 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10603 | int | 
 | 10604 | main () | 
 | 10605 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10606 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10607 |   ; | 
 | 10608 |   return 0; | 
 | 10609 | } | 
 | 10610 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10611 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10612 |   ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10613 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10614 |   ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10615 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10616 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10617 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10618 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10619 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
 | 10621 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10622 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10623 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10624 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10625 |     LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10626 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10627 |     USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10628 | fi | 
 | 10629 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10630 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 10631 |     if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10632 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
 | 10633 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10634 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10635 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10636 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10637 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10638 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10640 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10641 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10642 | /* Override any GCC internal prototype to avoid an error. | 
 | 10643 |    Use char because int might match the return type of a GCC | 
 | 10644 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10645 | #ifdef __cplusplus | 
 | 10646 | extern "C" | 
 | 10647 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10648 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10649 | int | 
 | 10650 | main () | 
 | 10651 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10652 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10653 |   ; | 
 | 10654 |   return 0; | 
 | 10655 | } | 
 | 10656 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10657 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10658 |   ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10659 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10660 |   ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10661 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10662 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10663 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10664 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10665 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
 | 10667 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10668 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10669 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10670 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10671 |       LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10672 |       THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10673 |       USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10674 | fi | 
 | 10675 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10676 |     fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10677 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10678 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10679 | if test "$posix_threads" = "yes"; then | 
 | 10680 |       if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10681 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10682 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10683 |  | 
 | 10684 |       fi | 
 | 10685 |  | 
 | 10686 |       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
 | 10687 |       case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10688 |       SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10689 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10690 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10691 | 		       ;; | 
 | 10692 |       SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10693 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10694 |  | 
 | 10695 | 		       ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10696 |       AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10697 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10698 |  | 
 | 10699 | 		       ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10700 |       esac | 
 | 10701 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10702 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
 | 10703 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10704 |       if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10705 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10706 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10707 |   if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10708 |   ac_cv_pthread_system_supported=no | 
 | 10709 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10710 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10711 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10712 |  | 
 | 10713 |       #include <stdio.h> | 
 | 10714 |       #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10715 |       void *foo(void *parm) { | 
 | 10716 |         return NULL; | 
 | 10717 |       } | 
 | 10718 |       main() { | 
 | 10719 |         pthread_attr_t attr; | 
 | 10720 |         pthread_t id; | 
 | 10721 |         if (pthread_attr_init(&attr)) exit(-1); | 
 | 10722 |         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
 | 10723 |         if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
 | 10724 |         exit(0); | 
 | 10725 |       } | 
 | 10726 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10727 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10728 |   ac_cv_pthread_system_supported=yes | 
 | 10729 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10730 |   ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10731 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10732 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10733 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10734 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10735 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10736 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10737 | fi | 
 | 10738 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10739 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
 | 10740 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10741 |       if test "$ac_cv_pthread_system_supported" = "yes"; then | 
 | 10742 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10743 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10744 |  | 
 | 10745 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10746 |       for ac_func in pthread_sigmask | 
 | 10747 | do : | 
 | 10748 |   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] | 10749 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10750 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10751 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10752 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10753 |  case $ac_sys_system in | 
 | 10754 |         CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10755 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10756 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10757 |  | 
 | 10758 |             ;; | 
 | 10759 |         esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10760 | fi | 
 | 10761 | done | 
 | 10762 |  | 
| Christian Heimes | f77b4b2 | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 10763 |       for ac_func in pthread_atfork | 
 | 10764 | do : | 
 | 10765 |   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | 
 | 10766 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | 
 | 10767 |   cat >>confdefs.h <<_ACEOF | 
 | 10768 | #define HAVE_PTHREAD_ATFORK 1 | 
 | 10769 | _ACEOF | 
 | 10770 |  | 
 | 10771 | fi | 
 | 10772 | done | 
 | 10773 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10774 | fi | 
 | 10775 |  | 
 | 10776 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10777 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10778 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
 | 10780 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10781 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10782 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10783 |   enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10784 |   no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10785 |        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10786 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10787 |        ipv6=no | 
 | 10788 |        ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10789 |   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10790 | $as_echo "yes" >&6; } | 
 | 10791 |        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10792 |  | 
 | 10793 |        ipv6=yes | 
 | 10794 |        ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10795 |   esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10796 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10797 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10798 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10799 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10800 |  /* AF_INET6 available check */ | 
 | 10801 | #include <sys/types.h> | 
 | 10802 | #include <sys/socket.h> | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10803 | int | 
 | 10804 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10805 | { | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10806 | int domain = AF_INET6; | 
 | 10807 |   ; | 
 | 10808 |   return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10809 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10810 | _ACEOF | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10811 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10812 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10813 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10814 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10815 |   ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10816 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10817 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10818 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10819 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10820 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10821 |   ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10822 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10823 | fi | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10825 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10826 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10827 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
 | 10828 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
 | 10829 | 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10830 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10831 |  | 
 | 10832 | 	  #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10833 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10834 | int | 
 | 10835 | main () | 
 | 10836 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10837 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10838 | 			    x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10839 |   ; | 
 | 10840 |   return 0; | 
 | 10841 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10842 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10843 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10844 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10845 |  | 
 | 10846 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10847 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10848 | 	  ipv6=yes | 
 | 10849 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10850 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10851 |  | 
 | 10852 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10853 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10854 | 	  ipv6=no | 
 | 10855 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10856 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10857 | 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] | 10858 | fi | 
 | 10859 |  | 
 | 10860 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10861 | 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10862 |  | 
 | 10863 | fi | 
 | 10864 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10865 | fi | 
 | 10866 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10867 |  | 
 | 10868 | ipv6type=unknown | 
 | 10869 | ipv6lib=none | 
 | 10870 | ipv6trylibc=no | 
 | 10871 |  | 
 | 10872 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10873 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
 | 10874 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10875 | 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
 | 10876 | 	do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10877 | 		case $i in | 
 | 10878 | 		inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10879 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10880 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10881 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10882 | #include <netinet/in.h> | 
 | 10883 | #ifdef IPV6_INRIA_VERSION | 
 | 10884 | yes | 
 | 10885 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10886 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10888 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10889 |   ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10890 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10891 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10892 |  | 
 | 10893 | 			;; | 
 | 10894 | 		kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10895 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10896 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10897 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10898 | #include <netinet/in.h> | 
 | 10899 | #ifdef __KAME__ | 
 | 10900 | yes | 
 | 10901 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10902 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10904 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10905 |   ipv6type=$i; | 
 | 10906 | 				ipv6lib=inet6 | 
 | 10907 | 				ipv6libdir=/usr/local/v6/lib | 
 | 10908 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10909 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10910 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10911 |  | 
 | 10912 | 			;; | 
 | 10913 | 		linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10914 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10915 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10916 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10917 | #include <features.h> | 
 | 10918 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 10919 | yes | 
 | 10920 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10921 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10923 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10924 |   ipv6type=$i; | 
 | 10925 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10926 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10927 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10928 |  | 
 | 10929 | 			;; | 
 | 10930 | 		linux-inet6) | 
 | 10931 | 						if test -d /usr/inet6; then | 
 | 10932 | 				ipv6type=$i | 
 | 10933 | 				ipv6lib=inet6 | 
 | 10934 | 				ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10935 | 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10936 | 			fi | 
 | 10937 | 			;; | 
 | 10938 | 		solaris) | 
 | 10939 | 			if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10940 |                           if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10941 | 				ipv6type=$i | 
 | 10942 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10943 |                           fi | 
 | 10944 |                         fi | 
 | 10945 | 			;; | 
 | 10946 | 		toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10947 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10948 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10949 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10950 | #include <sys/param.h> | 
 | 10951 | #ifdef _TOSHIBA_INET6 | 
 | 10952 | yes | 
 | 10953 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10954 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10955 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10956 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10957 |   ipv6type=$i; | 
 | 10958 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10959 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10960 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10961 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10962 |  | 
 | 10963 | 			;; | 
 | 10964 | 		v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10965 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10966 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10967 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10968 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 10969 | #ifdef __V6D__ | 
 | 10970 | yes | 
 | 10971 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10972 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10973 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10974 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10975 |   ipv6type=$i; | 
 | 10976 | 				ipv6lib=v6; | 
 | 10977 | 				ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10978 | 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10979 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10980 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10981 |  | 
 | 10982 | 			;; | 
 | 10983 | 		zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10984 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10985 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10986 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10987 | #include <sys/param.h> | 
 | 10988 | #ifdef _ZETA_MINAMI_INET6 | 
 | 10989 | yes | 
 | 10990 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10991 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10992 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10993 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10994 |   ipv6type=$i; | 
 | 10995 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10996 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10997 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10998 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10999 |  | 
 | 11000 | 			;; | 
 | 11001 | 		esac | 
 | 11002 | 		if test "$ipv6type" != "unknown"; then | 
 | 11003 | 			break | 
 | 11004 | 		fi | 
 | 11005 | 	done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11006 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
 | 11007 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11008 | fi | 
 | 11009 |  | 
 | 11010 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 11011 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 11012 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 11013 | 		echo "using lib$ipv6lib" | 
 | 11014 | 	else | 
 | 11015 | 		if test $ipv6trylibc = "yes"; then | 
 | 11016 | 			echo "using libc" | 
 | 11017 | 		else | 
 | 11018 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 11019 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 11020 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 11021 | 			exit 1 | 
 | 11022 | 		fi | 
 | 11023 | 	fi | 
 | 11024 | fi | 
 | 11025 |  | 
| Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 | 
 | 11027 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | 
 | 11028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11029 | /* end confdefs.h.  */ | 
 | 11030 |  /* CAN_RAW_FD_FRAMES available check */ | 
 | 11031 | #include <linux/can/raw.h> | 
 | 11032 | int | 
 | 11033 | main () | 
 | 11034 | { | 
 | 11035 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | 
 | 11036 |   ; | 
 | 11037 |   return 0; | 
 | 11038 | } | 
 | 11039 | _ACEOF | 
 | 11040 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11041 |  | 
 | 11042 |  | 
 | 11043 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | 
 | 11044 |  | 
 | 11045 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11046 | $as_echo "yes" >&6; } | 
 | 11047 |  | 
 | 11048 | else | 
 | 11049 |  | 
 | 11050 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11051 | $as_echo "no" >&6; } | 
 | 11052 |  | 
 | 11053 | fi | 
 | 11054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11055 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
 | 11057 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
 | 11058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11059 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11060 |  | 
 | 11061 |   #include <Carbon/Carbon.h> | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11062 | int | 
 | 11063 | main () | 
 | 11064 | { | 
 | 11065 | FSIORefNum fRef = 0 | 
 | 11066 |   ; | 
 | 11067 |   return 0; | 
 | 11068 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11069 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11070 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11071 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11072 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11073 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11074 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11075 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11076 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11077 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11078 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11079 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11080 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11081 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11082 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11083 |  | 
 | 11084 | fi | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11086 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11087 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
 | 11089 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11090 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11091 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11092 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11093 |   withval=$with_doc_strings; | 
 | 11094 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11095 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11096 |  | 
 | 11097 | if test -z "$with_doc_strings" | 
 | 11098 | then with_doc_strings="yes" | 
 | 11099 | fi | 
 | 11100 | if test "$with_doc_strings" != "no" | 
 | 11101 | then | 
 | 11102 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11103 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11104 |  | 
 | 11105 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
 | 11107 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11108 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 11109 | # Check if eval loop should use timestamp counter profiling | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
 | 11111 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11112 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11113 | # Check whether --with-tsc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11114 | if test "${with_tsc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11115 |   withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11116 | if test "$withval" != no | 
 | 11117 | then | 
 | 11118 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11119 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11120 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11121 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11122 | $as_echo "yes" >&6; } | 
 | 11123 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11124 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11125 | fi | 
 | 11126 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11127 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11128 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11129 | fi | 
 | 11130 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11131 |  | 
 | 11132 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
 | 11134 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11135 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11136 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11137 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11138 |   withval=$with_pymalloc; | 
 | 11139 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11140 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11141 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11142 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 11143 | then | 
 | 11144 |     with_pymalloc="yes" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11145 | fi | 
 | 11146 | if test "$with_pymalloc" != "no" | 
 | 11147 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11148 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11149 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11150 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11151 |     ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11152 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
 | 11154 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11155 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11156 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
 | 11158 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11159 |  | 
 | 11160 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11161 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11162 |   withval=$with_valgrind; | 
 | 11163 | else | 
 | 11164 |   with_valgrind=no | 
 | 11165 | fi | 
 | 11166 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
 | 11168 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11169 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11170 |     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] | 11171 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11172 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11173 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11174 |  | 
 | 11175 | else | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11176 |   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11177 |  | 
 | 11178 | fi | 
 | 11179 |  | 
 | 11180 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 11181 |     OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11182 | fi | 
 | 11183 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11184 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11185 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11186 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11187 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11188 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 11189 | # 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] | 11190 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11191 | do : | 
 | 11192 |   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11193 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11194 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11195 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11196 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11197 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11198 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11199 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11200 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11201 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11202 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 11203 | # loading of modules. | 
 | 11204 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
 | 11206 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11207 | if test -z "$DYNLOADFILE" | 
 | 11208 | then | 
 | 11209 | 	case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 11210 | 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
 | 11211 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 11212 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 11213 | 	else DYNLOADFILE="dynload_aix.o" | 
 | 11214 | 	fi | 
 | 11215 | 	;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11216 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11217 | 	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
 | 11218 | 	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11219 | 	*) | 
 | 11220 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 11221 | 	# out any dynamic loading | 
 | 11222 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 11223 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 11224 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 11225 | 	fi | 
 | 11226 | 	;; | 
 | 11227 | 	esac | 
 | 11228 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
 | 11230 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11231 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 11232 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11234 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11235 |  | 
 | 11236 | fi | 
 | 11237 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11238 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 11239 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11240 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
 | 11242 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11243 | if test -z "$MACHDEP_OBJS" | 
 | 11244 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11245 | 	MACHDEP_OBJS=$extra_machdep_objs | 
 | 11246 | else | 
 | 11247 | 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11248 | fi | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11249 | if test -z "$MACHDEP_OBJS"; then | 
 | 11250 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 11251 | $as_echo "none" >&6; } | 
 | 11252 | else | 
 | 11253 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | 
 | 11254 | $as_echo "$MACHDEP_OBJS" >&6; } | 
 | 11255 | fi | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11256 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11257 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 11258 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 11259 |  clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11260 |  fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | 
| Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 11261 |  futimens futimes gai_strerror getentropy \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11262 |  getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 11263 |  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 11264 |  if_nameindex \ | 
| Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 11265 |  initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ | 
 | 11266 |  memrchr mbrtowc mkdirat mkfifo \ | 
| Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 11267 |  mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11268 |  posix_fallocate posix_fadvise pread \ | 
| Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 11269 |  pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 11270 |  select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | 
| Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 11271 |  setgid sethostname \ | 
| Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 11272 |  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] | 11273 |  sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ | 
 | 11274 |  sched_rr_get_interval \ | 
| Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 11275 |  sigaction sigaltstack siginterrupt sigpending sigrelse \ | 
 | 11276 |  sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11277 |  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11278 |  truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ | 
| Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 11279 |  wcscoll wcsftime wcsxfrm wmemcmp writev _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11280 | do : | 
 | 11281 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 11282 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11283 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11284 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11285 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11286 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11287 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11288 | fi | 
 | 11289 | done | 
 | 11290 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11291 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11292 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | 
 | 11293 |        #include <dirent.h> | 
 | 11294 | " | 
 | 11295 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | 
 | 11296 |  | 
 | 11297 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | 
 | 11298 |  | 
 | 11299 | fi | 
 | 11300 |  | 
 | 11301 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11302 | # For some functions, having a definition is not sufficient, since | 
 | 11303 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
 | 11305 | $as_echo_n "checking for chroot... " >&6; } | 
 | 11306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11307 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11308 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11309 | int | 
 | 11310 | main () | 
 | 11311 | { | 
 | 11312 | void *x=chroot | 
 | 11313 |   ; | 
 | 11314 |   return 0; | 
 | 11315 | } | 
 | 11316 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11317 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11318 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11319 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11320 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11321 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11322 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11323 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11324 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11325 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11326 |  | 
 | 11327 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
 | 11330 | $as_echo_n "checking for link... " >&6; } | 
 | 11331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11332 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11333 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11334 | int | 
 | 11335 | main () | 
 | 11336 | { | 
 | 11337 | void *x=link | 
 | 11338 |   ; | 
 | 11339 |   return 0; | 
 | 11340 | } | 
 | 11341 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11342 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11343 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11344 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11345 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11346 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11347 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11348 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11349 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11350 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11351 |  | 
 | 11352 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
 | 11355 | $as_echo_n "checking for symlink... " >&6; } | 
 | 11356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11357 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11358 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11359 | int | 
 | 11360 | main () | 
 | 11361 | { | 
 | 11362 | void *x=symlink | 
 | 11363 |   ; | 
 | 11364 |   return 0; | 
 | 11365 | } | 
 | 11366 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11367 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11368 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11369 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11370 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11371 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11372 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11373 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11374 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11375 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11376 |  | 
 | 11377 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
 | 11380 | $as_echo_n "checking for fchdir... " >&6; } | 
 | 11381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11382 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11383 | #include <unistd.h> | 
 | 11384 | int | 
 | 11385 | main () | 
 | 11386 | { | 
 | 11387 | void *x=fchdir | 
 | 11388 |   ; | 
 | 11389 |   return 0; | 
 | 11390 | } | 
 | 11391 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11392 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11393 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11394 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11395 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11396 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11397 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11398 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11399 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11400 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11401 |  | 
 | 11402 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
 | 11405 | $as_echo_n "checking for fsync... " >&6; } | 
 | 11406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11407 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11408 | #include <unistd.h> | 
 | 11409 | int | 
 | 11410 | main () | 
 | 11411 | { | 
 | 11412 | void *x=fsync | 
 | 11413 |   ; | 
 | 11414 |   return 0; | 
 | 11415 | } | 
 | 11416 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11417 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11418 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11419 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11420 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11421 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11422 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11423 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11424 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11425 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11426 |  | 
 | 11427 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
 | 11430 | $as_echo_n "checking for fdatasync... " >&6; } | 
 | 11431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11432 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11433 | #include <unistd.h> | 
 | 11434 | int | 
 | 11435 | main () | 
 | 11436 | { | 
 | 11437 | void *x=fdatasync | 
 | 11438 |   ; | 
 | 11439 |   return 0; | 
 | 11440 | } | 
 | 11441 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11442 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11443 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11444 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11445 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11446 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11447 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11448 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11449 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11450 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11451 |  | 
 | 11452 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
 | 11455 | $as_echo_n "checking for epoll... " >&6; } | 
 | 11456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11457 | /* end confdefs.h.  */ | 
 | 11458 | #include <sys/epoll.h> | 
 | 11459 | int | 
 | 11460 | main () | 
 | 11461 | { | 
 | 11462 | void *x=epoll_create | 
 | 11463 |   ; | 
 | 11464 |   return 0; | 
 | 11465 | } | 
 | 11466 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11467 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11468 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11469 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11470 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11471 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11472 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11473 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11474 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11475 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11476 |  | 
 | 11477 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 | 
 | 11480 | $as_echo_n "checking for epoll_create1... " >&6; } | 
 | 11481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11482 | /* end confdefs.h.  */ | 
 | 11483 | #include <sys/epoll.h> | 
 | 11484 | int | 
 | 11485 | main () | 
 | 11486 | { | 
 | 11487 | void *x=epoll_create1 | 
 | 11488 |   ; | 
 | 11489 |   return 0; | 
 | 11490 | } | 
 | 11491 | _ACEOF | 
 | 11492 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11493 |  | 
 | 11494 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | 
 | 11495 |  | 
 | 11496 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11497 | $as_echo "yes" >&6; } | 
 | 11498 | else | 
 | 11499 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11500 | $as_echo "no" >&6; } | 
 | 11501 |  | 
 | 11502 | fi | 
 | 11503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
 | 11505 | $as_echo_n "checking for kqueue... " >&6; } | 
 | 11506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11507 | /* end confdefs.h.  */ | 
 | 11508 |  | 
 | 11509 | #include <sys/types.h> | 
 | 11510 | #include <sys/event.h> | 
 | 11511 |  | 
 | 11512 | int | 
 | 11513 | main () | 
 | 11514 | { | 
 | 11515 | int x=kqueue() | 
 | 11516 |   ; | 
 | 11517 |   return 0; | 
 | 11518 | } | 
 | 11519 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11520 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11521 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11522 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11523 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11524 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11525 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11526 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11527 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11528 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11529 |  | 
 | 11530 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 | 
 | 11533 | $as_echo_n "checking for prlimit... " >&6; } | 
 | 11534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11535 | /* end confdefs.h.  */ | 
 | 11536 |  | 
 | 11537 | #include <sys/time.h> | 
 | 11538 | #include <sys/resource.h> | 
 | 11539 |  | 
 | 11540 | int | 
 | 11541 | main () | 
 | 11542 | { | 
 | 11543 | void *x=prlimit | 
 | 11544 |   ; | 
 | 11545 |   return 0; | 
 | 11546 | } | 
 | 11547 | _ACEOF | 
 | 11548 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11549 |  | 
 | 11550 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | 
 | 11551 |  | 
 | 11552 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11553 | $as_echo "yes" >&6; } | 
 | 11554 | else | 
 | 11555 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11556 | $as_echo "no" >&6; } | 
 | 11557 |  | 
 | 11558 | fi | 
 | 11559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11560 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11561 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
 | 11562 | # functions ctermid_r, setgroups in the library, but no prototype | 
 | 11563 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
 | 11564 | # address to avoid compiler warnings and potential miscompilations | 
 | 11565 | # because of the missing prototypes. | 
 | 11566 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
 | 11568 | $as_echo_n "checking for ctermid_r... " >&6; } | 
 | 11569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11570 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11571 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11572 | #include <stdio.h> | 
 | 11573 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11574 | int | 
 | 11575 | main () | 
 | 11576 | { | 
 | 11577 | void* p = ctermid_r | 
 | 11578 |   ; | 
 | 11579 |   return 0; | 
 | 11580 | } | 
 | 11581 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11582 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11583 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11584 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11585 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11586 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11587 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11588 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11589 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11590 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11591 |  | 
 | 11592 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11594 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
 | 11596 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11597 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11598 |   $as_echo_n "(cached) " >&6 | 
 | 11599 | else | 
 | 11600 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11601 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11602 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11603 | int | 
 | 11604 | main () | 
 | 11605 | { | 
 | 11606 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11607 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11608 |   ; | 
 | 11609 |   return 0; | 
 | 11610 | } | 
 | 11611 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11612 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11613 |   ac_cv_flock_decl=yes | 
 | 11614 | else | 
 | 11615 |   ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11616 |  | 
 | 11617 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11619 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11620 | fi | 
 | 11621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
 | 11622 | $as_echo "$ac_cv_flock_decl" >&6; } | 
 | 11623 | if test "x${ac_cv_flock_decl}" = xyes; then | 
 | 11624 |   for ac_func in flock | 
 | 11625 | do : | 
 | 11626 |   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11627 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11628 |   cat >>confdefs.h <<_ACEOF | 
 | 11629 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11630 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11631 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11632 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11633 |   { $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] | 11634 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11635 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11636 |   $as_echo_n "(cached) " >&6 | 
 | 11637 | else | 
 | 11638 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11639 | LIBS="-lbsd  $LIBS" | 
 | 11640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11641 | /* end confdefs.h.  */ | 
 | 11642 |  | 
 | 11643 | /* Override any GCC internal prototype to avoid an error. | 
 | 11644 |    Use char because int might match the return type of a GCC | 
 | 11645 |    builtin and then its argument prototype would still apply.  */ | 
 | 11646 | #ifdef __cplusplus | 
 | 11647 | extern "C" | 
 | 11648 | #endif | 
 | 11649 | char flock (); | 
 | 11650 | int | 
 | 11651 | main () | 
 | 11652 | { | 
 | 11653 | return flock (); | 
 | 11654 |   ; | 
 | 11655 |   return 0; | 
 | 11656 | } | 
 | 11657 | _ACEOF | 
 | 11658 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 11659 |   ac_cv_lib_bsd_flock=yes | 
 | 11660 | else | 
 | 11661 |   ac_cv_lib_bsd_flock=no | 
 | 11662 | fi | 
 | 11663 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11664 |     conftest$ac_exeext conftest.$ac_ext | 
 | 11665 | LIBS=$ac_check_lib_save_LIBS | 
 | 11666 | fi | 
 | 11667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
 | 11668 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11669 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11670 |   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11671 |  | 
 | 11672 |  | 
 | 11673 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
 | 11674 |  | 
 | 11675 |  | 
 | 11676 | fi | 
 | 11677 |  | 
 | 11678 |  | 
 | 11679 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11680 | done | 
 | 11681 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11682 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11683 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
 | 11685 | $as_echo_n "checking for getpagesize... " >&6; } | 
 | 11686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11687 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11688 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11689 | #include <unistd.h> | 
 | 11690 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11691 | int | 
 | 11692 | main () | 
 | 11693 | { | 
 | 11694 | void* p = getpagesize | 
 | 11695 |   ; | 
 | 11696 |   return 0; | 
 | 11697 | } | 
 | 11698 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11699 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11700 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11701 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11702 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11703 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11704 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11705 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11706 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11707 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11708 |  | 
 | 11709 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11710 | 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] | 11711 |  | 
| Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
 | 11713 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
 | 11714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11715 | /* end confdefs.h.  */ | 
 | 11716 |  | 
 | 11717 | #include <stdlib.h> | 
 | 11718 |  | 
 | 11719 | int | 
 | 11720 | main () | 
 | 11721 | { | 
 | 11722 | int res = unsetenv("DUMMY") | 
 | 11723 |   ; | 
 | 11724 |   return 0; | 
 | 11725 | } | 
 | 11726 | _ACEOF | 
 | 11727 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11728 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11729 | $as_echo "no" >&6; } | 
 | 11730 | else | 
 | 11731 |  | 
 | 11732 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
 | 11733 |  | 
 | 11734 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11735 | $as_echo "yes" >&6; } | 
 | 11736 |  | 
 | 11737 | fi | 
 | 11738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11739 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11740 | for ac_prog in true | 
 | 11741 | do | 
 | 11742 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 11743 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11745 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11746 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11747 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11748 | else | 
 | 11749 |   if test -n "$TRUE"; then | 
 | 11750 |   ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
 | 11751 | else | 
 | 11752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11753 | for as_dir in $PATH | 
 | 11754 | do | 
 | 11755 |   IFS=$as_save_IFS | 
 | 11756 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11757 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11758 |   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] | 11759 |     ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11760 |     $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] | 11761 |     break 2 | 
 | 11762 |   fi | 
 | 11763 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11764 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11765 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11766 |  | 
 | 11767 | fi | 
 | 11768 | fi | 
 | 11769 | TRUE=$ac_cv_prog_TRUE | 
 | 11770 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11771 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
 | 11772 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11773 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11774 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11775 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11776 | fi | 
 | 11777 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11778 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11779 |   test -n "$TRUE" && break | 
 | 11780 | done | 
 | 11781 | test -n "$TRUE" || TRUE="/bin/true" | 
 | 11782 |  | 
 | 11783 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
 | 11785 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11786 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11787 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11788 | else | 
 | 11789 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11790 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11792 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11793 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11794 | /* Override any GCC internal prototype to avoid an error. | 
 | 11795 |    Use char because int might match the return type of a GCC | 
 | 11796 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11797 | #ifdef __cplusplus | 
 | 11798 | extern "C" | 
 | 11799 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11800 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11801 | int | 
 | 11802 | main () | 
 | 11803 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11804 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11805 |   ; | 
 | 11806 |   return 0; | 
 | 11807 | } | 
 | 11808 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11809 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11810 |   ac_cv_lib_c_inet_aton=yes | 
 | 11811 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11812 |   ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11813 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11814 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11815 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11816 | LIBS=$ac_check_lib_save_LIBS | 
 | 11817 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
 | 11819 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11820 | 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] | 11821 |   $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11822 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11823 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
 | 11824 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11825 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11826 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11827 | else | 
 | 11828 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11829 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11831 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11832 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11833 | /* Override any GCC internal prototype to avoid an error. | 
 | 11834 |    Use char because int might match the return type of a GCC | 
 | 11835 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11836 | #ifdef __cplusplus | 
 | 11837 | extern "C" | 
 | 11838 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11839 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11840 | int | 
 | 11841 | main () | 
 | 11842 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11843 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11844 |   ; | 
 | 11845 |   return 0; | 
 | 11846 | } | 
 | 11847 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11848 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11849 |   ac_cv_lib_resolv_inet_aton=yes | 
 | 11850 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11851 |   ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11852 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11853 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11854 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11855 | LIBS=$ac_check_lib_save_LIBS | 
 | 11856 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
 | 11858 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11859 | 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] | 11860 |   cat >>confdefs.h <<_ACEOF | 
 | 11861 | #define HAVE_LIBRESOLV 1 | 
 | 11862 | _ACEOF | 
 | 11863 |  | 
 | 11864 |   LIBS="-lresolv $LIBS" | 
 | 11865 |  | 
 | 11866 | fi | 
 | 11867 |  | 
 | 11868 |  | 
 | 11869 | fi | 
 | 11870 |  | 
 | 11871 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11872 | # On Tru64, chflags seems to be present, but calling it will | 
 | 11873 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
 | 11875 | $as_echo_n "checking for chflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11876 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11877 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11878 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11879 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11880 |   ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11881 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11882 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11883 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11884 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11885 | #include <sys/stat.h> | 
 | 11886 | #include <unistd.h> | 
 | 11887 | int main(int argc, char*argv[]) | 
 | 11888 | { | 
 | 11889 |   if(chflags(argv[0], 0) != 0) | 
 | 11890 |     return 1; | 
 | 11891 |   return 0; | 
 | 11892 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11893 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11894 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11895 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11896 |   ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11897 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11898 |   ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11899 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11900 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11901 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11902 | fi | 
 | 11903 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11904 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11905 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
 | 11907 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11908 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11909 |   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11910 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11911 |   ac_cv_have_chflags="yes" | 
 | 11912 | else | 
 | 11913 |   ac_cv_have_chflags="no" | 
 | 11914 | fi | 
 | 11915 |  | 
 | 11916 | fi | 
 | 11917 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11918 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11919 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11920 |  | 
 | 11921 | fi | 
 | 11922 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
 | 11924 | $as_echo_n "checking for lchflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11925 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11926 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11927 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11928 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11929 |   ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11930 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11931 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11932 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11933 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11934 | #include <sys/stat.h> | 
 | 11935 | #include <unistd.h> | 
 | 11936 | int main(int argc, char*argv[]) | 
 | 11937 | { | 
 | 11938 |   if(lchflags(argv[0], 0) != 0) | 
 | 11939 |     return 1; | 
 | 11940 |   return 0; | 
 | 11941 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11942 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11943 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11944 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11945 |   ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11946 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11947 |   ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11948 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11949 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11950 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11951 | fi | 
 | 11952 |  | 
 | 11953 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11954 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
 | 11956 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11957 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11958 |   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11959 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11960 |   ac_cv_have_lchflags="yes" | 
 | 11961 | else | 
 | 11962 |   ac_cv_have_lchflags="no" | 
 | 11963 | fi | 
 | 11964 |  | 
 | 11965 | fi | 
 | 11966 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11967 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11968 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11969 |  | 
 | 11970 | fi | 
 | 11971 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11972 | case $ac_sys_system/$ac_sys_release in | 
 | 11973 | Darwin/*) | 
 | 11974 | 	_CUR_CFLAGS="${CFLAGS}" | 
 | 11975 | 	_CUR_LDFLAGS="${LDFLAGS}" | 
 | 11976 | 	CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
 | 11977 | 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
 | 11978 | 	;; | 
 | 11979 | esac | 
 | 11980 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
 | 11982 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11983 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11984 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11985 | else | 
 | 11986 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11987 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11989 | /* end confdefs.h.  */ | 
 | 11990 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11991 | /* Override any GCC internal prototype to avoid an error. | 
 | 11992 |    Use char because int might match the return type of a GCC | 
 | 11993 |    builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11994 | #ifdef __cplusplus | 
 | 11995 | extern "C" | 
 | 11996 | #endif | 
 | 11997 | char inflateCopy (); | 
 | 11998 | int | 
 | 11999 | main () | 
 | 12000 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12001 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12002 |   ; | 
 | 12003 |   return 0; | 
 | 12004 | } | 
 | 12005 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12006 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12007 |   ac_cv_lib_z_inflateCopy=yes | 
 | 12008 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12009 |   ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12010 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12011 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12012 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12013 | LIBS=$ac_check_lib_save_LIBS | 
 | 12014 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
 | 12016 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12017 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12018 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12019 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12020 |  | 
 | 12021 | fi | 
 | 12022 |  | 
 | 12023 |  | 
 | 12024 | case $ac_sys_system/$ac_sys_release in | 
 | 12025 | Darwin/*) | 
 | 12026 | 	CFLAGS="${_CUR_CFLAGS}" | 
 | 12027 | 	LDFLAGS="${_CUR_LDFLAGS}" | 
 | 12028 | 	;; | 
 | 12029 | esac | 
 | 12030 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
 | 12032 | $as_echo_n "checking for hstrerror... " >&6; } | 
 | 12033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12034 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12035 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12036 | #include <netdb.h> | 
 | 12037 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12038 | int | 
 | 12039 | main () | 
 | 12040 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12041 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12042 |   ; | 
 | 12043 |   return 0; | 
 | 12044 | } | 
 | 12045 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12046 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12047 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12048 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12049 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12050 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12051 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12052 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12053 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12054 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12055 |  | 
 | 12056 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12057 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12058 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12059 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
 | 12061 | $as_echo_n "checking for inet_aton... " >&6; } | 
 | 12062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12063 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12064 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12065 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12066 | #include <sys/socket.h> | 
 | 12067 | #include <netinet/in.h> | 
 | 12068 | #include <arpa/inet.h> | 
 | 12069 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12070 | int | 
 | 12071 | main () | 
 | 12072 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12073 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12074 |   ; | 
 | 12075 |   return 0; | 
 | 12076 | } | 
 | 12077 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12078 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12079 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12080 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12081 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12082 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12083 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12084 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12085 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12086 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12087 |  | 
 | 12088 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12089 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12090 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12091 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
 | 12093 | $as_echo_n "checking for inet_pton... " >&6; } | 
 | 12094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12095 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12096 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12097 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12098 | #include <sys/socket.h> | 
 | 12099 | #include <netinet/in.h> | 
 | 12100 | #include <arpa/inet.h> | 
 | 12101 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12102 | int | 
 | 12103 | main () | 
 | 12104 | { | 
 | 12105 | void* p = inet_pton | 
 | 12106 |   ; | 
 | 12107 |   return 0; | 
 | 12108 | } | 
 | 12109 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12110 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12111 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12112 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12113 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12114 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12115 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12116 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12117 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12118 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12119 |  | 
 | 12120 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12121 | 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] | 12122 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12123 | # 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] | 12124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
 | 12125 | $as_echo_n "checking for setgroups... " >&6; } | 
 | 12126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12127 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12128 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12129 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12130 | #ifdef HAVE_GRP_H | 
 | 12131 | #include <grp.h> | 
 | 12132 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12133 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12134 | int | 
 | 12135 | main () | 
 | 12136 | { | 
 | 12137 | void* p = setgroups | 
 | 12138 |   ; | 
 | 12139 |   return 0; | 
 | 12140 | } | 
 | 12141 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12142 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12143 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12144 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12145 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12146 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12147 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12148 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12149 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12150 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12151 |  | 
 | 12152 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12153 | 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] | 12154 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12155 | # check for openpty and forkpty | 
 | 12156 |  | 
 | 12157 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12158 | do : | 
 | 12159 |   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12160 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12162 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12163 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12164 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12165 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12166 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
 | 12167 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12168 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12169 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12170 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12171 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12172 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12174 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12175 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12176 | /* Override any GCC internal prototype to avoid an error. | 
 | 12177 |    Use char because int might match the return type of a GCC | 
 | 12178 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12179 | #ifdef __cplusplus | 
 | 12180 | extern "C" | 
 | 12181 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12182 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12183 | int | 
 | 12184 | main () | 
 | 12185 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12186 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12187 |   ; | 
 | 12188 |   return 0; | 
 | 12189 | } | 
 | 12190 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12191 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12192 |   ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12193 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12194 |   ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12195 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12196 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12197 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12198 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12199 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
 | 12201 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12202 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12203 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12204 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12205 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12206 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
 | 12207 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12208 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12209 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12210 | else | 
 | 12211 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12212 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12214 | /* end confdefs.h.  */ | 
 | 12215 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12216 | /* Override any GCC internal prototype to avoid an error. | 
 | 12217 |    Use char because int might match the return type of a GCC | 
 | 12218 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12219 | #ifdef __cplusplus | 
 | 12220 | extern "C" | 
 | 12221 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12222 | char openpty (); | 
 | 12223 | int | 
 | 12224 | main () | 
 | 12225 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12226 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12227 |   ; | 
 | 12228 |   return 0; | 
 | 12229 | } | 
 | 12230 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12231 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12232 |   ac_cv_lib_bsd_openpty=yes | 
 | 12233 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12234 |   ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12235 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12236 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12237 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12238 | LIBS=$ac_check_lib_save_LIBS | 
 | 12239 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
 | 12241 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12242 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12243 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12244 |  LIBS="$LIBS -lbsd" | 
 | 12245 | fi | 
 | 12246 |  | 
 | 12247 |  | 
 | 12248 | fi | 
 | 12249 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12250 |  | 
 | 12251 | fi | 
 | 12252 | done | 
 | 12253 |  | 
 | 12254 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12255 | do : | 
 | 12256 |   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12257 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12258 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12259 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12260 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12261 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12262 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12263 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
 | 12264 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12265 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12266 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12267 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12268 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12269 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12271 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12272 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12273 | /* Override any GCC internal prototype to avoid an error. | 
 | 12274 |    Use char because int might match the return type of a GCC | 
 | 12275 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12276 | #ifdef __cplusplus | 
 | 12277 | extern "C" | 
 | 12278 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12279 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12280 | int | 
 | 12281 | main () | 
 | 12282 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12283 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12284 |   ; | 
 | 12285 |   return 0; | 
 | 12286 | } | 
 | 12287 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12288 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12289 |   ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12290 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12291 |   ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12292 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12293 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12294 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12295 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12296 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
 | 12298 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12299 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12300 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12301 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12302 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12303 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
 | 12304 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12305 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12306 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12307 | else | 
 | 12308 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12309 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12311 | /* end confdefs.h.  */ | 
 | 12312 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12313 | /* Override any GCC internal prototype to avoid an error. | 
 | 12314 |    Use char because int might match the return type of a GCC | 
 | 12315 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12316 | #ifdef __cplusplus | 
 | 12317 | extern "C" | 
 | 12318 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12319 | char forkpty (); | 
 | 12320 | int | 
 | 12321 | main () | 
 | 12322 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12323 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12324 |   ; | 
 | 12325 |   return 0; | 
 | 12326 | } | 
 | 12327 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12328 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12329 |   ac_cv_lib_bsd_forkpty=yes | 
 | 12330 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12331 |   ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12332 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12333 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12334 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12335 | LIBS=$ac_check_lib_save_LIBS | 
 | 12336 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
 | 12338 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12339 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12340 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12341 |  LIBS="$LIBS -lbsd" | 
 | 12342 | fi | 
 | 12343 |  | 
 | 12344 |  | 
 | 12345 | fi | 
 | 12346 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12347 |  | 
 | 12348 | fi | 
 | 12349 | done | 
 | 12350 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12351 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12352 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12353 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12354 | do : | 
 | 12355 |   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12356 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12357 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12358 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12359 | _ACEOF | 
 | 12360 |  | 
 | 12361 | fi | 
 | 12362 | done | 
 | 12363 |  | 
 | 12364 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12365 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12366 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12367 | do : | 
 | 12368 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12369 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12370 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12371 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12372 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12373 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12374 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12375 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12376 | done | 
 | 12377 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12378 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12379 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12380 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12381 |   $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12382 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12383 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12384 |   case " $LIBOBJS " in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12385 |   *" dup2.$ac_objext "* ) ;; | 
 | 12386 |   *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12387 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12388 | esac | 
 | 12389 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12390 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12391 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12392 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12393 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12394 |   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
 | 12395 |  | 
 | 12396 | else | 
 | 12397 |   case " $LIBOBJS " in | 
 | 12398 |   *" strdup.$ac_objext "* ) ;; | 
 | 12399 |   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
 | 12400 |  ;; | 
 | 12401 | esac | 
 | 12402 |  | 
 | 12403 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12404 |  | 
 | 12405 |  | 
 | 12406 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12407 | do : | 
 | 12408 |   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12409 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12410 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12411 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12412 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12413 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12414 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12415 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12416 | int | 
 | 12417 | main () | 
 | 12418 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12419 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12420 |   ; | 
 | 12421 |   return 0; | 
 | 12422 | } | 
 | 12423 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12424 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12425 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12426 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12427 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12428 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12430 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12431 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12432 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12433 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12434 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12435 | do : | 
 | 12436 |   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12437 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12438 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12439 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12440 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12441 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12442 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12443 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12444 | int | 
 | 12445 | main () | 
 | 12446 | { | 
 | 12447 | setpgrp(0,0); | 
 | 12448 |   ; | 
 | 12449 |   return 0; | 
 | 12450 | } | 
 | 12451 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12452 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12453 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12454 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12455 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12456 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12458 |  | 
 | 12459 | fi | 
 | 12460 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12461 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12462 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12463 | do : | 
 | 12464 |   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12465 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12466 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12467 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12468 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12469 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12470 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12471 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12472 | int | 
 | 12473 | main () | 
 | 12474 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12475 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12476 |   ; | 
 | 12477 |   return 0; | 
 | 12478 | } | 
 | 12479 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12480 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12481 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12482 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12483 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12484 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12485 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12486 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12487 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12488 | 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] | 12489 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12490 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12491 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12492 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12493 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12494 | for ac_func in clock_gettime | 
 | 12495 | do : | 
 | 12496 |   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | 
 | 12497 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | 
 | 12498 |   cat >>confdefs.h <<_ACEOF | 
 | 12499 | #define HAVE_CLOCK_GETTIME 1 | 
 | 12500 | _ACEOF | 
 | 12501 |  | 
 | 12502 | else | 
 | 12503 |  | 
 | 12504 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | 
 | 12505 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | 
 | 12506 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | 
 | 12507 |   $as_echo_n "(cached) " >&6 | 
 | 12508 | else | 
 | 12509 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12510 | LIBS="-lrt  $LIBS" | 
 | 12511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12512 | /* end confdefs.h.  */ | 
 | 12513 |  | 
 | 12514 | /* Override any GCC internal prototype to avoid an error. | 
 | 12515 |    Use char because int might match the return type of a GCC | 
 | 12516 |    builtin and then its argument prototype would still apply.  */ | 
 | 12517 | #ifdef __cplusplus | 
 | 12518 | extern "C" | 
 | 12519 | #endif | 
 | 12520 | char clock_gettime (); | 
 | 12521 | int | 
 | 12522 | main () | 
 | 12523 | { | 
 | 12524 | return clock_gettime (); | 
 | 12525 |   ; | 
 | 12526 |   return 0; | 
 | 12527 | } | 
 | 12528 | _ACEOF | 
 | 12529 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 12530 |   ac_cv_lib_rt_clock_gettime=yes | 
 | 12531 | else | 
 | 12532 |   ac_cv_lib_rt_clock_gettime=no | 
 | 12533 | fi | 
 | 12534 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12535 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12536 | LIBS=$ac_check_lib_save_LIBS | 
 | 12537 | fi | 
 | 12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | 
 | 12539 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | 
 | 12540 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | 
 | 12541 |  | 
| Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12542 |         LIBS="$LIBS -lrt" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12543 |         $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
 | 12544 |  | 
 | 12545 |  | 
 | 12546 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | 
 | 12547 |  | 
 | 12548 |  | 
 | 12549 | fi | 
 | 12550 |  | 
 | 12551 |  | 
 | 12552 | fi | 
 | 12553 | done | 
 | 12554 |  | 
 | 12555 |  | 
 | 12556 | for ac_func in clock_getres | 
 | 12557 | do : | 
 | 12558 |   ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | 
 | 12559 | if test "x$ac_cv_func_clock_getres" = xyes; then : | 
 | 12560 |   cat >>confdefs.h <<_ACEOF | 
 | 12561 | #define HAVE_CLOCK_GETRES 1 | 
 | 12562 | _ACEOF | 
 | 12563 |  | 
 | 12564 | else | 
 | 12565 |  | 
 | 12566 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | 
 | 12567 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | 
 | 12568 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | 
 | 12569 |   $as_echo_n "(cached) " >&6 | 
 | 12570 | else | 
 | 12571 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12572 | LIBS="-lrt  $LIBS" | 
 | 12573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12574 | /* end confdefs.h.  */ | 
 | 12575 |  | 
 | 12576 | /* Override any GCC internal prototype to avoid an error. | 
 | 12577 |    Use char because int might match the return type of a GCC | 
 | 12578 |    builtin and then its argument prototype would still apply.  */ | 
 | 12579 | #ifdef __cplusplus | 
 | 12580 | extern "C" | 
 | 12581 | #endif | 
 | 12582 | char clock_getres (); | 
 | 12583 | int | 
 | 12584 | main () | 
 | 12585 | { | 
 | 12586 | return clock_getres (); | 
 | 12587 |   ; | 
 | 12588 |   return 0; | 
 | 12589 | } | 
 | 12590 | _ACEOF | 
 | 12591 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 12592 |   ac_cv_lib_rt_clock_getres=yes | 
 | 12593 | else | 
 | 12594 |   ac_cv_lib_rt_clock_getres=no | 
 | 12595 | fi | 
 | 12596 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12597 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12598 | LIBS=$ac_check_lib_save_LIBS | 
 | 12599 | fi | 
 | 12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | 
 | 12601 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | 
 | 12602 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | 
 | 12603 |  | 
 | 12604 |         $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | 
 | 12605 |  | 
 | 12606 |  | 
 | 12607 | fi | 
 | 12608 |  | 
 | 12609 |  | 
 | 12610 | fi | 
 | 12611 | done | 
 | 12612 |  | 
 | 12613 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
 | 12615 | $as_echo_n "checking for major... " >&6; } | 
 | 12616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12617 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12618 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12619 | #if defined(MAJOR_IN_MKDEV) | 
 | 12620 | #include <sys/mkdev.h> | 
 | 12621 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 12622 | #include <sys/sysmacros.h> | 
 | 12623 | #else | 
 | 12624 | #include <sys/types.h> | 
 | 12625 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12626 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12627 | int | 
 | 12628 | main () | 
 | 12629 | { | 
 | 12630 |  | 
 | 12631 |   makedev(major(0),minor(0)); | 
 | 12632 |  | 
 | 12633 |   ; | 
 | 12634 |   return 0; | 
 | 12635 | } | 
 | 12636 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12637 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12638 |  | 
 | 12639 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12640 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12641 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12642 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12643 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12644 |  | 
 | 12645 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12646 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12647 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12648 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12649 |  | 
 | 12650 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12651 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12652 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12653 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12654 | # 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] | 12655 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
 | 12657 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
 | 12658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12659 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12660 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12661 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12662 | #include <sys/socket.h> | 
 | 12663 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12664 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12665 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12666 | int | 
 | 12667 | main () | 
 | 12668 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12669 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12670 |   ; | 
 | 12671 |   return 0; | 
 | 12672 | } | 
 | 12673 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12674 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12675 |   have_getaddrinfo=yes | 
 | 12676 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12677 |   have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12678 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12679 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12680 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
 | 12682 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12683 | if test $have_getaddrinfo = yes | 
 | 12684 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12685 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
 | 12686 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12687 |   if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12688 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12689 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12690 |   if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12691 |  | 
 | 12692 | if test "${enable_ipv6+set}" = set; then | 
 | 12693 |   ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
 | 12694 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12695 |   ac_cv_buggy_getaddrinfo=yes | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12696 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12697 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12698 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12699 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12700 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12701 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12702 | #include <sys/types.h> | 
 | 12703 | #include <netdb.h> | 
 | 12704 | #include <string.h> | 
 | 12705 | #include <sys/socket.h> | 
 | 12706 | #include <netinet/in.h> | 
 | 12707 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12708 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12709 | { | 
 | 12710 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 12711 |   struct addrinfo hints, *ai, *aitop; | 
 | 12712 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 12713 |  | 
 | 12714 |   for (passive = 0; passive <= 1; passive++) { | 
 | 12715 |     memset(&hints, 0, sizeof(hints)); | 
 | 12716 |     hints.ai_family = AF_UNSPEC; | 
 | 12717 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 12718 |     hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12719 |     hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12720 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 12721 |       (void)gai_strerror(gaierr); | 
 | 12722 |       goto bad; | 
 | 12723 |     } | 
 | 12724 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 12725 |       if (ai->ai_addr == NULL || | 
 | 12726 |           ai->ai_addrlen == 0 || | 
 | 12727 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 12728 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 12729 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 12730 |         goto bad; | 
 | 12731 |       } | 
 | 12732 |       switch (ai->ai_family) { | 
 | 12733 |       case AF_INET: | 
 | 12734 |         if (strcmp(strport, "54321") != 0) { | 
 | 12735 |           goto bad; | 
 | 12736 |         } | 
 | 12737 |         if (passive) { | 
 | 12738 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 12739 |             goto bad; | 
 | 12740 |           } | 
 | 12741 |         } else { | 
 | 12742 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 12743 |             goto bad; | 
 | 12744 |           } | 
 | 12745 |         } | 
 | 12746 |         inet4++; | 
 | 12747 |         break; | 
 | 12748 |       case AF_INET6: | 
 | 12749 |         if (strcmp(strport, "54321") != 0) { | 
 | 12750 |           goto bad; | 
 | 12751 |         } | 
 | 12752 |         if (passive) { | 
 | 12753 |           if (strcmp(straddr, "::") != 0) { | 
 | 12754 |             goto bad; | 
 | 12755 |           } | 
 | 12756 |         } else { | 
 | 12757 |           if (strcmp(straddr, "::1") != 0) { | 
 | 12758 |             goto bad; | 
 | 12759 |           } | 
 | 12760 |         } | 
 | 12761 |         inet6++; | 
 | 12762 |         break; | 
 | 12763 |       case AF_UNSPEC: | 
 | 12764 |         goto bad; | 
 | 12765 |         break; | 
 | 12766 |       default: | 
 | 12767 |         /* another family support? */ | 
 | 12768 |         break; | 
 | 12769 |       } | 
 | 12770 |     } | 
| Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 12771 |     freeaddrinfo(aitop); | 
 | 12772 |     aitop = NULL; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12773 |   } | 
 | 12774 |  | 
 | 12775 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 12776 |     goto bad; | 
 | 12777 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 12778 |     goto bad; | 
 | 12779 |  | 
 | 12780 |   if (aitop) | 
 | 12781 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12782 |   return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12783 |  | 
 | 12784 |  bad: | 
 | 12785 |   if (aitop) | 
 | 12786 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12787 |   return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12788 | } | 
 | 12789 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12790 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12791 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12792 |   ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12793 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12794 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12795 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12796 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12797 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12798 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12799 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12800 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12801 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12802 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12803 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
 | 12805 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
 | 12806 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12807 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12808 | then | 
 | 12809 | 	if test $ipv6 = yes | 
 | 12810 | 	then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12811 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 12812 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 12813 | 		exit 1 | 
 | 12814 | 	fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12815 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12816 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12817 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12818 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12819 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12820 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12821 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12822 | do : | 
 | 12823 |   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12824 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12825 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12826 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12827 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12828 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12829 | fi | 
 | 12830 | done | 
 | 12831 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12832 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12833 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 12835 | $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] | 12836 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12837 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12838 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12839 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12840 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12841 | #include <sys/types.h> | 
 | 12842 | #include <sys/time.h> | 
 | 12843 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12844 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 | int | 
 | 12846 | main () | 
 | 12847 | { | 
 | 12848 | if ((struct tm *) 0) | 
 | 12849 | return 0; | 
 | 12850 |   ; | 
 | 12851 |   return 0; | 
 | 12852 | } | 
 | 12853 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12854 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12855 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12856 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12857 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12858 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12860 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
 | 12862 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12863 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12864 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12865 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12866 |  | 
 | 12867 | fi | 
 | 12868 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 12870 | $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] | 12871 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12872 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12873 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12874 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12875 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12876 | #include <sys/types.h> | 
 | 12877 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12878 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12879 | int | 
 | 12880 | main () | 
 | 12881 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12882 | struct tm tm; | 
 | 12883 | 				     int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12884 | 				     return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12885 |   ; | 
 | 12886 |   return 0; | 
 | 12887 | } | 
 | 12888 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12889 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12890 |   ac_cv_struct_tm=time.h | 
 | 12891 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12892 |   ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12893 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12895 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
 | 12897 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12898 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12899 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12900 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12901 |  | 
 | 12902 | fi | 
 | 12903 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12904 | 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] | 12905 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12906 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12907 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12908 | 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] | 12909 |  | 
 | 12910 | cat >>confdefs.h <<_ACEOF | 
 | 12911 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 12912 | _ACEOF | 
 | 12913 |  | 
 | 12914 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12915 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12916 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12917 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 12918 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12919 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12920 |  | 
 | 12921 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12922 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 12923 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12924 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12925 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12926 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12927 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12928 | fi | 
 | 12929 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12930 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12931 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12932 | _ACEOF | 
 | 12933 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12934 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 12935 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12936 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12937 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12938 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12939 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12940 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12941 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12942 | #if !HAVE_DECL_TZNAME | 
 | 12943 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12944 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12945 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12946 | int | 
 | 12947 | main () | 
 | 12948 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12949 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12950 |   ; | 
 | 12951 |   return 0; | 
 | 12952 | } | 
 | 12953 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12954 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12955 |   ac_cv_var_tzname=yes | 
 | 12956 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12957 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12958 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12959 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12960 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12961 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 12963 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12964 |   if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12965 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12966 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12967 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12968 |   fi | 
 | 12969 | fi | 
 | 12970 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12971 | 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] | 12972 | 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] | 12973 |  | 
 | 12974 | cat >>confdefs.h <<_ACEOF | 
 | 12975 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
 | 12976 | _ACEOF | 
 | 12977 |  | 
 | 12978 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12979 | fi | 
 | 12980 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12981 | 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] | 12982 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12983 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12984 | cat >>confdefs.h <<_ACEOF | 
 | 12985 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
 | 12986 | _ACEOF | 
 | 12987 |  | 
 | 12988 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12989 | fi | 
 | 12990 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12991 | 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] | 12992 | 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] | 12993 |  | 
 | 12994 | cat >>confdefs.h <<_ACEOF | 
 | 12995 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
 | 12996 | _ACEOF | 
 | 12997 |  | 
 | 12998 |  | 
 | 12999 | fi | 
 | 13000 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13001 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13002 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13003 |  | 
 | 13004 | cat >>confdefs.h <<_ACEOF | 
 | 13005 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
 | 13006 | _ACEOF | 
 | 13007 |  | 
 | 13008 |  | 
 | 13009 | fi | 
 | 13010 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13011 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13012 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13013 |  | 
 | 13014 | cat >>confdefs.h <<_ACEOF | 
 | 13015 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
 | 13016 | _ACEOF | 
 | 13017 |  | 
 | 13018 |  | 
 | 13019 | fi | 
 | 13020 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13021 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13022 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13023 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13024 | cat >>confdefs.h <<_ACEOF | 
 | 13025 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
 | 13026 | _ACEOF | 
 | 13027 |  | 
 | 13028 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13029 | fi | 
 | 13030 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13031 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
 | 13033 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13034 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13035 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13036 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13037 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13038 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13039 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13040 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13041 | int | 
 | 13042 | main () | 
 | 13043 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13044 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 |   ; | 
 | 13046 |   return 0; | 
 | 13047 | } | 
 | 13048 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13049 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13050 |   ac_cv_header_time_altzone=yes | 
 | 13051 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13052 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13053 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13055 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13056 | fi | 
 | 13057 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
 | 13059 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13060 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13061 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13062 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13063 |  | 
 | 13064 | fi | 
 | 13065 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13066 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
 | 13068 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
 | 13069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13070 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13071 |  | 
 | 13072 | #include <sys/types.h> | 
 | 13073 | #include <sys/select.h> | 
 | 13074 | #include <sys/time.h> | 
 | 13075 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | int | 
 | 13077 | main () | 
 | 13078 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13079 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13080 |   ; | 
 | 13081 |   return 0; | 
 | 13082 | } | 
 | 13083 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13084 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13085 |  | 
 | 13086 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13087 | $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] | 13088 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13089 |   was_it_defined=yes | 
 | 13090 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13091 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 13094 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13095 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
 | 13097 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13098 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13099 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13100 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13101 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13102 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13103 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13104 | int | 
 | 13105 | main () | 
 | 13106 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13107 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13108 |   ; | 
 | 13109 |   return 0; | 
 | 13110 | } | 
 | 13111 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13112 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13113 |   ac_cv_struct_addrinfo=yes | 
 | 13114 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13115 |   ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13116 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13118 | fi | 
 | 13119 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
 | 13121 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13122 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13123 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13124 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13125 |  | 
 | 13126 | fi | 
 | 13127 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
 | 13129 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13130 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13131 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13132 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13133 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13134 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13135 |  | 
 | 13136 | #		include <sys/types.h> | 
 | 13137 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13138 | int | 
 | 13139 | main () | 
 | 13140 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13141 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13142 |   ; | 
 | 13143 |   return 0; | 
 | 13144 | } | 
 | 13145 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13146 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13147 |   ac_cv_struct_sockaddr_storage=yes | 
 | 13148 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13149 |   ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13150 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13152 | fi | 
 | 13153 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
 | 13155 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13156 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13157 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13158 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13159 |  | 
 | 13160 | fi | 
 | 13161 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13162 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13163 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
 | 13165 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13166 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13167 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13168 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13169 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13170 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13171 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13172 | int | 
 | 13173 | main () | 
 | 13174 | { | 
 | 13175 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13176 | test_array [0] = 0; | 
 | 13177 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13178 |  | 
 | 13179 |   ; | 
 | 13180 |   return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13181 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13182 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13183 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13184 |   ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13185 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13186 |   ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13187 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13189 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
 | 13191 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13192 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13193 |   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13194 |  | 
 | 13195 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13196 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
 | 13198 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13199 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13200 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13201 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13202 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13203 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13204 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13205 | int | 
 | 13206 | main () | 
 | 13207 | { | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13208 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13209 | #ifndef __cplusplus | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13210 |   /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13211 |   typedef int charset[2]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13212 |   const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13213 |   /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13214 |   char const *const *pcpcc; | 
 | 13215 |   char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13216 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 13217 |   struct point {int x, y;}; | 
 | 13218 |   static struct point const zero = {0,0}; | 
 | 13219 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 13220 |      It does not let you subtract one const X* pointer from another in | 
 | 13221 |      an arm of an if-expression whose if-part is not a constant | 
 | 13222 |      expression */ | 
 | 13223 |   const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13224 |   pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13225 |   /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13226 |   ++pcpcc; | 
 | 13227 |   ppc = (char**) pcpcc; | 
 | 13228 |   pcpcc = (char const *const *) ppc; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13229 |   { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
 | 13230 |     char tx; | 
 | 13231 |     char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13232 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13233 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13234 |     *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13235 |     if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13236 |   } | 
 | 13237 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 13238 |     int x[] = {25, 17}; | 
 | 13239 |     const int *foo = &x[0]; | 
 | 13240 |     ++foo; | 
 | 13241 |   } | 
 | 13242 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 13243 |     typedef const int *iptr; | 
 | 13244 |     iptr p = 0; | 
 | 13245 |     ++p; | 
 | 13246 |   } | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13247 |   { /* 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] | 13248 |        "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] | 13249 |     struct s { int j; const int *ap[3]; } bx; | 
 | 13250 |     struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13251 |   } | 
 | 13252 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 13253 |     const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13254 |     if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13255 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13256 |   return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13257 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13258 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13259 |   ; | 
 | 13260 |   return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13261 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13262 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13263 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13264 |   ac_cv_c_const=yes | 
 | 13265 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13266 |   ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13267 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13269 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
 | 13271 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13272 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13273 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13274 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13275 |  | 
 | 13276 | fi | 
 | 13277 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13278 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13279 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
 | 13281 | $as_echo_n "checking for working volatile... " >&6; } | 
 | 13282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13283 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13284 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13285 | int | 
 | 13286 | main () | 
 | 13287 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13288 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13289 |   ; | 
 | 13290 |   return 0; | 
 | 13291 | } | 
 | 13292 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13293 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13294 |   works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13295 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13296 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13297 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13298 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13299 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13300 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 13303 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13304 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13305 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
 | 13307 | $as_echo_n "checking for working signed char... " >&6; } | 
 | 13308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13309 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13310 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13311 | int | 
 | 13312 | main () | 
 | 13313 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13314 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13315 |   ; | 
 | 13316 |   return 0; | 
 | 13317 | } | 
 | 13318 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13319 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13320 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13321 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13322 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13323 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13324 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13325 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13326 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 13329 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13330 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13331 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
 | 13333 | $as_echo_n "checking for prototypes... " >&6; } | 
 | 13334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13335 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13336 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13337 | int | 
 | 13338 | main () | 
 | 13339 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13340 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13341 |   ; | 
 | 13342 |   return 0; | 
 | 13343 | } | 
 | 13344 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13345 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13346 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13347 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13348 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13349 |    have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13350 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
 | 13353 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13354 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13355 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
 | 13357 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
 | 13358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13359 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13360 |  | 
 | 13361 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13362 | int foo(int x, ...) { | 
 | 13363 | 	va_list va; | 
 | 13364 | 	va_start(va, x); | 
 | 13365 | 	va_arg(va, int); | 
 | 13366 | 	va_arg(va, char *); | 
 | 13367 | 	va_arg(va, double); | 
 | 13368 | 	return 0; | 
 | 13369 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13370 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13371 | int | 
 | 13372 | main () | 
 | 13373 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13374 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13375 |   ; | 
 | 13376 |   return 0; | 
 | 13377 | } | 
 | 13378 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13379 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13380 |  | 
 | 13381 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13382 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13383 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13384 |   works=yes | 
 | 13385 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13386 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 13389 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13390 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13391 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
 | 13393 | $as_echo_n "checking for socketpair... " >&6; } | 
 | 13394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13395 | /* end confdefs.h.  */ | 
 | 13396 |  | 
 | 13397 | #include <sys/types.h> | 
 | 13398 | #include <sys/socket.h> | 
 | 13399 |  | 
 | 13400 | int | 
 | 13401 | main () | 
 | 13402 | { | 
 | 13403 | void *x=socketpair | 
 | 13404 |   ; | 
 | 13405 |   return 0; | 
 | 13406 | } | 
 | 13407 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13408 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13409 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13410 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13411 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13412 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13413 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13414 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13415 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13416 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13417 |  | 
 | 13418 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13420 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13421 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
 | 13423 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
 | 13424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13425 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13426 | #include <sys/types.h> | 
 | 13427 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13428 | int | 
 | 13429 | main () | 
 | 13430 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13431 | struct sockaddr x; | 
 | 13432 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13433 |   ; | 
 | 13434 |   return 0; | 
 | 13435 | } | 
 | 13436 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13437 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13438 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13439 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13440 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13441 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13442 |  | 
 | 13443 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13444 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13445 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13446 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13447 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13448 | 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] | 13449 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13450 | va_list_is_array=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
 | 13452 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
 | 13453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13454 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13455 |  | 
 | 13456 | #ifdef HAVE_STDARG_PROTOTYPES | 
 | 13457 | #include <stdarg.h> | 
 | 13458 | #else | 
 | 13459 | #include <varargs.h> | 
 | 13460 | #endif | 
 | 13461 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13462 | int | 
 | 13463 | main () | 
 | 13464 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13465 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13466 |   ; | 
 | 13467 |   return 0; | 
 | 13468 | } | 
 | 13469 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13470 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13471 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13472 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13473 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13474 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13475 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13476 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13477 |  va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13478 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13479 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
 | 13482 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13483 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13484 | # 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] | 13485 |  | 
 | 13486 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13487 | 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] | 13488 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13489 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13490 |   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13491 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13492 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
 | 13493 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13494 |   OLD_CFLAGS=$CFLAGS | 
 | 13495 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13496 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13497 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13498 |  | 
 | 13499 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13500 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13501 | int | 
 | 13502 | main () | 
 | 13503 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13504 |  | 
 | 13505 |     char *name; | 
 | 13506 |     struct hostent *he, *res; | 
 | 13507 |     char buffer[2048]; | 
 | 13508 |     int buflen = 2048; | 
 | 13509 |     int h_errnop; | 
 | 13510 |  | 
 | 13511 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13512 |  | 
 | 13513 |   ; | 
 | 13514 |   return 0; | 
 | 13515 | } | 
 | 13516 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13517 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13518 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13519 |     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13520 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13521 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13522 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13523 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13524 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13525 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13526 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13527 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13528 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13529 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13530 | $as_echo "no" >&6; } | 
 | 13531 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
 | 13532 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
 | 13533 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13534 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13535 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13536 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13537 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13538 | int | 
 | 13539 | main () | 
 | 13540 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13541 |  | 
 | 13542 |         char *name; | 
 | 13543 |         struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13544 |         char buffer[2048]; | 
 | 13545 |         int buflen = 2048; | 
 | 13546 |         int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13547 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13548 |         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13549 |  | 
 | 13550 |   ; | 
 | 13551 |   return 0; | 
 | 13552 | } | 
 | 13553 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13554 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13555 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13556 |         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13557 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13558 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13559 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13560 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13561 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13562 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13563 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13564 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13565 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13566 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13567 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13568 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
 | 13569 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
 | 13570 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13571 | /* end confdefs.h.  */ | 
 | 13572 |  | 
 | 13573 | #           include <netdb.h> | 
 | 13574 |  | 
 | 13575 | int | 
 | 13576 | main () | 
 | 13577 | { | 
 | 13578 |  | 
 | 13579 |             char *name; | 
 | 13580 |             struct hostent *he; | 
 | 13581 |             struct hostent_data data; | 
 | 13582 |  | 
 | 13583 |             (void) gethostbyname_r(name, he, &data); | 
 | 13584 |  | 
 | 13585 |   ; | 
 | 13586 |   return 0; | 
 | 13587 | } | 
 | 13588 | _ACEOF | 
 | 13589 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13590 |  | 
 | 13591 |             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
 | 13592 |  | 
 | 13593 |  | 
 | 13594 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
 | 13595 |  | 
 | 13596 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13597 | $as_echo "yes" >&6; } | 
 | 13598 |  | 
 | 13599 | else | 
 | 13600 |  | 
 | 13601 |            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13602 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13603 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13604 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13605 | 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] | 13606 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13607 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13608 | 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] | 13609 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13610 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13612 |   CFLAGS=$OLD_CFLAGS | 
 | 13613 |  | 
 | 13614 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13615 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13616 |   for ac_func in gethostbyname | 
 | 13617 | do : | 
 | 13618 |   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13619 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13620 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13621 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13622 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13623 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13624 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13625 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13626 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13627 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13628 | fi | 
 | 13629 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13630 |  | 
 | 13631 |  | 
 | 13632 |  | 
 | 13633 |  | 
 | 13634 |  | 
 | 13635 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13636 | # checks for system services | 
 | 13637 | # (none yet) | 
 | 13638 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13639 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13640 | 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] | 13641 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13642 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13643 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13644 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
 | 13645 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13646 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13647 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13648 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13649 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13650 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13652 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13653 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13654 | /* Override any GCC internal prototype to avoid an error. | 
 | 13655 |    Use char because int might match the return type of a GCC | 
 | 13656 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13657 | #ifdef __cplusplus | 
 | 13658 | extern "C" | 
 | 13659 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13660 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13661 | int | 
 | 13662 | main () | 
 | 13663 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13664 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13665 |   ; | 
 | 13666 |   return 0; | 
 | 13667 | } | 
 | 13668 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13669 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13670 |   ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13671 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13672 |   ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13673 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13674 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13675 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13676 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13677 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
 | 13679 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13680 | 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] | 13681 |   cat >>confdefs.h <<_ACEOF | 
 | 13682 | #define HAVE_LIBIEEE 1 | 
 | 13683 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13684 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13685 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13686 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13687 | fi | 
 | 13688 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13689 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13690 | fi | 
 | 13691 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13692 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13693 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
 | 13695 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13696 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13697 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13698 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13699 |   withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13700 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13701 | then | 
 | 13702 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13703 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13704 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13705 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13706 | $as_echo "yes" >&6; } | 
 | 13707 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13708 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13709 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13710 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13711 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13712 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13713 | fi | 
 | 13714 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13715 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13716 | # check for --with-libm=... | 
 | 13717 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13718 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13719 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13720 | *) LIBM=-lm | 
 | 13721 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
 | 13723 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13724 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13725 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13726 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13727 |   withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13728 | if test "$withval" = no | 
 | 13729 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13730 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
 | 13731 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13732 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13733 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13734 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
 | 13735 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13736 | 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] | 13737 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13738 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13739 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
 | 13740 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13741 | fi | 
 | 13742 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13743 |  | 
 | 13744 | # check for --with-libc=... | 
 | 13745 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
 | 13747 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13748 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13749 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13750 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13751 |   withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13752 | if test "$withval" = no | 
 | 13753 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13754 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
 | 13755 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13756 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13757 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13758 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
 | 13759 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13760 | 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] | 13761 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13762 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13763 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
 | 13764 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13765 | fi | 
 | 13766 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13767 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13768 | # ************************************** | 
 | 13769 | # * Check for gcc x64 inline assembler * | 
 | 13770 | # ************************************** | 
 | 13771 |  | 
 | 13772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | 
 | 13773 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | 
 | 13774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13775 | /* end confdefs.h.  */ | 
 | 13776 |  | 
 | 13777 | int | 
 | 13778 | main () | 
 | 13779 | { | 
 | 13780 |  | 
 | 13781 |   __asm__ __volatile__ ("movq %rcx, %rax"); | 
 | 13782 |  | 
 | 13783 |   ; | 
 | 13784 |   return 0; | 
 | 13785 | } | 
 | 13786 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13787 | if ac_fn_c_try_link "$LINENO"; then : | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13788 |   have_gcc_asm_for_x64=yes | 
 | 13789 | else | 
 | 13790 |   have_gcc_asm_for_x64=no | 
 | 13791 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13792 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13793 |     conftest$ac_exeext conftest.$ac_ext | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 | 
 | 13795 | $as_echo "$have_gcc_asm_for_x64" >&6; } | 
 | 13796 | if test "$have_gcc_asm_for_x64" = yes | 
 | 13797 | then | 
 | 13798 |  | 
 | 13799 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | 
 | 13800 |  | 
 | 13801 | fi | 
 | 13802 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13803 | # ************************************************** | 
 | 13804 | # * Check for various properties of floating point * | 
 | 13805 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13806 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
 | 13808 | $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] | 13809 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13810 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13811 | else | 
 | 13812 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13813 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13814 |   ac_cv_little_endian_double=no | 
 | 13815 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13816 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13817 | /* end confdefs.h.  */ | 
 | 13818 |  | 
 | 13819 | #include <string.h> | 
 | 13820 | int main() { | 
 | 13821 |     double x = 9006104071832581.0; | 
 | 13822 |     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
 | 13823 |         return 0; | 
 | 13824 |     else | 
 | 13825 |         return 1; | 
 | 13826 | } | 
 | 13827 |  | 
 | 13828 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13829 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13830 |   ac_cv_little_endian_double=yes | 
 | 13831 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13832 |   ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13833 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13834 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13835 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13836 | fi | 
 | 13837 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13838 | fi | 
 | 13839 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
 | 13841 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13842 | if test "$ac_cv_little_endian_double" = yes | 
 | 13843 | then | 
 | 13844 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13845 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13846 |  | 
 | 13847 | fi | 
 | 13848 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
 | 13850 | $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] | 13851 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13852 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13853 | else | 
 | 13854 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13855 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13856 |   ac_cv_big_endian_double=no | 
 | 13857 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13858 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13859 | /* end confdefs.h.  */ | 
 | 13860 |  | 
 | 13861 | #include <string.h> | 
 | 13862 | int main() { | 
 | 13863 |     double x = 9006104071832581.0; | 
 | 13864 |     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
 | 13865 |         return 0; | 
 | 13866 |     else | 
 | 13867 |         return 1; | 
 | 13868 | } | 
 | 13869 |  | 
 | 13870 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13871 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13872 |   ac_cv_big_endian_double=yes | 
 | 13873 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13874 |   ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13875 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13876 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13877 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13878 | fi | 
 | 13879 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13880 | fi | 
 | 13881 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
 | 13883 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13884 | if test "$ac_cv_big_endian_double" = yes | 
 | 13885 | then | 
 | 13886 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13887 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13888 |  | 
 | 13889 | fi | 
 | 13890 |  | 
 | 13891 | # Some ARM platforms use a mixed-endian representation for doubles. | 
 | 13892 | # While Python doesn't currently have full support for these platforms | 
 | 13893 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
 | 13894 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
 | 13896 | $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] | 13897 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13898 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13899 | else | 
 | 13900 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13901 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13902 |   ac_cv_mixed_endian_double=no | 
 | 13903 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13904 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13905 | /* end confdefs.h.  */ | 
 | 13906 |  | 
 | 13907 | #include <string.h> | 
 | 13908 | int main() { | 
 | 13909 |     double x = 9006104071832581.0; | 
 | 13910 |     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
 | 13911 |         return 0; | 
 | 13912 |     else | 
 | 13913 |         return 1; | 
 | 13914 | } | 
 | 13915 |  | 
 | 13916 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13917 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13918 |   ac_cv_mixed_endian_double=yes | 
 | 13919 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13920 |   ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13921 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13922 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13923 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13924 | fi | 
 | 13925 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13926 | fi | 
 | 13927 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
 | 13929 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13930 | if test "$ac_cv_mixed_endian_double" = yes | 
 | 13931 | then | 
 | 13932 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13933 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13934 |  | 
 | 13935 | fi | 
 | 13936 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13937 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13938 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13939 | # 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] | 13940 | # 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] | 13941 | # 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] | 13942 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13943 |  | 
 | 13944 | # This inline assembler syntax may also work for suncc and icc, | 
 | 13945 | # so we try it on all platforms. | 
 | 13946 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
 | 13948 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
 | 13949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13950 | /* end confdefs.h.  */ | 
 | 13951 |  | 
 | 13952 | int | 
 | 13953 | main () | 
 | 13954 | { | 
 | 13955 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13956 |   unsigned short cw; | 
 | 13957 |   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
 | 13958 |   __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13959 |  | 
 | 13960 |   ; | 
 | 13961 |   return 0; | 
 | 13962 | } | 
 | 13963 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13964 | if ac_fn_c_try_link "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13965 |   have_gcc_asm_for_x87=yes | 
 | 13966 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13967 |   have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13968 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13969 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13970 |     conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
 | 13972 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13973 | if test "$have_gcc_asm_for_x87" = yes | 
 | 13974 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13975 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13976 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13977 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13978 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13979 |  | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 | 
 | 13981 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | 
 | 13982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13983 | /* end confdefs.h.  */ | 
 | 13984 |  | 
 | 13985 | int | 
 | 13986 | main () | 
 | 13987 | { | 
 | 13988 |  | 
 | 13989 |   unsigned int fpcr; | 
 | 13990 |   __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | 
 | 13991 |   __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | 
 | 13992 |  | 
 | 13993 |   ; | 
 | 13994 |   return 0; | 
 | 13995 | } | 
 | 13996 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13997 | if ac_fn_c_try_link "$LINENO"; then : | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13998 |   have_gcc_asm_for_mc68881=yes | 
 | 13999 | else | 
 | 14000 |   have_gcc_asm_for_mc68881=no | 
 | 14001 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14002 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14003 |     conftest$ac_exeext conftest.$ac_ext | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 | 
 | 14005 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | 
 | 14006 | if test "$have_gcc_asm_for_mc68881" = yes | 
 | 14007 | then | 
 | 14008 |  | 
 | 14009 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | 
 | 14010 |  | 
 | 14011 | fi | 
 | 14012 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14013 | # Detect whether system arithmetic is subject to x87-style double | 
 | 14014 | # rounding issues.  The result of this test has little meaning on non | 
 | 14015 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
 | 14016 | # mode is round-to-nearest and double rounding issues are present, and | 
 | 14017 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
 | 14019 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14020 | # $BASECFLAGS may affect the result | 
 | 14021 | ac_save_cc="$CC" | 
 | 14022 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14023 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14024 |   ac_cv_x87_double_rounding=no | 
 | 14025 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14026 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14027 | /* end confdefs.h.  */ | 
 | 14028 |  | 
 | 14029 | #include <stdlib.h> | 
 | 14030 | #include <math.h> | 
 | 14031 | int main() { | 
 | 14032 |     volatile double x, y, z; | 
 | 14033 |     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
 | 14034 |     x = 0.99999999999999989; /* 1-2**-53 */ | 
 | 14035 |     y = 1./x; | 
 | 14036 |     if (y != 1.) | 
 | 14037 |         exit(0); | 
 | 14038 |     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
 | 14039 |     x = 1e16; | 
 | 14040 |     y = 2.99999; | 
 | 14041 |     z = x + y; | 
 | 14042 |     if (z != 1e16+4.) | 
 | 14043 |         exit(0); | 
 | 14044 |     /* both tests show evidence of double rounding */ | 
 | 14045 |     exit(1); | 
 | 14046 | } | 
 | 14047 |  | 
 | 14048 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14049 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14050 |   ac_cv_x87_double_rounding=no | 
 | 14051 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14052 |   ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14053 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14054 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14055 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14056 | fi | 
 | 14057 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14058 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
 | 14060 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14061 | if test "$ac_cv_x87_double_rounding" = yes | 
 | 14062 | then | 
 | 14063 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14064 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14065 |  | 
 | 14066 | fi | 
 | 14067 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14068 | # ************************************ | 
 | 14069 | # * Check for mathematical functions * | 
 | 14070 | # ************************************ | 
 | 14071 |  | 
 | 14072 | LIBS_SAVE=$LIBS | 
 | 14073 | LIBS="$LIBS $LIBM" | 
 | 14074 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14075 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
 | 14076 | do : | 
 | 14077 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 14078 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14079 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14080 |   cat >>confdefs.h <<_ACEOF | 
 | 14081 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 14082 | _ACEOF | 
 | 14083 |  | 
 | 14084 | fi | 
 | 14085 | done | 
 | 14086 |  | 
| Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 14087 | for ac_func in hypot lgamma log1p log2 round tgamma | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14088 | do : | 
 | 14089 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 14090 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14091 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14092 |   cat >>confdefs.h <<_ACEOF | 
 | 14093 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 14094 | _ACEOF | 
 | 14095 |  | 
 | 14096 | fi | 
 | 14097 | done | 
 | 14098 |  | 
 | 14099 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
 | 14100 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14101 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14102 |   ac_have_decl=1 | 
 | 14103 | else | 
 | 14104 |   ac_have_decl=0 | 
 | 14105 | fi | 
 | 14106 |  | 
 | 14107 | cat >>confdefs.h <<_ACEOF | 
 | 14108 | #define HAVE_DECL_ISINF $ac_have_decl | 
 | 14109 | _ACEOF | 
 | 14110 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
 | 14111 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14112 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14113 |   ac_have_decl=1 | 
 | 14114 | else | 
 | 14115 |   ac_have_decl=0 | 
 | 14116 | fi | 
 | 14117 |  | 
 | 14118 | cat >>confdefs.h <<_ACEOF | 
 | 14119 | #define HAVE_DECL_ISNAN $ac_have_decl | 
 | 14120 | _ACEOF | 
 | 14121 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
 | 14122 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14123 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14124 |   ac_have_decl=1 | 
 | 14125 | else | 
 | 14126 |   ac_have_decl=0 | 
 | 14127 | fi | 
 | 14128 |  | 
 | 14129 | cat >>confdefs.h <<_ACEOF | 
 | 14130 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
 | 14131 | _ACEOF | 
 | 14132 |  | 
 | 14133 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14134 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
 | 14135 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
 | 14137 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14138 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14139 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14140 | else | 
 | 14141 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14142 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14143 |   ac_cv_tanh_preserves_zero_sign=no | 
 | 14144 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14145 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14146 | /* end confdefs.h.  */ | 
 | 14147 |  | 
 | 14148 | #include <math.h> | 
 | 14149 | #include <stdlib.h> | 
 | 14150 | int main() { | 
 | 14151 |     /* return 0 if either negative zeros don't exist | 
 | 14152 |        on this platform or if negative zeros exist | 
 | 14153 |        and tanh(-0.) == -0. */ | 
 | 14154 |   if (atan2(0., -1.) == atan2(-0., -1.) || | 
 | 14155 |       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
 | 14156 |   else exit(1); | 
 | 14157 | } | 
 | 14158 |  | 
 | 14159 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14160 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14161 |   ac_cv_tanh_preserves_zero_sign=yes | 
 | 14162 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14163 |   ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14164 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14165 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14166 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14167 | fi | 
 | 14168 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14169 | fi | 
 | 14170 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
 | 14172 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14173 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
 | 14174 | then | 
 | 14175 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14176 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14177 |  | 
 | 14178 | fi | 
 | 14179 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14180 | if test "$ac_cv_func_log1p" = yes | 
 | 14181 | then | 
 | 14182 |     # On some versions of AIX, log1p(-0.) returns 0. instead of | 
 | 14183 |     # -0.  See issue #9920. | 
 | 14184 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
 | 14185 | $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] | 14186 |     if ${ac_cv_log1p_drops_zero_sign+:} false; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14187 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14188 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14189 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14190 |     if test "$cross_compiling" = yes; then : | 
 | 14191 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14192 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14193 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14194 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14195 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14196 |     #include <math.h> | 
 | 14197 |     #include <stdlib.h> | 
 | 14198 |     int main() { | 
 | 14199 |         /* Fail if the signs of log1p(-0.) and -0. can be | 
 | 14200 | 	   distinguished. */ | 
 | 14201 |         if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
 | 14202 |             return 0; | 
 | 14203 |         else | 
 | 14204 |             return 1; | 
 | 14205 |     } | 
 | 14206 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14207 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14208 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 14209 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14210 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14211 |   ac_cv_log1p_drops_zero_sign=yes | 
 | 14212 | fi | 
 | 14213 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14214 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14215 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14216 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14217 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14218 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14219 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
 | 14220 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
 | 14221 | fi | 
 | 14222 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
 | 14223 | then | 
 | 14224 |  | 
 | 14225 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
 | 14226 |  | 
 | 14227 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14228 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14229 | LIBS=$LIBS_SAVE | 
 | 14230 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14231 | # For multiprocessing module, check that sem_open | 
 | 14232 | # actually works.  For FreeBSD versions <= 7.2, | 
 | 14233 | # the kernel module that provides POSIX semaphores | 
 | 14234 | # isn't loaded by default, so an attempt to call | 
 | 14235 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
 | 14237 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14238 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14239 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14240 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14241 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14242 |   ac_cv_posix_semaphores_enabled=yes | 
 | 14243 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14244 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14245 | /* end confdefs.h.  */ | 
 | 14246 |  | 
 | 14247 | #include <unistd.h> | 
 | 14248 | #include <fcntl.h> | 
 | 14249 | #include <stdio.h> | 
 | 14250 | #include <semaphore.h> | 
 | 14251 | #include <sys/stat.h> | 
 | 14252 |  | 
 | 14253 | int main(void) { | 
 | 14254 |   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
 | 14255 |   if (a == SEM_FAILED) { | 
 | 14256 |     perror("sem_open"); | 
 | 14257 |     return 1; | 
 | 14258 |   } | 
 | 14259 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14260 |   sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14261 |   return 0; | 
 | 14262 | } | 
 | 14263 |  | 
 | 14264 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14265 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14266 |   ac_cv_posix_semaphores_enabled=yes | 
 | 14267 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14268 |   ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14269 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14270 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14271 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14272 | fi | 
 | 14273 |  | 
 | 14274 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14275 | fi | 
 | 14276 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
 | 14278 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14279 | if test $ac_cv_posix_semaphores_enabled = no | 
 | 14280 | then | 
 | 14281 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14282 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14283 |  | 
 | 14284 | fi | 
 | 14285 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14286 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
 | 14288 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14289 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14290 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14291 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14292 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14293 |   ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14294 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14295 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14296 | /* end confdefs.h.  */ | 
 | 14297 |  | 
 | 14298 | #include <unistd.h> | 
 | 14299 | #include <fcntl.h> | 
 | 14300 | #include <stdio.h> | 
 | 14301 | #include <semaphore.h> | 
 | 14302 | #include <sys/stat.h> | 
 | 14303 |  | 
 | 14304 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14305 |   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] | 14306 |   int count; | 
 | 14307 |   int res; | 
 | 14308 |   if(a==SEM_FAILED){ | 
 | 14309 |     perror("sem_open"); | 
 | 14310 |     return 1; | 
 | 14311 |  | 
 | 14312 |   } | 
 | 14313 |   res = sem_getvalue(a, &count); | 
 | 14314 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14315 |   sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14316 |   return res==-1 ? 1 : 0; | 
 | 14317 | } | 
 | 14318 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14319 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14320 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14321 |   ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14322 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14323 |   ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14324 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14325 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14326 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14327 | fi | 
 | 14328 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14329 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14330 | fi | 
 | 14331 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
 | 14333 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14334 | if test $ac_cv_broken_sem_getvalue = yes | 
 | 14335 | then | 
 | 14336 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14337 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14338 |  | 
 | 14339 | fi | 
 | 14340 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14341 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
 | 14343 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14344 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14345 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14346 |   enableval=$enable_big_digits; case $enable_big_digits in | 
 | 14347 | yes) | 
 | 14348 |   enable_big_digits=30 ;; | 
 | 14349 | no) | 
 | 14350 |   enable_big_digits=15 ;; | 
 | 14351 | 15|30) | 
 | 14352 |   ;; | 
 | 14353 | *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14354 |   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] | 14355 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
 | 14357 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14358 |  | 
 | 14359 | cat >>confdefs.h <<_ACEOF | 
 | 14360 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
 | 14361 | _ACEOF | 
 | 14362 |  | 
 | 14363 |  | 
 | 14364 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14365 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 14366 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14367 | fi | 
 | 14368 |  | 
 | 14369 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14370 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14371 | 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] | 14372 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14373 |  | 
 | 14374 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14375 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14376 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14377 |   wchar_h="yes" | 
 | 14378 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14379 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14380 |   wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14381 |  | 
 | 14382 | fi | 
 | 14383 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14384 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14385 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14386 | # determine wchar_t size | 
 | 14387 | if test "$wchar_h" = yes | 
 | 14388 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14389 |   # 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] | 14390 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 14391 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 14392 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
 | 14394 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14395 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14396 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14397 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14398 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
 | 14399 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14400 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14401 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14402 |   if test "$ac_cv_type_wchar_t" = yes; then | 
 | 14403 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 14404 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14405 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14406 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14407 |    else | 
 | 14408 |      ac_cv_sizeof_wchar_t=0 | 
 | 14409 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14410 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14411 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14412 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
 | 14414 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14415 |  | 
 | 14416 |  | 
 | 14417 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14418 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14419 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14420 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14421 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14422 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14423 | fi | 
 | 14424 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
 | 14426 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14427 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14429 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14430 |  | 
 | 14431 | #include <tcl.h> | 
 | 14432 | #if TCL_UTF_MAX != 6 | 
 | 14433 | # error "NOT UCS4_TCL" | 
 | 14434 | #endif | 
 | 14435 | int | 
 | 14436 | main () | 
 | 14437 | { | 
 | 14438 |  | 
 | 14439 |   ; | 
 | 14440 |   return 0; | 
 | 14441 | } | 
 | 14442 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14443 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14444 |  | 
 | 14445 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14446 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14447 |  | 
 | 14448 |   have_ucs4_tcl=yes | 
 | 14449 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14450 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
 | 14453 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14454 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14455 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14456 | if test "$wchar_h" = yes | 
 | 14457 | then | 
 | 14458 |   # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14459 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
 | 14460 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14461 |   if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14462 |   $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14463 | else | 
 | 14464 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14465 |   if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14466 |   ac_cv_wchar_t_signed=yes | 
 | 14467 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14468 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14469 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14470 |  | 
 | 14471 |   #include <wchar.h> | 
 | 14472 |   int main() | 
 | 14473 |   { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14474 | 	/* Success: exit code 0 */ | 
 | 14475 |         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14476 |   } | 
 | 14477 |  | 
 | 14478 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14479 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14480 |   ac_cv_wchar_t_signed=yes | 
 | 14481 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14482 |   ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14483 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14484 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14485 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14486 | fi | 
 | 14487 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14488 | fi | 
 | 14489 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14490 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
 | 14491 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14492 | fi | 
 | 14493 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14494 | # 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] | 14495 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14496 |           -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14497 | then | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14498 |   HAVE_USABLE_WCHAR_T="yes" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14499 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14500 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14501 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14502 | else | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14503 |   HAVE_USABLE_WCHAR_T="no usable wchar_t found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14504 | fi | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 | 
 | 14506 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14507 |  | 
 | 14508 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14509 |  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
 | 14510 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14511 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14512 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14513 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14514 |   ac_cv_c_bigendian=unknown | 
 | 14515 |     # See if we're dealing with a universal compiler. | 
 | 14516 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14517 | /* end confdefs.h.  */ | 
 | 14518 | #ifndef __APPLE_CC__ | 
 | 14519 | 	       not a universal capable compiler | 
 | 14520 | 	     #endif | 
 | 14521 | 	     typedef int dummy; | 
 | 14522 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14523 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14524 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14525 |  | 
 | 14526 | 	# Check for potential -arch flags.  It is not universal unless | 
 | 14527 | 	# there are at least two -arch flags with different values. | 
 | 14528 | 	ac_arch= | 
 | 14529 | 	ac_prev= | 
 | 14530 | 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
 | 14531 | 	 if test -n "$ac_prev"; then | 
 | 14532 | 	   case $ac_word in | 
 | 14533 | 	     i?86 | x86_64 | ppc | ppc64) | 
 | 14534 | 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
 | 14535 | 		 ac_arch=$ac_word | 
 | 14536 | 	       else | 
 | 14537 | 		 ac_cv_c_bigendian=universal | 
 | 14538 | 		 break | 
 | 14539 | 	       fi | 
 | 14540 | 	       ;; | 
 | 14541 | 	   esac | 
 | 14542 | 	   ac_prev= | 
 | 14543 | 	 elif test "x$ac_word" = "x-arch"; then | 
 | 14544 | 	   ac_prev=arch | 
 | 14545 | 	 fi | 
 | 14546 |        done | 
 | 14547 | fi | 
 | 14548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14549 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 14550 |       # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 14551 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14552 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14553 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14554 | 	     #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14555 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14556 | int | 
 | 14557 | main () | 
 | 14558 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14559 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
 | 14560 | 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
 | 14561 | 		     && LITTLE_ENDIAN) | 
 | 14562 | 	      bogus endian macros | 
 | 14563 | 	     #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14564 |  | 
 | 14565 |   ; | 
 | 14566 |   return 0; | 
 | 14567 | } | 
 | 14568 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14569 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14570 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14571 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14572 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14573 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14574 | 		#include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14575 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14576 | int | 
 | 14577 | main () | 
 | 14578 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14579 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14580 | 		 not big endian | 
 | 14581 | 		#endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14582 |  | 
 | 14583 |   ; | 
 | 14584 |   return 0; | 
 | 14585 | } | 
 | 14586 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14587 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14588 |   ac_cv_c_bigendian=yes | 
 | 14589 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14590 |   ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14591 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14593 | fi | 
 | 14594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14595 |     fi | 
 | 14596 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 14597 |       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
 | 14598 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14599 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14600 | #include <limits.h> | 
 | 14601 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14602 | int | 
 | 14603 | main () | 
 | 14604 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14605 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
 | 14606 | 	      bogus endian macros | 
 | 14607 | 	     #endif | 
 | 14608 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14609 |   ; | 
 | 14610 |   return 0; | 
 | 14611 | } | 
 | 14612 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14613 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14614 |   # It does; now see whether it defined to _BIG_ENDIAN or not. | 
 | 14615 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14616 | /* end confdefs.h.  */ | 
 | 14617 | #include <limits.h> | 
 | 14618 |  | 
 | 14619 | int | 
 | 14620 | main () | 
 | 14621 | { | 
 | 14622 | #ifndef _BIG_ENDIAN | 
 | 14623 | 		 not big endian | 
 | 14624 | 		#endif | 
 | 14625 |  | 
 | 14626 |   ; | 
 | 14627 |   return 0; | 
 | 14628 | } | 
 | 14629 | _ACEOF | 
 | 14630 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14631 |   ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14632 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14633 |   ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14634 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14636 | fi | 
 | 14637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14638 |     fi | 
 | 14639 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 14640 |       # Compile a test program. | 
 | 14641 |       if test "$cross_compiling" = yes; then : | 
 | 14642 |   # Try to guess by grepping values from an object file. | 
 | 14643 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14644 | /* end confdefs.h.  */ | 
 | 14645 | short int ascii_mm[] = | 
 | 14646 | 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 14647 | 		short int ascii_ii[] = | 
 | 14648 | 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 14649 | 		int use_ascii (int i) { | 
 | 14650 | 		  return ascii_mm[i] + ascii_ii[i]; | 
 | 14651 | 		} | 
 | 14652 | 		short int ebcdic_ii[] = | 
 | 14653 | 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 14654 | 		short int ebcdic_mm[] = | 
 | 14655 | 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 14656 | 		int use_ebcdic (int i) { | 
 | 14657 | 		  return ebcdic_mm[i] + ebcdic_ii[i]; | 
 | 14658 | 		} | 
 | 14659 | 		extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14660 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14661 | int | 
 | 14662 | main () | 
 | 14663 | { | 
 | 14664 | return use_ascii (foo) == use_ebcdic (foo); | 
 | 14665 |   ; | 
 | 14666 |   return 0; | 
 | 14667 | } | 
 | 14668 | _ACEOF | 
 | 14669 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14670 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
 | 14671 | 	      ac_cv_c_bigendian=yes | 
 | 14672 | 	    fi | 
 | 14673 | 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 14674 | 	      if test "$ac_cv_c_bigendian" = unknown; then | 
 | 14675 | 		ac_cv_c_bigendian=no | 
 | 14676 | 	      else | 
 | 14677 | 		# finding both strings is unlikely to happen, but who knows? | 
 | 14678 | 		ac_cv_c_bigendian=unknown | 
 | 14679 | 	      fi | 
 | 14680 | 	    fi | 
 | 14681 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14682 | 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] | 14683 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14684 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14685 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14686 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14687 | int | 
 | 14688 | main () | 
 | 14689 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14690 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14691 | 	     /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 14692 | 	     union | 
 | 14693 | 	     { | 
 | 14694 | 	       long int l; | 
 | 14695 | 	       char c[sizeof (long int)]; | 
 | 14696 | 	     } u; | 
 | 14697 | 	     u.l = 1; | 
 | 14698 | 	     return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14699 |  | 
 | 14700 |   ; | 
 | 14701 |   return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14702 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14703 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14704 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14705 |   ac_cv_c_bigendian=no | 
 | 14706 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14707 |   ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14708 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14709 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14710 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14711 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14712 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14713 |     fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14714 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
 | 14716 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
 | 14717 |  case $ac_cv_c_bigendian in #( | 
 | 14718 |    yes) | 
 | 14719 |      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
 | 14720 | ;; #( | 
 | 14721 |    no) | 
 | 14722 |       ;; #( | 
 | 14723 |    universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14724 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14725 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14726 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14727 |      ;; #( | 
 | 14728 |    *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14729 |      as_fn_error $? "unknown endianness | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14730 |  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14731 |  esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14732 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14733 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14734 | # ABI version string for Python extension modules.  This appears between the | 
 | 14735 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
 | 14736 | # from the following attributes which affect the ABI of this Python build (in | 
 | 14737 | # this order): | 
 | 14738 | # | 
 | 14739 | # * The Python implementation (always 'cpython-' for us) | 
 | 14740 | # * The major and minor version numbers | 
 | 14741 | # * --with-pydebug (adds a 'd') | 
 | 14742 | # * --with-pymalloc (adds a 'm') | 
 | 14743 | # * --with-wide-unicode (adds a 'u') | 
 | 14744 | # | 
 | 14745 | # 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] | 14746 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
 | 14747 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14748 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
 | 14750 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
 | 14751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
 | 14752 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
 | 14754 | $as_echo_n "checking SOABI... " >&6; } | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14755 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
 | 14757 | $as_echo "$SOABI" >&6; } | 
 | 14758 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14759 |  | 
 | 14760 | case $ac_sys_system in | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 14761 |     Linux*|GNU*|Darwin) | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14762 | 	EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; | 
 | 14763 |     *) | 
 | 14764 | 	EXT_SUFFIX=${SHLIB_SUFFIX};; | 
 | 14765 | esac | 
 | 14766 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
 | 14768 | $as_echo_n "checking LDVERSION... " >&6; } | 
 | 14769 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
 | 14770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
 | 14771 | $as_echo "$LDVERSION" >&6; } | 
 | 14772 |  | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14773 |  | 
| doko@ubuntu.com | e8042e5 | 2015-05-06 01:13:02 +0200 | [diff] [blame] | 14774 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14775 |  | 
 | 14776 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14777 | # Check whether right shifting a negative integer extends the sign bit | 
 | 14778 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
 | 14780 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14781 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14782 |   $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14783 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14784 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14785 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14786 |   ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14787 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14788 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14789 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14790 |  | 
 | 14791 | int main() | 
 | 14792 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14793 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14794 | } | 
 | 14795 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14796 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14797 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14798 |   ac_cv_rshift_extends_sign=yes | 
 | 14799 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14800 |   ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14801 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14802 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14803 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14804 | fi | 
 | 14805 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14806 | fi | 
 | 14807 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
 | 14809 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14810 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14811 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14812 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14813 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14814 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14815 | fi | 
 | 14816 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14817 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
 | 14819 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14820 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14821 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14822 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14823 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14825 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14826 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14827 | int | 
 | 14828 | main () | 
 | 14829 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14830 |  | 
 | 14831 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 14832 | 	flockfile(f); | 
 | 14833 | 	getc_unlocked(f); | 
 | 14834 | 	funlockfile(f); | 
 | 14835 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14836 |   ; | 
 | 14837 |   return 0; | 
 | 14838 | } | 
 | 14839 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14840 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14841 |   ac_cv_have_getc_unlocked=yes | 
 | 14842 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14843 |   ac_cv_have_getc_unlocked=no | 
 | 14844 | fi | 
 | 14845 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14846 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14847 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14848 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
 | 14850 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14851 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 14852 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14853 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14854 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14855 |  | 
 | 14856 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14857 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14858 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14859 | # save the value of LIBS so we don't actually link Python with readline | 
 | 14860 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14861 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14862 | # On some systems we need to link readline to a termcap compatible | 
 | 14863 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
 | 14864 | # with setup.py. | 
 | 14865 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
 | 14867 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 14868 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14869 |   if test -z "$py_libtermcap"; then | 
 | 14870 |     READLINE_LIBS="-lreadline" | 
 | 14871 |   else | 
 | 14872 |     READLINE_LIBS="-lreadline -l$py_libtermcap" | 
 | 14873 |   fi | 
 | 14874 |   LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14875 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14876 | /* end confdefs.h.  */ | 
 | 14877 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14878 | /* Override any GCC internal prototype to avoid an error. | 
 | 14879 |    Use char because int might match the return type of a GCC | 
 | 14880 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14881 | #ifdef __cplusplus | 
 | 14882 | extern "C" | 
 | 14883 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14884 | char readline (); | 
 | 14885 | int | 
 | 14886 | main () | 
 | 14887 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14888 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14889 |   ; | 
 | 14890 |   return 0; | 
 | 14891 | } | 
 | 14892 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14893 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14894 |   py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14895 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14896 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14897 |     conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14898 |   if test $py_cv_lib_readline = yes; then | 
 | 14899 |     break | 
 | 14900 |   fi | 
 | 14901 | done | 
 | 14902 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
 | 14903 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 14904 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14905 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 14906 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14907 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14908 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
 | 14909 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14910 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14911 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14912 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14913 | fi | 
 | 14914 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14915 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
 | 14917 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14918 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14919 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14920 | else | 
 | 14921 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14922 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14924 | /* end confdefs.h.  */ | 
 | 14925 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14926 | /* Override any GCC internal prototype to avoid an error. | 
 | 14927 |    Use char because int might match the return type of a GCC | 
 | 14928 |    builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14929 | #ifdef __cplusplus | 
 | 14930 | extern "C" | 
 | 14931 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14932 | char rl_callback_handler_install (); | 
 | 14933 | int | 
 | 14934 | main () | 
 | 14935 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14936 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14937 |   ; | 
 | 14938 |   return 0; | 
 | 14939 | } | 
 | 14940 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14941 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14942 |   ac_cv_lib_readline_rl_callback_handler_install=yes | 
 | 14943 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14944 |   ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14945 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14946 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14947 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14948 | LIBS=$ac_check_lib_save_LIBS | 
 | 14949 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
 | 14951 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14952 | 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] | 14953 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14954 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14955 |  | 
 | 14956 | fi | 
 | 14957 |  | 
 | 14958 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14959 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14961 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14962 | #include <readline/readline.h> | 
 | 14963 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14964 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14965 |   have_readline=yes | 
 | 14966 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14967 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14968 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14969 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14970 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14971 | if test $have_readline = yes | 
 | 14972 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14973 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14974 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14975 | #include <readline/readline.h> | 
 | 14976 |  | 
 | 14977 | _ACEOF | 
 | 14978 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14979 |   $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14980 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14981 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14982 |  | 
 | 14983 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14984 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14985 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14986 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14987 | /* end confdefs.h.  */ | 
 | 14988 | #include <readline/readline.h> | 
 | 14989 |  | 
 | 14990 | _ACEOF | 
 | 14991 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14992 |   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14993 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14994 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14995 |  | 
 | 14996 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14997 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14998 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14999 | fi | 
 | 15000 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15001 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
 | 15003 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15004 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15005 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15006 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15007 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15008 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15010 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15011 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15012 | /* Override any GCC internal prototype to avoid an error. | 
 | 15013 |    Use char because int might match the return type of a GCC | 
 | 15014 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15015 | #ifdef __cplusplus | 
 | 15016 | extern "C" | 
 | 15017 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15018 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15019 | int | 
 | 15020 | main () | 
 | 15021 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15022 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15023 |   ; | 
 | 15024 |   return 0; | 
 | 15025 | } | 
 | 15026 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15027 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15028 |   ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15029 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15030 |   ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15031 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15032 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15033 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15034 | LIBS=$ac_check_lib_save_LIBS | 
 | 15035 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
 | 15037 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15038 | 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] | 15039 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15040 | $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] | 15041 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15042 | fi | 
 | 15043 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15044 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15045 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
 | 15047 | $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] | 15048 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15049 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15050 | else | 
 | 15051 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15052 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15054 | /* end confdefs.h.  */ | 
 | 15055 |  | 
 | 15056 | /* Override any GCC internal prototype to avoid an error. | 
 | 15057 |    Use char because int might match the return type of a GCC | 
 | 15058 |    builtin and then its argument prototype would still apply.  */ | 
 | 15059 | #ifdef __cplusplus | 
 | 15060 | extern "C" | 
 | 15061 | #endif | 
 | 15062 | char rl_completion_display_matches_hook (); | 
 | 15063 | int | 
 | 15064 | main () | 
 | 15065 | { | 
 | 15066 | return rl_completion_display_matches_hook (); | 
 | 15067 |   ; | 
 | 15068 |   return 0; | 
 | 15069 | } | 
 | 15070 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15071 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15072 |   ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
 | 15073 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15074 |   ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15075 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15076 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15077 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15078 | LIBS=$ac_check_lib_save_LIBS | 
 | 15079 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
 | 15081 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15082 | 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] | 15083 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15084 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15085 |  | 
 | 15086 | fi | 
 | 15087 |  | 
 | 15088 |  | 
| Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15089 | # also in 4.0, but not in editline | 
 | 15090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | 
 | 15091 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | 
 | 15092 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | 
 | 15093 |   $as_echo_n "(cached) " >&6 | 
 | 15094 | else | 
 | 15095 |   ac_check_lib_save_LIBS=$LIBS | 
 | 15096 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
 | 15097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15098 | /* end confdefs.h.  */ | 
 | 15099 |  | 
 | 15100 | /* Override any GCC internal prototype to avoid an error. | 
 | 15101 |    Use char because int might match the return type of a GCC | 
 | 15102 |    builtin and then its argument prototype would still apply.  */ | 
 | 15103 | #ifdef __cplusplus | 
 | 15104 | extern "C" | 
 | 15105 | #endif | 
 | 15106 | char rl_resize_terminal (); | 
 | 15107 | int | 
 | 15108 | main () | 
 | 15109 | { | 
 | 15110 | return rl_resize_terminal (); | 
 | 15111 |   ; | 
 | 15112 |   return 0; | 
 | 15113 | } | 
 | 15114 | _ACEOF | 
 | 15115 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 15116 |   ac_cv_lib_readline_rl_resize_terminal=yes | 
 | 15117 | else | 
 | 15118 |   ac_cv_lib_readline_rl_resize_terminal=no | 
 | 15119 | fi | 
 | 15120 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15121 |     conftest$ac_exeext conftest.$ac_ext | 
 | 15122 | LIBS=$ac_check_lib_save_LIBS | 
 | 15123 | fi | 
 | 15124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | 
 | 15125 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | 
 | 15126 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | 
 | 15127 |  | 
 | 15128 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | 
 | 15129 |  | 
 | 15130 | fi | 
 | 15131 |  | 
 | 15132 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15133 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
 | 15135 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15136 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15137 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15138 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15139 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15140 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15142 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15143 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15144 | /* Override any GCC internal prototype to avoid an error. | 
 | 15145 |    Use char because int might match the return type of a GCC | 
 | 15146 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15147 | #ifdef __cplusplus | 
 | 15148 | extern "C" | 
 | 15149 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15150 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15151 | int | 
 | 15152 | main () | 
 | 15153 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15154 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15155 |   ; | 
 | 15156 |   return 0; | 
 | 15157 | } | 
 | 15158 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15159 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15160 |   ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15161 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15162 |   ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15163 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15164 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15165 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15166 | LIBS=$ac_check_lib_save_LIBS | 
 | 15167 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
 | 15169 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15170 | 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] | 15171 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15172 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15173 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15174 | fi | 
 | 15175 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15176 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15177 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15179 | /* end confdefs.h.  */ | 
 | 15180 | #include <readline/readline.h> | 
 | 15181 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15182 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15183 |   have_readline=yes | 
 | 15184 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15185 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15186 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15187 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15188 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15189 | if test $have_readline = yes | 
 | 15190 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15191 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15192 | /* end confdefs.h.  */ | 
 | 15193 | #include <readline/readline.h> | 
 | 15194 |  | 
 | 15195 | _ACEOF | 
 | 15196 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15197 |   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15198 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15199 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15200 |  | 
 | 15201 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15202 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15203 |  | 
 | 15204 | fi | 
 | 15205 |  | 
| Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 | 
 | 15207 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | 
 | 15208 | if ${ac_cv_lib_readline_append_history+:} false; then : | 
 | 15209 |   $as_echo_n "(cached) " >&6 | 
 | 15210 | else | 
 | 15211 |   ac_check_lib_save_LIBS=$LIBS | 
 | 15212 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
 | 15213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15214 | /* end confdefs.h.  */ | 
 | 15215 |  | 
 | 15216 | /* Override any GCC internal prototype to avoid an error. | 
 | 15217 |    Use char because int might match the return type of a GCC | 
 | 15218 |    builtin and then its argument prototype would still apply.  */ | 
 | 15219 | #ifdef __cplusplus | 
 | 15220 | extern "C" | 
 | 15221 | #endif | 
 | 15222 | char append_history (); | 
 | 15223 | int | 
 | 15224 | main () | 
 | 15225 | { | 
 | 15226 | return append_history (); | 
 | 15227 |   ; | 
 | 15228 |   return 0; | 
 | 15229 | } | 
 | 15230 | _ACEOF | 
 | 15231 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 15232 |   ac_cv_lib_readline_append_history=yes | 
 | 15233 | else | 
 | 15234 |   ac_cv_lib_readline_append_history=no | 
 | 15235 | fi | 
 | 15236 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15237 |     conftest$ac_exeext conftest.$ac_ext | 
 | 15238 | LIBS=$ac_check_lib_save_LIBS | 
 | 15239 | fi | 
 | 15240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | 
 | 15241 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | 
 | 15242 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | 
 | 15243 |  | 
 | 15244 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | 
 | 15245 |  | 
 | 15246 | fi | 
 | 15247 |  | 
 | 15248 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15249 | # End of readline checks: restore LIBS | 
 | 15250 | LIBS=$LIBS_no_readline | 
 | 15251 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
 | 15253 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15254 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15255 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15256 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15257 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15258 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15259 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15260 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15261 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15262 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15263 |  | 
 | 15264 | int main() | 
 | 15265 | { | 
 | 15266 | 	int val1 = nice(1); | 
 | 15267 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 15268 | 		exit(0); | 
 | 15269 | 	exit(1); | 
 | 15270 | } | 
 | 15271 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15272 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15273 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15274 |   ac_cv_broken_nice=yes | 
 | 15275 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15276 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15277 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15278 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15279 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15280 | fi | 
 | 15281 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15282 | fi | 
 | 15283 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
 | 15285 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15286 | if test "$ac_cv_broken_nice" = yes | 
 | 15287 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15288 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15289 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15290 |  | 
 | 15291 | fi | 
 | 15292 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
 | 15294 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15295 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15296 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15297 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15298 |   if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15299 |   ac_cv_broken_poll=no | 
 | 15300 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15301 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15302 | /* end confdefs.h.  */ | 
 | 15303 |  | 
 | 15304 | #include <poll.h> | 
 | 15305 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15306 | int main() | 
 | 15307 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15308 |     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15309 |     int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15310 |  | 
 | 15311 |     close (42); | 
 | 15312 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15313 |     poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15314 |     if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15315 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15316 |     else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15317 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15318 |     else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15319 |         return 1; | 
 | 15320 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15321 |  | 
 | 15322 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15323 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15324 |   ac_cv_broken_poll=yes | 
 | 15325 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15326 |   ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15327 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15328 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15329 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15330 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15331 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15332 | fi | 
 | 15333 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
 | 15335 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15336 | if test "$ac_cv_broken_poll" = yes | 
 | 15337 | then | 
 | 15338 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15339 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15340 |  | 
 | 15341 | fi | 
 | 15342 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15343 | # 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] | 15344 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
 | 15345 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15346 | 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] | 15347 | #include <$ac_cv_struct_tm> | 
 | 15348 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15349 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15350 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15351 |  | 
 | 15352 | cat >>confdefs.h <<_ACEOF | 
 | 15353 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 15354 | _ACEOF | 
 | 15355 |  | 
 | 15356 |  | 
 | 15357 | fi | 
 | 15358 |  | 
 | 15359 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 15360 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15361 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15362 |  | 
 | 15363 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15364 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 15365 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15366 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15367 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15368 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15369 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15370 | fi | 
 | 15371 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15372 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15373 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15374 | _ACEOF | 
 | 15375 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15376 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 15377 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15378 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15379 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15380 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15381 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15382 | /* end confdefs.h.  */ | 
 | 15383 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15384 | #if !HAVE_DECL_TZNAME | 
 | 15385 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15386 | #endif | 
 | 15387 |  | 
 | 15388 | int | 
 | 15389 | main () | 
 | 15390 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15391 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15392 |   ; | 
 | 15393 |   return 0; | 
 | 15394 | } | 
 | 15395 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15396 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15397 |   ac_cv_var_tzname=yes | 
 | 15398 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15399 |   ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15400 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15401 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15402 |     conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15403 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 15405 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15406 |   if test $ac_cv_var_tzname = yes; then | 
 | 15407 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15408 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15409 |  | 
 | 15410 |   fi | 
 | 15411 | fi | 
 | 15412 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15413 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15414 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
 | 15416 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15417 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15418 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15419 | else | 
 | 15420 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15421 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15422 |   ac_cv_working_tzset=no | 
 | 15423 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15424 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15425 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15426 |  | 
 | 15427 | #include <stdlib.h> | 
 | 15428 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15429 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15430 |  | 
 | 15431 | #if HAVE_TZNAME | 
 | 15432 | extern char *tzname[]; | 
 | 15433 | #endif | 
 | 15434 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15435 | int main() | 
 | 15436 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15437 | 	/* Note that we need to ensure that not only does tzset(3) | 
 | 15438 | 	   do 'something' with localtime, but it works as documented | 
 | 15439 | 	   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] | 15440 | 	   This includes making sure that tzname is set properly if | 
 | 15441 | 	   tm->tm_zone does not exist since it is the alternative way | 
 | 15442 | 	   of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15443 |  | 
 | 15444 | 	   Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15445 | 	   after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15446 | 	*/ | 
 | 15447 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15448 | 	time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15449 | 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
 | 15450 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15451 | 	putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15452 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15453 | 	if (localtime(&groundhogday)->tm_hour != 0) | 
 | 15454 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15455 | #if HAVE_TZNAME | 
 | 15456 | 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
 | 15457 | 	if (strcmp(tzname[0], "UTC") || | 
 | 15458 | 		(tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
 | 15459 | 	    exit(1); | 
 | 15460 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15461 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15462 | 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15463 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15464 | 	if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15465 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15466 | #if HAVE_TZNAME | 
 | 15467 | 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
 | 15468 | 	    exit(1); | 
 | 15469 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15470 |  | 
 | 15471 | 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
 | 15472 | 	tzset(); | 
 | 15473 | 	if (localtime(&groundhogday)->tm_hour != 11) | 
 | 15474 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15475 | #if HAVE_TZNAME | 
 | 15476 | 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
 | 15477 | 	    exit(1); | 
 | 15478 | #endif | 
 | 15479 |  | 
 | 15480 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15481 | 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
 | 15482 | 	    exit(1); | 
 | 15483 | 	if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
 | 15484 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15485 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15486 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15487 | 	exit(0); | 
 | 15488 | } | 
 | 15489 |  | 
 | 15490 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15491 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15492 |   ac_cv_working_tzset=yes | 
 | 15493 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15494 |   ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15495 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15496 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15497 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15498 | fi | 
 | 15499 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15500 | fi | 
 | 15501 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
 | 15503 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15504 | if test "$ac_cv_working_tzset" = yes | 
 | 15505 | then | 
 | 15506 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15507 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15508 |  | 
 | 15509 | fi | 
 | 15510 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15511 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
 | 15513 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15514 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15515 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15516 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15517 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15518 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15519 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15520 | int | 
 | 15521 | main () | 
 | 15522 | { | 
 | 15523 |  | 
 | 15524 | struct stat st; | 
 | 15525 | st.st_mtim.tv_nsec = 1; | 
 | 15526 |  | 
 | 15527 |   ; | 
 | 15528 |   return 0; | 
 | 15529 | } | 
 | 15530 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15531 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15532 |   ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15533 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15534 |   ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15535 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15537 | fi | 
 | 15538 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
 | 15540 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15541 | if test "$ac_cv_stat_tv_nsec" = yes | 
 | 15542 | then | 
 | 15543 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15544 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15545 |  | 
 | 15546 | fi | 
 | 15547 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15548 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
 | 15550 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15551 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15552 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15553 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15554 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15555 | /* end confdefs.h.  */ | 
 | 15556 | #include <sys/stat.h> | 
 | 15557 | int | 
 | 15558 | main () | 
 | 15559 | { | 
 | 15560 |  | 
 | 15561 | struct stat st; | 
 | 15562 | st.st_mtimespec.tv_nsec = 1; | 
 | 15563 |  | 
 | 15564 |   ; | 
 | 15565 |   return 0; | 
 | 15566 | } | 
 | 15567 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15568 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15569 |   ac_cv_stat_tv_nsec2=yes | 
 | 15570 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15571 |   ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15572 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15574 | fi | 
 | 15575 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
 | 15577 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15578 | if test "$ac_cv_stat_tv_nsec2" = yes | 
 | 15579 | then | 
 | 15580 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15581 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15582 |  | 
 | 15583 | fi | 
 | 15584 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15585 | # first curses header check | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15586 | ac_save_cppflags="$CPPFLAGS" | 
 | 15587 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15588 |  | 
 | 15589 | for ac_header in curses.h ncurses.h | 
 | 15590 | do : | 
 | 15591 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 15592 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
 | 15593 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
 | 15594 |   cat >>confdefs.h <<_ACEOF | 
 | 15595 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 15596 | _ACEOF | 
 | 15597 |  | 
 | 15598 | fi | 
 | 15599 |  | 
 | 15600 | done | 
 | 15601 |  | 
 | 15602 |  | 
 | 15603 | # On Solaris, term.h requires curses.h | 
 | 15604 | for ac_header in term.h | 
 | 15605 | do : | 
 | 15606 |   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
 | 15607 | #ifdef HAVE_CURSES_H | 
 | 15608 | #include <curses.h> | 
 | 15609 | #endif | 
 | 15610 |  | 
 | 15611 | " | 
 | 15612 | if test "x$ac_cv_header_term_h" = xyes; then : | 
 | 15613 |   cat >>confdefs.h <<_ACEOF | 
 | 15614 | #define HAVE_TERM_H 1 | 
 | 15615 | _ACEOF | 
 | 15616 |  | 
 | 15617 | fi | 
 | 15618 |  | 
 | 15619 | done | 
 | 15620 |  | 
 | 15621 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15622 | # 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] | 15623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
 | 15624 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15625 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15626 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15627 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15628 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15629 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15630 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15631 | int | 
 | 15632 | main () | 
 | 15633 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15634 |  | 
 | 15635 |   int rtn; | 
 | 15636 |   rtn = mvwdelch(0,0,0); | 
 | 15637 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15638 |   ; | 
 | 15639 |   return 0; | 
 | 15640 | } | 
 | 15641 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15642 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15643 |   ac_cv_mvwdelch_is_expression=yes | 
 | 15644 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15645 |   ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15646 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15648 | fi | 
 | 15649 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
 | 15651 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15652 |  | 
 | 15653 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
 | 15654 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15655 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15656 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15657 |  | 
 | 15658 | fi | 
 | 15659 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
 | 15661 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15662 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15663 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15664 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15665 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15666 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15667 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15668 | int | 
 | 15669 | main () | 
 | 15670 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15671 |  | 
 | 15672 |   WINDOW *w; | 
 | 15673 |   w->_flags = 0; | 
 | 15674 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15675 |   ; | 
 | 15676 |   return 0; | 
 | 15677 | } | 
 | 15678 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15679 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15680 |   ac_cv_window_has_flags=yes | 
 | 15681 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15682 |   ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15683 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15685 | fi | 
 | 15686 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
 | 15688 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15689 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15690 |  | 
 | 15691 | if test "$ac_cv_window_has_flags" = yes | 
 | 15692 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15693 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15694 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15695 |  | 
 | 15696 | fi | 
 | 15697 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
 | 15699 | $as_echo_n "checking for is_term_resized... " >&6; } | 
 | 15700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15701 | /* end confdefs.h.  */ | 
 | 15702 | #include <curses.h> | 
 | 15703 | int | 
 | 15704 | main () | 
 | 15705 | { | 
 | 15706 | void *x=is_term_resized | 
 | 15707 |   ; | 
 | 15708 |   return 0; | 
 | 15709 | } | 
 | 15710 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15711 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15712 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15713 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15714 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15715 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15716 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15717 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15718 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15719 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15720 |  | 
 | 15721 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15723 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
 | 15725 | $as_echo_n "checking for resize_term... " >&6; } | 
 | 15726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15727 | /* end confdefs.h.  */ | 
 | 15728 | #include <curses.h> | 
 | 15729 | int | 
 | 15730 | main () | 
 | 15731 | { | 
 | 15732 | void *x=resize_term | 
 | 15733 |   ; | 
 | 15734 |   return 0; | 
 | 15735 | } | 
 | 15736 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15737 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15738 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15739 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15740 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15741 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15742 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15743 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15744 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15745 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15746 |  | 
 | 15747 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15749 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
 | 15751 | $as_echo_n "checking for resizeterm... " >&6; } | 
 | 15752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15753 | /* end confdefs.h.  */ | 
 | 15754 | #include <curses.h> | 
 | 15755 | int | 
 | 15756 | main () | 
 | 15757 | { | 
 | 15758 | void *x=resizeterm | 
 | 15759 |   ; | 
 | 15760 |   return 0; | 
 | 15761 | } | 
 | 15762 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15763 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15764 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15765 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15766 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15767 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15768 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15769 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15770 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15771 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15772 |  | 
 | 15773 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15775 | # last curses configure check | 
 | 15776 | CPPFLAGS=$ac_save_cppflags | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15777 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
 | 15779 | $as_echo "$as_me: checking for device files" >&6;} | 
 | 15780 |  | 
 | 15781 | if test "x$cross_compiling" = xyes; then | 
 | 15782 |   if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
 | 15783 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 15784 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
 | 15785 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 15786 | $as_echo "not set" >&6; } | 
 | 15787 |     as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 15788 |   fi | 
 | 15789 |   if test "${ac_cv_file__dev_ptc+set}" != set; then | 
 | 15790 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 15791 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
 | 15792 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 15793 | $as_echo "not set" >&6; } | 
 | 15794 |     as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 15795 |   fi | 
 | 15796 | fi | 
 | 15797 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 15799 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15800 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
 | 15801 |   $as_echo_n "(cached) " >&6 | 
 | 15802 | else | 
 | 15803 |   test "$cross_compiling" = yes && | 
 | 15804 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 15805 | if test -r "/dev/ptmx"; then | 
 | 15806 |   ac_cv_file__dev_ptmx=yes | 
 | 15807 | else | 
 | 15808 |   ac_cv_file__dev_ptmx=no | 
 | 15809 | fi | 
 | 15810 | fi | 
 | 15811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
 | 15812 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
 | 15813 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15814 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15815 | fi | 
 | 15816 |  | 
 | 15817 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15818 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15819 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15820 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15821 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 15823 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15824 | if ${ac_cv_file__dev_ptc+:} false; then : | 
 | 15825 |   $as_echo_n "(cached) " >&6 | 
 | 15826 | else | 
 | 15827 |   test "$cross_compiling" = yes && | 
 | 15828 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 15829 | if test -r "/dev/ptc"; then | 
 | 15830 |   ac_cv_file__dev_ptc=yes | 
 | 15831 | else | 
 | 15832 |   ac_cv_file__dev_ptc=no | 
 | 15833 | fi | 
 | 15834 | fi | 
 | 15835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
 | 15836 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
 | 15837 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15838 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15839 | fi | 
 | 15840 |  | 
 | 15841 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15842 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15843 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15844 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15845 | fi | 
 | 15846 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15847 | if test "$have_long_long" = yes | 
 | 15848 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15849 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
 | 15850 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15851 |   if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15852 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15853 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15854 |   if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15855 |   ac_cv_have_long_long_format="cross -- assuming no" | 
 | 15856 |    if test x$GCC = xyes; then | 
 | 15857 |     save_CFLAGS=$CFLAGS | 
 | 15858 |     CFLAGS="$CFLAGS -Werror -Wformat" | 
 | 15859 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15860 | /* end confdefs.h.  */ | 
 | 15861 |  | 
 | 15862 |         #include <stdio.h> | 
 | 15863 |         #include <stddef.h> | 
 | 15864 |  | 
 | 15865 | int | 
 | 15866 | main () | 
 | 15867 | { | 
 | 15868 |  | 
 | 15869 |       char *buffer; | 
 | 15870 |       sprintf(buffer, "%lld", (long long)123); | 
 | 15871 |       sprintf(buffer, "%lld", (long long)-123); | 
 | 15872 |       sprintf(buffer, "%llu", (unsigned long long)123); | 
 | 15873 |  | 
 | 15874 |   ; | 
 | 15875 |   return 0; | 
 | 15876 | } | 
 | 15877 | _ACEOF | 
 | 15878 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 15879 |   ac_cv_have_long_long_format=yes | 
 | 15880 |  | 
 | 15881 | fi | 
 | 15882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15883 |     CFLAGS=$save_CFLAGS | 
 | 15884 |    fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15885 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15886 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15887 | /* end confdefs.h.  */ | 
 | 15888 |  | 
 | 15889 |   #include <stdio.h> | 
 | 15890 |   #include <stddef.h> | 
 | 15891 |   #include <string.h> | 
 | 15892 |  | 
 | 15893 |   #ifdef HAVE_SYS_TYPES_H | 
 | 15894 |   #include <sys/types.h> | 
 | 15895 |   #endif | 
 | 15896 |  | 
 | 15897 |   int main() | 
 | 15898 |   { | 
 | 15899 |       char buffer[256]; | 
 | 15900 |  | 
 | 15901 |       if (sprintf(buffer, "%lld", (long long)123) < 0) | 
 | 15902 |           return 1; | 
 | 15903 |       if (strcmp(buffer, "123")) | 
 | 15904 |           return 1; | 
 | 15905 |  | 
 | 15906 |       if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
 | 15907 |           return 1; | 
 | 15908 |       if (strcmp(buffer, "-123")) | 
 | 15909 |           return 1; | 
 | 15910 |  | 
 | 15911 |       if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
 | 15912 |           return 1; | 
 | 15913 |       if (strcmp(buffer, "123")) | 
 | 15914 |           return 1; | 
 | 15915 |  | 
 | 15916 |       return 0; | 
 | 15917 |   } | 
 | 15918 |  | 
 | 15919 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15920 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15921 |   ac_cv_have_long_long_format=yes | 
 | 15922 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15923 |   ac_cv_have_long_long_format=no | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15924 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15925 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15926 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15927 | fi | 
 | 15928 |  | 
 | 15929 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15930 | fi | 
 | 15931 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15932 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
 | 15933 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15934 | fi | 
 | 15935 |  | 
| Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 15936 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15937 | then | 
 | 15938 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15939 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15940 |  | 
 | 15941 | fi | 
 | 15942 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 15943 | if test $ac_sys_system = Darwin | 
 | 15944 | then | 
 | 15945 | 	LIBS="$LIBS -framework CoreFoundation" | 
 | 15946 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15947 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
 | 15949 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15950 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15951 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15952 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15953 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15954 |   ac_cv_have_size_t_format="cross -- assuming yes" | 
 | 15955 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15956 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15957 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15958 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15959 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15960 | #include <stdio.h> | 
 | 15961 | #include <stddef.h> | 
 | 15962 | #include <string.h> | 
 | 15963 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15964 | #ifdef HAVE_SYS_TYPES_H | 
 | 15965 | #include <sys/types.h> | 
 | 15966 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15967 |  | 
 | 15968 | #ifdef HAVE_SSIZE_T | 
 | 15969 | typedef ssize_t Py_ssize_t; | 
 | 15970 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
 | 15971 | typedef long Py_ssize_t; | 
 | 15972 | #else | 
 | 15973 | typedef int Py_ssize_t; | 
 | 15974 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15975 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15976 | int main() | 
 | 15977 | { | 
 | 15978 |     char buffer[256]; | 
 | 15979 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15980 |     if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
 | 15981 |        	return 1; | 
 | 15982 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15983 |     if (strcmp(buffer, "123")) | 
 | 15984 | 	return 1; | 
 | 15985 |  | 
 | 15986 |     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
 | 15987 |        	return 1; | 
 | 15988 |  | 
 | 15989 |     if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15990 | 	return 1; | 
 | 15991 |  | 
 | 15992 |     return 0; | 
 | 15993 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15994 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15995 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15996 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15997 |   ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15998 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15999 |   ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16000 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16001 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16002 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 16003 | fi | 
 | 16004 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16005 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
 | 16007 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16008 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16009 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16010 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16011 |  | 
 | 16012 | fi | 
 | 16013 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16014 | 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] | 16015 | #ifdef HAVE_SYS_TYPES_H | 
 | 16016 | #include <sys/types.h> | 
 | 16017 | #endif | 
 | 16018 | #ifdef HAVE_SYS_SOCKET_H | 
 | 16019 | #include <sys/socket.h> | 
 | 16020 | #endif | 
 | 16021 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16022 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16023 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16024 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16025 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16026 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16027 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16028 |  | 
 | 16029 | fi | 
 | 16030 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16031 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
 | 16033 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16034 | if ${ac_cv_broken_mbstowcs+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16035 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16036 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16037 |   if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16038 |   ac_cv_broken_mbstowcs=no | 
 | 16039 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16040 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16041 | /* end confdefs.h.  */ | 
 | 16042 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16043 | #include <stdio.h> | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16044 | #include<stdlib.h> | 
 | 16045 | int main() { | 
 | 16046 |     size_t len = -1; | 
 | 16047 |     const char *str = "text"; | 
 | 16048 |     len = mbstowcs(NULL, str, 0); | 
 | 16049 |     return (len != 4); | 
 | 16050 | } | 
 | 16051 |  | 
 | 16052 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16053 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16054 |   ac_cv_broken_mbstowcs=no | 
 | 16055 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16056 |   ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16057 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16058 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16059 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16060 | fi | 
 | 16061 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16062 | fi | 
 | 16063 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
 | 16065 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16066 | if test "$ac_cv_broken_mbstowcs" = yes | 
 | 16067 | then | 
 | 16068 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16069 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16070 |  | 
 | 16071 | fi | 
 | 16072 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16073 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
 | 16075 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16076 |  | 
 | 16077 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16078 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16079 |   withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16080 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16081 | then | 
 | 16082 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16083 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16084 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16085 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 16086 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16087 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16088 | if test "$withval" = no | 
 | 16089 | then | 
 | 16090 |  | 
 | 16091 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
 | 16092 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16093 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 16094 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16095 | fi | 
 | 16096 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16097 | else | 
 | 16098 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 16099 | $as_echo "no value specified" >&6; } | 
 | 16100 | fi | 
 | 16101 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16102 |  | 
| Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
 | 16104 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
 | 16105 | if ${ac_cv_computed_gotos+:} false; then : | 
 | 16106 |   $as_echo_n "(cached) " >&6 | 
 | 16107 | else | 
 | 16108 |   if test "$cross_compiling" = yes; then : | 
 | 16109 |   if test "${with_computed_gotos+set}" = set; then | 
 | 16110 |    ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | 
 | 16111 |  else | 
 | 16112 |    ac_cv_computed_gotos=no | 
 | 16113 |  fi | 
 | 16114 | else | 
 | 16115 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16116 | /* end confdefs.h.  */ | 
 | 16117 |  | 
 | 16118 | int main(int argc, char **argv) | 
 | 16119 | { | 
 | 16120 |     static void *targets[1] = { &&LABEL1 }; | 
 | 16121 |     goto LABEL2; | 
 | 16122 | LABEL1: | 
 | 16123 |     return 0; | 
 | 16124 | LABEL2: | 
 | 16125 |     goto *targets[0]; | 
 | 16126 |     return 1; | 
 | 16127 | } | 
 | 16128 |  | 
 | 16129 | _ACEOF | 
 | 16130 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 16131 |   ac_cv_computed_gotos=yes | 
 | 16132 | else | 
 | 16133 |   ac_cv_computed_gotos=no | 
 | 16134 | fi | 
 | 16135 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16136 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 16137 | fi | 
 | 16138 |  | 
 | 16139 | fi | 
 | 16140 |  | 
 | 16141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
 | 16142 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
 | 16143 | case "$ac_cv_computed_gotos" in yes*) | 
 | 16144 |  | 
 | 16145 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
 | 16146 |  | 
 | 16147 | esac | 
 | 16148 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16149 | case $ac_sys_system in | 
 | 16150 | AIX*) | 
 | 16151 |  | 
 | 16152 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
 | 16153 |  ;; | 
 | 16154 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16155 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16156 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16157 |  | 
 | 16158 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16159 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
 | 16160 | do | 
 | 16161 |   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
 | 16162 | done | 
 | 16163 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16164 |  | 
| Ned Deily | 0db50cf | 2014-07-25 12:41:31 -0700 | [diff] [blame] | 16165 | SRCDIRS="Parser Grammar Objects Python Modules Mac Programs" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
 | 16167 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16168 | for dir in $SRCDIRS; do | 
 | 16169 |     if test ! -d $dir; then | 
 | 16170 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16171 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16172 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
 | 16174 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16175 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16176 | # Availability of -O2: | 
 | 16177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | 
 | 16178 | $as_echo_n "checking for -O2... " >&6; } | 
 | 16179 | saved_cflags="$CFLAGS" | 
 | 16180 | CFLAGS="-O2" | 
 | 16181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16182 | /* end confdefs.h.  */ | 
 | 16183 |  | 
 | 16184 | int | 
 | 16185 | main () | 
 | 16186 | { | 
 | 16187 |  | 
 | 16188 |  | 
 | 16189 |   ; | 
 | 16190 |   return 0; | 
 | 16191 | } | 
 | 16192 | _ACEOF | 
 | 16193 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 16194 |   have_O2=yes | 
 | 16195 | else | 
 | 16196 |   have_O2=no | 
 | 16197 | fi | 
 | 16198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 16199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | 
 | 16200 | $as_echo "$have_O2" >&6; } | 
 | 16201 | CFLAGS="$saved_cflags" | 
 | 16202 |  | 
 | 16203 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | 
 | 16204 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | 
 | 16205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | 
 | 16206 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | 
 | 16207 | saved_cflags="$CFLAGS" | 
 | 16208 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | 
 | 16209 | if test "$have_O2" = no; then | 
 | 16210 |     CFLAGS="" | 
 | 16211 | fi | 
 | 16212 | if test "$cross_compiling" = yes; then : | 
 | 16213 |   have_glibc_memmove_bug=undefined | 
 | 16214 | else | 
 | 16215 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16216 | /* end confdefs.h.  */ | 
 | 16217 |  | 
 | 16218 | #include <stdio.h> | 
 | 16219 | #include <stdlib.h> | 
 | 16220 | #include <string.h> | 
 | 16221 | void foo(void *p, void *q) { memmove(p, q, 19); } | 
 | 16222 | int main() { | 
 | 16223 |   char a[32] = "123456789000000000"; | 
 | 16224 |   foo(&a[9], a); | 
 | 16225 |   if (strcmp(a, "123456789123456789000000000") != 0) | 
 | 16226 |     return 1; | 
 | 16227 |   foo(a, &a[9]); | 
 | 16228 |   if (strcmp(a, "123456789000000000") != 0) | 
 | 16229 |     return 1; | 
 | 16230 |   return 0; | 
 | 16231 | } | 
 | 16232 |  | 
 | 16233 | _ACEOF | 
 | 16234 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 16235 |   have_glibc_memmove_bug=no | 
 | 16236 | else | 
 | 16237 |   have_glibc_memmove_bug=yes | 
 | 16238 | fi | 
 | 16239 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16240 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 16241 | fi | 
 | 16242 |  | 
 | 16243 | CFLAGS="$saved_cflags" | 
 | 16244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | 
 | 16245 | $as_echo "$have_glibc_memmove_bug" >&6; } | 
 | 16246 | if test "$have_glibc_memmove_bug" = yes; then | 
 | 16247 |  | 
 | 16248 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | 
 | 16249 |  | 
 | 16250 | fi | 
 | 16251 |  | 
 | 16252 | if test "$have_gcc_asm_for_x87" = yes; then | 
 | 16253 |     # Some versions of gcc miscompile inline asm: | 
 | 16254 |     # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | 
 | 16255 |     # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | 
 | 16256 |     case $CC in | 
 | 16257 |         *gcc*) | 
 | 16258 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | 
 | 16259 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | 
 | 16260 |             saved_cflags="$CFLAGS" | 
 | 16261 |             CFLAGS="-O2" | 
 | 16262 |             if test "$cross_compiling" = yes; then : | 
 | 16263 |   have_ipa_pure_const_bug=undefined | 
 | 16264 | else | 
 | 16265 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16266 | /* end confdefs.h.  */ | 
 | 16267 |  | 
 | 16268 |             __attribute__((noinline)) int | 
 | 16269 |             foo(int *p) { | 
 | 16270 |               int r; | 
 | 16271 |               asm ( "movl \$6, (%1)\n\t" | 
 | 16272 |                     "xorl %0, %0\n\t" | 
 | 16273 |                     : "=r" (r) : "r" (p) : "memory" | 
 | 16274 |               ); | 
 | 16275 |               return r; | 
 | 16276 |             } | 
 | 16277 |             int main() { | 
 | 16278 |               int p = 8; | 
 | 16279 |               if ((foo(&p) ? : p) != 6) | 
 | 16280 |                 return 1; | 
 | 16281 |               return 0; | 
 | 16282 |             } | 
 | 16283 |  | 
 | 16284 | _ACEOF | 
 | 16285 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 16286 |   have_ipa_pure_const_bug=no | 
 | 16287 | else | 
 | 16288 |   have_ipa_pure_const_bug=yes | 
 | 16289 | fi | 
 | 16290 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16291 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 16292 | fi | 
 | 16293 |  | 
 | 16294 |             CFLAGS="$saved_cflags" | 
 | 16295 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | 
 | 16296 | $as_echo "$have_ipa_pure_const_bug" >&6; } | 
 | 16297 |             if test "$have_ipa_pure_const_bug" = yes; then | 
 | 16298 |  | 
 | 16299 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | 
 | 16300 |  | 
 | 16301 |             fi | 
 | 16302 |         ;; | 
 | 16303 |     esac | 
 | 16304 | fi | 
 | 16305 |  | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16306 | # Check for stdatomic.h | 
 | 16307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | 
 | 16308 | $as_echo_n "checking for stdatomic.h... " >&6; } | 
 | 16309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16310 | /* end confdefs.h.  */ | 
 | 16311 |  | 
 | 16312 |  | 
 | 16313 |     #include <stdatomic.h> | 
| Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 16314 |     atomic_int value = ATOMIC_VAR_INIT(1); | 
 | 16315 |     _Atomic void *py_atomic_address = (void*) &value; | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16316 |     int main() { | 
 | 16317 |       int loaded_value = atomic_load(&value); | 
 | 16318 |       return 0; | 
 | 16319 |     } | 
 | 16320 |  | 
 | 16321 |  | 
 | 16322 | _ACEOF | 
 | 16323 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16324 |   have_stdatomic_h=yes | 
 | 16325 | else | 
 | 16326 |   have_stdatomic_h=no | 
 | 16327 | fi | 
 | 16328 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16329 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16330 |  | 
 | 16331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | 
 | 16332 | $as_echo "$have_stdatomic_h" >&6; } | 
 | 16333 |  | 
 | 16334 | if test "$have_stdatomic_h" = yes; then | 
 | 16335 |  | 
 | 16336 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | 
 | 16337 |  | 
 | 16338 | fi | 
 | 16339 |  | 
 | 16340 | # Check for GCC >= 4.7 __atomic builtins | 
 | 16341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | 
 | 16342 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | 
 | 16343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16344 | /* end confdefs.h.  */ | 
 | 16345 |  | 
 | 16346 |  | 
 | 16347 |     volatile int val = 1; | 
 | 16348 |     int main() { | 
 | 16349 |       __atomic_load_n(&val, __ATOMIC_SEQ_CST); | 
 | 16350 |       return 0; | 
 | 16351 |     } | 
 | 16352 |  | 
 | 16353 |  | 
 | 16354 | _ACEOF | 
 | 16355 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16356 |   have_builtin_atomic=yes | 
 | 16357 | else | 
 | 16358 |   have_builtin_atomic=no | 
 | 16359 | fi | 
 | 16360 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16361 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16362 |  | 
 | 16363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | 
 | 16364 | $as_echo "$have_builtin_atomic" >&6; } | 
 | 16365 |  | 
 | 16366 | if test "$have_builtin_atomic" = yes; then | 
 | 16367 |  | 
 | 16368 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | 
 | 16369 |  | 
 | 16370 | fi | 
 | 16371 |  | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16372 | # ensurepip option | 
 | 16373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | 
 | 16374 | $as_echo_n "checking for ensurepip... " >&6; } | 
 | 16375 |  | 
 | 16376 | # Check whether --with-ensurepip was given. | 
 | 16377 | if test "${with_ensurepip+set}" = set; then : | 
 | 16378 |   withval=$with_ensurepip; | 
 | 16379 | else | 
 | 16380 |   with_ensurepip=upgrade | 
 | 16381 | fi | 
 | 16382 |  | 
 | 16383 | case $with_ensurepip in #( | 
 | 16384 |   yes|upgrade) : | 
 | 16385 |     ENSUREPIP=upgrade ;; #( | 
 | 16386 |   install) : | 
 | 16387 |     ENSUREPIP=install ;; #( | 
 | 16388 |   no) : | 
 | 16389 |     ENSUREPIP=no ;; #( | 
 | 16390 |   *) : | 
 | 16391 |     as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | 
 | 16392 | esac | 
 | 16393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | 
 | 16394 | $as_echo "$ENSUREPIP" >&6; } | 
 | 16395 |  | 
 | 16396 |  | 
| Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16397 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined | 
 | 16398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | 
 | 16399 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | 
 | 16400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16401 | /* end confdefs.h.  */ | 
 | 16402 |  | 
 | 16403 |  | 
 | 16404 |     #include <dirent.h> | 
 | 16405 |  | 
 | 16406 |     int main() { | 
 | 16407 |       struct dirent entry; | 
 | 16408 |       return entry.d_type == DT_UNKNOWN; | 
 | 16409 |     } | 
 | 16410 |  | 
 | 16411 |  | 
 | 16412 | _ACEOF | 
 | 16413 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16414 |   have_dirent_d_type=yes | 
 | 16415 | else | 
 | 16416 |   have_dirent_d_type=no | 
 | 16417 | fi | 
 | 16418 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16419 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | 
 | 16421 | $as_echo "$have_dirent_d_type" >&6; } | 
 | 16422 |  | 
 | 16423 | if test "$have_dirent_d_type" = yes; then | 
 | 16424 |  | 
 | 16425 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | 
 | 16426 |  | 
 | 16427 | fi | 
 | 16428 |  | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16429 | # check if the Linux getrandom() syscall is available | 
 | 16430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | 
 | 16431 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | 
 | 16432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16433 | /* end confdefs.h.  */ | 
 | 16434 |  | 
 | 16435 |  | 
| Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 16436 |     #include <unistd.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16437 |     #include <sys/syscall.h> | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16438 |     #include <linux/random.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16439 |  | 
 | 16440 |     int main() { | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16441 |         char buffer[1]; | 
| Victor Stinner | bae2d62 | 2015-10-01 09:47:30 +0200 | [diff] [blame] | 16442 |         const size_t buflen = sizeof(buffer); | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16443 |         const int flags = GRND_NONBLOCK; | 
 | 16444 |         /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | 
| Victor Stinner | bae2d62 | 2015-10-01 09:47:30 +0200 | [diff] [blame] | 16445 |         (void)syscall(SYS_getrandom, buffer, buflen, flags); | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16446 |         return 0; | 
 | 16447 |     } | 
 | 16448 |  | 
 | 16449 |  | 
 | 16450 | _ACEOF | 
 | 16451 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16452 |   have_getrandom_syscall=yes | 
 | 16453 | else | 
 | 16454 |   have_getrandom_syscall=no | 
 | 16455 | fi | 
 | 16456 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16457 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | 
 | 16459 | $as_echo "$have_getrandom_syscall" >&6; } | 
 | 16460 |  | 
 | 16461 | if test "$have_getrandom_syscall" = yes; then | 
 | 16462 |  | 
 | 16463 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | 
 | 16464 |  | 
 | 16465 | fi | 
 | 16466 |  | 
| Victor Stinner | bae2d62 | 2015-10-01 09:47:30 +0200 | [diff] [blame] | 16467 | # check if the getrandom() function is available | 
 | 16468 | # the test was written for the Solaris function of <sys/random.h> | 
 | 16469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | 
 | 16470 | $as_echo_n "checking for the getrandom() function... " >&6; } | 
 | 16471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16472 | /* end confdefs.h.  */ | 
 | 16473 |  | 
 | 16474 |  | 
 | 16475 |     #include <sys/random.h> | 
 | 16476 |  | 
 | 16477 |     int main() { | 
 | 16478 |         char buffer[1]; | 
 | 16479 |         const size_t buflen = sizeof(buffer); | 
 | 16480 |         const int flags = 0; | 
 | 16481 |         /* ignore the result, Python checks for ENOSYS at runtime */ | 
 | 16482 |         (void)getrandom(buffer, buflen, flags); | 
 | 16483 |         return 0; | 
 | 16484 |     } | 
 | 16485 |  | 
 | 16486 |  | 
 | 16487 | _ACEOF | 
 | 16488 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16489 |   have_getrandom=yes | 
 | 16490 | else | 
 | 16491 |   have_getrandom=no | 
 | 16492 | fi | 
 | 16493 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16494 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | 
 | 16496 | $as_echo "$have_getrandom" >&6; } | 
 | 16497 |  | 
 | 16498 | if test "$have_getrandom" = yes; then | 
 | 16499 |  | 
 | 16500 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | 
 | 16501 |  | 
 | 16502 | fi | 
 | 16503 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16504 | # generate output files | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 16505 | 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] | 16506 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16507 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
 | 16508 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16509 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16510 | # This file is a shell script that caches the results of configure | 
 | 16511 | # 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] | 16512 | # scripts and configure runs, see configure's option --config-cache. | 
 | 16513 | # It is not useful on other systems.  If it contains results you don't | 
 | 16514 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16515 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16516 | # config.status only pays attention to the cache file if you give it | 
 | 16517 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16518 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16519 | # `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] | 16520 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 16521 | # following values. | 
 | 16522 |  | 
 | 16523 | _ACEOF | 
 | 16524 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16525 | # The following way of writing the cache mishandles newlines in values, | 
 | 16526 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16527 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16528 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 16529 | # 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] | 16530 | ( | 
 | 16531 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 16532 |     eval ac_val=\$$ac_var | 
 | 16533 |     case $ac_val in #( | 
 | 16534 |     *${as_nl}*) | 
 | 16535 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16536 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 16537 | $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] | 16538 |       esac | 
 | 16539 |       case $ac_var in #( | 
 | 16540 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16541 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 16542 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16543 |       esac ;; | 
 | 16544 |     esac | 
 | 16545 |   done | 
 | 16546 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16547 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16548 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 16549 |     *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16550 |       # `set' does not quote correctly, so add quotes: double-quote | 
 | 16551 |       # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16552 |       sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16553 | 	"s/'/'\\\\''/g; | 
 | 16554 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16555 |       ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16556 |     *) | 
 | 16557 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16558 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16559 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16560 |     esac | | 
 | 16561 |     sort | 
 | 16562 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16563 |   sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16564 |      /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16565 |      t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16566 |      :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16567 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 16568 |      t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16569 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 16570 |      :end' >>confcache | 
 | 16571 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 16572 |   if test -w "$cache_file"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16573 |     if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16574 |       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
 | 16575 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16576 |       if test ! -f "$cache_file" || test -h "$cache_file"; then | 
 | 16577 | 	cat confcache >"$cache_file" | 
 | 16578 |       else | 
 | 16579 |         case $cache_file in #( | 
 | 16580 |         */* | ?:*) | 
 | 16581 | 	  mv -f confcache "$cache_file"$$ && | 
 | 16582 | 	  mv -f "$cache_file"$$ "$cache_file" ;; #( | 
 | 16583 |         *) | 
 | 16584 | 	  mv -f confcache "$cache_file" ;; | 
 | 16585 | 	esac | 
 | 16586 |       fi | 
 | 16587 |     fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16588 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16589 |     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
 | 16590 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16591 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16592 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16593 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16594 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16595 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 16596 | # Let make expand exec_prefix. | 
 | 16597 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16598 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16599 | DEFS=-DHAVE_CONFIG_H | 
 | 16600 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16601 | ac_libobjs= | 
 | 16602 | ac_ltlibobjs= | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16603 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16604 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 16605 |   # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16606 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16607 |   ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16608 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 16609 |   #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16610 |   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 16611 |   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16612 | done | 
 | 16613 | LIBOBJS=$ac_libobjs | 
 | 16614 |  | 
 | 16615 | LTLIBOBJS=$ac_ltlibobjs | 
 | 16616 |  | 
 | 16617 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16618 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16619 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16620 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16621 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16622 | ac_clean_files_save=$ac_clean_files | 
 | 16623 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16624 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
 | 16625 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 16626 | as_write_fail=0 | 
 | 16627 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16628 | #! $SHELL | 
 | 16629 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16630 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16631 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16632 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16633 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16634 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16635 | ac_cs_recheck=false | 
 | 16636 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16637 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16638 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 16639 | export SHELL | 
 | 16640 | _ASEOF | 
 | 16641 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
 | 16642 | ## -------------------- ## | 
 | 16643 | ## M4sh Initialization. ## | 
 | 16644 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16645 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16646 | # Be more Bourne compatible | 
 | 16647 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16648 | 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] | 16649 |   emulate sh | 
 | 16650 |   NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16651 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16652 |   # is contrary to our usage.  Disable this feature. | 
 | 16653 |   alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16654 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16655 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16656 |   case `(set -o) 2>/dev/null` in #( | 
 | 16657 |   *posix*) : | 
 | 16658 |     set -o posix ;; #( | 
 | 16659 |   *) : | 
 | 16660 |      ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16661 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16662 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16663 |  | 
 | 16664 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16665 | as_nl=' | 
 | 16666 | ' | 
 | 16667 | export as_nl | 
 | 16668 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 16669 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 16670 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 16671 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 16672 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 16673 | # but without wasting forks for bash or zsh. | 
 | 16674 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 16675 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 16676 |   as_echo='print -r --' | 
 | 16677 |   as_echo_n='print -rn --' | 
 | 16678 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 16679 |   as_echo='printf %s\n' | 
 | 16680 |   as_echo_n='printf %s' | 
 | 16681 | else | 
 | 16682 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 16683 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 16684 |     as_echo_n='/usr/ucb/echo -n' | 
 | 16685 |   else | 
 | 16686 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 16687 |     as_echo_n_body='eval | 
 | 16688 |       arg=$1; | 
 | 16689 |       case $arg in #( | 
 | 16690 |       *"$as_nl"*) | 
 | 16691 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 16692 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 16693 |       esac; | 
 | 16694 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 16695 |     ' | 
 | 16696 |     export as_echo_n_body | 
 | 16697 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 16698 |   fi | 
 | 16699 |   export as_echo_body | 
 | 16700 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 16701 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16702 |  | 
 | 16703 | # The user is always right. | 
 | 16704 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16705 |   PATH_SEPARATOR=: | 
 | 16706 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 16707 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 16708 |       PATH_SEPARATOR=';' | 
 | 16709 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16710 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16711 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16712 |  | 
 | 16713 | # IFS | 
 | 16714 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 16715 | # there to prevent editors from complaining about space-tab. | 
 | 16716 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 16717 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16718 | IFS=" ""	$as_nl" | 
 | 16719 |  | 
 | 16720 | # 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] | 16721 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16722 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16723 |   *[\\/]* ) as_myself=$0 ;; | 
 | 16724 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16725 | for as_dir in $PATH | 
 | 16726 | do | 
 | 16727 |   IFS=$as_save_IFS | 
 | 16728 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16729 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 16730 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16731 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16732 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16733 |      ;; | 
 | 16734 | esac | 
 | 16735 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 16736 | # in which case we are not to be found in the path. | 
 | 16737 | if test "x$as_myself" = x; then | 
 | 16738 |   as_myself=$0 | 
 | 16739 | fi | 
 | 16740 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16741 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 16742 |   exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16743 | fi | 
 | 16744 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16745 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 16746 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 16747 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 16748 | # trigger a bug in pdksh 5.2.14. | 
 | 16749 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 16750 | do eval test x\${$as_var+set} = xset \ | 
 | 16751 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16752 | done | 
 | 16753 | PS1='$ ' | 
 | 16754 | PS2='> ' | 
 | 16755 | PS4='+ ' | 
 | 16756 |  | 
 | 16757 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16758 | LC_ALL=C | 
 | 16759 | export LC_ALL | 
 | 16760 | LANGUAGE=C | 
 | 16761 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16762 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16763 | # CDPATH. | 
 | 16764 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 16765 |  | 
 | 16766 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16767 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 16768 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16769 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 16770 | # 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] | 16771 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16772 | as_fn_error () | 
 | 16773 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16774 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 16775 |   if test "$4"; then | 
 | 16776 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 16777 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16778 |   fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16779 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16780 |   as_fn_exit $as_status | 
 | 16781 | } # as_fn_error | 
 | 16782 |  | 
 | 16783 |  | 
 | 16784 | # as_fn_set_status STATUS | 
 | 16785 | # ----------------------- | 
 | 16786 | # Set $? to STATUS, without forking. | 
 | 16787 | as_fn_set_status () | 
 | 16788 | { | 
 | 16789 |   return $1 | 
 | 16790 | } # as_fn_set_status | 
 | 16791 |  | 
 | 16792 | # as_fn_exit STATUS | 
 | 16793 | # ----------------- | 
 | 16794 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 16795 | as_fn_exit () | 
 | 16796 | { | 
 | 16797 |   set +e | 
 | 16798 |   as_fn_set_status $1 | 
 | 16799 |   exit $1 | 
 | 16800 | } # as_fn_exit | 
 | 16801 |  | 
 | 16802 | # as_fn_unset VAR | 
 | 16803 | # --------------- | 
 | 16804 | # Portably unset VAR. | 
 | 16805 | as_fn_unset () | 
 | 16806 | { | 
 | 16807 |   { eval $1=; unset $1;} | 
 | 16808 | } | 
 | 16809 | as_unset=as_fn_unset | 
 | 16810 | # as_fn_append VAR VALUE | 
 | 16811 | # ---------------------- | 
 | 16812 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 16813 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 16814 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 16815 | # implementations. | 
 | 16816 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 16817 |   eval 'as_fn_append () | 
 | 16818 |   { | 
 | 16819 |     eval $1+=\$2 | 
 | 16820 |   }' | 
 | 16821 | else | 
 | 16822 |   as_fn_append () | 
 | 16823 |   { | 
 | 16824 |     eval $1=\$$1\$2 | 
 | 16825 |   } | 
 | 16826 | fi # as_fn_append | 
 | 16827 |  | 
 | 16828 | # as_fn_arith ARG... | 
 | 16829 | # ------------------ | 
 | 16830 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 16831 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 16832 | # must be portable across $(()) and expr. | 
 | 16833 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 16834 |   eval 'as_fn_arith () | 
 | 16835 |   { | 
 | 16836 |     as_val=$(( $* )) | 
 | 16837 |   }' | 
 | 16838 | else | 
 | 16839 |   as_fn_arith () | 
 | 16840 |   { | 
 | 16841 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 16842 |   } | 
 | 16843 | fi # as_fn_arith | 
 | 16844 |  | 
 | 16845 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16846 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 16847 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 16848 |   as_expr=expr | 
 | 16849 | else | 
 | 16850 |   as_expr=false | 
 | 16851 | fi | 
 | 16852 |  | 
 | 16853 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 16854 |   as_basename=basename | 
 | 16855 | else | 
 | 16856 |   as_basename=false | 
 | 16857 | fi | 
 | 16858 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16859 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 16860 |   as_dirname=dirname | 
 | 16861 | else | 
 | 16862 |   as_dirname=false | 
 | 16863 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16864 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16865 | as_me=`$as_basename -- "$0" || | 
 | 16866 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 16867 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 16868 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16869 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16870 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 16871 | 	    s//\1/ | 
 | 16872 | 	    q | 
 | 16873 | 	  } | 
 | 16874 | 	  /^X\/\(\/\/\)$/{ | 
 | 16875 | 	    s//\1/ | 
 | 16876 | 	    q | 
 | 16877 | 	  } | 
 | 16878 | 	  /^X\/\(\/\).*/{ | 
 | 16879 | 	    s//\1/ | 
 | 16880 | 	    q | 
 | 16881 | 	  } | 
 | 16882 | 	  s/.*/./; q'` | 
 | 16883 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16884 | # Avoid depending upon Character Ranges. | 
 | 16885 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 16886 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 16887 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 16888 | as_cr_digits='0123456789' | 
 | 16889 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16890 |  | 
 | 16891 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16892 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16893 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16894 |   case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16895 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16896 |   xy)  ECHO_C='\c';; | 
 | 16897 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 16898 |        ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16899 |   esac;; | 
 | 16900 | *) | 
 | 16901 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16902 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 16903 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16904 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16905 | if test -d conf$$.dir; then | 
 | 16906 |   rm -f conf$$.dir/conf$$.file | 
 | 16907 | else | 
 | 16908 |   rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16909 |   mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16910 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16911 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 16912 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 16913 |     as_ln_s='ln -s' | 
 | 16914 |     # ... but there are two gotchas: | 
 | 16915 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 16916 |     # 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] | 16917 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16918 |     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] | 16919 |       as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16920 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 16921 |     as_ln_s=ln | 
 | 16922 |   else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16923 |     as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16924 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16925 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16926 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16927 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16928 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 16929 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16930 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16931 |  | 
 | 16932 | # as_fn_mkdir_p | 
 | 16933 | # ------------- | 
 | 16934 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 16935 | as_fn_mkdir_p () | 
 | 16936 | { | 
 | 16937 |  | 
 | 16938 |   case $as_dir in #( | 
 | 16939 |   -*) as_dir=./$as_dir;; | 
 | 16940 |   esac | 
 | 16941 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 16942 |     as_dirs= | 
 | 16943 |     while :; do | 
 | 16944 |       case $as_dir in #( | 
 | 16945 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 16946 |       *) as_qdir=$as_dir;; | 
 | 16947 |       esac | 
 | 16948 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 16949 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 16950 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 16951 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 16952 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 16953 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 16954 | $as_echo X"$as_dir" | | 
 | 16955 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 16956 | 	    s//\1/ | 
 | 16957 | 	    q | 
 | 16958 | 	  } | 
 | 16959 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 16960 | 	    s//\1/ | 
 | 16961 | 	    q | 
 | 16962 | 	  } | 
 | 16963 | 	  /^X\(\/\/\)$/{ | 
 | 16964 | 	    s//\1/ | 
 | 16965 | 	    q | 
 | 16966 | 	  } | 
 | 16967 | 	  /^X\(\/\).*/{ | 
 | 16968 | 	    s//\1/ | 
 | 16969 | 	    q | 
 | 16970 | 	  } | 
 | 16971 | 	  s/.*/./; q'` | 
 | 16972 |       test -d "$as_dir" && break | 
 | 16973 |     done | 
 | 16974 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16975 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16976 |  | 
 | 16977 |  | 
 | 16978 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16979 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16980 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16981 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16982 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16983 |   as_mkdir_p=false | 
 | 16984 | fi | 
 | 16985 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16986 |  | 
 | 16987 | # as_fn_executable_p FILE | 
 | 16988 | # ----------------------- | 
 | 16989 | # Test if FILE is an executable regular file. | 
 | 16990 | as_fn_executable_p () | 
 | 16991 | { | 
 | 16992 |   test -f "$1" && test -x "$1" | 
 | 16993 | } # as_fn_executable_p | 
 | 16994 | as_test_x='test -x' | 
 | 16995 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16996 |  | 
 | 16997 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16998 | 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] | 16999 |  | 
 | 17000 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17001 | 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] | 17002 |  | 
 | 17003 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17004 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17005 | ## ----------------------------------- ## | 
 | 17006 | ## Main body of $CONFIG_STATUS script. ## | 
 | 17007 | ## ----------------------------------- ## | 
 | 17008 | _ASEOF | 
 | 17009 | 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] | 17010 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17011 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 17012 | # 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] | 17013 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17014 | # values after options handling. | 
 | 17015 | ac_log=" | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 17016 | This file was extended by python $as_me 3.5, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17017 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17018 |  | 
 | 17019 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 17020 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 17021 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 17022 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 17023 |   $ $0 $@ | 
 | 17024 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17025 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 17026 | " | 
 | 17027 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17028 | _ACEOF | 
 | 17029 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17030 | case $ac_config_files in *" | 
 | 17031 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
 | 17032 | esac | 
 | 17033 |  | 
 | 17034 | case $ac_config_headers in *" | 
 | 17035 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
 | 17036 | esac | 
 | 17037 |  | 
 | 17038 |  | 
 | 17039 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17040 | # Files that config.status was made for. | 
| Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 17041 | config_files="$ac_config_files" | 
 | 17042 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17043 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17044 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17045 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17046 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17047 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17048 | \`$as_me' instantiates files and other configuration actions | 
 | 17049 | from templates according to the current configuration.  Unless the files | 
 | 17050 | 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] | 17051 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17052 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17053 |  | 
 | 17054 |   -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17055 |   -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17056 |       --config     print configuration, then exit | 
 | 17057 |   -q, --quiet, --silent | 
 | 17058 |                    do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17059 |   -d, --debug      don't remove temporary files | 
 | 17060 |       --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17061 |       --file=FILE[:TEMPLATE] | 
 | 17062 |                    instantiate the configuration file FILE | 
 | 17063 |       --header=FILE[:TEMPLATE] | 
 | 17064 |                    instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17065 |  | 
 | 17066 | Configuration files: | 
 | 17067 | $config_files | 
 | 17068 |  | 
 | 17069 | Configuration headers: | 
 | 17070 | $config_headers | 
 | 17071 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 17072 | Report bugs to <https://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 17073 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17074 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17075 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17076 | 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] | 17077 | ac_cs_version="\\ | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 17078 | python config.status 3.5 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17079 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17080 |   with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17081 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17082 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17083 | This config.status script is free software; the Free Software Foundation | 
 | 17084 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17085 |  | 
 | 17086 | ac_pwd='$ac_pwd' | 
 | 17087 | srcdir='$srcdir' | 
 | 17088 | INSTALL='$INSTALL' | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17089 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17090 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17091 | _ACEOF | 
 | 17092 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17093 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 17094 | # 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] | 17095 | ac_need_defaults=: | 
 | 17096 | while test $# != 0 | 
 | 17097 | do | 
 | 17098 |   case $1 in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17099 |   --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17100 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 17101 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17102 |     ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17103 |     ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17104 |   --*=) | 
 | 17105 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 17106 |     ac_optarg= | 
 | 17107 |     ac_shift=: | 
 | 17108 |     ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17109 |   *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17110 |     ac_option=$1 | 
 | 17111 |     ac_optarg=$2 | 
 | 17112 |     ac_shift=shift | 
 | 17113 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17114 |   esac | 
 | 17115 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17116 |   case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17117 |   # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17118 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 17119 |     ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17120 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17121 |     $as_echo "$ac_cs_version"; exit ;; | 
 | 17122 |   --config | --confi | --conf | --con | --co | --c ) | 
 | 17123 |     $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17124 |   --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17125 |     debug=: ;; | 
 | 17126 |   --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17127 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17128 |     case $ac_optarg in | 
 | 17129 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17130 |     '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17131 |     esac | 
 | 17132 |     as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17133 |     ac_need_defaults=false;; | 
 | 17134 |   --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17135 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17136 |     case $ac_optarg in | 
 | 17137 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 17138 |     esac | 
 | 17139 |     as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17140 |     ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17141 |   --he | --h) | 
 | 17142 |     # Conflict between --help and --header | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17143 |     as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17144 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17145 |   --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17146 |     $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17147 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 17148 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 17149 |     ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17150 |  | 
 | 17151 |   # This is an error. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17152 |   -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17153 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17154 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17155 |   *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17156 |      ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17157 |  | 
 | 17158 |   esac | 
 | 17159 |   shift | 
 | 17160 | done | 
 | 17161 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17162 | ac_configure_extra_args= | 
 | 17163 |  | 
 | 17164 | if $ac_cs_silent; then | 
 | 17165 |   exec 6>/dev/null | 
 | 17166 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 17167 | fi | 
 | 17168 |  | 
 | 17169 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17170 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17171 | if \$ac_cs_recheck; then | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17172 |   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] | 17173 |   shift | 
 | 17174 |   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
 | 17175 |   CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17176 |   export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17177 |   exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17178 | fi | 
 | 17179 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17180 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17181 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17182 | exec 5>>config.log | 
 | 17183 | { | 
 | 17184 |   echo | 
 | 17185 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 17186 | ## Running $as_me. ## | 
 | 17187 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17188 |   $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17189 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17190 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17191 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17192 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17193 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17194 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17195 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17196 |  | 
 | 17197 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17198 | for ac_config_target in $ac_config_targets | 
 | 17199 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17200 |   case $ac_config_target in | 
 | 17201 |     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
 | 17202 |     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
 | 17203 |     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 17204 |     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
 | 17205 |     "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] | 17206 |     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
 | 17207 |     "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17208 |     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17209 |     "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17210 |     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17211 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17212 |   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17213 |   esac | 
 | 17214 | done | 
 | 17215 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17216 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17217 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 17218 | # then the envvar interface is used.  Set only those that are not. | 
 | 17219 | # We use the long form for the default assignment because of an extremely | 
 | 17220 | # bizarre bug on SunOS 4.1.3. | 
 | 17221 | if $ac_need_defaults; then | 
 | 17222 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 17223 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
 | 17224 | fi | 
 | 17225 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17226 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17227 | # 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] | 17228 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17229 | # Hook for its removal unless debugging. | 
 | 17230 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 17231 | # 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] | 17232 | $debug || | 
 | 17233 | { | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17234 |   tmp= ac_tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17235 |   trap 'exit_status=$? | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17236 |   : "${ac_tmp:=$tmp}" | 
 | 17237 |   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17238 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17239 |   trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17240 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17241 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17242 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17243 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17244 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17245 |   test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17246 | }  || | 
 | 17247 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17248 |   tmp=./conf$$-$RANDOM | 
 | 17249 |   (umask 077 && mkdir "$tmp") | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17250 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17251 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17252 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17253 | # Set up the scripts for CONFIG_FILES section. | 
 | 17254 | # No need to generate them if there are no CONFIG_FILES. | 
 | 17255 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17256 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17257 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17258 |  | 
 | 17259 | ac_cr=`echo X | tr X '\015'` | 
 | 17260 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
 | 17261 | # But we know of no other shell where ac_cr would be empty at this | 
 | 17262 | # point, so we can use a bashism as a fallback. | 
 | 17263 | if test "x$ac_cr" = x; then | 
 | 17264 |   eval ac_cr=\$\'\\r\' | 
 | 17265 | fi | 
 | 17266 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
 | 17267 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17268 |   ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17269 | else | 
 | 17270 |   ac_cs_awk_cr=$ac_cr | 
 | 17271 | fi | 
 | 17272 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17273 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17274 | _ACEOF | 
 | 17275 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17276 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17277 | { | 
 | 17278 |   echo "cat >conf$$subs.awk <<_ACEOF" && | 
 | 17279 |   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
 | 17280 |   echo "_ACEOF" | 
 | 17281 | } >conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17282 |   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
 | 17283 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17284 | ac_delim='%!_!# ' | 
 | 17285 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17286 |   . ./conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17287 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17288 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17289 |   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
 | 17290 |   if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17291 |     break | 
 | 17292 |   elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17293 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17294 |   else | 
 | 17295 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17296 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17297 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17298 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17299 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17300 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17301 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17302 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17303 | sed -n ' | 
 | 17304 | h | 
 | 17305 | s/^/S["/; s/!.*/"]=/ | 
 | 17306 | p | 
 | 17307 | g | 
 | 17308 | s/^[^!]*!// | 
 | 17309 | :repl | 
 | 17310 | t repl | 
 | 17311 | s/'"$ac_delim"'$// | 
 | 17312 | t delim | 
 | 17313 | :nl | 
 | 17314 | h | 
 | 17315 | s/\(.\{148\}\)..*/\1/ | 
 | 17316 | t more1 | 
 | 17317 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
 | 17318 | p | 
 | 17319 | n | 
 | 17320 | b repl | 
 | 17321 | :more1 | 
 | 17322 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 17323 | p | 
 | 17324 | g | 
 | 17325 | s/.\{148\}// | 
 | 17326 | t nl | 
 | 17327 | :delim | 
 | 17328 | h | 
 | 17329 | s/\(.\{148\}\)..*/\1/ | 
 | 17330 | t more2 | 
 | 17331 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
 | 17332 | p | 
 | 17333 | b | 
 | 17334 | :more2 | 
 | 17335 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 17336 | p | 
 | 17337 | g | 
 | 17338 | s/.\{148\}// | 
 | 17339 | t delim | 
 | 17340 | ' <conf$$subs.awk | sed ' | 
 | 17341 | /^[^""]/{ | 
 | 17342 |   N | 
 | 17343 |   s/\n// | 
 | 17344 | } | 
 | 17345 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 17346 | rm -f conf$$subs.awk | 
 | 17347 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17348 | _ACAWK | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17349 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17350 |   for (key in S) S_is_set[key] = 1 | 
 | 17351 |   FS = "" | 
 | 17352 |  | 
 | 17353 | } | 
 | 17354 | { | 
 | 17355 |   line = $ 0 | 
 | 17356 |   nfields = split(line, field, "@") | 
 | 17357 |   substed = 0 | 
 | 17358 |   len = length(field[1]) | 
 | 17359 |   for (i = 2; i < nfields; i++) { | 
 | 17360 |     key = field[i] | 
 | 17361 |     keylen = length(key) | 
 | 17362 |     if (S_is_set[key]) { | 
 | 17363 |       value = S[key] | 
 | 17364 |       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
 | 17365 |       len += length(value) + length(field[++i]) | 
 | 17366 |       substed = 1 | 
 | 17367 |     } else | 
 | 17368 |       len += 1 + keylen | 
 | 17369 |   } | 
 | 17370 |  | 
 | 17371 |   print line | 
 | 17372 | } | 
 | 17373 |  | 
 | 17374 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17375 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17376 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 17377 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
 | 17378 |   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
 | 17379 | else | 
 | 17380 |   cat | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17381 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17382 |   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17383 | _ACEOF | 
 | 17384 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17385 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
 | 17386 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17387 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 17388 | # (actually we leave an empty line to preserve line numbers). | 
 | 17389 | if test "x$srcdir" = x.; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17390 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
 | 17391 | h | 
 | 17392 | s/// | 
 | 17393 | s/^/:/ | 
 | 17394 | s/[	 ]*$/:/ | 
 | 17395 | s/:\$(srcdir):/:/g | 
 | 17396 | s/:\${srcdir}:/:/g | 
 | 17397 | s/:@srcdir@:/:/g | 
 | 17398 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17399 | s/:*$// | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17400 | x | 
 | 17401 | s/\(=[	 ]*\).*/\1/ | 
 | 17402 | G | 
 | 17403 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17404 | s/^[^=]*=[	 ]*$// | 
 | 17405 | }' | 
 | 17406 | fi | 
 | 17407 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17408 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17409 | fi # test -n "$CONFIG_FILES" | 
 | 17410 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17411 | # Set up the scripts for CONFIG_HEADERS section. | 
 | 17412 | # No need to generate them if there are no CONFIG_HEADERS. | 
 | 17413 | # This happens for instance with `./config.status Makefile'. | 
 | 17414 | if test -n "$CONFIG_HEADERS"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17415 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17416 | BEGIN { | 
 | 17417 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17418 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17419 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
 | 17420 | # here-document in config.status, that substitutes the proper values into | 
 | 17421 | # config.h.in to produce config.h. | 
 | 17422 |  | 
 | 17423 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
 | 17424 | # handling of long lines. | 
 | 17425 | ac_delim='%!_!# ' | 
 | 17426 | for ac_last_try in false false :; do | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17427 |   ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
 | 17428 |   if test -z "$ac_tt"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17429 |     break | 
 | 17430 |   elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17431 |     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17432 |   else | 
 | 17433 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 17434 |   fi | 
 | 17435 | done | 
 | 17436 |  | 
 | 17437 | # For the awk script, D is an array of macro values keyed by name, | 
 | 17438 | # likewise P contains macro parameters if any.  Preserve backslash | 
 | 17439 | # newline sequences. | 
 | 17440 |  | 
 | 17441 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 17442 | sed -n ' | 
 | 17443 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 17444 | t rset | 
 | 17445 | :rset | 
 | 17446 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
 | 17447 | t def | 
 | 17448 | d | 
 | 17449 | :def | 
 | 17450 | s/\\$// | 
 | 17451 | t bsnl | 
 | 17452 | s/["\\]/\\&/g | 
 | 17453 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 17454 | D["\1"]=" \3"/p | 
 | 17455 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
 | 17456 | d | 
 | 17457 | :bsnl | 
 | 17458 | s/["\\]/\\&/g | 
 | 17459 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 17460 | D["\1"]=" \3\\\\\\n"\\/p | 
 | 17461 | t cont | 
 | 17462 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
 | 17463 | t cont | 
 | 17464 | d | 
 | 17465 | :cont | 
 | 17466 | n | 
 | 17467 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 17468 | t clear | 
 | 17469 | :clear | 
 | 17470 | s/\\$// | 
 | 17471 | t bsnlc | 
 | 17472 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
 | 17473 | d | 
 | 17474 | :bsnlc | 
 | 17475 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
 | 17476 | b cont | 
 | 17477 | ' <confdefs.h | sed ' | 
 | 17478 | s/'"$ac_delim"'/"\\\ | 
 | 17479 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 17480 |  | 
 | 17481 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17482 |   for (key in D) D_is_set[key] = 1 | 
 | 17483 |   FS = "" | 
 | 17484 | } | 
 | 17485 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
 | 17486 |   line = \$ 0 | 
 | 17487 |   split(line, arg, " ") | 
 | 17488 |   if (arg[1] == "#") { | 
 | 17489 |     defundef = arg[2] | 
 | 17490 |     mac1 = arg[3] | 
 | 17491 |   } else { | 
 | 17492 |     defundef = substr(arg[1], 2) | 
 | 17493 |     mac1 = arg[2] | 
 | 17494 |   } | 
 | 17495 |   split(mac1, mac2, "(") #) | 
 | 17496 |   macro = mac2[1] | 
 | 17497 |   prefix = substr(line, 1, index(line, defundef) - 1) | 
 | 17498 |   if (D_is_set[macro]) { | 
 | 17499 |     # Preserve the white space surrounding the "#". | 
 | 17500 |     print prefix "define", macro P[macro] D[macro] | 
 | 17501 |     next | 
 | 17502 |   } else { | 
 | 17503 |     # Replace #undef with comments.  This is necessary, for example, | 
 | 17504 |     # in the case of _POSIX_SOURCE, which is predefined and required | 
 | 17505 |     # on some systems where configure will not decide to define it. | 
 | 17506 |     if (defundef == "undef") { | 
 | 17507 |       print "/*", prefix defundef, macro, "*/" | 
 | 17508 |       next | 
 | 17509 |     } | 
 | 17510 |   } | 
 | 17511 | } | 
 | 17512 | { print } | 
 | 17513 | _ACAWK | 
 | 17514 | _ACEOF | 
 | 17515 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17516 |   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17517 | fi # test -n "$CONFIG_HEADERS" | 
 | 17518 |  | 
 | 17519 |  | 
 | 17520 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
 | 17521 | shift | 
 | 17522 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17523 | do | 
 | 17524 |   case $ac_tag in | 
 | 17525 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 17526 |   esac | 
 | 17527 |   case $ac_mode$ac_tag in | 
 | 17528 |   :[FHL]*:*);; | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17529 |   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17530 |   :[FH]-) ac_tag=-:-;; | 
 | 17531 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 17532 |   esac | 
 | 17533 |   ac_save_IFS=$IFS | 
 | 17534 |   IFS=: | 
 | 17535 |   set x $ac_tag | 
 | 17536 |   IFS=$ac_save_IFS | 
 | 17537 |   shift | 
 | 17538 |   ac_file=$1 | 
 | 17539 |   shift | 
 | 17540 |  | 
 | 17541 |   case $ac_mode in | 
 | 17542 |   :L) ac_source=$1;; | 
 | 17543 |   :[FH]) | 
 | 17544 |     ac_file_inputs= | 
 | 17545 |     for ac_f | 
 | 17546 |     do | 
 | 17547 |       case $ac_f in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17548 |       -) ac_f="$ac_tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17549 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 17550 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 17551 | 	 # because $ac_f cannot contain `:'. | 
 | 17552 | 	 test -f "$ac_f" || | 
 | 17553 | 	   case $ac_f in | 
 | 17554 | 	   [\\/$]*) false;; | 
 | 17555 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 17556 | 	   esac || | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17557 | 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17558 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17559 |       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
 | 17560 |       as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17561 |     done | 
 | 17562 |  | 
 | 17563 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 17564 |     # use $as_me), people would be surprised to read: | 
 | 17565 |     #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17566 |     configure_input='Generated from '` | 
 | 17567 | 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
 | 17568 | 	`' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17569 |     if test x"$ac_file" != x-; then | 
 | 17570 |       configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17571 |       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
 | 17572 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17573 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17574 |     # Neutralize special characters interpreted by sed in replacement strings. | 
 | 17575 |     case $configure_input in #( | 
 | 17576 |     *\&* | *\|* | *\\* ) | 
 | 17577 |        ac_sed_conf_input=`$as_echo "$configure_input" | | 
 | 17578 |        sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
 | 17579 |     *) ac_sed_conf_input=$configure_input;; | 
 | 17580 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17581 |  | 
 | 17582 |     case $ac_tag in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17583 |     *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
 | 17584 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17585 |     esac | 
 | 17586 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17587 |   esac | 
 | 17588 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17589 |   ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17590 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17591 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 17592 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17593 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17594 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17595 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 17596 | 	    s//\1/ | 
 | 17597 | 	    q | 
 | 17598 | 	  } | 
 | 17599 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 17600 | 	    s//\1/ | 
 | 17601 | 	    q | 
 | 17602 | 	  } | 
 | 17603 | 	  /^X\(\/\/\)$/{ | 
 | 17604 | 	    s//\1/ | 
 | 17605 | 	    q | 
 | 17606 | 	  } | 
 | 17607 | 	  /^X\(\/\).*/{ | 
 | 17608 | 	    s//\1/ | 
 | 17609 | 	    q | 
 | 17610 | 	  } | 
 | 17611 | 	  s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17612 |   as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17613 |   ac_builddir=. | 
 | 17614 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17615 | case "$ac_dir" in | 
 | 17616 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 17617 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17618 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17619 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17620 |   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] | 17621 |   case $ac_top_builddir_sub in | 
 | 17622 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 17623 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 17624 |   esac ;; | 
 | 17625 | esac | 
 | 17626 | ac_abs_top_builddir=$ac_pwd | 
 | 17627 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 17628 | # for backward compatibility: | 
 | 17629 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17630 |  | 
 | 17631 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17632 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17633 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17634 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 17635 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 17636 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17637 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17638 |     ac_top_srcdir=$srcdir | 
 | 17639 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 17640 |   *) # Relative name. | 
 | 17641 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 17642 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 17643 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17644 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17645 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17646 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17647 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17648 |   case $ac_mode in | 
 | 17649 |   :F) | 
 | 17650 |   # | 
 | 17651 |   # CONFIG_FILE | 
 | 17652 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17653 |  | 
 | 17654 |   case $INSTALL in | 
 | 17655 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17656 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17657 |   esac | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17658 |   ac_MKDIR_P=$MKDIR_P | 
 | 17659 |   case $MKDIR_P in | 
 | 17660 |   [\\/$]* | ?:[\\/]* ) ;; | 
 | 17661 |   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
 | 17662 |   esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17663 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17664 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17665 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17666 | # If the template does not know about datarootdir, expand it. | 
 | 17667 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 17668 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17669 | ac_sed_dataroot=' | 
 | 17670 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17671 |   p | 
 | 17672 |   q | 
 | 17673 | } | 
 | 17674 | /@datadir@/p | 
 | 17675 | /@docdir@/p | 
 | 17676 | /@infodir@/p | 
 | 17677 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17678 | /@mandir@/p' | 
 | 17679 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17680 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 17681 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17682 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
 | 17683 | $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] | 17684 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17685 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17686 |   ac_datarootdir_hack=' | 
 | 17687 |   s&@datadir@&$datadir&g | 
 | 17688 |   s&@docdir@&$docdir&g | 
 | 17689 |   s&@infodir@&$infodir&g | 
 | 17690 |   s&@localedir@&$localedir&g | 
 | 17691 |   s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17692 |   s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17693 | esac | 
 | 17694 | _ACEOF | 
 | 17695 |  | 
 | 17696 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 17697 | # Shell code in configure.ac might set extrasub. | 
 | 17698 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17699 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17700 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17701 | $extrasub | 
 | 17702 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17703 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17704 | :t | 
 | 17705 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17706 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17707 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17708 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17709 | s&@srcdir@&$ac_srcdir&;t t | 
 | 17710 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 17711 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 17712 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 17713 | s&@builddir@&$ac_builddir&;t t | 
 | 17714 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 17715 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 17716 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17717 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17718 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17719 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17720 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
 | 17721 |   >$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] | 17722 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17723 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17724 |   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
 | 17725 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
 | 17726 |       "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17727 |   { $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] | 17728 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17729 | $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] | 17730 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17731 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17732 |   rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17733 |   case $ac_file in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17734 |   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
 | 17735 |   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17736 |   esac \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17737 |   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17738 |  ;; | 
 | 17739 |   :H) | 
 | 17740 |   # | 
 | 17741 |   # CONFIG_HEADER | 
 | 17742 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17743 |   if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17744 |     { | 
 | 17745 |       $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17746 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
 | 17747 |     } >"$ac_tmp/config.h" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17748 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17749 |     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] | 17750 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
 | 17751 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17752 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17753 |       rm -f "$ac_file" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17754 |       mv "$ac_tmp/config.h" "$ac_file" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17755 | 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17756 |     fi | 
 | 17757 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17758 |     $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17759 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17760 |       || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17761 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17762 |  ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17763 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17764 |  | 
 | 17765 |   esac | 
 | 17766 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17767 |  | 
 | 17768 |   case $ac_file$ac_mode in | 
 | 17769 |     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
 | 17770 |  | 
 | 17771 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17772 | done # for ac_tag | 
 | 17773 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17774 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17775 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17776 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17777 | ac_clean_files=$ac_clean_files_save | 
 | 17778 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17779 | test $ac_write_fail = 0 || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17780 |   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17781 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17782 |  | 
 | 17783 | # configure is writing to config.log, and then calls config.status. | 
 | 17784 | # config.status does its own redirection, appending to config.log. | 
 | 17785 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 17786 | # by configure, so config.status won't be able to write to it; its | 
 | 17787 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 17788 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 17789 | # appended to by config.status.  When coming back to configure, we | 
 | 17790 | # need to make the FD available again. | 
 | 17791 | if test "$no_create" != yes; then | 
 | 17792 |   ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17793 |   ac_config_status_args= | 
 | 17794 |   test "$silent" = yes && | 
 | 17795 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17796 |   exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17797 |   $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] | 17798 |   exec 5>>config.log | 
 | 17799 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 17800 |   # would make configure fail if this is the last instruction. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17801 |   $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17802 | fi | 
 | 17803 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
 | 17804 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
 | 17805 | $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] | 17806 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17807 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17808 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17809 | echo "creating Modules/Setup" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17810 | if test ! -f Modules/Setup | 
 | 17811 | then | 
 | 17812 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 17813 | fi | 
 | 17814 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17815 | echo "creating Modules/Setup.local" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17816 | if test ! -f Modules/Setup.local | 
 | 17817 | then | 
 | 17818 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 17819 | fi | 
 | 17820 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17821 | echo "creating Makefile" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17822 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
 | 17823 | 			-s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17824 | 			Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17825 | mv config.c Modules | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 17826 |  | 
 | 17827 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | 
 | 17828 |     echo "" >&6 | 
 | 17829 |     echo "" >&6 | 
 | 17830 |     echo "If you want a release build with all optimizations active (LTO, PGO, etc)," | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 17831 |     echo "please run ./configure --enable-optimizations" >&6 | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 17832 |     echo "" >&6 | 
 | 17833 |     echo "" >&6 | 
 | 17834 | fi | 
 | 17835 |  |