| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2 | # From configure.ac Revision. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.69 for python 2.7. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8 | # | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10 | # | 
 | 11 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # This configure script is free software; the Free Software Foundation | 
 | 13 | # gives unlimited permission to copy, distribute and modify it. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14 | ## -------------------- ## | 
 | 15 | ## M4sh Initialization. ## | 
 | 16 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18 | # Be more Bourne compatible | 
 | 19 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 20 | 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] | 21 |   emulate sh | 
 | 22 |   NULLCMD=: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 23 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24 |   # is contrary to our usage.  Disable this feature. | 
 | 25 |   alias -g '${1+"$@"}'='"$@"' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 28 |   case `(set -o) 2>/dev/null` in #( | 
 | 29 |   *posix*) : | 
 | 30 |     set -o posix ;; #( | 
 | 31 |   *) : | 
 | 32 |      ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 33 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 34 | fi | 
 | 35 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 36 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 37 | as_nl=' | 
 | 38 | ' | 
 | 39 | export as_nl | 
 | 40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 44 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 45 | # but without wasting forks for bash or zsh. | 
 | 46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 47 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 48 |   as_echo='print -r --' | 
 | 49 |   as_echo_n='print -rn --' | 
 | 50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 51 |   as_echo='printf %s\n' | 
 | 52 |   as_echo_n='printf %s' | 
 | 53 | else | 
 | 54 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 55 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 56 |     as_echo_n='/usr/ucb/echo -n' | 
 | 57 |   else | 
 | 58 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 59 |     as_echo_n_body='eval | 
 | 60 |       arg=$1; | 
 | 61 |       case $arg in #( | 
 | 62 |       *"$as_nl"*) | 
 | 63 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 64 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 65 |       esac; | 
 | 66 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 67 |     ' | 
 | 68 |     export as_echo_n_body | 
 | 69 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 70 |   fi | 
 | 71 |   export as_echo_body | 
 | 72 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 73 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 74 |  | 
 | 75 | # The user is always right. | 
 | 76 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 77 |   PATH_SEPARATOR=: | 
 | 78 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 79 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 80 |       PATH_SEPARATOR=';' | 
 | 81 |   } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 82 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 83 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 84 |  | 
 | 85 | # IFS | 
 | 86 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 87 | # there to prevent editors from complaining about space-tab. | 
 | 88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 89 | # splitting by setting IFS to empty value.) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 90 | IFS=" ""	$as_nl" | 
 | 91 |  | 
 | 92 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 93 | as_myself= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 94 | case $0 in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 95 |   *[\\/]* ) as_myself=$0 ;; | 
 | 96 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 97 | for as_dir in $PATH | 
 | 98 | do | 
 | 99 |   IFS=$as_save_IFS | 
 | 100 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 101 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 102 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 103 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 104 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 105 |      ;; | 
 | 106 | esac | 
 | 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 108 | # in which case we are not to be found in the path. | 
 | 109 | if test "x$as_myself" = x; then | 
 | 110 |   as_myself=$0 | 
 | 111 | fi | 
 | 112 | if test ! -f "$as_myself"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 113 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 114 |   exit 1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 115 | fi | 
 | 116 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 118 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 119 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 120 | # trigger a bug in pdksh 5.2.14. | 
 | 121 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 122 | do eval test x\${$as_var+set} = xset \ | 
 | 123 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 124 | done | 
 | 125 | PS1='$ ' | 
 | 126 | PS2='> ' | 
 | 127 | PS4='+ ' | 
 | 128 |  | 
 | 129 | # NLS nuisances. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 130 | LC_ALL=C | 
 | 131 | export LC_ALL | 
 | 132 | LANGUAGE=C | 
 | 133 | export LANGUAGE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 134 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 135 | # CDPATH. | 
 | 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 137 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 138 | # Use a proper internal environment variable to ensure we don't fall | 
 | 139 |   # into an infinite loop, continuously re-executing ourselves. | 
 | 140 |   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | 
 | 141 |     _as_can_reexec=no; export _as_can_reexec; | 
 | 142 |     # We cannot yet assume a decent shell, so we have to provide a | 
 | 143 | # neutralization value for shells without unset; and this also | 
 | 144 | # works around shells that cannot unset nonexistent variables. | 
 | 145 | # Preserve -v and -x to the replacement shell. | 
 | 146 | BASH_ENV=/dev/null | 
 | 147 | ENV=/dev/null | 
 | 148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 149 | case $- in # (((( | 
 | 150 |   *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 151 |   *v* ) as_opts=-v ;; | 
 | 152 |   *x* ) as_opts=-x ;; | 
 | 153 |   * ) as_opts= ;; | 
 | 154 | esac | 
 | 155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
 | 156 | # Admittedly, this is quite paranoid, since all the known shells bail | 
 | 157 | # out after a failed `exec'. | 
 | 158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
 | 159 | as_fn_exit 255 | 
 | 160 |   fi | 
 | 161 |   # We don't want this to propagate to other subprocesses. | 
 | 162 |           { _as_can_reexec=; unset _as_can_reexec;} | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 163 | if test "x$CONFIG_SHELL" = x; then | 
 | 164 |   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
 | 165 |   emulate sh | 
 | 166 |   NULLCMD=: | 
 | 167 |   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
 | 168 |   # is contrary to our usage.  Disable this feature. | 
 | 169 |   alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
 | 170 |   setopt NO_GLOB_SUBST | 
 | 171 | else | 
 | 172 |   case \`(set -o) 2>/dev/null\` in #( | 
 | 173 |   *posix*) : | 
 | 174 |     set -o posix ;; #( | 
 | 175 |   *) : | 
 | 176 |      ;; | 
 | 177 | esac | 
 | 178 | fi | 
 | 179 | " | 
 | 180 |   as_required="as_fn_return () { (exit \$1); } | 
 | 181 | as_fn_success () { as_fn_return 0; } | 
 | 182 | as_fn_failure () { as_fn_return 1; } | 
 | 183 | as_fn_ret_success () { return 0; } | 
 | 184 | as_fn_ret_failure () { return 1; } | 
 | 185 |  | 
 | 186 | exitcode=0 | 
 | 187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
 | 188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
 | 189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
 | 190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
 | 191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
 | 192 |  | 
 | 193 | else | 
 | 194 |   exitcode=1; echo positional parameters were not saved. | 
 | 195 | fi | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 196 | test x\$exitcode = x0 || exit 1 | 
 | 197 | test -x / || exit 1" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 198 |   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
 | 199 |   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
 | 200 |   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
 | 201 |   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
 | 202 | test \$(( 1 + 1 )) = 2 || exit 1" | 
 | 203 |   if (eval "$as_required") 2>/dev/null; then : | 
 | 204 |   as_have_required=yes | 
 | 205 | else | 
 | 206 |   as_have_required=no | 
 | 207 | fi | 
 | 208 |   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
 | 209 |  | 
 | 210 | else | 
 | 211 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 212 | as_found=false | 
 | 213 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 214 | do | 
 | 215 |   IFS=$as_save_IFS | 
 | 216 |   test -z "$as_dir" && as_dir=. | 
 | 217 |   as_found=: | 
 | 218 |   case $as_dir in #( | 
 | 219 | 	 /*) | 
 | 220 | 	   for as_base in sh bash ksh sh5; do | 
 | 221 | 	     # Try only shells that exist, to save several forks. | 
 | 222 | 	     as_shell=$as_dir/$as_base | 
 | 223 | 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
 | 224 | 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 225 |   CONFIG_SHELL=$as_shell as_have_required=yes | 
 | 226 | 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 227 |   break 2 | 
 | 228 | fi | 
 | 229 | fi | 
 | 230 | 	   done;; | 
 | 231 |        esac | 
 | 232 |   as_found=false | 
 | 233 | done | 
 | 234 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
 | 235 | 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
 | 236 |   CONFIG_SHELL=$SHELL as_have_required=yes | 
 | 237 | fi; } | 
 | 238 | IFS=$as_save_IFS | 
 | 239 |  | 
 | 240 |  | 
 | 241 |       if test "x$CONFIG_SHELL" != x; then : | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 242 |   export CONFIG_SHELL | 
 | 243 |              # We cannot yet assume a decent shell, so we have to provide a | 
 | 244 | # neutralization value for shells without unset; and this also | 
 | 245 | # works around shells that cannot unset nonexistent variables. | 
 | 246 | # Preserve -v and -x to the replacement shell. | 
 | 247 | BASH_ENV=/dev/null | 
 | 248 | ENV=/dev/null | 
 | 249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 250 | case $- in # (((( | 
 | 251 |   *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 252 |   *v* ) as_opts=-v ;; | 
 | 253 |   *x* ) as_opts=-x ;; | 
 | 254 |   * ) as_opts= ;; | 
 | 255 | esac | 
 | 256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
 | 257 | # Admittedly, this is quite paranoid, since all the known shells bail | 
 | 258 | # out after a failed `exec'. | 
 | 259 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
 | 260 | exit 255 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 261 | fi | 
 | 262 |  | 
 | 263 |     if test x$as_have_required = xno; then : | 
 | 264 |   $as_echo "$0: This script requires a shell more modern than all" | 
 | 265 |   $as_echo "$0: the shells that I found on your system." | 
 | 266 |   if test x${ZSH_VERSION+set} = xset ; then | 
 | 267 |     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
 | 268 |     $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
 | 269 |   else | 
 | 270 |     $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
 | 271 | $0: http://bugs.python.org/ about your system, including | 
 | 272 | $0: any error possibly output before this message. Then | 
 | 273 | $0: install a modern shell, or manually run the script | 
 | 274 | $0: under such a shell if you do have one." | 
 | 275 |   fi | 
 | 276 |   exit 1 | 
 | 277 | fi | 
 | 278 | fi | 
 | 279 | fi | 
 | 280 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 281 | export SHELL | 
 | 282 | # Unset more variables known to interfere with behavior of common tools. | 
 | 283 | CLICOLOR_FORCE= GREP_OPTIONS= | 
 | 284 | unset CLICOLOR_FORCE GREP_OPTIONS | 
 | 285 |  | 
 | 286 | ## --------------------- ## | 
 | 287 | ## M4sh Shell Functions. ## | 
 | 288 | ## --------------------- ## | 
 | 289 | # as_fn_unset VAR | 
 | 290 | # --------------- | 
 | 291 | # Portably unset VAR. | 
 | 292 | as_fn_unset () | 
 | 293 | { | 
 | 294 |   { eval $1=; unset $1;} | 
 | 295 | } | 
 | 296 | as_unset=as_fn_unset | 
 | 297 |  | 
 | 298 | # as_fn_set_status STATUS | 
 | 299 | # ----------------------- | 
 | 300 | # Set $? to STATUS, without forking. | 
 | 301 | as_fn_set_status () | 
 | 302 | { | 
 | 303 |   return $1 | 
 | 304 | } # as_fn_set_status | 
 | 305 |  | 
 | 306 | # as_fn_exit STATUS | 
 | 307 | # ----------------- | 
 | 308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 309 | as_fn_exit () | 
 | 310 | { | 
 | 311 |   set +e | 
 | 312 |   as_fn_set_status $1 | 
 | 313 |   exit $1 | 
 | 314 | } # as_fn_exit | 
 | 315 |  | 
 | 316 | # as_fn_mkdir_p | 
 | 317 | # ------------- | 
 | 318 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 319 | as_fn_mkdir_p () | 
 | 320 | { | 
 | 321 |  | 
 | 322 |   case $as_dir in #( | 
 | 323 |   -*) as_dir=./$as_dir;; | 
 | 324 |   esac | 
 | 325 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 326 |     as_dirs= | 
 | 327 |     while :; do | 
 | 328 |       case $as_dir in #( | 
 | 329 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 330 |       *) as_qdir=$as_dir;; | 
 | 331 |       esac | 
 | 332 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 333 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 335 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 336 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 337 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 338 | $as_echo X"$as_dir" | | 
 | 339 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 340 | 	    s//\1/ | 
 | 341 | 	    q | 
 | 342 | 	  } | 
 | 343 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 344 | 	    s//\1/ | 
 | 345 | 	    q | 
 | 346 | 	  } | 
 | 347 | 	  /^X\(\/\/\)$/{ | 
 | 348 | 	    s//\1/ | 
 | 349 | 	    q | 
 | 350 | 	  } | 
 | 351 | 	  /^X\(\/\).*/{ | 
 | 352 | 	    s//\1/ | 
 | 353 | 	    q | 
 | 354 | 	  } | 
 | 355 | 	  s/.*/./; q'` | 
 | 356 |       test -d "$as_dir" && break | 
 | 357 |     done | 
 | 358 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 359 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 360 |  | 
 | 361 |  | 
 | 362 | } # as_fn_mkdir_p | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 363 |  | 
 | 364 | # as_fn_executable_p FILE | 
 | 365 | # ----------------------- | 
 | 366 | # Test if FILE is an executable regular file. | 
 | 367 | as_fn_executable_p () | 
 | 368 | { | 
 | 369 |   test -f "$1" && test -x "$1" | 
 | 370 | } # as_fn_executable_p | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 371 | # as_fn_append VAR VALUE | 
 | 372 | # ---------------------- | 
 | 373 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 374 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 375 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 376 | # implementations. | 
 | 377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 378 |   eval 'as_fn_append () | 
 | 379 |   { | 
 | 380 |     eval $1+=\$2 | 
 | 381 |   }' | 
 | 382 | else | 
 | 383 |   as_fn_append () | 
 | 384 |   { | 
 | 385 |     eval $1=\$$1\$2 | 
 | 386 |   } | 
 | 387 | fi # as_fn_append | 
 | 388 |  | 
 | 389 | # as_fn_arith ARG... | 
 | 390 | # ------------------ | 
 | 391 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 393 | # must be portable across $(()) and expr. | 
 | 394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 395 |   eval 'as_fn_arith () | 
 | 396 |   { | 
 | 397 |     as_val=$(( $* )) | 
 | 398 |   }' | 
 | 399 | else | 
 | 400 |   as_fn_arith () | 
 | 401 |   { | 
 | 402 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 403 |   } | 
 | 404 | fi # as_fn_arith | 
 | 405 |  | 
 | 406 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 408 | # ---------------------------------------- | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 411 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 412 | as_fn_error () | 
 | 413 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 414 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 415 |   if test "$4"; then | 
 | 416 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 417 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 418 |   fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 419 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 420 |   as_fn_exit $as_status | 
 | 421 | } # as_fn_error | 
 | 422 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 423 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 424 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 425 |   as_expr=expr | 
 | 426 | else | 
 | 427 |   as_expr=false | 
 | 428 | fi | 
 | 429 |  | 
 | 430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 431 |   as_basename=basename | 
 | 432 | else | 
 | 433 |   as_basename=false | 
 | 434 | fi | 
 | 435 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 437 |   as_dirname=dirname | 
 | 438 | else | 
 | 439 |   as_dirname=false | 
 | 440 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 441 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 442 | as_me=`$as_basename -- "$0" || | 
 | 443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 444 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 445 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 446 | $as_echo X/"$0" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 447 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 448 | 	    s//\1/ | 
 | 449 | 	    q | 
 | 450 | 	  } | 
 | 451 | 	  /^X\/\(\/\/\)$/{ | 
 | 452 | 	    s//\1/ | 
 | 453 | 	    q | 
 | 454 | 	  } | 
 | 455 | 	  /^X\/\(\/\).*/{ | 
 | 456 | 	    s//\1/ | 
 | 457 | 	    q | 
 | 458 | 	  } | 
 | 459 | 	  s/.*/./; q'` | 
 | 460 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 461 | # Avoid depending upon Character Ranges. | 
 | 462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 465 | as_cr_digits='0123456789' | 
 | 466 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 467 |  | 
 | 468 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 469 |   as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
 | 470 |   as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
 | 471 |   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
 | 472 |   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
 | 473 |   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 474 |   sed -n ' | 
 | 475 |     p | 
 | 476 |     /[$]LINENO/= | 
 | 477 |   ' <$as_myself | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 478 |     sed ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 479 |       s/[$]LINENO.*/&-/ | 
 | 480 |       t lineno | 
 | 481 |       b | 
 | 482 |       :lineno | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 483 |       N | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 484 |       :loop | 
 | 485 |       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 486 |       t loop | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 487 |       s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 |     ' >$as_me.lineno && | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 489 |   chmod +x "$as_me.lineno" || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 490 |     { $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] | 491 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 492 |   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | 
 | 493 |   # already done that, so ensure we don't try to do so again and fall | 
 | 494 |   # in an infinite loop.  This has already happened in practice. | 
 | 495 |   _as_can_reexec=no; export _as_can_reexec | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 496 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 497 |   # (the dirname of $[0] is not the place where we might find the | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 498 |   # original and so on.  Autoconf is especially sensitive to this). | 
 | 499 |   . "./$as_me.lineno" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 500 |   # Exit status is that of the last command. | 
 | 501 |   exit | 
 | 502 | } | 
 | 503 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 504 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 505 | case `echo -n x` in #((((( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 506 | -n*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 507 |   case `echo 'xy\c'` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 508 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 509 |   xy)  ECHO_C='\c';; | 
 | 510 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 511 |        ECHO_T='	';; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 512 |   esac;; | 
 | 513 | *) | 
 | 514 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 515 | esac | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 516 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 517 | rm -f conf$$ conf$$.exe conf$$.file | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 518 | if test -d conf$$.dir; then | 
 | 519 |   rm -f conf$$.dir/conf$$.file | 
 | 520 | else | 
 | 521 |   rm -f conf$$.dir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 522 |   mkdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 523 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 524 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 525 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 526 |     as_ln_s='ln -s' | 
 | 527 |     # ... but there are two gotchas: | 
 | 528 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 529 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 530 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 531 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 532 |       as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 533 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 534 |     as_ln_s=ln | 
 | 535 |   else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 536 |     as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 537 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 539 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 540 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 542 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 543 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 544 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 545 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 546 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 547 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 548 |   as_mkdir_p=false | 
 | 549 | fi | 
 | 550 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 551 | as_test_x='test -x' | 
 | 552 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 553 |  | 
 | 554 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 555 | 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] | 556 |  | 
 | 557 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 558 | 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] | 559 |  | 
 | 560 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 561 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
 | 562 | exec 6>&1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 563 |  | 
 | 564 | # Name of the host. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 565 | # 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] | 566 | # so uname gets run too. | 
 | 567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 568 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | # | 
 | 570 | # Initializations. | 
 | 571 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 572 | ac_default_prefix=/usr/local | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 573 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 574 | ac_config_libobj_dir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 575 | LIBOBJS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | cross_compiling=no | 
 | 577 | subdirs= | 
 | 578 | MFLAGS= | 
 | 579 | MAKEFLAGS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | # Identity of this package. | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 582 | PACKAGE_NAME='python' | 
 | 583 | PACKAGE_TARNAME='python' | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 584 | PACKAGE_VERSION='2.7' | 
 | 585 | PACKAGE_STRING='python 2.7' | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 586 | PACKAGE_BUGREPORT='http://bugs.python.org/' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 587 | PACKAGE_URL='' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 588 |  | 
 | 589 | ac_unique_file="Include/object.h" | 
 | 590 | # Factoring default headers for most tests. | 
 | 591 | ac_includes_default="\ | 
 | 592 | #include <stdio.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 593 | #ifdef HAVE_SYS_TYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | # include <sys/types.h> | 
 | 595 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | #ifdef HAVE_SYS_STAT_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <sys/stat.h> | 
 | 598 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 599 | #ifdef STDC_HEADERS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 600 | # include <stdlib.h> | 
 | 601 | # include <stddef.h> | 
 | 602 | #else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 603 | # ifdef HAVE_STDLIB_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 604 | #  include <stdlib.h> | 
 | 605 | # endif | 
 | 606 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 607 | #ifdef HAVE_STRING_H | 
 | 608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 609 | #  include <memory.h> | 
 | 610 | # endif | 
 | 611 | # include <string.h> | 
 | 612 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 613 | #ifdef HAVE_STRINGS_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 614 | # include <strings.h> | 
 | 615 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 616 | #ifdef HAVE_INTTYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 617 | # include <inttypes.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 618 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 619 | #ifdef HAVE_STDINT_H | 
 | 620 | # include <stdint.h> | 
 | 621 | #endif | 
 | 622 | #ifdef HAVE_UNISTD_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 623 | # include <unistd.h> | 
 | 624 | #endif" | 
 | 625 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 626 | ac_subst_vars='LTLIBOBJS | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 627 | SRCDIRS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 628 | THREADHEADERS | 
 | 629 | UNICODE_OBJS | 
 | 630 | LIBC | 
 | 631 | LIBM | 
 | 632 | HAVE_GETHOSTBYNAME | 
 | 633 | HAVE_GETHOSTBYNAME_R | 
 | 634 | HAVE_GETHOSTBYNAME_R_3_ARG | 
 | 635 | HAVE_GETHOSTBYNAME_R_5_ARG | 
 | 636 | HAVE_GETHOSTBYNAME_R_6_ARG | 
 | 637 | LIBOBJS | 
 | 638 | TRUE | 
 | 639 | MACHDEP_OBJS | 
 | 640 | DYNLOADFILE | 
 | 641 | DLINCLDIR | 
 | 642 | THREADOBJ | 
 | 643 | LDLAST | 
 | 644 | USE_THREAD_MODULE | 
 | 645 | SIGNAL_OBJS | 
 | 646 | USE_SIGNAL_MODULE | 
 | 647 | LIBFFI_INCLUDEDIR | 
 | 648 | PKG_CONFIG | 
 | 649 | SHLIBS | 
 | 650 | CFLAGSFORSHARED | 
 | 651 | LINKFORSHARED | 
 | 652 | CCSHARED | 
 | 653 | BLDSHARED | 
 | 654 | LDCXXSHARED | 
 | 655 | LDSHARED | 
 | 656 | SO | 
 | 657 | LIBTOOL_CRUFT | 
 | 658 | OTHER_LIBTOOL_OPT | 
 | 659 | UNIVERSAL_ARCH_FLAGS | 
 | 660 | BASECFLAGS | 
 | 661 | OPT | 
 | 662 | LN | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 663 | MKDIR_P | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 664 | INSTALL_DATA | 
 | 665 | INSTALL_SCRIPT | 
 | 666 | INSTALL_PROGRAM | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 667 | HAS_HG | 
 | 668 | HGBRANCH | 
 | 669 | HGTAG | 
 | 670 | HGVERSION | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 671 | BASECPPFLAGS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 672 | SVNVERSION | 
 | 673 | ARFLAGS | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 674 | ac_ct_AR | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 675 | AR | 
 | 676 | RANLIB | 
 | 677 | GNULD | 
 | 678 | LINKCC | 
 | 679 | RUNSHARED | 
 | 680 | INSTSONAME | 
 | 681 | LDLIBRARYDIR | 
 | 682 | BLDLIBRARY | 
 | 683 | DLLLIBRARY | 
 | 684 | LDLIBRARY | 
 | 685 | LIBRARY | 
 | 686 | BUILDEXEEXT | 
 | 687 | EGREP | 
 | 688 | GREP | 
 | 689 | CPP | 
| doko@python.org | 4e63fbe | 2013-01-25 13:08:27 +0100 | [diff] [blame] | 690 | MULTIARCH | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 691 | ac_ct_CXX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 692 | MAINCC | 
 | 693 | CXX | 
 | 694 | OBJEXT | 
 | 695 | EXEEXT | 
 | 696 | ac_ct_CC | 
 | 697 | CPPFLAGS | 
 | 698 | LDFLAGS | 
 | 699 | CFLAGS | 
 | 700 | CC | 
 | 701 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
 | 702 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
 | 703 | EXTRAMACHDEPPATH | 
 | 704 | EXTRAPLATDIR | 
 | 705 | SGI_ABI | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 706 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 707 | MACHDEP | 
 | 708 | FRAMEWORKINSTALLAPPSPREFIX | 
 | 709 | FRAMEWORKUNIXTOOLSPREFIX | 
 | 710 | FRAMEWORKALTINSTALLLAST | 
 | 711 | FRAMEWORKALTINSTALLFIRST | 
 | 712 | FRAMEWORKINSTALLLAST | 
 | 713 | FRAMEWORKINSTALLFIRST | 
 | 714 | PYTHONFRAMEWORKINSTALLDIR | 
 | 715 | PYTHONFRAMEWORKPREFIX | 
 | 716 | PYTHONFRAMEWORKDIR | 
 | 717 | PYTHONFRAMEWORKIDENTIFIER | 
 | 718 | PYTHONFRAMEWORK | 
 | 719 | LIPO_32BIT_FLAGS | 
 | 720 | ARCH_RUN_32BIT | 
 | 721 | UNIVERSALSDK | 
 | 722 | CONFIG_ARGS | 
 | 723 | SOVERSION | 
 | 724 | VERSION | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 725 | PYTHON_FOR_BUILD | 
 | 726 | host_os | 
 | 727 | host_vendor | 
 | 728 | host_cpu | 
 | 729 | host | 
 | 730 | build_os | 
 | 731 | build_vendor | 
 | 732 | build_cpu | 
 | 733 | build | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 734 | target_alias | 
 | 735 | host_alias | 
 | 736 | build_alias | 
 | 737 | LIBS | 
 | 738 | ECHO_T | 
 | 739 | ECHO_N | 
 | 740 | ECHO_C | 
 | 741 | DEFS | 
 | 742 | mandir | 
 | 743 | localedir | 
 | 744 | libdir | 
 | 745 | psdir | 
 | 746 | pdfdir | 
 | 747 | dvidir | 
 | 748 | htmldir | 
 | 749 | infodir | 
 | 750 | docdir | 
 | 751 | oldincludedir | 
 | 752 | includedir | 
 | 753 | localstatedir | 
 | 754 | sharedstatedir | 
 | 755 | sysconfdir | 
 | 756 | datadir | 
 | 757 | datarootdir | 
 | 758 | libexecdir | 
 | 759 | sbindir | 
 | 760 | bindir | 
 | 761 | program_transform_name | 
 | 762 | prefix | 
 | 763 | exec_prefix | 
 | 764 | PACKAGE_URL | 
 | 765 | PACKAGE_BUGREPORT | 
 | 766 | PACKAGE_STRING | 
 | 767 | PACKAGE_VERSION | 
 | 768 | PACKAGE_TARNAME | 
 | 769 | PACKAGE_NAME | 
 | 770 | PATH_SEPARATOR | 
 | 771 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 772 | ac_subst_files='' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 773 | ac_user_opts=' | 
 | 774 | enable_option_checking | 
 | 775 | enable_universalsdk | 
 | 776 | with_universal_archs | 
 | 777 | with_framework_name | 
 | 778 | enable_framework | 
 | 779 | with_gcc | 
 | 780 | with_cxx_main | 
 | 781 | with_suffix | 
 | 782 | enable_shared | 
 | 783 | enable_profiling | 
 | 784 | with_pydebug | 
 | 785 | enable_toolbox_glue | 
 | 786 | with_libs | 
 | 787 | with_system_expat | 
 | 788 | with_system_ffi | 
 | 789 | with_dbmliborder | 
 | 790 | with_signal_module | 
 | 791 | with_dec_threads | 
 | 792 | with_threads | 
 | 793 | with_thread | 
 | 794 | with_pth | 
 | 795 | enable_ipv6 | 
 | 796 | with_doc_strings | 
 | 797 | with_tsc | 
 | 798 | with_pymalloc | 
 | 799 | with_valgrind | 
 | 800 | with_wctype_functions | 
 | 801 | with_fpectl | 
 | 802 | with_libm | 
 | 803 | with_libc | 
 | 804 | enable_big_digits | 
 | 805 | enable_unicode | 
 | 806 | ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 807 |       ac_precious_vars='build_alias | 
 | 808 | host_alias | 
 | 809 | target_alias | 
 | 810 | CC | 
 | 811 | CFLAGS | 
 | 812 | LDFLAGS | 
 | 813 | LIBS | 
 | 814 | CPPFLAGS | 
 | 815 | CPP' | 
 | 816 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 817 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 818 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 819 | ac_init_help= | 
 | 820 | ac_init_version=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 821 | ac_unrecognized_opts= | 
 | 822 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 823 | # The variables have the same names as the options, with | 
 | 824 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 825 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 826 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 827 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 828 | no_recursion= | 
 | 829 | prefix=NONE | 
 | 830 | program_prefix=NONE | 
 | 831 | program_suffix=NONE | 
 | 832 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 833 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 834 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 835 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 836 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 837 | x_includes=NONE | 
 | 838 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 839 |  | 
 | 840 | # Installation directory options. | 
 | 841 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 842 | # and all the variables that are supposed to be based on exec_prefix | 
 | 843 | # by default will actually change. | 
 | 844 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 845 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 846 | bindir='${exec_prefix}/bin' | 
 | 847 | sbindir='${exec_prefix}/sbin' | 
 | 848 | libexecdir='${exec_prefix}/libexec' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 849 | datarootdir='${prefix}/share' | 
 | 850 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 851 | sysconfdir='${prefix}/etc' | 
 | 852 | sharedstatedir='${prefix}/com' | 
 | 853 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 854 | includedir='${prefix}/include' | 
 | 855 | oldincludedir='/usr/include' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 856 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 857 | infodir='${datarootdir}/info' | 
 | 858 | htmldir='${docdir}' | 
 | 859 | dvidir='${docdir}' | 
 | 860 | pdfdir='${docdir}' | 
 | 861 | psdir='${docdir}' | 
 | 862 | libdir='${exec_prefix}/lib' | 
 | 863 | localedir='${datarootdir}/locale' | 
 | 864 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 865 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 866 | ac_prev= | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 867 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 868 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 869 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 870 |   # If the previous option needs an argument, assign it. | 
 | 871 |   if test -n "$ac_prev"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 872 |     eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 873 |     ac_prev= | 
 | 874 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 875 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 876 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 877 |   case $ac_option in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 878 |   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 879 |   *=)   ac_optarg= ;; | 
 | 880 |   *)    ac_optarg=yes ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 881 |   esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 882 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 883 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 884 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 885 |   case $ac_dashdash$ac_option in | 
 | 886 |   --) | 
 | 887 |     ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 888 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 889 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 890 |     ac_prev=bindir ;; | 
 | 891 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 892 |     bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 893 |  | 
 | 894 |   -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 895 |     ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 896 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 897 |     build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 898 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 899 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 900 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 901 |     ac_prev=cache_file ;; | 
 | 902 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 903 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 904 |     cache_file=$ac_optarg ;; | 
 | 905 |  | 
 | 906 |   --config-cache | -C) | 
 | 907 |     cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 908 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 909 |   -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 910 |     ac_prev=datadir ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 911 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 912 |     datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 913 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 914 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 915 |   | --dataroo | --dataro | --datar) | 
 | 916 |     ac_prev=datarootdir ;; | 
 | 917 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 918 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 919 |     datarootdir=$ac_optarg ;; | 
 | 920 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 921 |   -disable-* | --disable-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 922 |     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 923 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 924 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 925 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 926 |     ac_useropt_orig=$ac_useropt | 
 | 927 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 928 |     case $ac_user_opts in | 
 | 929 |       *" | 
 | 930 | "enable_$ac_useropt" | 
 | 931 | "*) ;; | 
 | 932 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
 | 933 | 	 ac_unrecognized_sep=', ';; | 
 | 934 |     esac | 
 | 935 |     eval enable_$ac_useropt=no ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 936 |  | 
 | 937 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 938 |     ac_prev=docdir ;; | 
 | 939 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 940 |     docdir=$ac_optarg ;; | 
 | 941 |  | 
 | 942 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 943 |     ac_prev=dvidir ;; | 
 | 944 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 945 |     dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 946 |  | 
 | 947 |   -enable-* | --enable-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 948 |     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 949 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 950 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 951 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 952 |     ac_useropt_orig=$ac_useropt | 
 | 953 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 954 |     case $ac_user_opts in | 
 | 955 |       *" | 
 | 956 | "enable_$ac_useropt" | 
 | 957 | "*) ;; | 
 | 958 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
 | 959 | 	 ac_unrecognized_sep=', ';; | 
 | 960 |     esac | 
 | 961 |     eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 962 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 963 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 964 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 965 |   | --exec | --exe | --ex) | 
 | 966 |     ac_prev=exec_prefix ;; | 
 | 967 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 968 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 969 |   | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 970 |     exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 971 |  | 
 | 972 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 973 |     # Obsolete; use --with-gas. | 
 | 974 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 975 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 976 |   -help | --help | --hel | --he | -h) | 
 | 977 |     ac_init_help=long ;; | 
 | 978 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 979 |     ac_init_help=recursive ;; | 
 | 980 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 981 |     ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 982 |  | 
 | 983 |   -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 984 |     ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 985 |   -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 986 |     host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 987 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 988 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 989 |     ac_prev=htmldir ;; | 
 | 990 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 991 |   | --ht=*) | 
 | 992 |     htmldir=$ac_optarg ;; | 
 | 993 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 994 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 995 |   | --includ | --inclu | --incl | --inc) | 
 | 996 |     ac_prev=includedir ;; | 
 | 997 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 998 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 999 |     includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1000 |  | 
 | 1001 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 1002 |     ac_prev=infodir ;; | 
 | 1003 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1004 |     infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1005 |  | 
 | 1006 |   -libdir | --libdir | --libdi | --libd) | 
 | 1007 |     ac_prev=libdir ;; | 
 | 1008 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1009 |     libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1010 |  | 
 | 1011 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 1012 |   | --libexe | --libex | --libe) | 
 | 1013 |     ac_prev=libexecdir ;; | 
 | 1014 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 1015 |   | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1016 |     libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1017 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1018 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 1019 |     ac_prev=localedir ;; | 
 | 1020 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 1021 |     localedir=$ac_optarg ;; | 
 | 1022 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1023 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1024 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1025 |     ac_prev=localstatedir ;; | 
 | 1026 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1027 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1028 |     localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1029 |  | 
 | 1030 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 1031 |     ac_prev=mandir ;; | 
 | 1032 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1033 |     mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1034 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1035 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1036 |     # Obsolete; use --without-fp. | 
 | 1037 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1038 |  | 
 | 1039 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1040 |   | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1041 |     no_create=yes ;; | 
 | 1042 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1043 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1044 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1045 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1046 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1047 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1048 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1049 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1050 |     ac_prev=oldincludedir ;; | 
 | 1051 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1052 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1053 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1054 |     oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1055 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1056 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1057 |     ac_prev=prefix ;; | 
 | 1058 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 |     prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1060 |  | 
 | 1061 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1062 |   | --program-pre | --program-pr | --program-p) | 
 | 1063 |     ac_prev=program_prefix ;; | 
 | 1064 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1065 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1066 |     program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1067 |  | 
 | 1068 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1069 |   | --program-suf | --program-su | --program-s) | 
 | 1070 |     ac_prev=program_suffix ;; | 
 | 1071 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1072 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 |     program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1074 |  | 
 | 1075 |   -program-transform-name | --program-transform-name \ | 
 | 1076 |   | --program-transform-nam | --program-transform-na \ | 
 | 1077 |   | --program-transform-n | --program-transform- \ | 
 | 1078 |   | --program-transform | --program-transfor \ | 
 | 1079 |   | --program-transfo | --program-transf \ | 
 | 1080 |   | --program-trans | --program-tran \ | 
 | 1081 |   | --progr-tra | --program-tr | --program-t) | 
 | 1082 |     ac_prev=program_transform_name ;; | 
 | 1083 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1084 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1085 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1086 |   | --program-transform=* | --program-transfor=* \ | 
 | 1087 |   | --program-transfo=* | --program-transf=* \ | 
 | 1088 |   | --program-trans=* | --program-tran=* \ | 
 | 1089 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1090 |     program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1091 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1092 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1093 |     ac_prev=pdfdir ;; | 
 | 1094 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1095 |     pdfdir=$ac_optarg ;; | 
 | 1096 |  | 
 | 1097 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1098 |     ac_prev=psdir ;; | 
 | 1099 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1100 |     psdir=$ac_optarg ;; | 
 | 1101 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1102 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1103 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1104 |     silent=yes ;; | 
 | 1105 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1106 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1107 |     ac_prev=sbindir ;; | 
 | 1108 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1109 |   | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1110 |     sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1111 |  | 
 | 1112 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1113 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1114 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1115 |   | --sha | --sh) | 
 | 1116 |     ac_prev=sharedstatedir ;; | 
 | 1117 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1118 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1119 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1120 |   | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1121 |     sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1122 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1123 |   -site | --site | --sit) | 
 | 1124 |     ac_prev=site ;; | 
 | 1125 |   -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1126 |     site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1127 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1128 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1129 |     ac_prev=srcdir ;; | 
 | 1130 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1131 |     srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1132 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1133 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1134 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1135 |     ac_prev=sysconfdir ;; | 
 | 1136 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1137 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1138 |     sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1139 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1140 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1141 |     ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1142 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1143 |     target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1144 |  | 
 | 1145 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1146 |     verbose=yes ;; | 
 | 1147 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1148 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1149 |     ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1150 |  | 
 | 1151 |   -with-* | --with-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1152 |     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1153 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1154 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1155 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1156 |     ac_useropt_orig=$ac_useropt | 
 | 1157 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1158 |     case $ac_user_opts in | 
 | 1159 |       *" | 
 | 1160 | "with_$ac_useropt" | 
 | 1161 | "*) ;; | 
 | 1162 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
 | 1163 | 	 ac_unrecognized_sep=', ';; | 
 | 1164 |     esac | 
 | 1165 |     eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1166 |  | 
 | 1167 |   -without-* | --without-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1168 |     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1169 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1170 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1171 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1172 |     ac_useropt_orig=$ac_useropt | 
 | 1173 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1174 |     case $ac_user_opts in | 
 | 1175 |       *" | 
 | 1176 | "with_$ac_useropt" | 
 | 1177 | "*) ;; | 
 | 1178 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
 | 1179 | 	 ac_unrecognized_sep=', ';; | 
 | 1180 |     esac | 
 | 1181 |     eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1182 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1183 |   --x) | 
 | 1184 |     # Obsolete; use --with-x. | 
 | 1185 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1186 |  | 
 | 1187 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1188 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1189 |     ac_prev=x_includes ;; | 
 | 1190 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1191 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1192 |     x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1193 |  | 
 | 1194 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1195 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1196 |     ac_prev=x_libraries ;; | 
 | 1197 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1198 |   | --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] | 1199 |     x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1200 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1201 |   -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
 | 1202 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1203 |     ;; | 
 | 1204 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1205 |   *=*) | 
 | 1206 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1207 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1208 |     case $ac_envvar in #( | 
 | 1209 |       '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1210 |       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1211 |     esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1212 |     eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1213 |     export $ac_envvar ;; | 
 | 1214 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1215 |   *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1216 |     # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1217 |     $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] | 1218 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1219 |       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1220 |     : "${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] | 1221 |     ;; | 
 | 1222 |  | 
 | 1223 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1224 | done | 
 | 1225 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1226 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1227 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1228 |   as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1229 | fi | 
 | 1230 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1231 | if test -n "$ac_unrecognized_opts"; then | 
 | 1232 |   case $enable_option_checking in | 
 | 1233 |     no) ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1234 |     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1235 |     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
 | 1236 |   esac | 
 | 1237 | fi | 
 | 1238 |  | 
 | 1239 | # Check all directory arguments for consistency. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1240 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1241 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1242 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
 | 1243 | 		libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1244 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1245 |   eval ac_val=\$$ac_var | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1246 |   # Remove trailing slashes. | 
 | 1247 |   case $ac_val in | 
 | 1248 |     */ ) | 
 | 1249 |       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
 | 1250 |       eval $ac_var=\$ac_val;; | 
 | 1251 |   esac | 
 | 1252 |   # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1253 |   case $ac_val in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1254 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1255 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1256 |   esac | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1257 |   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] | 1258 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1259 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1260 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1261 | # used to hold the argument of --host etc. | 
 | 1262 | # FIXME: To remove some day. | 
 | 1263 | build=$build_alias | 
 | 1264 | host=$host_alias | 
 | 1265 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1266 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1267 | # FIXME: To remove some day. | 
 | 1268 | if test "x$host_alias" != x; then | 
 | 1269 |   if test "x$build_alias" = x; then | 
 | 1270 |     cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1271 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1272 |     cross_compiling=yes | 
 | 1273 |   fi | 
 | 1274 | fi | 
 | 1275 |  | 
 | 1276 | ac_tool_prefix= | 
 | 1277 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1278 |  | 
 | 1279 | test "$silent" = yes && exec 6>/dev/null | 
 | 1280 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1281 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1282 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1283 | ac_ls_di=`ls -di .` && | 
 | 1284 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1285 |   as_fn_error $? "working directory cannot be determined" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1286 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1287 |   as_fn_error $? "pwd does not report name of working directory" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1288 |  | 
 | 1289 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1290 | # Find the source files, if location was not specified. | 
 | 1291 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1292 |   ac_srcdir_defaulted=yes | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1293 |   # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1294 |   ac_confdir=`$as_dirname -- "$as_myself" || | 
 | 1295 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 1296 | 	 X"$as_myself" : 'X\(//\)[^/]' \| \ | 
 | 1297 | 	 X"$as_myself" : 'X\(//\)$' \| \ | 
 | 1298 | 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
 | 1299 | $as_echo X"$as_myself" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1300 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1301 | 	    s//\1/ | 
 | 1302 | 	    q | 
 | 1303 | 	  } | 
 | 1304 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1305 | 	    s//\1/ | 
 | 1306 | 	    q | 
 | 1307 | 	  } | 
 | 1308 | 	  /^X\(\/\/\)$/{ | 
 | 1309 | 	    s//\1/ | 
 | 1310 | 	    q | 
 | 1311 | 	  } | 
 | 1312 | 	  /^X\(\/\).*/{ | 
 | 1313 | 	    s//\1/ | 
 | 1314 | 	    q | 
 | 1315 | 	  } | 
 | 1316 | 	  s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1317 |   srcdir=$ac_confdir | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1318 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1319 |     srcdir=.. | 
 | 1320 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1321 | else | 
 | 1322 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1323 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1324 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1325 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1326 |   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1327 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1328 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1329 | ac_abs_confdir=`( | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1330 | 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1331 | 	pwd)` | 
 | 1332 | # When building in place, set srcdir=. | 
 | 1333 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1334 |   srcdir=. | 
 | 1335 | fi | 
 | 1336 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1337 | # Double slashes in file names in object file debugging info | 
 | 1338 | # mess up M-x gdb in Emacs. | 
 | 1339 | case $srcdir in | 
 | 1340 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1341 | esac | 
 | 1342 | for ac_var in $ac_precious_vars; do | 
 | 1343 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1344 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1345 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1346 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1347 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1348 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1349 | # | 
 | 1350 | # Report the --help message. | 
 | 1351 | # | 
 | 1352 | if test "$ac_init_help" = "long"; then | 
 | 1353 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1354 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1355 |   cat <<_ACEOF | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1356 | \`configure' configures python 2.7 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1357 |  | 
 | 1358 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1359 |  | 
 | 1360 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1361 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1362 |  | 
 | 1363 | Defaults for the options are specified in brackets. | 
 | 1364 |  | 
 | 1365 | Configuration: | 
 | 1366 |   -h, --help              display this help and exit | 
 | 1367 |       --help=short        display options specific to this package | 
 | 1368 |       --help=recursive    display the short help of all the included packages | 
 | 1369 |   -V, --version           display version information and exit | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1370 |   -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1371 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1372 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1373 |   -n, --no-create         do not create output files | 
 | 1374 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1375 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1376 | Installation directories: | 
 | 1377 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1378 |                           [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1379 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1380 |                           [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1381 |  | 
 | 1382 | By default, \`make install' will install all the files in | 
 | 1383 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1384 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1385 | for instance \`--prefix=\$HOME'. | 
 | 1386 |  | 
 | 1387 | For better control, use the options below. | 
 | 1388 |  | 
 | 1389 | Fine tuning of the installation directories: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1390 |   --bindir=DIR            user executables [EPREFIX/bin] | 
 | 1391 |   --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
 | 1392 |   --libexecdir=DIR        program executables [EPREFIX/libexec] | 
 | 1393 |   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
 | 1394 |   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
 | 1395 |   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
 | 1396 |   --libdir=DIR            object code libraries [EPREFIX/lib] | 
 | 1397 |   --includedir=DIR        C header files [PREFIX/include] | 
 | 1398 |   --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
 | 1399 |   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
 | 1400 |   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
 | 1401 |   --infodir=DIR           info documentation [DATAROOTDIR/info] | 
 | 1402 |   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
 | 1403 |   --mandir=DIR            man documentation [DATAROOTDIR/man] | 
 | 1404 |   --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
 | 1405 |   --htmldir=DIR           html documentation [DOCDIR] | 
 | 1406 |   --dvidir=DIR            dvi documentation [DOCDIR] | 
 | 1407 |   --pdfdir=DIR            pdf documentation [DOCDIR] | 
 | 1408 |   --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1409 | _ACEOF | 
 | 1410 |  | 
 | 1411 |   cat <<\_ACEOF | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 1412 |  | 
 | 1413 | System types: | 
 | 1414 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1415 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | _ACEOF | 
 | 1417 | fi | 
 | 1418 |  | 
 | 1419 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1420 |   case $ac_init_help in | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1421 |      short | recursive ) echo "Configuration of python 2.7:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1422 |    esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 |   cat <<\_ACEOF | 
 | 1424 |  | 
 | 1425 | Optional Features: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1426 |   --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1427 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1428 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1429 |   --enable-universalsdk[=SDKDIR] | 
| Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1430 |                           Build against Mac OS X 10.4u SDK (ppc/i386) | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1431 |   --enable-framework[=INSTALLDIR] | 
 | 1432 |                           Build (MacOSX|Darwin) framework | 
 | 1433 |   --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1434 |   --enable-profiling      enable C-level code profiling | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1435 |   --enable-toolbox-glue   disable/enable MacOSX glue code for extensions | 
 | 1436 |   --enable-ipv6           Enable ipv6 (with ipv4) support | 
 | 1437 |   --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1438 |   --enable-big-digits[=BITS] | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1439 |                           use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1440 |   --enable-unicode[=ucs[24]] | 
| Benjamin Peterson | 66556b0 | 2010-05-25 02:23:32 +0000 | [diff] [blame] | 1441 |                           Enable Unicode strings (default is ucs2) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1442 |  | 
 | 1443 | Optional Packages: | 
 | 1444 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1445 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1446 |   --with-universal-archs=ARCH | 
 | 1447 |                           select architectures for universal build ("32-bit", | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1448 |                           "64-bit", "3-way", "intel" or "all") | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1449 |   --with-framework-name=FRAMEWORK | 
 | 1450 |                           specify an alternate name of the framework built | 
 | 1451 |                           with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1452 |   --without-gcc           never use gcc | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1453 |   --with-cxx-main=<compiler> | 
 | 1454 |                           compile main() and link python executable with C++ | 
 | 1455 |                           compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1456 |   --with-suffix=.exe      set executable suffix | 
 | 1457 |   --with-pydebug          build with Py_DEBUG defined | 
 | 1458 |   --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1459 |   --with-system-expat     build pyexpat module using an installed expat | 
 | 1460 |                           library | 
| Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1461 |   --with-system-ffi       build _ctypes module using an installed ffi library | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1462 |   --with-dbmliborder=db1:db2:... | 
 | 1463 |                           order to check db backends for dbm. Valid value is a | 
 | 1464 |                           colon separated string with the backend names | 
 | 1465 |                           `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1466 |   --with-signal-module    disable/enable signal module | 
 | 1467 |   --with-dec-threads      use DEC Alpha/OSF1 thread-safe libraries | 
 | 1468 |   --with(out)-threads[=DIRECTORY] | 
 | 1469 |                           disable/enable thread support | 
 | 1470 |   --with(out)-thread[=DIRECTORY] | 
 | 1471 |                           deprecated; use --with(out)-threads | 
 | 1472 |   --with-pth              use GNU pth threading libraries | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1473 |   --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1474 |   --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1475 |   --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1476 |   --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1477 |   --with-wctype-functions use wctype.h functions | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1478 |   --with-fpectl           enable SIGFPE catching | 
 | 1479 |   --with-libm=STRING      math library | 
 | 1480 |   --with-libc=STRING      C library | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1481 |  | 
 | 1482 | Some influential environment variables: | 
 | 1483 |   CC          C compiler command | 
 | 1484 |   CFLAGS      C compiler flags | 
 | 1485 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1486 |               nonstandard directory <lib dir> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1487 |   LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1488 |   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1489 |               you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1490 |   CPP         C preprocessor | 
 | 1491 |  | 
 | 1492 | Use these variables to override the choices made by `configure' or to help | 
 | 1493 | it to find libraries and programs with nonstandard names/locations. | 
 | 1494 |  | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1495 | Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1496 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1497 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1498 | fi | 
 | 1499 |  | 
 | 1500 | if test "$ac_init_help" = "recursive"; then | 
 | 1501 |   # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1502 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1503 |     test -d "$ac_dir" || | 
 | 1504 |       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
 | 1505 |       continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1506 |     ac_builddir=. | 
 | 1507 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1508 | case "$ac_dir" in | 
 | 1509 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1510 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1511 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1512 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1513 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1514 |   case $ac_top_builddir_sub in | 
 | 1515 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1516 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1517 |   esac ;; | 
 | 1518 | esac | 
 | 1519 | ac_abs_top_builddir=$ac_pwd | 
 | 1520 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1521 | # for backward compatibility: | 
 | 1522 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1523 |  | 
 | 1524 | case $srcdir in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1525 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1526 |     ac_srcdir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1527 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 1528 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 1529 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1530 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1531 |     ac_top_srcdir=$srcdir | 
 | 1532 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 1533 |   *) # Relative name. | 
 | 1534 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 1535 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 1536 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1537 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1538 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1539 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1540 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 1541 |     # Check for guested configure. | 
 | 1542 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 1543 |       echo && | 
 | 1544 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 1545 |     elif test -f "$ac_srcdir/configure"; then | 
 | 1546 |       echo && | 
 | 1547 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1548 |     else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1549 |       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1550 |     fi || ac_status=$? | 
 | 1551 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1552 |   done | 
 | 1553 | fi | 
 | 1554 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1555 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1556 | if $ac_init_version; then | 
 | 1557 |   cat <<\_ACEOF | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1558 | python configure 2.7 | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1559 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1561 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1562 | This configure script is free software; the Free Software Foundation | 
 | 1563 | gives unlimited permission to copy, distribute and modify it. | 
 | 1564 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1565 |   exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1566 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1567 |  | 
 | 1568 | ## ------------------------ ## | 
 | 1569 | ## Autoconf initialization. ## | 
 | 1570 | ## ------------------------ ## | 
 | 1571 |  | 
 | 1572 | # ac_fn_c_try_compile LINENO | 
 | 1573 | # -------------------------- | 
 | 1574 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 1575 | ac_fn_c_try_compile () | 
 | 1576 | { | 
 | 1577 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1578 |   rm -f conftest.$ac_objext | 
 | 1579 |   if { { ac_try="$ac_compile" | 
 | 1580 | case "(($ac_try" in | 
 | 1581 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1582 |   *) ac_try_echo=$ac_try;; | 
 | 1583 | esac | 
 | 1584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1585 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1586 |   (eval "$ac_compile") 2>conftest.err | 
 | 1587 |   ac_status=$? | 
 | 1588 |   if test -s conftest.err; then | 
 | 1589 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1590 |     cat conftest.er1 >&5 | 
 | 1591 |     mv -f conftest.er1 conftest.err | 
 | 1592 |   fi | 
 | 1593 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1594 |   test $ac_status = 0; } && { | 
 | 1595 | 	 test -z "$ac_c_werror_flag" || | 
 | 1596 | 	 test ! -s conftest.err | 
 | 1597 |        } && test -s conftest.$ac_objext; then : | 
 | 1598 |   ac_retval=0 | 
 | 1599 | else | 
 | 1600 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1601 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1602 |  | 
 | 1603 | 	ac_retval=1 | 
 | 1604 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1605 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1606 |   as_fn_set_status $ac_retval | 
 | 1607 |  | 
 | 1608 | } # ac_fn_c_try_compile | 
 | 1609 |  | 
 | 1610 | # ac_fn_c_try_cpp LINENO | 
 | 1611 | # ---------------------- | 
 | 1612 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 1613 | ac_fn_c_try_cpp () | 
 | 1614 | { | 
 | 1615 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1616 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 1617 | case "(($ac_try" in | 
 | 1618 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1619 |   *) ac_try_echo=$ac_try;; | 
 | 1620 | esac | 
 | 1621 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1622 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1623 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 1624 |   ac_status=$? | 
 | 1625 |   if test -s conftest.err; then | 
 | 1626 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1627 |     cat conftest.er1 >&5 | 
 | 1628 |     mv -f conftest.er1 conftest.err | 
 | 1629 |   fi | 
 | 1630 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1631 |   test $ac_status = 0; } > conftest.i && { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1632 | 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
 | 1633 | 	 test ! -s conftest.err | 
 | 1634 |        }; then : | 
 | 1635 |   ac_retval=0 | 
 | 1636 | else | 
 | 1637 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1638 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1639 |  | 
 | 1640 |     ac_retval=1 | 
 | 1641 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1642 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1643 |   as_fn_set_status $ac_retval | 
 | 1644 |  | 
 | 1645 | } # ac_fn_c_try_cpp | 
 | 1646 |  | 
 | 1647 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 1648 | # ------------------------------------------------------- | 
 | 1649 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 1650 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 1651 | # accordingly. | 
 | 1652 | ac_fn_c_check_header_mongrel () | 
 | 1653 | { | 
 | 1654 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1655 |   if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1656 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1657 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1658 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1659 |   $as_echo_n "(cached) " >&6 | 
 | 1660 | fi | 
 | 1661 | eval ac_res=\$$3 | 
 | 1662 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1663 | $as_echo "$ac_res" >&6; } | 
 | 1664 | else | 
 | 1665 |   # Is the header compilable? | 
 | 1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 1667 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 1668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1669 | /* end confdefs.h.  */ | 
 | 1670 | $4 | 
 | 1671 | #include <$2> | 
 | 1672 | _ACEOF | 
 | 1673 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1674 |   ac_header_compiler=yes | 
 | 1675 | else | 
 | 1676 |   ac_header_compiler=no | 
 | 1677 | fi | 
 | 1678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 1680 | $as_echo "$ac_header_compiler" >&6; } | 
 | 1681 |  | 
 | 1682 | # Is the header present? | 
 | 1683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 1684 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 1685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1686 | /* end confdefs.h.  */ | 
 | 1687 | #include <$2> | 
 | 1688 | _ACEOF | 
 | 1689 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 1690 |   ac_header_preproc=yes | 
 | 1691 | else | 
 | 1692 |   ac_header_preproc=no | 
 | 1693 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1694 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 1696 | $as_echo "$ac_header_preproc" >&6; } | 
 | 1697 |  | 
 | 1698 | # So?  What about this header? | 
 | 1699 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
 | 1700 |   yes:no: ) | 
 | 1701 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 1702 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 1703 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1704 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 1705 |     ;; | 
 | 1706 |   no:yes:* ) | 
 | 1707 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 1708 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 1709 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 1710 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 1711 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 1712 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 1713 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 1714 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 1715 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1716 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1717 | ( $as_echo "## -------------------------------------- ## | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1718 | ## Report this to http://bugs.python.org/ ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1719 | ## -------------------------------------- ##" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1720 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 1721 |     ;; | 
 | 1722 | esac | 
 | 1723 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1724 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1725 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1726 |   $as_echo_n "(cached) " >&6 | 
 | 1727 | else | 
 | 1728 |   eval "$3=\$ac_header_compiler" | 
 | 1729 | fi | 
 | 1730 | eval ac_res=\$$3 | 
 | 1731 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1732 | $as_echo "$ac_res" >&6; } | 
 | 1733 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1734 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1735 |  | 
 | 1736 | } # ac_fn_c_check_header_mongrel | 
 | 1737 |  | 
 | 1738 | # ac_fn_c_try_run LINENO | 
 | 1739 | # ---------------------- | 
 | 1740 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
 | 1741 | # that executables *can* be run. | 
 | 1742 | ac_fn_c_try_run () | 
 | 1743 | { | 
 | 1744 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1745 |   if { { ac_try="$ac_link" | 
 | 1746 | case "(($ac_try" in | 
 | 1747 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1748 |   *) ac_try_echo=$ac_try;; | 
 | 1749 | esac | 
 | 1750 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1751 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1752 |   (eval "$ac_link") 2>&5 | 
 | 1753 |   ac_status=$? | 
 | 1754 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1755 |   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
 | 1756 |   { { case "(($ac_try" in | 
 | 1757 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1758 |   *) ac_try_echo=$ac_try;; | 
 | 1759 | esac | 
 | 1760 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1761 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1762 |   (eval "$ac_try") 2>&5 | 
 | 1763 |   ac_status=$? | 
 | 1764 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1765 |   test $ac_status = 0; }; }; then : | 
 | 1766 |   ac_retval=0 | 
 | 1767 | else | 
 | 1768 |   $as_echo "$as_me: program exited with status $ac_status" >&5 | 
 | 1769 |        $as_echo "$as_me: failed program was:" >&5 | 
 | 1770 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1771 |  | 
 | 1772 |        ac_retval=$ac_status | 
 | 1773 | fi | 
 | 1774 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1775 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1776 |   as_fn_set_status $ac_retval | 
 | 1777 |  | 
 | 1778 | } # ac_fn_c_try_run | 
 | 1779 |  | 
 | 1780 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
 | 1781 | # ------------------------------------------------------- | 
 | 1782 | # Tests whether HEADER exists and can be compiled using the include files in | 
 | 1783 | # INCLUDES, setting the cache variable VAR accordingly. | 
 | 1784 | ac_fn_c_check_header_compile () | 
 | 1785 | { | 
 | 1786 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1787 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1788 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1789 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1790 |   $as_echo_n "(cached) " >&6 | 
 | 1791 | else | 
 | 1792 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1793 | /* end confdefs.h.  */ | 
 | 1794 | $4 | 
 | 1795 | #include <$2> | 
 | 1796 | _ACEOF | 
 | 1797 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1798 |   eval "$3=yes" | 
 | 1799 | else | 
 | 1800 |   eval "$3=no" | 
 | 1801 | fi | 
 | 1802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1803 | fi | 
 | 1804 | eval ac_res=\$$3 | 
 | 1805 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1806 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1807 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1808 |  | 
 | 1809 | } # ac_fn_c_check_header_compile | 
 | 1810 |  | 
 | 1811 | # ac_fn_c_try_link LINENO | 
 | 1812 | # ----------------------- | 
 | 1813 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 1814 | ac_fn_c_try_link () | 
 | 1815 | { | 
 | 1816 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1817 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 1818 |   if { { ac_try="$ac_link" | 
 | 1819 | case "(($ac_try" in | 
 | 1820 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1821 |   *) ac_try_echo=$ac_try;; | 
 | 1822 | esac | 
 | 1823 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1824 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1825 |   (eval "$ac_link") 2>conftest.err | 
 | 1826 |   ac_status=$? | 
 | 1827 |   if test -s conftest.err; then | 
 | 1828 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1829 |     cat conftest.er1 >&5 | 
 | 1830 |     mv -f conftest.er1 conftest.err | 
 | 1831 |   fi | 
 | 1832 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1833 |   test $ac_status = 0; } && { | 
 | 1834 | 	 test -z "$ac_c_werror_flag" || | 
 | 1835 | 	 test ! -s conftest.err | 
 | 1836 |        } && test -s conftest$ac_exeext && { | 
 | 1837 | 	 test "$cross_compiling" = yes || | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1838 | 	 test -x conftest$ac_exeext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1839 |        }; then : | 
 | 1840 |   ac_retval=0 | 
 | 1841 | else | 
 | 1842 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1843 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1844 |  | 
 | 1845 | 	ac_retval=1 | 
 | 1846 | fi | 
 | 1847 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 1848 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 1849 |   # interfere with the next link command; also delete a directory that is | 
 | 1850 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 1851 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1852 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1853 |   as_fn_set_status $ac_retval | 
 | 1854 |  | 
 | 1855 | } # ac_fn_c_try_link | 
 | 1856 |  | 
 | 1857 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
 | 1858 | # ------------------------------------------- | 
 | 1859 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
 | 1860 | # variable VAR accordingly. | 
 | 1861 | ac_fn_c_check_type () | 
 | 1862 | { | 
 | 1863 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1864 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1865 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1866 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1867 |   $as_echo_n "(cached) " >&6 | 
 | 1868 | else | 
 | 1869 |   eval "$3=no" | 
 | 1870 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1871 | /* end confdefs.h.  */ | 
 | 1872 | $4 | 
 | 1873 | int | 
 | 1874 | main () | 
 | 1875 | { | 
 | 1876 | if (sizeof ($2)) | 
 | 1877 | 	 return 0; | 
 | 1878 |   ; | 
 | 1879 |   return 0; | 
 | 1880 | } | 
 | 1881 | _ACEOF | 
 | 1882 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1883 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1884 | /* end confdefs.h.  */ | 
 | 1885 | $4 | 
 | 1886 | int | 
 | 1887 | main () | 
 | 1888 | { | 
 | 1889 | if (sizeof (($2))) | 
 | 1890 | 	    return 0; | 
 | 1891 |   ; | 
 | 1892 |   return 0; | 
 | 1893 | } | 
 | 1894 | _ACEOF | 
 | 1895 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1896 |  | 
 | 1897 | else | 
 | 1898 |   eval "$3=yes" | 
 | 1899 | fi | 
 | 1900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1901 | fi | 
 | 1902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1903 | fi | 
 | 1904 | eval ac_res=\$$3 | 
 | 1905 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1906 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1907 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1908 |  | 
 | 1909 | } # ac_fn_c_check_type | 
 | 1910 |  | 
 | 1911 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
 | 1912 | # ------------------------------------ | 
 | 1913 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
 | 1914 | # accordingly. | 
 | 1915 | ac_fn_c_find_uintX_t () | 
 | 1916 | { | 
 | 1917 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1918 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
 | 1919 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1920 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1921 |   $as_echo_n "(cached) " >&6 | 
 | 1922 | else | 
 | 1923 |   eval "$3=no" | 
 | 1924 |      # Order is important - never check a type that is potentially smaller | 
 | 1925 |      # than half of the expected target width. | 
 | 1926 |      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
 | 1927 | 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
 | 1928 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1929 | /* end confdefs.h.  */ | 
 | 1930 | $ac_includes_default | 
 | 1931 | int | 
 | 1932 | main () | 
 | 1933 | { | 
 | 1934 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1935 | test_array [0] = 0; | 
 | 1936 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1937 |  | 
 | 1938 |   ; | 
 | 1939 |   return 0; | 
 | 1940 | } | 
 | 1941 | _ACEOF | 
 | 1942 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1943 |   case $ac_type in #( | 
 | 1944 |   uint$2_t) : | 
 | 1945 |     eval "$3=yes" ;; #( | 
 | 1946 |   *) : | 
 | 1947 |     eval "$3=\$ac_type" ;; | 
 | 1948 | esac | 
 | 1949 | fi | 
 | 1950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1951 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1952 |  | 
 | 1953 | else | 
 | 1954 |   break | 
 | 1955 | fi | 
 | 1956 |      done | 
 | 1957 | fi | 
 | 1958 | eval ac_res=\$$3 | 
 | 1959 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1960 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1961 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1962 |  | 
 | 1963 | } # ac_fn_c_find_uintX_t | 
 | 1964 |  | 
 | 1965 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
 | 1966 | # ----------------------------------- | 
 | 1967 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
 | 1968 | # accordingly. | 
 | 1969 | ac_fn_c_find_intX_t () | 
 | 1970 | { | 
 | 1971 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1972 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
 | 1973 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1974 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1975 |   $as_echo_n "(cached) " >&6 | 
 | 1976 | else | 
 | 1977 |   eval "$3=no" | 
 | 1978 |      # Order is important - never check a type that is potentially smaller | 
 | 1979 |      # than half of the expected target width. | 
 | 1980 |      for ac_type in int$2_t 'int' 'long int' \ | 
 | 1981 | 	 'long long int' 'short int' 'signed char'; do | 
 | 1982 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1983 | /* end confdefs.h.  */ | 
 | 1984 | $ac_includes_default | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1985 | 	     enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1986 | int | 
 | 1987 | main () | 
 | 1988 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1989 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1990 | test_array [0] = 0; | 
 | 1991 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1992 |  | 
 | 1993 |   ; | 
 | 1994 |   return 0; | 
 | 1995 | } | 
 | 1996 | _ACEOF | 
 | 1997 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1998 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1999 | /* end confdefs.h.  */ | 
 | 2000 | $ac_includes_default | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2001 | 	        enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2002 | int | 
 | 2003 | main () | 
 | 2004 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2005 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2006 | 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2007 | test_array [0] = 0; | 
 | 2008 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2009 |  | 
 | 2010 |   ; | 
 | 2011 |   return 0; | 
 | 2012 | } | 
 | 2013 | _ACEOF | 
 | 2014 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2015 |  | 
 | 2016 | else | 
 | 2017 |   case $ac_type in #( | 
 | 2018 |   int$2_t) : | 
 | 2019 |     eval "$3=yes" ;; #( | 
 | 2020 |   *) : | 
 | 2021 |     eval "$3=\$ac_type" ;; | 
 | 2022 | esac | 
 | 2023 | fi | 
 | 2024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2025 | fi | 
 | 2026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2027 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2037 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2038 |  | 
 | 2039 | } # ac_fn_c_find_intX_t | 
 | 2040 |  | 
 | 2041 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
 | 2042 | # -------------------------------------------- | 
 | 2043 | # Tries to find the compile-time value of EXPR in a program that includes | 
 | 2044 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
 | 2045 | # computed | 
 | 2046 | ac_fn_c_compute_int () | 
 | 2047 | { | 
 | 2048 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2049 |   if test "$cross_compiling" = yes; then | 
 | 2050 |     # Depending upon the size, compute the lo and hi bounds. | 
 | 2051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2052 | /* end confdefs.h.  */ | 
 | 2053 | $4 | 
 | 2054 | int | 
 | 2055 | main () | 
 | 2056 | { | 
 | 2057 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2058 | test_array [0] = 0; | 
 | 2059 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2060 |  | 
 | 2061 |   ; | 
 | 2062 |   return 0; | 
 | 2063 | } | 
 | 2064 | _ACEOF | 
 | 2065 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2066 |   ac_lo=0 ac_mid=0 | 
 | 2067 |   while :; do | 
 | 2068 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2069 | /* end confdefs.h.  */ | 
 | 2070 | $4 | 
 | 2071 | int | 
 | 2072 | main () | 
 | 2073 | { | 
 | 2074 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2075 | test_array [0] = 0; | 
 | 2076 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2077 |  | 
 | 2078 |   ; | 
 | 2079 |   return 0; | 
 | 2080 | } | 
 | 2081 | _ACEOF | 
 | 2082 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2083 |   ac_hi=$ac_mid; break | 
 | 2084 | else | 
 | 2085 |   as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
 | 2086 | 			if test $ac_lo -le $ac_mid; then | 
 | 2087 | 			  ac_lo= ac_hi= | 
 | 2088 | 			  break | 
 | 2089 | 			fi | 
 | 2090 | 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
 | 2091 | fi | 
 | 2092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2093 |   done | 
 | 2094 | else | 
 | 2095 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2096 | /* end confdefs.h.  */ | 
 | 2097 | $4 | 
 | 2098 | int | 
 | 2099 | main () | 
 | 2100 | { | 
 | 2101 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2102 | test_array [0] = 0; | 
 | 2103 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2104 |  | 
 | 2105 |   ; | 
 | 2106 |   return 0; | 
 | 2107 | } | 
 | 2108 | _ACEOF | 
 | 2109 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2110 |   ac_hi=-1 ac_mid=-1 | 
 | 2111 |   while :; do | 
 | 2112 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2113 | /* end confdefs.h.  */ | 
 | 2114 | $4 | 
 | 2115 | int | 
 | 2116 | main () | 
 | 2117 | { | 
 | 2118 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2119 | test_array [0] = 0; | 
 | 2120 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2121 |  | 
 | 2122 |   ; | 
 | 2123 |   return 0; | 
 | 2124 | } | 
 | 2125 | _ACEOF | 
 | 2126 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2127 |   ac_lo=$ac_mid; break | 
 | 2128 | else | 
 | 2129 |   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
 | 2130 | 			if test $ac_mid -le $ac_hi; then | 
 | 2131 | 			  ac_lo= ac_hi= | 
 | 2132 | 			  break | 
 | 2133 | 			fi | 
 | 2134 | 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
 | 2135 | fi | 
 | 2136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2137 |   done | 
 | 2138 | else | 
 | 2139 |   ac_lo= ac_hi= | 
 | 2140 | fi | 
 | 2141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2142 | fi | 
 | 2143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2144 | # Binary search between lo and hi bounds. | 
 | 2145 | while test "x$ac_lo" != "x$ac_hi"; do | 
 | 2146 |   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
 | 2147 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2148 | /* end confdefs.h.  */ | 
 | 2149 | $4 | 
 | 2150 | int | 
 | 2151 | main () | 
 | 2152 | { | 
 | 2153 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2154 | test_array [0] = 0; | 
 | 2155 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2156 |  | 
 | 2157 |   ; | 
 | 2158 |   return 0; | 
 | 2159 | } | 
 | 2160 | _ACEOF | 
 | 2161 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2162 |   ac_hi=$ac_mid | 
 | 2163 | else | 
 | 2164 |   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
 | 2165 | fi | 
 | 2166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2167 | done | 
 | 2168 | case $ac_lo in #(( | 
 | 2169 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
 | 2170 | '') ac_retval=1 ;; | 
 | 2171 | esac | 
 | 2172 |   else | 
 | 2173 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2174 | /* end confdefs.h.  */ | 
 | 2175 | $4 | 
 | 2176 | static long int longval () { return $2; } | 
 | 2177 | static unsigned long int ulongval () { return $2; } | 
 | 2178 | #include <stdio.h> | 
 | 2179 | #include <stdlib.h> | 
 | 2180 | int | 
 | 2181 | main () | 
 | 2182 | { | 
 | 2183 |  | 
 | 2184 |   FILE *f = fopen ("conftest.val", "w"); | 
 | 2185 |   if (! f) | 
 | 2186 |     return 1; | 
 | 2187 |   if (($2) < 0) | 
 | 2188 |     { | 
 | 2189 |       long int i = longval (); | 
 | 2190 |       if (i != ($2)) | 
 | 2191 | 	return 1; | 
 | 2192 |       fprintf (f, "%ld", i); | 
 | 2193 |     } | 
 | 2194 |   else | 
 | 2195 |     { | 
 | 2196 |       unsigned long int i = ulongval (); | 
 | 2197 |       if (i != ($2)) | 
 | 2198 | 	return 1; | 
 | 2199 |       fprintf (f, "%lu", i); | 
 | 2200 |     } | 
 | 2201 |   /* Do not output a trailing newline, as this causes \r\n confusion | 
 | 2202 |      on some platforms.  */ | 
 | 2203 |   return ferror (f) || fclose (f) != 0; | 
 | 2204 |  | 
 | 2205 |   ; | 
 | 2206 |   return 0; | 
 | 2207 | } | 
 | 2208 | _ACEOF | 
 | 2209 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 2210 |   echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
 | 2211 | else | 
 | 2212 |   ac_retval=1 | 
 | 2213 | fi | 
 | 2214 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 2215 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 2216 | rm -f conftest.val | 
 | 2217 |  | 
 | 2218 |   fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2219 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2220 |   as_fn_set_status $ac_retval | 
 | 2221 |  | 
 | 2222 | } # ac_fn_c_compute_int | 
 | 2223 |  | 
 | 2224 | # ac_fn_c_check_func LINENO FUNC VAR | 
 | 2225 | # ---------------------------------- | 
 | 2226 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
 | 2227 | ac_fn_c_check_func () | 
 | 2228 | { | 
 | 2229 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2230 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2231 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2232 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2233 |   $as_echo_n "(cached) " >&6 | 
 | 2234 | else | 
 | 2235 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2236 | /* end confdefs.h.  */ | 
 | 2237 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
 | 2238 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 2239 | #define $2 innocuous_$2 | 
 | 2240 |  | 
 | 2241 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2242 |     which can conflict with char $2 (); below. | 
 | 2243 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2244 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 2245 |  | 
 | 2246 | #ifdef __STDC__ | 
 | 2247 | # include <limits.h> | 
 | 2248 | #else | 
 | 2249 | # include <assert.h> | 
 | 2250 | #endif | 
 | 2251 |  | 
 | 2252 | #undef $2 | 
 | 2253 |  | 
 | 2254 | /* Override any GCC internal prototype to avoid an error. | 
 | 2255 |    Use char because int might match the return type of a GCC | 
 | 2256 |    builtin and then its argument prototype would still apply.  */ | 
 | 2257 | #ifdef __cplusplus | 
 | 2258 | extern "C" | 
 | 2259 | #endif | 
 | 2260 | char $2 (); | 
 | 2261 | /* The GNU C library defines this for functions which it implements | 
 | 2262 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2263 |     something starting with __ and the normal name is an alias.  */ | 
 | 2264 | #if defined __stub_$2 || defined __stub___$2 | 
 | 2265 | choke me | 
 | 2266 | #endif | 
 | 2267 |  | 
 | 2268 | int | 
 | 2269 | main () | 
 | 2270 | { | 
 | 2271 | return $2 (); | 
 | 2272 |   ; | 
 | 2273 |   return 0; | 
 | 2274 | } | 
 | 2275 | _ACEOF | 
 | 2276 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 2277 |   eval "$3=yes" | 
 | 2278 | else | 
 | 2279 |   eval "$3=no" | 
 | 2280 | fi | 
 | 2281 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 2282 |     conftest$ac_exeext conftest.$ac_ext | 
 | 2283 | fi | 
 | 2284 | eval ac_res=\$$3 | 
 | 2285 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2286 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2287 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2288 |  | 
 | 2289 | } # ac_fn_c_check_func | 
 | 2290 |  | 
 | 2291 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
 | 2292 | # ---------------------------------------------------- | 
 | 2293 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
 | 2294 | # INCLUDES, setting cache variable VAR accordingly. | 
 | 2295 | ac_fn_c_check_member () | 
 | 2296 | { | 
 | 2297 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2298 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
 | 2299 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2300 | if eval \${$4+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2301 |   $as_echo_n "(cached) " >&6 | 
 | 2302 | else | 
 | 2303 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2304 | /* end confdefs.h.  */ | 
 | 2305 | $5 | 
 | 2306 | int | 
 | 2307 | main () | 
 | 2308 | { | 
 | 2309 | static $2 ac_aggr; | 
 | 2310 | if (ac_aggr.$3) | 
 | 2311 | return 0; | 
 | 2312 |   ; | 
 | 2313 |   return 0; | 
 | 2314 | } | 
 | 2315 | _ACEOF | 
 | 2316 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2317 |   eval "$4=yes" | 
 | 2318 | else | 
 | 2319 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2320 | /* end confdefs.h.  */ | 
 | 2321 | $5 | 
 | 2322 | int | 
 | 2323 | main () | 
 | 2324 | { | 
 | 2325 | static $2 ac_aggr; | 
 | 2326 | if (sizeof ac_aggr.$3) | 
 | 2327 | return 0; | 
 | 2328 |   ; | 
 | 2329 |   return 0; | 
 | 2330 | } | 
 | 2331 | _ACEOF | 
 | 2332 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2333 |   eval "$4=yes" | 
 | 2334 | else | 
 | 2335 |   eval "$4=no" | 
 | 2336 | fi | 
 | 2337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2338 | fi | 
 | 2339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2340 | fi | 
 | 2341 | eval ac_res=\$$4 | 
 | 2342 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2343 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2344 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2345 |  | 
 | 2346 | } # ac_fn_c_check_member | 
 | 2347 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2348 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
 | 2349 | # --------------------------------------------- | 
 | 2350 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
 | 2351 | # accordingly. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2352 | ac_fn_c_check_decl () | 
 | 2353 | { | 
 | 2354 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2355 |   as_decl_name=`echo $2|sed 's/ *(.*//'` | 
 | 2356 |   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
 | 2357 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
 | 2358 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2359 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2360 |   $as_echo_n "(cached) " >&6 | 
 | 2361 | else | 
 | 2362 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2363 | /* end confdefs.h.  */ | 
 | 2364 | $4 | 
 | 2365 | int | 
 | 2366 | main () | 
 | 2367 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2368 | #ifndef $as_decl_name | 
 | 2369 | #ifdef __cplusplus | 
 | 2370 |   (void) $as_decl_use; | 
 | 2371 | #else | 
 | 2372 |   (void) $as_decl_name; | 
 | 2373 | #endif | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2374 | #endif | 
 | 2375 |  | 
 | 2376 |   ; | 
 | 2377 |   return 0; | 
 | 2378 | } | 
 | 2379 | _ACEOF | 
 | 2380 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2381 |   eval "$3=yes" | 
 | 2382 | else | 
 | 2383 |   eval "$3=no" | 
 | 2384 | fi | 
 | 2385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2386 | fi | 
 | 2387 | eval ac_res=\$$3 | 
 | 2388 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2389 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2390 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2391 |  | 
 | 2392 | } # ac_fn_c_check_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2393 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2394 | This file contains any messages produced by compilers while | 
 | 2395 | running configure, to aid debugging if configure makes a mistake. | 
 | 2396 |  | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2397 | It was created by python $as_me 2.7, which was | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2398 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2399 |  | 
 | 2400 |   $ $0 $@ | 
 | 2401 |  | 
 | 2402 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2403 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2404 | { | 
 | 2405 | cat <<_ASUNAME | 
 | 2406 | ## --------- ## | 
 | 2407 | ## Platform. ## | 
 | 2408 | ## --------- ## | 
 | 2409 |  | 
 | 2410 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 2411 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 2412 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 2413 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 2414 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 2415 |  | 
 | 2416 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 2417 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 2418 |  | 
 | 2419 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 2420 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 2421 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2422 | /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] | 2423 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 2424 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 2425 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 2426 |  | 
 | 2427 | _ASUNAME | 
 | 2428 |  | 
 | 2429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2430 | for as_dir in $PATH | 
 | 2431 | do | 
 | 2432 |   IFS=$as_save_IFS | 
 | 2433 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2434 |     $as_echo "PATH: $as_dir" | 
 | 2435 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2436 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2437 |  | 
 | 2438 | } >&5 | 
 | 2439 |  | 
 | 2440 | cat >&5 <<_ACEOF | 
 | 2441 |  | 
 | 2442 |  | 
 | 2443 | ## ----------- ## | 
 | 2444 | ## Core tests. ## | 
 | 2445 | ## ----------- ## | 
 | 2446 |  | 
 | 2447 | _ACEOF | 
 | 2448 |  | 
 | 2449 |  | 
 | 2450 | # Keep a trace of the command line. | 
 | 2451 | # 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] | 2452 | # 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] | 2453 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2454 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2455 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2456 | ac_configure_args0= | 
 | 2457 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2458 | ac_must_keep_next=false | 
 | 2459 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2460 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2461 |   for ac_arg | 
 | 2462 |   do | 
 | 2463 |     case $ac_arg in | 
 | 2464 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 2465 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 2466 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 2467 |       continue ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2468 |     *\'*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2469 |       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2470 |     esac | 
 | 2471 |     case $ac_pass in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2472 |     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2473 |     2) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2474 |       as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2475 |       if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2476 | 	ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2477 |       else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2478 | 	case $ac_arg in | 
 | 2479 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 2480 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 2481 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 2482 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 2483 | 	    case "$ac_configure_args0 " in | 
 | 2484 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 2485 | 	    esac | 
 | 2486 | 	    ;; | 
 | 2487 | 	  -* ) ac_must_keep_next=true ;; | 
 | 2488 | 	esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2489 |       fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2490 |       as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2491 |       ;; | 
 | 2492 |     esac | 
 | 2493 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2494 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2495 | { ac_configure_args0=; unset ac_configure_args0;} | 
 | 2496 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2497 |  | 
 | 2498 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 2499 | # config.log.  We remove comments because anyway the quotes in there | 
 | 2500 | # would cause problems or look ugly. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2501 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 2502 | # 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] | 2503 | trap 'exit_status=$? | 
 | 2504 |   # Save into config.log some information that might help in debugging. | 
 | 2505 |   { | 
 | 2506 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2507 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2508 |     $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2509 | ## Cache variables. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2510 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 |     echo | 
 | 2512 |     # The following way of writing the cache mishandles newlines in values, | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2513 | ( | 
 | 2514 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 2515 |     eval ac_val=\$$ac_var | 
 | 2516 |     case $ac_val in #( | 
 | 2517 |     *${as_nl}*) | 
 | 2518 |       case $ac_var in #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2519 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 2520 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2521 |       esac | 
 | 2522 |       case $ac_var in #( | 
 | 2523 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2524 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 2525 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2526 |       esac ;; | 
 | 2527 |     esac | 
 | 2528 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2529 |   (set) 2>&1 | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2530 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 2531 |     *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 |       sed -n \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2533 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 2534 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 2535 |       ;; #( | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2536 |     *) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2537 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2538 |       ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2539 |     esac | | 
 | 2540 |     sort | 
 | 2541 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2542 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2543 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2544 |     $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2545 | ## Output variables. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2546 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2547 |     echo | 
 | 2548 |     for ac_var in $ac_subst_vars | 
 | 2549 |     do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2550 |       eval ac_val=\$$ac_var | 
 | 2551 |       case $ac_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2552 |       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2553 |       esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2554 |       $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2555 |     done | sort | 
 | 2556 |     echo | 
 | 2557 |  | 
 | 2558 |     if test -n "$ac_subst_files"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2559 |       $as_echo "## ------------------- ## | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2560 | ## File substitutions. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2561 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2562 |       echo | 
 | 2563 |       for ac_var in $ac_subst_files | 
 | 2564 |       do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2565 | 	eval ac_val=\$$ac_var | 
 | 2566 | 	case $ac_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2567 | 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2568 | 	esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2569 | 	$as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2570 |       done | sort | 
 | 2571 |       echo | 
 | 2572 |     fi | 
 | 2573 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2574 |     if test -s confdefs.h; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2575 |       $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2576 | ## confdefs.h. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2577 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 |       echo | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2579 |       cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2580 |       echo | 
 | 2581 |     fi | 
 | 2582 |     test "$ac_signal" != 0 && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2583 |       $as_echo "$as_me: caught signal $ac_signal" | 
 | 2584 |     $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2585 |   } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2586 |   rm -f core *.core core.conftest.* && | 
 | 2587 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2588 |     exit $exit_status | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2589 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2590 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2591 |   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] | 2592 | done | 
 | 2593 | ac_signal=0 | 
 | 2594 |  | 
 | 2595 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2596 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2597 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2598 | $as_echo "/* confdefs.h */" > confdefs.h | 
 | 2599 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2600 | # Predefined preprocessor variables. | 
 | 2601 |  | 
 | 2602 | cat >>confdefs.h <<_ACEOF | 
 | 2603 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 2604 | _ACEOF | 
 | 2605 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2606 | cat >>confdefs.h <<_ACEOF | 
 | 2607 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 2608 | _ACEOF | 
 | 2609 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | cat >>confdefs.h <<_ACEOF | 
 | 2611 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 2612 | _ACEOF | 
 | 2613 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | cat >>confdefs.h <<_ACEOF | 
 | 2615 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 2616 | _ACEOF | 
 | 2617 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2618 | cat >>confdefs.h <<_ACEOF | 
 | 2619 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 2620 | _ACEOF | 
 | 2621 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2622 | cat >>confdefs.h <<_ACEOF | 
 | 2623 | #define PACKAGE_URL "$PACKAGE_URL" | 
 | 2624 | _ACEOF | 
 | 2625 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2626 |  | 
 | 2627 | # Let the site file select an alternate cache file if it wants to. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2628 | # Prefer an explicitly selected file to automatically selected ones. | 
 | 2629 | ac_site_file1=NONE | 
 | 2630 | ac_site_file2=NONE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2631 | if test -n "$CONFIG_SITE"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2632 |   # We do not want a PATH search for config.site. | 
 | 2633 |   case $CONFIG_SITE in #(( | 
 | 2634 |     -*)  ac_site_file1=./$CONFIG_SITE;; | 
 | 2635 |     */*) ac_site_file1=$CONFIG_SITE;; | 
 | 2636 |     *)   ac_site_file1=./$CONFIG_SITE;; | 
 | 2637 |   esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2638 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2639 |   ac_site_file1=$prefix/share/config.site | 
 | 2640 |   ac_site_file2=$prefix/etc/config.site | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2641 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2642 |   ac_site_file1=$ac_default_prefix/share/config.site | 
 | 2643 |   ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2644 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2645 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2646 | do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2647 |   test "x$ac_site_file" = xNONE && continue | 
 | 2648 |   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
 | 2649 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
 | 2650 | $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] | 2651 |     sed 's/^/| /' "$ac_site_file" >&5 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2652 |     . "$ac_site_file" \ | 
 | 2653 |       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2654 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2655 | as_fn_error $? "failed to load site script $ac_site_file | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2656 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2657 |   fi | 
 | 2658 | done | 
 | 2659 |  | 
 | 2660 | if test -r "$cache_file"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2661 |   # Some versions of bash will fail to source /dev/null (special files | 
 | 2662 |   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
 | 2663 |   if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
 | 2664 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
 | 2665 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2666 |     case $cache_file in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2667 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 2668 |       *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 |     esac | 
 | 2670 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2671 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2672 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
 | 2673 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2674 |   >$cache_file | 
 | 2675 | fi | 
 | 2676 |  | 
 | 2677 | # Check that the precious variables saved in the cache have kept the same | 
 | 2678 | # value. | 
 | 2679 | ac_cache_corrupted=false | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2680 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2681 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 2682 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2683 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 2684 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2685 |   case $ac_old_set,$ac_new_set in | 
 | 2686 |     set,) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2687 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 2688 | $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] | 2689 |       ac_cache_corrupted=: ;; | 
 | 2690 |     ,set) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2691 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 2692 | $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] | 2693 |       ac_cache_corrupted=: ;; | 
 | 2694 |     ,);; | 
 | 2695 |     *) | 
 | 2696 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2697 | 	# differences in whitespace do not lead to failure. | 
 | 2698 | 	ac_old_val_w=`echo x $ac_old_val` | 
 | 2699 | 	ac_new_val_w=`echo x $ac_new_val` | 
 | 2700 | 	if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
 | 2701 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
 | 2702 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 2703 | 	  ac_cache_corrupted=: | 
 | 2704 | 	else | 
 | 2705 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
 | 2706 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
 | 2707 | 	  eval $ac_var=\$ac_old_val | 
 | 2708 | 	fi | 
 | 2709 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
 | 2710 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
 | 2711 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
 | 2712 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2713 |       fi;; | 
 | 2714 |   esac | 
 | 2715 |   # Pass precious variables to config.status. | 
 | 2716 |   if test "$ac_new_set" = set; then | 
 | 2717 |     case $ac_new_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2718 |     *\'*) 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] | 2719 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 2720 |     esac | 
 | 2721 |     case " $ac_configure_args " in | 
 | 2722 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2723 |       *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2724 |     esac | 
 | 2725 |   fi | 
 | 2726 | done | 
 | 2727 | if $ac_cache_corrupted; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2728 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2729 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2730 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
 | 2731 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2732 |   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] | 2733 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2734 | ## -------------------- ## | 
 | 2735 | ## Main body of script. ## | 
 | 2736 | ## -------------------- ## | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2737 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2738 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2739 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2743 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2744 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2745 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2746 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2747 |  | 
 | 2748 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 2749 | ac_aux_dir= | 
 | 2750 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
 | 2751 |   if test -f "$ac_dir/install-sh"; then | 
 | 2752 |     ac_aux_dir=$ac_dir | 
 | 2753 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 2754 |     break | 
 | 2755 |   elif test -f "$ac_dir/install.sh"; then | 
 | 2756 |     ac_aux_dir=$ac_dir | 
 | 2757 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 2758 |     break | 
 | 2759 |   elif test -f "$ac_dir/shtool"; then | 
 | 2760 |     ac_aux_dir=$ac_dir | 
 | 2761 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 2762 |     break | 
 | 2763 |   fi | 
 | 2764 | done | 
 | 2765 | if test -z "$ac_aux_dir"; then | 
 | 2766 |   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
 | 2767 | fi | 
 | 2768 |  | 
 | 2769 | # These three variables are undocumented and unsupported, | 
 | 2770 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 2771 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 2772 | # whose full name contains unusual characters. | 
 | 2773 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 2774 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 2775 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 2776 |  | 
 | 2777 |  | 
 | 2778 | # Make sure we can run config.sub. | 
 | 2779 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
 | 2780 |   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
 | 2781 |  | 
 | 2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
 | 2783 | $as_echo_n "checking build system type... " >&6; } | 
 | 2784 | if ${ac_cv_build+:} false; then : | 
 | 2785 |   $as_echo_n "(cached) " >&6 | 
 | 2786 | else | 
 | 2787 |   ac_build_alias=$build_alias | 
 | 2788 | test "x$ac_build_alias" = x && | 
 | 2789 |   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
 | 2790 | test "x$ac_build_alias" = x && | 
 | 2791 |   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
 | 2792 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
 | 2793 |   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
 | 2794 |  | 
 | 2795 | fi | 
 | 2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
 | 2797 | $as_echo "$ac_cv_build" >&6; } | 
 | 2798 | case $ac_cv_build in | 
 | 2799 | *-*-*) ;; | 
 | 2800 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
 | 2801 | esac | 
 | 2802 | build=$ac_cv_build | 
 | 2803 | ac_save_IFS=$IFS; IFS='-' | 
 | 2804 | set x $ac_cv_build | 
 | 2805 | shift | 
 | 2806 | build_cpu=$1 | 
 | 2807 | build_vendor=$2 | 
 | 2808 | shift; shift | 
 | 2809 | # Remember, the first character of IFS is used to create $*, | 
 | 2810 | # except with old shells: | 
 | 2811 | build_os=$* | 
 | 2812 | IFS=$ac_save_IFS | 
 | 2813 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
 | 2814 |  | 
 | 2815 |  | 
 | 2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
 | 2817 | $as_echo_n "checking host system type... " >&6; } | 
 | 2818 | if ${ac_cv_host+:} false; then : | 
 | 2819 |   $as_echo_n "(cached) " >&6 | 
 | 2820 | else | 
 | 2821 |   if test "x$host_alias" = x; then | 
 | 2822 |   ac_cv_host=$ac_cv_build | 
 | 2823 | else | 
 | 2824 |   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
 | 2825 |     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
 | 2826 | fi | 
 | 2827 |  | 
 | 2828 | fi | 
 | 2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
 | 2830 | $as_echo "$ac_cv_host" >&6; } | 
 | 2831 | case $ac_cv_host in | 
 | 2832 | *-*-*) ;; | 
 | 2833 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
 | 2834 | esac | 
 | 2835 | host=$ac_cv_host | 
 | 2836 | ac_save_IFS=$IFS; IFS='-' | 
 | 2837 | set x $ac_cv_host | 
 | 2838 | shift | 
 | 2839 | host_cpu=$1 | 
 | 2840 | host_vendor=$2 | 
 | 2841 | shift; shift | 
 | 2842 | # Remember, the first character of IFS is used to create $*, | 
 | 2843 | # except with old shells: | 
 | 2844 | host_os=$* | 
 | 2845 | IFS=$ac_save_IFS | 
 | 2846 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
 | 2847 |  | 
 | 2848 |  | 
 | 2849 |  | 
 | 2850 |  | 
 | 2851 |  | 
 | 2852 | if test "$cross_compiling" = yes; then | 
 | 2853 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
 | 2854 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
 | 2855 |     if test -z "$PYTHON_FOR_BUILD"; then | 
 | 2856 |         for interp in python$PACKAGE_VERSION python2 python; do | 
 | 2857 | 	    which $interp >/dev/null 2>&1 || continue | 
 | 2858 | 	    if $interp -c 'import sys;sys.exit(not (sys.version_info[:2] >= (2,7) and sys.version_info[0] < 3))'; then | 
 | 2859 | 	        break | 
 | 2860 | 	    fi | 
 | 2861 |             interp= | 
 | 2862 | 	done | 
 | 2863 |         if test x$interp = x; then | 
 | 2864 | 	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
 | 2865 | 	fi | 
 | 2866 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
 | 2867 | $as_echo "$interp" >&6; } | 
 | 2868 | 	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/plat-$(MACHDEP) '$interp | 
 | 2869 |     fi | 
 | 2870 | elif test "$cross_compiling" = maybe; then | 
 | 2871 |     as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 | 
 | 2872 | else | 
 | 2873 |     PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
 | 2874 | fi | 
 | 2875 |  | 
 | 2876 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2877 |  | 
| Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 2878 | if test "$prefix" != "/"; then | 
 | 2879 |     prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
 | 2880 | fi | 
 | 2881 |  | 
 | 2882 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2883 |  | 
 | 2884 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2885 | # We don't use PACKAGE_ variables, and they cause conflicts | 
 | 2886 | # with other autoconf-based packages that include Python.h | 
 | 2887 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
 | 2888 | rm confdefs.h | 
 | 2889 | mv confdefs.h.new confdefs.h | 
 | 2890 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2891 |  | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2892 | VERSION=2.7 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2893 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2894 |  | 
 | 2895 | SOVERSION=1.0 | 
 | 2896 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2897 | # The later defininition of _XOPEN_SOURCE disables certain features | 
 | 2898 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
 | 2899 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2900 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2901 |  | 
 | 2902 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2903 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2904 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
 | 2905 | # them. | 
 | 2906 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2907 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2908 |  | 
 | 2909 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2910 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2911 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
 | 2912 | # them. | 
 | 2913 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2914 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2915 |  | 
 | 2916 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2917 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2918 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
 | 2919 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2920 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2921 |  | 
 | 2922 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2923 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2924 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
 | 2925 | # them. | 
 | 2926 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2927 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2928 |  | 
 | 2929 |  | 
 | 2930 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2931 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2932 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2933 | # Arguments passed to configure. | 
 | 2934 |  | 
 | 2935 | CONFIG_ARGS="$ac_configure_args" | 
 | 2936 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
 | 2938 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2939 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2940 | if test "${enable_universalsdk+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2941 |   enableval=$enable_universalsdk; | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2942 | 	case $enableval in | 
 | 2943 | 	yes) | 
 | 2944 | 		enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2945 | 		if test ! -d "${enableval}" | 
 | 2946 | 		then | 
 | 2947 | 			enableval=/ | 
 | 2948 | 		fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2949 | 		;; | 
 | 2950 | 	esac | 
 | 2951 | 	case $enableval in | 
 | 2952 | 	no) | 
 | 2953 | 		UNIVERSALSDK= | 
 | 2954 | 		enable_universalsdk= | 
 | 2955 | 		;; | 
 | 2956 | 	*) | 
 | 2957 | 		UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2958 | 		if test ! -d "${UNIVERSALSDK}" | 
 | 2959 | 		then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2960 | 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2961 | 		fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2962 | 		;; | 
 | 2963 | 	esac | 
 | 2964 |  | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2965 |  | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2966 | else | 
 | 2967 |  | 
 | 2968 |    	UNIVERSALSDK= | 
 | 2969 | 	enable_universalsdk= | 
 | 2970 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2971 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2972 |  | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2973 | if test -n "${UNIVERSALSDK}" | 
 | 2974 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2975 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
 | 2976 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2977 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2978 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 2979 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2980 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2981 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2982 |  | 
| Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 2983 |  | 
 | 2984 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2985 | UNIVERSAL_ARCHS="32-bit" | 
| Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2986 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
 | 2988 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2989 |  | 
 | 2990 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2991 | if test "${with_universal_archs+set}" = set; then : | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2992 |   withval=$with_universal_archs; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2993 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 2994 | $as_echo "$withval" >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2995 | 	UNIVERSAL_ARCHS="$withval" | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2996 |         if test "${enable_universalsdk}" ; then | 
 | 2997 | 		: | 
 | 2998 | 	else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2999 | 		as_fn_error $? "--with-universal-archs without --enable-universalsdk. See Mac/README" "$LINENO" 5 | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3000 | 	fi | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3001 |  | 
 | 3002 | else | 
 | 3003 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3004 |  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 | 
 | 3005 | $as_echo "32-bit" >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3006 |  | 
 | 3007 | fi | 
 | 3008 |  | 
 | 3009 |  | 
 | 3010 |  | 
 | 3011 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3012 |  | 
 | 3013 | # Check whether --with-framework-name was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3014 | if test "${with_framework_name+set}" = set; then : | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3015 |   withval=$with_framework_name; | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3016 |     if test "${enable_framework}"; then | 
 | 3017 | 	    : | 
 | 3018 |     else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3019 | 	as_fn_error $? "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5 | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3020 |     fi | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3021 |     PYTHONFRAMEWORK=${withval} | 
 | 3022 |     PYTHONFRAMEWORKDIR=${withval}.framework | 
 | 3023 |     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
 | 3024 |  | 
 | 3025 | else | 
 | 3026 |  | 
 | 3027 |     PYTHONFRAMEWORK=Python | 
 | 3028 |     PYTHONFRAMEWORKDIR=Python.framework | 
 | 3029 |     PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
 | 3030 |  | 
 | 3031 | fi | 
 | 3032 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3033 | # Check whether --enable-framework was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3034 | if test "${enable_framework+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3035 |   enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3036 | 	case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3037 | 	yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3038 | 		enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3039 | 	esac | 
 | 3040 | 	case $enableval in | 
 | 3041 | 	no) | 
 | 3042 | 		PYTHONFRAMEWORK= | 
 | 3043 | 		PYTHONFRAMEWORKDIR=no-framework | 
 | 3044 | 		PYTHONFRAMEWORKPREFIX= | 
 | 3045 | 		PYTHONFRAMEWORKINSTALLDIR= | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3046 | 		FRAMEWORKINSTALLFIRST= | 
 | 3047 | 		FRAMEWORKINSTALLLAST= | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3048 | 		FRAMEWORKALTINSTALLFIRST= | 
 | 3049 | 		FRAMEWORKALTINSTALLLAST= | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3050 | 		if test "x${prefix}" = "xNONE"; then | 
 | 3051 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3052 | 		else | 
 | 3053 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3054 | 		fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3055 | 		enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3056 | 		;; | 
 | 3057 | 	*) | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3058 | 		PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3059 | 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3060 | 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3061 | 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" | 
| Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 3062 | 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
 | 3063 | 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3064 | 		FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3065 |  | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3066 | 		if test "x${prefix}" = "xNONE" ; then | 
 | 3067 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3068 |  | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3069 | 		else | 
 | 3070 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3071 | 		fi | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3072 |  | 
 | 3073 | 		case "${enableval}" in | 
 | 3074 | 		/System*) | 
 | 3075 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3076 | 			if test "${prefix}" = "NONE" ; then | 
 | 3077 | 				# See below | 
 | 3078 | 				FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
 | 3079 | 			fi | 
 | 3080 | 			;; | 
 | 3081 |  | 
 | 3082 | 		/Library*) | 
 | 3083 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3084 | 			;; | 
 | 3085 |  | 
 | 3086 | 		*/Library/Frameworks) | 
 | 3087 | 			MDIR="`dirname "${enableval}"`" | 
 | 3088 | 			MDIR="`dirname "${MDIR}"`" | 
 | 3089 | 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
 | 3090 |  | 
 | 3091 | 			if test "${prefix}" = "NONE"; then | 
 | 3092 | 				# User hasn't specified the | 
 | 3093 | 				# --prefix option, but wants to install | 
 | 3094 | 				# the framework in a non-default location, | 
 | 3095 | 				# ensure that the compatibility links get | 
 | 3096 | 				# installed relative to that prefix as well | 
 | 3097 | 				# instead of in /usr/local. | 
 | 3098 | 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
 | 3099 | 			fi | 
 | 3100 | 			;; | 
 | 3101 |  | 
 | 3102 | 		*) | 
 | 3103 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3104 | 			;; | 
 | 3105 | 		esac | 
 | 3106 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3107 | 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3108 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3109 | 		# Add files for Mac specific code to the list of output | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3110 | 		# files: | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3111 | 		ac_config_files="$ac_config_files Mac/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3112 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3113 | 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3114 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3115 | 		ac_config_files="$ac_config_files Mac/IDLE/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3116 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3117 | 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
 | 3118 |  | 
 | 3119 | 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
 | 3120 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3121 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3122 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3123 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3124 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3125 | 	PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3126 | 	PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3127 | 	PYTHONFRAMEWORKPREFIX= | 
 | 3128 | 	PYTHONFRAMEWORKINSTALLDIR= | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3129 | 	FRAMEWORKINSTALLFIRST= | 
 | 3130 | 	FRAMEWORKINSTALLLAST= | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3131 | 	FRAMEWORKALTINSTALLFIRST= | 
 | 3132 | 	FRAMEWORKALTINSTALLLAST= | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3133 | 	if test "x${prefix}" = "xNONE" ; then | 
 | 3134 | 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3135 | 	else | 
 | 3136 | 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3137 | 	fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3138 | 	enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3139 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3140 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3141 | fi | 
 | 3142 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3143 |  | 
 | 3144 |  | 
 | 3145 |  | 
 | 3146 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3147 |  | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3148 |  | 
 | 3149 |  | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3150 |  | 
 | 3151 |  | 
 | 3152 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3153 |  | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3154 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3155 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 22520ea | 2010-05-08 10:14:46 +0000 | [diff] [blame] | 3156 | ##            AS_HELP_STRING([--with-dyld], | 
 | 3157 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3158 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3159 | # Set name for machine-dependent library files | 
 | 3160 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
 | 3162 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3163 | if test -z "$MACHDEP" | 
 | 3164 | then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3165 |     # avoid using uname for cross builds | 
 | 3166 |     if test "$cross_compiling" = yes; then | 
 | 3167 |        # ac_sys_system and ac_sys_release are only used for setting | 
 | 3168 |        # `define_xopen_source' in the case statement below. For the | 
 | 3169 |        # current supported cross builds, this macro is not adjusted. | 
 | 3170 | 	case "$host" in | 
 | 3171 | 	*-*-linux*) | 
 | 3172 | 		ac_sys_system=Linux | 
 | 3173 | 		;; | 
 | 3174 | 	*-*-cygwin*) | 
 | 3175 | 		ac_sys_system=Cygwin | 
 | 3176 | 		;; | 
 | 3177 | 	*) | 
 | 3178 | 		# for now, limit cross builds to known configurations | 
 | 3179 | 		MACHDEP="unknown" | 
 | 3180 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3181 | 	esac | 
 | 3182 | 	ac_sys_release= | 
 | 3183 |     else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3184 | 	ac_sys_system=`uname -s` | 
| Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 3185 | 	if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3186 | 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3187 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3188 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3189 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3190 | 	fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3191 |     fi | 
 | 3192 |     ac_md_system=`echo $ac_sys_system | | 
 | 3193 | 			tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 3194 |     ac_md_release=`echo $ac_sys_release | | 
 | 3195 | 			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
 | 3196 |     MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3197 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3198 |     case $MACHDEP in | 
| Victor Stinner | acacbaa | 2011-08-20 14:02:38 +0200 | [diff] [blame] | 3199 | 	linux*) MACHDEP="linux2";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3200 | 	cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3201 | 	darwin*) MACHDEP="darwin";; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3202 | 	atheos*) MACHDEP="atheos";; | 
| Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 3203 |         irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3204 | 	'')	MACHDEP="unknown";; | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3205 |     esac | 
 | 3206 | fi | 
 | 3207 |  | 
 | 3208 |  | 
 | 3209 | if test "$cross_compiling" = yes; then | 
 | 3210 | 	case "$host" in | 
 | 3211 | 	*-*-linux*) | 
 | 3212 | 		case "$host_cpu" in | 
 | 3213 | 		arm*) | 
 | 3214 | 			_host_cpu=arm | 
 | 3215 | 			;; | 
 | 3216 | 		*) | 
 | 3217 | 			_host_cpu=$host_cpu | 
 | 3218 | 		esac | 
 | 3219 | 		;; | 
 | 3220 | 	*-*-cygwin*) | 
 | 3221 | 		_host_cpu= | 
 | 3222 | 		;; | 
 | 3223 | 	*) | 
 | 3224 | 		# for now, limit cross builds to known configurations | 
 | 3225 | 		MACHDEP="unknown" | 
 | 3226 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3227 | 	esac | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3228 | 	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3229 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3230 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3231 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
 | 3232 | # disable features if it is defined, without any means to access these | 
 | 3233 | # features as extensions. For these systems, we skip the definition of | 
 | 3234 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
 | 3235 | # some feature, make sure there is no alternative way to access this | 
 | 3236 | # feature. Also, when using wildcards, make sure you have verified the | 
 | 3237 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
 | 3238 | # wildcard, and that the wildcard does not include future systems | 
 | 3239 | # (which may remove their limitations). | 
 | 3240 | case $ac_sys_system/$ac_sys_release in | 
 | 3241 |   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
 | 3242 |   # 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] | 3243 |   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. | 
| Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 3244 |   # In addition, Stefan Krah confirms that issue #1244610 exists through | 
 | 3245 |   # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 97781b0 | 2011-07-22 23:43:42 +0200 | [diff] [blame] | 3246 |   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3247 |     define_xopen_source=no | 
 | 3248 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3249 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3250 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3251 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3252 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3253 |  | 
 | 3254 |     ;; | 
| Charles-François Natali | 97781b0 | 2011-07-22 23:43:42 +0200 | [diff] [blame] | 3255 |   OpenBSD/*) | 
| Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3256 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3257 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3258 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3259 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3260 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3261 |  | 
 | 3262 |     ;; | 
| Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3263 |   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
 | 3264 |   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
 | 3265 |   # Marc Recht | 
| Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 3266 |   NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) | 
| Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3267 |     define_xopen_source=no;; | 
| Martin v. Löwis | b41afb5 | 2010-05-28 15:28:47 +0000 | [diff] [blame] | 3268 |   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
 | 3269 |   # request to enable features supported by the standard as a request | 
 | 3270 |   # to disable features not supported by the standard.  The best way | 
 | 3271 |   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
 | 3272 |   # entirely and define __EXTENSIONS__ instead. | 
 | 3273 |   SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3274 |     define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3275 |   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
 | 3276 |   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3277 |   # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3278 |   OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3279 |     define_xopen_source=no;; | 
 | 3280 |   # 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] | 3281 |   # 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] | 3282 |   SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3283 |     define_xopen_source=no;; | 
| Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 3284 |   # On FreeBSD 4, the math functions C89 does not cover are never defined | 
 | 3285 |   # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
 | 3286 |   FreeBSD/4.*) | 
 | 3287 |     define_xopen_source=no;; | 
 | 3288 |   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
 | 3289 |   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
 | 3290 |   # identifies itself as Darwin/7.* | 
 | 3291 |   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3292 |   # disables platform specific features beyond repair. | 
 | 3293 |   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3294 |   # has no effect, don't bother defining them | 
 | 3295 |   Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3296 |     define_xopen_source=no;; | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 3297 |   Darwin/1[0-9].*) | 
 | 3298 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3299 |   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
 | 3300 |   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
 | 3301 |   # 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] | 3302 |   AIX/4) | 
 | 3303 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3304 |   AIX/5) | 
 | 3305 |     if test `uname -r` -eq 1; then | 
 | 3306 |       define_xopen_source=no | 
 | 3307 |     fi | 
 | 3308 |     ;; | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 3309 |   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
 | 3310 |   # defining NI_NUMERICHOST. | 
 | 3311 |   QNX/6.3.2) | 
 | 3312 |     define_xopen_source=no | 
 | 3313 |     ;; | 
| Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 3314 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3315 | esac | 
 | 3316 |  | 
 | 3317 | if test $define_xopen_source = yes | 
 | 3318 | then | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3319 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3320 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3321 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3322 |  | 
 | 3323 |   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
 | 3324 |   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
 | 3325 |   # several APIs are not declared. Since this is also needed in some | 
 | 3326 |   # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3327 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3328 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3329 |  | 
 | 3330 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3331 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3332 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3333 |  | 
 | 3334 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3335 | fi | 
 | 3336 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3337 | # | 
 | 3338 | # SGI compilers allow the specification of the both the ABI and the | 
 | 3339 | # ISA on the command line.  Depending on the values of these switches, | 
 | 3340 | # different and often incompatable code will be generated. | 
 | 3341 | # | 
 | 3342 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
 | 3343 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
 | 3344 | # variable is also adjusted. | 
 | 3345 | # | 
 | 3346 |  | 
 | 3347 | if test ! -z "$SGI_ABI" | 
 | 3348 | then | 
 | 3349 |         CC="cc $SGI_ABI" | 
 | 3350 |         LDFLAGS="$SGI_ABI $LDFLAGS" | 
 | 3351 |         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
 | 3352 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
 | 3354 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3355 |  | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3356 | # And add extra plat-mac for darwin | 
 | 3357 |  | 
| Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3358 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5 | 
 | 3360 | $as_echo_n "checking EXTRAPLATDIR... " >&6; } | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3361 | if test -z "$EXTRAPLATDIR" | 
 | 3362 | then | 
 | 3363 | 	case $MACHDEP in | 
| Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3364 | 	darwin) | 
 | 3365 | 		EXTRAPLATDIR="\$(PLATMACDIRS)" | 
 | 3366 | 		EXTRAMACHDEPPATH="\$(PLATMACPATH)" | 
 | 3367 | 		;; | 
 | 3368 | 	*) | 
 | 3369 | 		EXTRAPLATDIR="" | 
 | 3370 | 		EXTRAMACHDEPPATH="" | 
 | 3371 | 		;; | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3372 | 	esac | 
 | 3373 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5 | 
 | 3375 | $as_echo "$EXTRAPLATDIR" >&6; } | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3376 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3377 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
 | 3378 | # it may influence the way we can build extensions, so distutils | 
 | 3379 | # needs to check it | 
 | 3380 |  | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3381 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3382 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3383 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3384 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3385 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3386 |  | 
 | 3387 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
 | 3388 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
 | 3389 | # just to get things to compile and link.  Users are free to override OPT | 
 | 3390 | # when running configure or make.  The build should not break if they do. | 
 | 3391 | # BASECFLAGS should generally not be messed with, however. | 
 | 3392 |  | 
 | 3393 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
 | 3394 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
 | 3396 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3397 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3398 | # Check whether --with-gcc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3399 | if test "${with_gcc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3400 |   withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3401 | 	case $withval in | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 3402 | 	no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3403 | 		without_gcc=yes;; | 
 | 3404 | 	yes)	CC=gcc | 
 | 3405 | 		without_gcc=no;; | 
 | 3406 | 	*)	CC=$withval | 
 | 3407 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3408 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3409 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3410 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3411 | 	case $ac_sys_system in | 
| Antoine Pitrou | 285cd16 | 2010-09-21 15:23:17 +0000 | [diff] [blame] | 3412 | 	AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3413 | 		without_gcc=;; | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3414 | 	BeOS*) | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3415 | 		case $BE_HOST_CPU in | 
 | 3416 | 		ppc) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3417 | 			CC=mwcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3418 | 			without_gcc=yes | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3419 | 			BASECFLAGS="$BASECFLAGS -export pragma" | 
 | 3420 | 			OPT="$OPT -O" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3421 | 			LDFLAGS="$LDFLAGS -nodup" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3422 | 			;; | 
 | 3423 | 		x86) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3424 | 			CC=gcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3425 | 			without_gcc=no | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3426 | 			OPT="$OPT -O" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3427 | 			;; | 
 | 3428 | 		*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3429 | 			as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5 | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3430 | 			;; | 
 | 3431 | 		esac | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3432 | 		AR="\$(srcdir)/Modules/ar_beos" | 
 | 3433 | 		RANLIB=: | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3434 | 		;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3435 | 	*)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3436 | 	esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3437 | fi | 
 | 3438 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
 | 3440 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3441 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3442 | # If the user switches compilers, we can't believe the cache | 
 | 3443 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 3444 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3445 |   as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3446 | (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] | 3447 | fi | 
 | 3448 |  | 
| Trent Nelson | 15daa35 | 2012-12-13 06:46:39 +0000 | [diff] [blame] | 3449 | if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then | 
 | 3450 |     # Normally, MIPSpro CC treats #error directives as warnings, which means | 
 | 3451 |     # a successful exit code is returned (0).  This is a problem because IRIX | 
 | 3452 |     # has a bunch of system headers with this guard at the top: | 
 | 3453 |     # | 
 | 3454 |     #  #ifndef __c99 | 
 | 3455 |     #  #error This header file is to be used only for c99 mode compilations | 
 | 3456 |     #  #else | 
 | 3457 |     # | 
 | 3458 |     # When autoconf tests for such a header, like stdint.h, this happens: | 
 | 3459 |     # | 
 | 3460 |     #  configure:4619: cc -c   conftest.c >&5 | 
 | 3461 |     #  cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5 | 
 | 3462 |     #    #error directive:  This header file is to be used only for c99 mode | 
 | 3463 |     #            compilations | 
 | 3464 |     # | 
 | 3465 |     #    #error This header file is to be used only for c99 mode compilations | 
 | 3466 |     #     ^ | 
 | 3467 |     # | 
 | 3468 |     #  configure:4619: $? = 0 | 
 | 3469 |     #  configure:4619: result: yes | 
 | 3470 |     # | 
 | 3471 |     # Therefore, we use `-diag_error 1035` to have the compiler treat the | 
 | 3472 |     # warning as an error, which causes cc to return a non-zero result, | 
 | 3473 |     # which autoconf can interpret correctly. | 
 | 3474 |     CFLAGS="$CFLAGS -diag_error 1035" | 
 | 3475 |     # Whilst we're here, we might as well make sure CXX defaults to something | 
 | 3476 |     # sensible if we're not using gcc. | 
 | 3477 |     if test -z "$CXX"; then | 
 | 3478 |         CXX="CC" | 
 | 3479 |     fi | 
 | 3480 | fi | 
 | 3481 |  | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 3482 | # If the user set CFLAGS, use this instead of the automatically | 
 | 3483 | # determined setting | 
 | 3484 | preset_cflags="$CFLAGS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3485 | ac_ext=c | 
 | 3486 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3490 | if test -n "$ac_tool_prefix"; then | 
 | 3491 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 3492 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3494 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3495 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3496 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3497 | else | 
 | 3498 |   if test -n "$CC"; then | 
 | 3499 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3500 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3502 | for as_dir in $PATH | 
 | 3503 | do | 
 | 3504 |   IFS=$as_save_IFS | 
 | 3505 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3506 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3507 |   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] | 3508 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3509 |     $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] | 3510 |     break 2 | 
 | 3511 |   fi | 
 | 3512 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3513 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3514 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3515 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3516 | fi | 
 | 3517 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3518 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3519 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3520 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3521 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3522 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3523 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3524 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3525 | fi | 
 | 3526 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3527 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3528 | fi | 
 | 3529 | if test -z "$ac_cv_prog_CC"; then | 
 | 3530 |   ac_ct_CC=$CC | 
 | 3531 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 3532 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3534 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3535 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3536 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3537 | else | 
 | 3538 |   if test -n "$ac_ct_CC"; then | 
 | 3539 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3540 | else | 
 | 3541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3542 | for as_dir in $PATH | 
 | 3543 | do | 
 | 3544 |   IFS=$as_save_IFS | 
 | 3545 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3546 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3547 |   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] | 3548 |     ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3549 |     $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] | 3550 |     break 2 | 
 | 3551 |   fi | 
 | 3552 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3553 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3554 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3555 |  | 
 | 3556 | fi | 
 | 3557 | fi | 
 | 3558 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3559 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3560 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3561 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3562 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3563 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3564 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3565 | fi | 
 | 3566 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3567 |   if test "x$ac_ct_CC" = x; then | 
 | 3568 |     CC="" | 
 | 3569 |   else | 
 | 3570 |     case $cross_compiling:$ac_tool_warned in | 
 | 3571 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3573 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3574 | ac_tool_warned=yes ;; | 
 | 3575 | esac | 
 | 3576 |     CC=$ac_ct_CC | 
 | 3577 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3578 | else | 
 | 3579 |   CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3580 | fi | 
 | 3581 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3582 | if test -z "$CC"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3583 |           if test -n "$ac_tool_prefix"; then | 
 | 3584 |     # 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] | 3585 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3587 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3588 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3589 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3590 | else | 
 | 3591 |   if test -n "$CC"; then | 
 | 3592 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3593 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3595 | for as_dir in $PATH | 
 | 3596 | do | 
 | 3597 |   IFS=$as_save_IFS | 
 | 3598 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3599 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3600 |   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] | 3601 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3602 |     $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] | 3603 |     break 2 | 
 | 3604 |   fi | 
 | 3605 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3606 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3607 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3608 |  | 
 | 3609 | fi | 
 | 3610 | fi | 
 | 3611 | CC=$ac_cv_prog_CC | 
 | 3612 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3613 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3614 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3615 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3616 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3617 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3618 | fi | 
 | 3619 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3620 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3621 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3622 | fi | 
 | 3623 | if test -z "$CC"; then | 
 | 3624 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 3625 | set dummy cc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3627 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3628 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3629 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3630 | else | 
 | 3631 |   if test -n "$CC"; then | 
 | 3632 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3633 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3634 |   ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3636 | for as_dir in $PATH | 
 | 3637 | do | 
 | 3638 |   IFS=$as_save_IFS | 
 | 3639 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3640 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3641 |   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] | 3642 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 3643 |        ac_prog_rejected=yes | 
 | 3644 |        continue | 
 | 3645 |      fi | 
 | 3646 |     ac_cv_prog_CC="cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3647 |     $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] | 3648 |     break 2 | 
 | 3649 |   fi | 
 | 3650 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3651 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3652 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3654 | if test $ac_prog_rejected = yes; then | 
 | 3655 |   # We found a bogon in the path, so make sure we never use it. | 
 | 3656 |   set dummy $ac_cv_prog_CC | 
 | 3657 |   shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3658 |   if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3659 |     # We chose a different compiler from the bogus one. | 
 | 3660 |     # However, it has the same basename, so the bogon will be chosen | 
 | 3661 |     # first if we set CC to just the basename; use the full file name. | 
 | 3662 |     shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3663 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3664 |   fi | 
 | 3665 | fi | 
 | 3666 | fi | 
 | 3667 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3668 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3669 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3670 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3671 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3672 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3673 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3674 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3675 | fi | 
 | 3676 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3677 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3678 | fi | 
 | 3679 | if test -z "$CC"; then | 
 | 3680 |   if test -n "$ac_tool_prefix"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3681 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3682 |   do | 
 | 3683 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3684 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3686 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3687 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3688 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3689 | else | 
 | 3690 |   if test -n "$CC"; then | 
 | 3691 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3692 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3694 | for as_dir in $PATH | 
 | 3695 | do | 
 | 3696 |   IFS=$as_save_IFS | 
 | 3697 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3698 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3699 |   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] | 3700 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3701 |     $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] | 3702 |     break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3703 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3704 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3705 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3706 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3707 |  | 
 | 3708 | fi | 
 | 3709 | fi | 
 | 3710 | CC=$ac_cv_prog_CC | 
 | 3711 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3712 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3713 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3714 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3715 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3716 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3717 | fi | 
 | 3718 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3719 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3720 |     test -n "$CC" && break | 
 | 3721 |   done | 
 | 3722 | fi | 
 | 3723 | if test -z "$CC"; then | 
 | 3724 |   ac_ct_CC=$CC | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3725 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3726 | do | 
 | 3727 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3728 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3730 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3731 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3732 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3733 | else | 
 | 3734 |   if test -n "$ac_ct_CC"; then | 
 | 3735 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3736 | else | 
 | 3737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3738 | for as_dir in $PATH | 
 | 3739 | do | 
 | 3740 |   IFS=$as_save_IFS | 
 | 3741 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3742 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3743 |   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] | 3744 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3745 |     $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] | 3746 |     break 2 | 
 | 3747 |   fi | 
 | 3748 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3749 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3750 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3751 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3752 | fi | 
 | 3753 | fi | 
 | 3754 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3755 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3756 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3757 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3758 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3759 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3760 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3761 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3762 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3763 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3764 |   test -n "$ac_ct_CC" && break | 
 | 3765 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3766 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3767 |   if test "x$ac_ct_CC" = x; then | 
 | 3768 |     CC="" | 
 | 3769 |   else | 
 | 3770 |     case $cross_compiling:$ac_tool_warned in | 
 | 3771 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3773 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3774 | ac_tool_warned=yes ;; | 
 | 3775 | esac | 
 | 3776 |     CC=$ac_ct_CC | 
 | 3777 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3778 | fi | 
 | 3779 |  | 
 | 3780 | fi | 
 | 3781 |  | 
 | 3782 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3783 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3784 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3785 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3786 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3787 |  | 
 | 3788 | # Provide some information about the compiler. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3789 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
 | 3790 | set X $ac_compile | 
 | 3791 | ac_compiler=$2 | 
 | 3792 | for ac_option in --version -v -V -qversion; do | 
 | 3793 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3794 | case "(($ac_try" in | 
 | 3795 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3796 |   *) ac_try_echo=$ac_try;; | 
 | 3797 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3798 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3799 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3800 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3801 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3802 |   if test -s conftest.err; then | 
 | 3803 |     sed '10a\ | 
 | 3804 | ... rest of stderr output deleted ... | 
 | 3805 |          10q' conftest.err >conftest.er1 | 
 | 3806 |     cat conftest.er1 >&5 | 
 | 3807 |   fi | 
 | 3808 |   rm -f conftest.er1 conftest.err | 
 | 3809 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3810 |   test $ac_status = 0; } | 
 | 3811 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3812 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3814 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3815 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3816 | int | 
 | 3817 | main () | 
 | 3818 | { | 
 | 3819 |  | 
 | 3820 |   ; | 
 | 3821 |   return 0; | 
 | 3822 | } | 
 | 3823 | _ACEOF | 
 | 3824 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3825 | 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] | 3826 | # Try to create an executable without -o first, disregard a.out. | 
 | 3827 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 3828 | # of exeext. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
 | 3830 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
 | 3831 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 3832 |  | 
 | 3833 | # The possible output files: | 
 | 3834 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
 | 3835 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3836 | ac_rmfiles= | 
 | 3837 | for ac_file in $ac_files | 
 | 3838 | do | 
 | 3839 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3840 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3841 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 3842 |   esac | 
 | 3843 | done | 
 | 3844 | rm -f $ac_rmfiles | 
 | 3845 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3846 | if { { ac_try="$ac_link_default" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3847 | case "(($ac_try" in | 
 | 3848 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3849 |   *) ac_try_echo=$ac_try;; | 
 | 3850 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3851 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3852 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3853 |   (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3854 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3855 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3856 |   test $ac_status = 0; }; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3857 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 3858 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 3859 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 3860 | # so that the user can short-circuit this test for compilers unknown to | 
 | 3861 | # Autoconf. | 
 | 3862 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3863 | do | 
 | 3864 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3865 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3866 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3867 | 	;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3868 |     [ab].out ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3869 | 	# We found the default executable, but exeext='' is most | 
 | 3870 | 	# certainly right. | 
 | 3871 | 	break;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3872 |     *.* ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3873 | 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3874 | 	then :; else | 
 | 3875 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 3876 | 	fi | 
 | 3877 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 3878 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 3879 | 	# argument, so we may need to know it at that point already. | 
 | 3880 | 	# Even if this section looks crufty: it has the advantage of | 
 | 3881 | 	# actually working. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3882 | 	break;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3883 |     * ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3884 | 	break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3885 |   esac | 
 | 3886 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3887 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 3888 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3889 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3890 |   ac_file='' | 
 | 3891 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3892 | if test -z "$ac_file"; then : | 
 | 3893 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3894 | $as_echo "no" >&6; } | 
 | 3895 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3896 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3897 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3898 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3899 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3900 | as_fn_error 77 "C compiler cannot create executables | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3901 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3902 | else | 
 | 3903 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 3904 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3905 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
 | 3907 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
 | 3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
 | 3909 | $as_echo "$ac_file" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3910 | ac_exeext=$ac_cv_exeext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3911 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3912 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3913 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
 | 3915 | $as_echo_n "checking for suffix of executables... " >&6; } | 
 | 3916 | if { { ac_try="$ac_link" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3917 | case "(($ac_try" in | 
 | 3918 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3919 |   *) ac_try_echo=$ac_try;; | 
 | 3920 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3921 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3922 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3923 |   (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3924 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3925 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3926 |   test $ac_status = 0; }; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3927 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 3928 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 3929 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 3930 | # `rm'. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3931 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 3932 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3933 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3934 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3935 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3936 | 	  break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3937 |     * ) break;; | 
 | 3938 |   esac | 
 | 3939 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3940 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3941 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3942 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3943 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3944 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3945 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3946 | rm -f conftest conftest$ac_cv_exeext | 
 | 3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
 | 3948 | $as_echo "$ac_cv_exeext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3949 |  | 
 | 3950 | rm -f conftest.$ac_ext | 
 | 3951 | EXEEXT=$ac_cv_exeext | 
 | 3952 | ac_exeext=$EXEEXT | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 3954 | /* end confdefs.h.  */ | 
 | 3955 | #include <stdio.h> | 
 | 3956 | int | 
 | 3957 | main () | 
 | 3958 | { | 
 | 3959 | FILE *f = fopen ("conftest.out", "w"); | 
 | 3960 |  return ferror (f) || fclose (f) != 0; | 
 | 3961 |  | 
 | 3962 |   ; | 
 | 3963 |   return 0; | 
 | 3964 | } | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3965 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3966 | ac_clean_files="$ac_clean_files conftest.out" | 
 | 3967 | # Check that the compiler produces executables we can run.  If not, either | 
 | 3968 | # the compiler is broken, or we cross compile. | 
 | 3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
 | 3970 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
 | 3971 | if test "$cross_compiling" != yes; then | 
 | 3972 |   { { ac_try="$ac_link" | 
 | 3973 | case "(($ac_try" in | 
 | 3974 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3975 |   *) ac_try_echo=$ac_try;; | 
 | 3976 | esac | 
 | 3977 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3978 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3979 |   (eval "$ac_link") 2>&5 | 
 | 3980 |   ac_status=$? | 
 | 3981 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3982 |   test $ac_status = 0; } | 
 | 3983 |   if { ac_try='./conftest$ac_cv_exeext' | 
 | 3984 |   { { case "(($ac_try" in | 
 | 3985 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3986 |   *) ac_try_echo=$ac_try;; | 
 | 3987 | esac | 
 | 3988 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3989 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3990 |   (eval "$ac_try") 2>&5 | 
 | 3991 |   ac_status=$? | 
 | 3992 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3993 |   test $ac_status = 0; }; }; then | 
 | 3994 |     cross_compiling=no | 
 | 3995 |   else | 
 | 3996 |     if test "$cross_compiling" = maybe; then | 
 | 3997 | 	cross_compiling=yes | 
 | 3998 |     else | 
 | 3999 | 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4000 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4001 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4002 | If you meant to cross compile, use \`--host'. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4003 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4004 |     fi | 
 | 4005 |   fi | 
 | 4006 | fi | 
 | 4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
 | 4008 | $as_echo "$cross_compiling" >&6; } | 
 | 4009 |  | 
 | 4010 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
 | 4011 | ac_clean_files=$ac_clean_files_save | 
 | 4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
 | 4013 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4014 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4015 |   $as_echo_n "(cached) " >&6 | 
 | 4016 | else | 
 | 4017 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4018 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4019 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4020 | int | 
 | 4021 | main () | 
 | 4022 | { | 
 | 4023 |  | 
 | 4024 |   ; | 
 | 4025 |   return 0; | 
 | 4026 | } | 
 | 4027 | _ACEOF | 
 | 4028 | rm -f conftest.o conftest.obj | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4029 | if { { ac_try="$ac_compile" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4030 | case "(($ac_try" in | 
 | 4031 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4032 |   *) ac_try_echo=$ac_try;; | 
 | 4033 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4034 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4035 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4036 |   (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4037 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4038 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4039 |   test $ac_status = 0; }; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4040 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 4041 |   test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4042 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4043 |     *.$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] | 4044 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 4045 |        break;; | 
 | 4046 |   esac | 
 | 4047 | done | 
 | 4048 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4049 |   $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4050 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4051 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4052 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4053 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4054 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4055 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4056 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4057 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
 | 4058 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
 | 4060 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4061 | OBJEXT=$ac_cv_objext | 
 | 4062 | ac_objext=$OBJEXT | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
 | 4064 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4065 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4066 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4067 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4068 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4069 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4070 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4071 | int | 
 | 4072 | main () | 
 | 4073 | { | 
 | 4074 | #ifndef __GNUC__ | 
 | 4075 |        choke me | 
 | 4076 | #endif | 
 | 4077 |  | 
 | 4078 |   ; | 
 | 4079 |   return 0; | 
 | 4080 | } | 
 | 4081 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4082 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4083 |   ac_compiler_gnu=yes | 
 | 4084 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4085 |   ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4086 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4087 | 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] | 4088 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 4089 |  | 
 | 4090 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 4092 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 4093 | if test $ac_compiler_gnu = yes; then | 
 | 4094 |   GCC=yes | 
 | 4095 | else | 
 | 4096 |   GCC= | 
 | 4097 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4098 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 4099 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
 | 4101 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4102 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4103 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4104 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4105 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 4106 |    ac_c_werror_flag=yes | 
 | 4107 |    ac_cv_prog_cc_g=no | 
 | 4108 |    CFLAGS="-g" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4109 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4110 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4111 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4112 | int | 
 | 4113 | main () | 
 | 4114 | { | 
 | 4115 |  | 
 | 4116 |   ; | 
 | 4117 |   return 0; | 
 | 4118 | } | 
 | 4119 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4120 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4121 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4122 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4123 |   CFLAGS="" | 
 | 4124 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4125 | /* end confdefs.h.  */ | 
 | 4126 |  | 
 | 4127 | int | 
 | 4128 | main () | 
 | 4129 | { | 
 | 4130 |  | 
 | 4131 |   ; | 
 | 4132 |   return 0; | 
 | 4133 | } | 
 | 4134 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4135 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4136 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4137 | else | 
 | 4138 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4139 | 	 CFLAGS="-g" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4140 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4141 | /* end confdefs.h.  */ | 
 | 4142 |  | 
 | 4143 | int | 
 | 4144 | main () | 
 | 4145 | { | 
 | 4146 |  | 
 | 4147 |   ; | 
 | 4148 |   return 0; | 
 | 4149 | } | 
 | 4150 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4151 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4152 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4153 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4155 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4157 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4159 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 4160 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
 | 4162 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4163 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4164 |   CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4165 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 4166 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4167 |     CFLAGS="-g -O2" | 
 | 4168 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4169 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4170 |   fi | 
 | 4171 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4172 |   if test "$GCC" = yes; then | 
 | 4173 |     CFLAGS="-O2" | 
 | 4174 |   else | 
 | 4175 |     CFLAGS= | 
 | 4176 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4177 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
 | 4179 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4180 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4181 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4182 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4183 |   ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4184 | ac_save_CC=$CC | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4186 | /* end confdefs.h.  */ | 
 | 4187 | #include <stdarg.h> | 
 | 4188 | #include <stdio.h> | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4189 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4190 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 4191 | struct buf { int x; }; | 
 | 4192 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 4193 | static char *e (p, i) | 
 | 4194 |      char **p; | 
 | 4195 |      int i; | 
 | 4196 | { | 
 | 4197 |   return p[i]; | 
 | 4198 | } | 
 | 4199 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 4200 | { | 
 | 4201 |   char *s; | 
 | 4202 |   va_list v; | 
 | 4203 |   va_start (v,p); | 
 | 4204 |   s = g (p, va_arg (v,int)); | 
 | 4205 |   va_end (v); | 
 | 4206 |   return s; | 
 | 4207 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4208 |  | 
 | 4209 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 4210 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 4211 |    These don't provoke an error unfortunately, instead are silently treated | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4212 |    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] | 4213 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 4214 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4215 |    that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4216 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 4217 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4218 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 4219 |    inside strings and character constants.  */ | 
 | 4220 | #define FOO(x) 'x' | 
 | 4221 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 4222 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4223 | int test (int i, double x); | 
 | 4224 | struct s1 {int (*f) (int a);}; | 
 | 4225 | struct s2 {int (*f) (double a);}; | 
 | 4226 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 4227 | int argc; | 
 | 4228 | char **argv; | 
 | 4229 | int | 
 | 4230 | main () | 
 | 4231 | { | 
 | 4232 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 4233 |   ; | 
 | 4234 |   return 0; | 
 | 4235 | } | 
 | 4236 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4237 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 4238 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4239 | do | 
 | 4240 |   CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4241 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4242 |   ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4243 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4244 | rm -f core conftest.err conftest.$ac_objext | 
 | 4245 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4246 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4247 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4248 | CC=$ac_save_CC | 
 | 4249 |  | 
 | 4250 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4251 | # AC_CACHE_VAL | 
 | 4252 | case "x$ac_cv_prog_cc_c89" in | 
 | 4253 |   x) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4254 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 4255 | $as_echo "none needed" >&6; } ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4256 |   xno) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4257 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 4258 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4259 |   *) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4260 |     CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4261 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
 | 4262 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4263 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4264 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4265 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4266 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4267 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4268 | ac_ext=c | 
 | 4269 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4273 |  | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4274 | if test ! -z "$preset_cflags" | 
 | 4275 | then | 
 | 4276 | 	CFLAGS=$preset_cflags | 
 | 4277 | fi | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4278 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4279 |  | 
 | 4280 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
 | 4282 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4283 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4284 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4285 | if test "${with_cxx_main+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4286 |   withval=$with_cxx_main; | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4287 |  | 
 | 4288 | 	case $withval in | 
 | 4289 | 	no)	with_cxx_main=no | 
 | 4290 | 		MAINCC='$(CC)';; | 
 | 4291 | 	yes)	with_cxx_main=yes | 
 | 4292 | 		MAINCC='$(CXX)';; | 
 | 4293 | 	*)	with_cxx_main=yes | 
 | 4294 | 		MAINCC=$withval | 
 | 4295 | 		if test -z "$CXX" | 
 | 4296 | 		then | 
 | 4297 | 			CXX=$withval | 
 | 4298 | 		fi;; | 
 | 4299 | 	esac | 
 | 4300 | else | 
 | 4301 |  | 
 | 4302 | 	with_cxx_main=no | 
 | 4303 | 	MAINCC='$(CC)' | 
 | 4304 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4305 | fi | 
 | 4306 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
 | 4308 | $as_echo "$with_cxx_main" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4309 |  | 
 | 4310 | preset_cxx="$CXX" | 
 | 4311 | if test -z "$CXX" | 
 | 4312 | then | 
 | 4313 |         case "$CC" in | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4314 |         gcc)    if test -n "$ac_tool_prefix"; then | 
 | 4315 |   # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
 | 4316 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
 | 4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4318 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4319 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4320 |   $as_echo_n "(cached) " >&6 | 
 | 4321 | else | 
 | 4322 |   case $CXX in | 
 | 4323 |   [\\/]* | ?:[\\/]*) | 
 | 4324 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4325 |   ;; | 
 | 4326 |   *) | 
 | 4327 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4328 | for as_dir in notfound | 
 | 4329 | do | 
 | 4330 |   IFS=$as_save_IFS | 
 | 4331 |   test -z "$as_dir" && as_dir=. | 
 | 4332 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4333 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4334 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4335 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4336 |     break 2 | 
 | 4337 |   fi | 
 | 4338 | done | 
 | 4339 |   done | 
 | 4340 | IFS=$as_save_IFS | 
 | 4341 |  | 
 | 4342 |   ;; | 
 | 4343 | esac | 
 | 4344 | fi | 
 | 4345 | CXX=$ac_cv_path_CXX | 
 | 4346 | if test -n "$CXX"; then | 
 | 4347 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4348 | $as_echo "$CXX" >&6; } | 
 | 4349 | else | 
 | 4350 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4351 | $as_echo "no" >&6; } | 
 | 4352 | fi | 
 | 4353 |  | 
 | 4354 |  | 
 | 4355 | fi | 
 | 4356 | if test -z "$ac_cv_path_CXX"; then | 
 | 4357 |   ac_pt_CXX=$CXX | 
 | 4358 |   # Extract the first word of "g++", so it can be a program name with args. | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4359 | set dummy g++; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4361 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4362 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4363 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4364 | else | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4365 |   case $ac_pt_CXX in | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4366 |   [\\/]* | ?:[\\/]*) | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4367 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4368 |   ;; | 
 | 4369 |   *) | 
 | 4370 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4371 | for as_dir in notfound | 
 | 4372 | do | 
 | 4373 |   IFS=$as_save_IFS | 
 | 4374 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4375 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4376 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4377 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4378 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4379 |     break 2 | 
 | 4380 |   fi | 
 | 4381 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4382 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4383 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4384 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4385 |   ;; | 
 | 4386 | esac | 
 | 4387 | fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4388 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4389 | if test -n "$ac_pt_CXX"; then | 
 | 4390 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4391 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4392 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4393 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4394 | $as_echo "no" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4395 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4396 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4397 |   if test "x$ac_pt_CXX" = x; then | 
 | 4398 |     CXX="g++" | 
 | 4399 |   else | 
 | 4400 |     case $cross_compiling:$ac_tool_warned in | 
 | 4401 | yes:) | 
 | 4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4403 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4404 | ac_tool_warned=yes ;; | 
 | 4405 | esac | 
 | 4406 |     CXX=$ac_pt_CXX | 
 | 4407 |   fi | 
 | 4408 | else | 
 | 4409 |   CXX="$ac_cv_path_CXX" | 
 | 4410 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4411 |  ;; | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4412 |         cc)     if test -n "$ac_tool_prefix"; then | 
 | 4413 |   # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
 | 4414 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4416 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4417 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4418 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4419 | else | 
 | 4420 |   case $CXX in | 
 | 4421 |   [\\/]* | ?:[\\/]*) | 
 | 4422 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4423 |   ;; | 
 | 4424 |   *) | 
 | 4425 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4426 | for as_dir in notfound | 
 | 4427 | do | 
 | 4428 |   IFS=$as_save_IFS | 
 | 4429 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4430 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4431 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4432 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4433 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4434 |     break 2 | 
 | 4435 |   fi | 
 | 4436 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4437 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4438 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4439 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4440 |   ;; | 
 | 4441 | esac | 
 | 4442 | fi | 
 | 4443 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4444 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4445 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4446 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4447 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4448 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4449 | $as_echo "no" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4450 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4451 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4452 |  | 
 | 4453 | fi | 
 | 4454 | if test -z "$ac_cv_path_CXX"; then | 
 | 4455 |   ac_pt_CXX=$CXX | 
 | 4456 |   # Extract the first word of "c++", so it can be a program name with args. | 
 | 4457 | set dummy c++; ac_word=$2 | 
 | 4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4459 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4460 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 4461 |   $as_echo_n "(cached) " >&6 | 
 | 4462 | else | 
 | 4463 |   case $ac_pt_CXX in | 
 | 4464 |   [\\/]* | ?:[\\/]*) | 
 | 4465 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 4466 |   ;; | 
 | 4467 |   *) | 
 | 4468 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4469 | for as_dir in notfound | 
 | 4470 | do | 
 | 4471 |   IFS=$as_save_IFS | 
 | 4472 |   test -z "$as_dir" && as_dir=. | 
 | 4473 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4474 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4475 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4476 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4477 |     break 2 | 
 | 4478 |   fi | 
 | 4479 | done | 
 | 4480 |   done | 
 | 4481 | IFS=$as_save_IFS | 
 | 4482 |  | 
 | 4483 |   ;; | 
 | 4484 | esac | 
 | 4485 | fi | 
 | 4486 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4487 | if test -n "$ac_pt_CXX"; then | 
 | 4488 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4489 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 4490 | else | 
 | 4491 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4492 | $as_echo "no" >&6; } | 
 | 4493 | fi | 
 | 4494 |  | 
 | 4495 |   if test "x$ac_pt_CXX" = x; then | 
 | 4496 |     CXX="c++" | 
 | 4497 |   else | 
 | 4498 |     case $cross_compiling:$ac_tool_warned in | 
 | 4499 | yes:) | 
 | 4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4501 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4502 | ac_tool_warned=yes ;; | 
 | 4503 | esac | 
 | 4504 |     CXX=$ac_pt_CXX | 
 | 4505 |   fi | 
 | 4506 | else | 
 | 4507 |   CXX="$ac_cv_path_CXX" | 
 | 4508 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4509 |  ;; | 
 | 4510 |         esac | 
 | 4511 | 	if test "$CXX" = "notfound" | 
 | 4512 | 	then | 
 | 4513 | 		CXX="" | 
 | 4514 | 	fi | 
 | 4515 | fi | 
 | 4516 | if test -z "$CXX" | 
 | 4517 | then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4518 | 	if test -n "$ac_tool_prefix"; then | 
 | 4519 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 4520 |   do | 
 | 4521 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 4522 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4524 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4525 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4526 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4527 | else | 
 | 4528 |   if test -n "$CXX"; then | 
 | 4529 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 4530 | else | 
 | 4531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4532 | for as_dir in $PATH | 
 | 4533 | do | 
 | 4534 |   IFS=$as_save_IFS | 
 | 4535 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4536 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4537 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4538 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4539 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4540 |     break 2 | 
 | 4541 |   fi | 
 | 4542 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4543 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4544 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4545 |  | 
 | 4546 | fi | 
 | 4547 | fi | 
 | 4548 | CXX=$ac_cv_prog_CXX | 
 | 4549 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4550 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4551 | $as_echo "$CXX" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4552 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4553 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4554 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4555 | fi | 
 | 4556 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4557 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4558 |     test -n "$CXX" && break | 
 | 4559 |   done | 
 | 4560 | fi | 
 | 4561 | if test -z "$CXX"; then | 
 | 4562 |   ac_ct_CXX=$CXX | 
 | 4563 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 4564 | do | 
 | 4565 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4566 | set dummy $ac_prog; ac_word=$2 | 
 | 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4568 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4569 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
 | 4570 |   $as_echo_n "(cached) " >&6 | 
 | 4571 | else | 
 | 4572 |   if test -n "$ac_ct_CXX"; then | 
 | 4573 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 4574 | else | 
 | 4575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4576 | for as_dir in $PATH | 
 | 4577 | do | 
 | 4578 |   IFS=$as_save_IFS | 
 | 4579 |   test -z "$as_dir" && as_dir=. | 
 | 4580 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4581 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4582 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 4583 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4584 |     break 2 | 
 | 4585 |   fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4586 | done | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4587 |   done | 
 | 4588 | IFS=$as_save_IFS | 
 | 4589 |  | 
 | 4590 | fi | 
 | 4591 | fi | 
 | 4592 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 4593 | if test -n "$ac_ct_CXX"; then | 
 | 4594 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
 | 4595 | $as_echo "$ac_ct_CXX" >&6; } | 
 | 4596 | else | 
 | 4597 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4598 | $as_echo "no" >&6; } | 
 | 4599 | fi | 
 | 4600 |  | 
 | 4601 |  | 
 | 4602 |   test -n "$ac_ct_CXX" && break | 
 | 4603 | done | 
 | 4604 |  | 
 | 4605 |   if test "x$ac_ct_CXX" = x; then | 
 | 4606 |     CXX="notfound" | 
 | 4607 |   else | 
 | 4608 |     case $cross_compiling:$ac_tool_warned in | 
 | 4609 | yes:) | 
 | 4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4611 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4612 | ac_tool_warned=yes ;; | 
 | 4613 | esac | 
 | 4614 |     CXX=$ac_ct_CXX | 
 | 4615 |   fi | 
 | 4616 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4617 |  | 
 | 4618 | 	if test "$CXX" = "notfound" | 
 | 4619 | 	then | 
 | 4620 | 		CXX="" | 
 | 4621 | 	fi | 
 | 4622 | fi | 
 | 4623 | if test "$preset_cxx" != "$CXX" | 
 | 4624 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4625 |         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4626 |  | 
 | 4627 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4628 |   If this is not intended, then set CXX on the configure command line. | 
 | 4629 |   " >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4630 | $as_echo "$as_me: WARNING: | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4631 |  | 
 | 4632 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4633 |   If this is not intended, then set CXX on the configure command line. | 
 | 4634 |   " >&2;} | 
 | 4635 | fi | 
 | 4636 |  | 
| doko@python.org | 4e63fbe | 2013-01-25 13:08:27 +0100 | [diff] [blame] | 4637 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
 | 4638 |  | 
 | 4639 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4640 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4641 | # checks for UNIX variants that set C preprocessor variables | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4642 |  | 
 | 4643 | ac_ext=c | 
 | 4644 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
 | 4649 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4650 | # On Suns, sometimes $CPP names a directory. | 
 | 4651 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 4652 |   CPP= | 
 | 4653 | fi | 
 | 4654 | if test -z "$CPP"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4655 |   if ${ac_cv_prog_CPP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4656 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4657 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4658 |       # Double quotes because CPP needs to be expanded | 
 | 4659 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 4660 |     do | 
 | 4661 |       ac_preproc_ok=false | 
 | 4662 | for ac_c_preproc_warn_flag in '' yes | 
 | 4663 | do | 
 | 4664 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4665 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4666 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4667 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4668 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4669 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4670 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4671 | /* end confdefs.h.  */ | 
 | 4672 | #ifdef __STDC__ | 
 | 4673 | # include <limits.h> | 
 | 4674 | #else | 
 | 4675 | # include <assert.h> | 
 | 4676 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4677 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4678 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4679 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4680 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4681 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4682 |   # Broken: fails on valid input. | 
 | 4683 | continue | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4684 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4685 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4686 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4687 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4688 |   # can be detected and how. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4689 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4690 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4691 | #include <ac_nonexistent.h> | 
 | 4692 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4693 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4694 |   # Broken: success on invalid input. | 
 | 4695 | continue | 
 | 4696 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4697 |   # Passes both tests. | 
 | 4698 | ac_preproc_ok=: | 
 | 4699 | break | 
 | 4700 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4701 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4702 |  | 
 | 4703 | done | 
 | 4704 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4705 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4706 | if $ac_preproc_ok; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4707 |   break | 
 | 4708 | fi | 
 | 4709 |  | 
 | 4710 |     done | 
 | 4711 |     ac_cv_prog_CPP=$CPP | 
 | 4712 |  | 
 | 4713 | fi | 
 | 4714 |   CPP=$ac_cv_prog_CPP | 
 | 4715 | else | 
 | 4716 |   ac_cv_prog_CPP=$CPP | 
 | 4717 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
 | 4719 | $as_echo "$CPP" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4720 | ac_preproc_ok=false | 
 | 4721 | for ac_c_preproc_warn_flag in '' yes | 
 | 4722 | do | 
 | 4723 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4724 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4725 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4726 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4727 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4728 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4729 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4730 | /* end confdefs.h.  */ | 
 | 4731 | #ifdef __STDC__ | 
 | 4732 | # include <limits.h> | 
 | 4733 | #else | 
 | 4734 | # include <assert.h> | 
 | 4735 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4736 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4737 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4738 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4739 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4740 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4741 |   # Broken: fails on valid input. | 
 | 4742 | continue | 
 | 4743 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4744 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4745 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4746 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4747 |   # can be detected and how. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4748 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4749 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4750 | #include <ac_nonexistent.h> | 
 | 4751 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4752 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4753 |   # Broken: success on invalid input. | 
 | 4754 | continue | 
 | 4755 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4756 |   # Passes both tests. | 
 | 4757 | ac_preproc_ok=: | 
 | 4758 | break | 
 | 4759 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4760 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4761 |  | 
 | 4762 | done | 
 | 4763 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4764 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4765 | if $ac_preproc_ok; then : | 
 | 4766 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4767 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4768 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4769 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4770 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4771 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4772 | fi | 
 | 4773 |  | 
 | 4774 | ac_ext=c | 
 | 4775 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4779 |  | 
 | 4780 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
 | 4782 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4783 | if ${ac_cv_path_GREP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4784 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4785 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4786 |   if test -z "$GREP"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4787 |   ac_path_GREP_found=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4788 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4789 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4790 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4791 | do | 
 | 4792 |   IFS=$as_save_IFS | 
 | 4793 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4794 |     for ac_prog in grep ggrep; do | 
 | 4795 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4796 |       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4797 |       as_fn_executable_p "$ac_path_GREP" || continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4798 | # Check for GNU ac_path_GREP and select it if it is found. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4799 |   # Check for GNU $ac_path_GREP | 
 | 4800 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 4801 | *GNU*) | 
 | 4802 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 4803 | *) | 
 | 4804 |   ac_count=0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4805 |   $as_echo_n 0123456789 >"conftest.in" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4806 |   while : | 
 | 4807 |   do | 
 | 4808 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4809 |     mv "conftest.tmp" "conftest.in" | 
 | 4810 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4811 |     $as_echo 'GREP' >> "conftest.nl" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4812 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4813 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4814 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4815 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 4816 |       # Best one so far, save it but keep looking for a better one | 
 | 4817 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 4818 |       ac_path_GREP_max=$ac_count | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4819 |     fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4820 |     # 10*(2^10) chars as input seems more than enough | 
 | 4821 |     test $ac_count -gt 10 && break | 
 | 4822 |   done | 
 | 4823 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4824 | esac | 
 | 4825 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4826 |       $ac_path_GREP_found && break 3 | 
 | 4827 |     done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4828 |   done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4829 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4830 | IFS=$as_save_IFS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4831 |   if test -z "$ac_cv_path_GREP"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4832 |     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4833 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4834 | else | 
 | 4835 |   ac_cv_path_GREP=$GREP | 
 | 4836 | fi | 
 | 4837 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4838 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
 | 4840 | $as_echo "$ac_cv_path_GREP" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4841 |  GREP="$ac_cv_path_GREP" | 
 | 4842 |  | 
 | 4843 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
 | 4845 | $as_echo_n "checking for egrep... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4846 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4847 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4848 | else | 
 | 4849 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 4850 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 4851 |    else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4852 |      if test -z "$EGREP"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4853 |   ac_path_EGREP_found=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4854 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4855 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4856 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4857 | do | 
 | 4858 |   IFS=$as_save_IFS | 
 | 4859 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4860 |     for ac_prog in egrep; do | 
 | 4861 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4862 |       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4863 |       as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4864 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4865 |   # Check for GNU $ac_path_EGREP | 
 | 4866 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 4867 | *GNU*) | 
 | 4868 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 4869 | *) | 
 | 4870 |   ac_count=0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4871 |   $as_echo_n 0123456789 >"conftest.in" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4872 |   while : | 
 | 4873 |   do | 
 | 4874 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4875 |     mv "conftest.tmp" "conftest.in" | 
 | 4876 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4877 |     $as_echo 'EGREP' >> "conftest.nl" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4878 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4879 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4880 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4881 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 4882 |       # Best one so far, save it but keep looking for a better one | 
 | 4883 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 4884 |       ac_path_EGREP_max=$ac_count | 
 | 4885 |     fi | 
 | 4886 |     # 10*(2^10) chars as input seems more than enough | 
 | 4887 |     test $ac_count -gt 10 && break | 
 | 4888 |   done | 
 | 4889 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4890 | esac | 
 | 4891 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4892 |       $ac_path_EGREP_found && break 3 | 
 | 4893 |     done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4894 |   done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4895 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4896 | IFS=$as_save_IFS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4897 |   if test -z "$ac_cv_path_EGREP"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4898 |     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4899 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4900 | else | 
 | 4901 |   ac_cv_path_EGREP=$EGREP | 
 | 4902 | fi | 
 | 4903 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4904 |    fi | 
 | 4905 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
 | 4907 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4908 |  EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4909 |  | 
 | 4910 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 4912 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4913 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4914 |   $as_echo_n "(cached) " >&6 | 
 | 4915 | else | 
 | 4916 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4917 | /* end confdefs.h.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4918 | #include <stdlib.h> | 
 | 4919 | #include <stdarg.h> | 
 | 4920 | #include <string.h> | 
 | 4921 | #include <float.h> | 
 | 4922 |  | 
 | 4923 | int | 
 | 4924 | main () | 
 | 4925 | { | 
 | 4926 |  | 
 | 4927 |   ; | 
 | 4928 |   return 0; | 
 | 4929 | } | 
 | 4930 | _ACEOF | 
 | 4931 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 4932 |   ac_cv_header_stdc=yes | 
 | 4933 | else | 
 | 4934 |   ac_cv_header_stdc=no | 
 | 4935 | fi | 
 | 4936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4937 |  | 
 | 4938 | if test $ac_cv_header_stdc = yes; then | 
 | 4939 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 4940 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4941 | /* end confdefs.h.  */ | 
 | 4942 | #include <string.h> | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4943 |  | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4944 | _ACEOF | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4945 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4946 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4947 |  | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4948 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4949 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4950 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4951 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4952 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4953 | fi | 
 | 4954 |  | 
 | 4955 | if test $ac_cv_header_stdc = yes; then | 
 | 4956 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 4957 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4958 | /* end confdefs.h.  */ | 
 | 4959 | #include <stdlib.h> | 
 | 4960 |  | 
 | 4961 | _ACEOF | 
 | 4962 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 4963 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 4964 |  | 
 | 4965 | else | 
 | 4966 |   ac_cv_header_stdc=no | 
 | 4967 | fi | 
 | 4968 | rm -f conftest* | 
 | 4969 |  | 
 | 4970 | fi | 
 | 4971 |  | 
 | 4972 | if test $ac_cv_header_stdc = yes; then | 
 | 4973 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 4974 |   if test "$cross_compiling" = yes; then : | 
 | 4975 |   : | 
 | 4976 | else | 
 | 4977 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4978 | /* end confdefs.h.  */ | 
 | 4979 | #include <ctype.h> | 
 | 4980 | #include <stdlib.h> | 
 | 4981 | #if ((' ' & 0x0FF) == 0x020) | 
 | 4982 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 4983 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 4984 | #else | 
 | 4985 | # define ISLOWER(c) \ | 
 | 4986 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 4987 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 4988 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 4989 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 4990 | #endif | 
 | 4991 |  | 
 | 4992 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 4993 | int | 
 | 4994 | main () | 
 | 4995 | { | 
 | 4996 |   int i; | 
 | 4997 |   for (i = 0; i < 256; i++) | 
 | 4998 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 4999 | 	|| toupper (i) != TOUPPER (i)) | 
 | 5000 |       return 2; | 
 | 5001 |   return 0; | 
 | 5002 | } | 
 | 5003 | _ACEOF | 
 | 5004 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 5005 |  | 
 | 5006 | else | 
 | 5007 |   ac_cv_header_stdc=no | 
 | 5008 | fi | 
 | 5009 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5010 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 5011 | fi | 
 | 5012 |  | 
 | 5013 | fi | 
 | 5014 | fi | 
 | 5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 5016 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 5017 | if test $ac_cv_header_stdc = yes; then | 
 | 5018 |  | 
 | 5019 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
 | 5020 |  | 
 | 5021 | fi | 
 | 5022 |  | 
 | 5023 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 5024 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 5025 | 		  inttypes.h stdint.h unistd.h | 
 | 5026 | do : | 
 | 5027 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 5028 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 5029 | " | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5030 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5031 |   cat >>confdefs.h <<_ACEOF | 
 | 5032 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 5033 | _ACEOF | 
 | 5034 |  | 
 | 5035 | fi | 
 | 5036 |  | 
 | 5037 | done | 
 | 5038 |  | 
 | 5039 |  | 
 | 5040 |  | 
 | 5041 |   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5042 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5043 |   MINIX=yes | 
 | 5044 | else | 
 | 5045 |   MINIX= | 
 | 5046 | fi | 
 | 5047 |  | 
 | 5048 |  | 
 | 5049 |   if test "$MINIX" = yes; then | 
 | 5050 |  | 
 | 5051 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
 | 5052 |  | 
 | 5053 |  | 
 | 5054 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
 | 5055 |  | 
 | 5056 |  | 
 | 5057 | $as_echo "#define _MINIX 1" >>confdefs.h | 
 | 5058 |  | 
 | 5059 |   fi | 
 | 5060 |  | 
 | 5061 |  | 
 | 5062 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
 | 5063 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5064 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5065 |   $as_echo_n "(cached) " >&6 | 
 | 5066 | else | 
 | 5067 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5068 | /* end confdefs.h.  */ | 
 | 5069 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5070 | #         define __EXTENSIONS__ 1 | 
 | 5071 |           $ac_includes_default | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5072 | int | 
 | 5073 | main () | 
 | 5074 | { | 
 | 5075 |  | 
 | 5076 |   ; | 
 | 5077 |   return 0; | 
 | 5078 | } | 
 | 5079 | _ACEOF | 
 | 5080 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5081 |   ac_cv_safe_to_define___extensions__=yes | 
 | 5082 | else | 
 | 5083 |   ac_cv_safe_to_define___extensions__=no | 
 | 5084 | fi | 
 | 5085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5086 | fi | 
 | 5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
 | 5088 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
 | 5089 |   test $ac_cv_safe_to_define___extensions__ = yes && | 
 | 5090 |     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
 | 5091 |  | 
 | 5092 |   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
 | 5093 |  | 
 | 5094 |   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
 | 5095 |  | 
 | 5096 |   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
 | 5097 |  | 
 | 5098 |   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
 | 5099 |  | 
 | 5100 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5101 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5102 | # Check for unsupported systems | 
 | 5103 | case $ac_sys_system/$ac_sys_release in | 
 | 5104 | atheos*|Linux*/1*) | 
 | 5105 |    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
 | 5106 |    echo See README for details. | 
 | 5107 |    exit 1;; | 
 | 5108 | esac | 
 | 5109 |  | 
 | 5110 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
 | 5112 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5113 |  | 
 | 5114 | # Check whether --with-suffix was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5115 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5116 |   withval=$with_suffix; | 
 | 5117 | 	case $withval in | 
 | 5118 | 	no)	EXEEXT=;; | 
 | 5119 | 	yes)	EXEEXT=.exe;; | 
 | 5120 | 	*)	EXEEXT=$withval;; | 
 | 5121 | 	esac | 
 | 5122 | fi | 
 | 5123 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
 | 5125 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5126 |  | 
 | 5127 | # Test whether we're running on a non-case-sensitive system, in which | 
 | 5128 | # case we give a warning if no ext is given | 
 | 5129 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
 | 5131 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5132 | if test ! -d CaseSensitiveTestDir; then | 
 | 5133 | mkdir CaseSensitiveTestDir | 
 | 5134 | fi | 
 | 5135 |  | 
 | 5136 | if test -d casesensitivetestdir | 
 | 5137 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5138 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5139 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5140 |     BUILDEXEEXT=.exe | 
 | 5141 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5142 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5143 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5144 | 	BUILDEXEEXT=$EXEEXT | 
 | 5145 | fi | 
 | 5146 | rmdir CaseSensitiveTestDir | 
 | 5147 |  | 
 | 5148 | case $MACHDEP in | 
 | 5149 | bsdos*) | 
 | 5150 |     case $CC in | 
 | 5151 |     gcc) CC="$CC -D_HAVE_BSDI";; | 
 | 5152 |     esac;; | 
 | 5153 | esac | 
 | 5154 |  | 
 | 5155 | case $ac_sys_system in | 
 | 5156 | hp*|HP*) | 
 | 5157 |     case $CC in | 
 | 5158 |     cc|*/cc) CC="$CC -Ae";; | 
 | 5159 |     esac;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5160 | SunOS*) | 
 | 5161 |     # Some functions have a prototype only with that define, e.g. confstr | 
 | 5162 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5163 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5164 |  | 
 | 5165 |     ;; | 
 | 5166 | esac | 
 | 5167 |  | 
 | 5168 |  | 
 | 5169 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
 | 5171 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5172 | if test -z "$LIBRARY" | 
 | 5173 | then | 
 | 5174 | 	LIBRARY='libpython$(VERSION).a' | 
 | 5175 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
 | 5177 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5178 |  | 
 | 5179 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
 | 5180 | # name of the library into which to insert object files). BLDLIBRARY is also | 
 | 5181 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
 | 5182 | # is blank as the main program is not linked directly against LDLIBRARY. | 
 | 5183 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
 | 5184 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
 | 5185 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
 | 5186 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
 | 5187 | # | 
 | 5188 | # RUNSHARED is used to run shared python without installed libraries | 
 | 5189 | # | 
 | 5190 | # INSTSONAME is the name of the shared library that will be use to install | 
 | 5191 | # on the system - some systems like version suffix, others don't | 
 | 5192 |  | 
 | 5193 |  | 
 | 5194 |  | 
 | 5195 |  | 
 | 5196 |  | 
 | 5197 |  | 
 | 5198 | LDLIBRARY="$LIBRARY" | 
 | 5199 | BLDLIBRARY='$(LDLIBRARY)' | 
 | 5200 | INSTSONAME='$(LDLIBRARY)' | 
 | 5201 | DLLLIBRARY='' | 
 | 5202 | LDLIBRARYDIR='' | 
 | 5203 | RUNSHARED='' | 
 | 5204 |  | 
 | 5205 | # LINKCC is the command that links the python executable -- default is $(CC). | 
 | 5206 | # If CXX is set, and if it is needed to link a main function that was | 
 | 5207 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
 | 5208 | # python might then depend on the C++ runtime | 
 | 5209 | # This is altered for AIX in order to build the export list before | 
 | 5210 | # linking. | 
 | 5211 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
 | 5213 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5214 | if test -z "$LINKCC" | 
 | 5215 | then | 
 | 5216 | 	LINKCC='$(PURIFY) $(MAINCC)' | 
 | 5217 | 	case $ac_sys_system in | 
 | 5218 | 	AIX*) | 
 | 5219 | 	   exp_extra="\"\"" | 
 | 5220 | 	   if test $ac_sys_release -ge 5 -o \ | 
 | 5221 | 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
 | 5222 | 	       exp_extra="." | 
 | 5223 | 	   fi | 
 | 5224 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5225 | 	QNX*) | 
 | 5226 | 	   # qcc must be used because the other compilers do not | 
 | 5227 | 	   # support -N. | 
 | 5228 | 	   LINKCC=qcc;; | 
 | 5229 | 	esac | 
 | 5230 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
 | 5232 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5233 |  | 
 | 5234 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
 | 5235 | # make sure we default having it set to "no": this is used by | 
 | 5236 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
 | 5237 | # to linker command lines, and failing to detect GNU ld simply results | 
 | 5238 | # in the same bahaviour as before. | 
 | 5239 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 5241 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5242 | ac_prog=ld | 
 | 5243 | if test "$GCC" = yes; then | 
 | 5244 |        ac_prog=`$CC -print-prog-name=ld` | 
 | 5245 | fi | 
 | 5246 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
 | 5247 |       *GNU*) | 
 | 5248 |           GNULD=yes;; | 
 | 5249 |       *) | 
 | 5250 |           GNULD=no;; | 
 | 5251 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
 | 5253 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5254 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
 | 5256 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5257 | # Check whether --enable-shared was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5258 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5259 |   enableval=$enable_shared; | 
 | 5260 | fi | 
 | 5261 |  | 
 | 5262 |  | 
 | 5263 | if test -z "$enable_shared" | 
 | 5264 | then | 
 | 5265 |   case $ac_sys_system in | 
 | 5266 |   CYGWIN* | atheos*) | 
 | 5267 |     enable_shared="yes";; | 
 | 5268 |   *) | 
 | 5269 |     enable_shared="no";; | 
 | 5270 |   esac | 
 | 5271 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
 | 5273 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5274 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
 | 5276 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5277 | # Check whether --enable-profiling was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5278 | if test "${enable_profiling+set}" = set; then : | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5279 |   enableval=$enable_profiling; | 
 | 5280 | fi | 
 | 5281 |  | 
 | 5282 | if test "x$enable_profiling" = xyes; then | 
 | 5283 |   ac_save_cc="$CC" | 
| Benjamin Peterson | b9be7bb | 2013-03-26 08:55:37 -0400 | [diff] [blame^] | 5284 |   CC="$CC -pg" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5285 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5286 | /* end confdefs.h.  */ | 
 | 5287 | int main() { return 0; } | 
 | 5288 | _ACEOF | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5289 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 5290 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5291 | else | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5292 |   enable_profiling=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5293 | fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5294 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 5295 |     conftest$ac_exeext conftest.$ac_ext | 
 | 5296 |   CC="$ac_save_cc" | 
 | 5297 | else | 
 | 5298 |   enable_profiling=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5299 | fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
 | 5301 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5302 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5303 | if test "x$enable_profiling" = xyes; then | 
 | 5304 |   BASECFLAGS="-pg $BASECFLAGS" | 
 | 5305 |   LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5306 | fi | 
 | 5307 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
 | 5309 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5310 |  | 
 | 5311 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
 | 5312 | # library that we build, but we do not want to link against it (we | 
 | 5313 | # will find it with a -framework option). For this reason there is an | 
 | 5314 | # extra variable BLDLIBRARY against which Python and the extension | 
 | 5315 | # modules are linked, BLDLIBRARY. This is normally the same as | 
 | 5316 | # LDLIBRARY, but empty for MacOSX framework builds. | 
 | 5317 | if test "$enable_framework" | 
 | 5318 | then | 
 | 5319 |   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 5320 |   RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" | 
 | 5321 |   BLDLIBRARY='' | 
 | 5322 | else | 
 | 5323 |   BLDLIBRARY='$(LDLIBRARY)' | 
 | 5324 | fi | 
 | 5325 |  | 
 | 5326 | # Other platforms follow | 
 | 5327 | if test $enable_shared = "yes"; then | 
 | 5328 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5329 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5330 |  | 
 | 5331 |   case $ac_sys_system in | 
 | 5332 |     BeOS*) | 
 | 5333 |           LDLIBRARY='libpython$(VERSION).so' | 
 | 5334 |           ;; | 
 | 5335 |     CYGWIN*) | 
 | 5336 |           LDLIBRARY='libpython$(VERSION).dll.a' | 
 | 5337 |           DLLLIBRARY='libpython$(VERSION).dll' | 
 | 5338 |           ;; | 
 | 5339 |     SunOS*) | 
 | 5340 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 5341 | 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' | 
 | 5342 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 5343 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
 | 5344 |           ;; | 
| Charles-François Natali | 3de8c73 | 2011-07-24 22:33:35 +0200 | [diff] [blame] | 5345 |     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5346 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 5347 | 	  BLDLIBRARY='-L. -lpython$(VERSION)' | 
 | 5348 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 5349 | 	  case $ac_sys_system in | 
 | 5350 | 	      FreeBSD*) | 
 | 5351 | 		SOVERSION=`echo $SOVERSION|cut -d "." -f 1` | 
 | 5352 | 		;; | 
 | 5353 | 	  esac | 
 | 5354 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
 | 5355 | 	  ;; | 
 | 5356 |     hp*|HP*) | 
 | 5357 | 	  case `uname -m` in | 
 | 5358 | 		ia64) | 
 | 5359 | 			LDLIBRARY='libpython$(VERSION).so' | 
 | 5360 | 			;; | 
 | 5361 | 		*) | 
 | 5362 | 			LDLIBRARY='libpython$(VERSION).sl' | 
 | 5363 | 			;; | 
 | 5364 | 	  esac | 
 | 5365 | 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' | 
 | 5366 | 	  RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} | 
 | 5367 | 	  ;; | 
 | 5368 |     OSF*) | 
 | 5369 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 5370 | 	  BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' | 
 | 5371 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 5372 | 	  ;; | 
 | 5373 |     atheos*) | 
 | 5374 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 5375 | 	  BLDLIBRARY='-L. -lpython$(VERSION)' | 
 | 5376 | 	  RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} | 
 | 5377 | 	  ;; | 
 | 5378 |     Darwin*) | 
 | 5379 |     	LDLIBRARY='libpython$(VERSION).dylib' | 
 | 5380 | 	BLDLIBRARY='-L. -lpython$(VERSION)' | 
 | 5381 | 	RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' | 
 | 5382 | 	;; | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 5383 |     AIX*) | 
 | 5384 | 	LDLIBRARY='libpython$(VERSION).so' | 
 | 5385 | 	RUNSHARED=LIBPATH=`pwd`:${LIBPATH} | 
 | 5386 | 	;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5387 |  | 
 | 5388 |   esac | 
 | 5389 | else # shared is disabled | 
 | 5390 |   case $ac_sys_system in | 
 | 5391 |     CYGWIN*) | 
 | 5392 |           BLDLIBRARY='$(LIBRARY)' | 
 | 5393 |           LDLIBRARY='libpython$(VERSION).dll.a' | 
 | 5394 |           ;; | 
 | 5395 |   esac | 
 | 5396 | fi | 
 | 5397 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5398 | if test "$cross_compiling" = yes; then | 
 | 5399 | 	RUNSHARED= | 
 | 5400 | fi | 
 | 5401 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
 | 5403 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5404 |  | 
 | 5405 | if test -n "$ac_tool_prefix"; then | 
 | 5406 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 5407 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5409 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5410 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5411 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5412 | else | 
 | 5413 |   if test -n "$RANLIB"; then | 
 | 5414 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 5415 | else | 
 | 5416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5417 | for as_dir in $PATH | 
 | 5418 | do | 
 | 5419 |   IFS=$as_save_IFS | 
 | 5420 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5421 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5422 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5423 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5424 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5425 |     break 2 | 
 | 5426 |   fi | 
 | 5427 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5428 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5429 | IFS=$as_save_IFS | 
 | 5430 |  | 
 | 5431 | fi | 
 | 5432 | fi | 
 | 5433 | RANLIB=$ac_cv_prog_RANLIB | 
 | 5434 | if test -n "$RANLIB"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5435 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
 | 5436 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5437 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5438 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5439 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5440 | fi | 
 | 5441 |  | 
 | 5442 |  | 
 | 5443 | fi | 
 | 5444 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 5445 |   ac_ct_RANLIB=$RANLIB | 
 | 5446 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 5447 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5449 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5450 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5451 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5452 | else | 
 | 5453 |   if test -n "$ac_ct_RANLIB"; then | 
 | 5454 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 5455 | else | 
 | 5456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5457 | for as_dir in $PATH | 
 | 5458 | do | 
 | 5459 |   IFS=$as_save_IFS | 
 | 5460 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5461 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5462 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5463 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5464 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5465 |     break 2 | 
 | 5466 |   fi | 
 | 5467 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5468 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5469 | IFS=$as_save_IFS | 
 | 5470 |  | 
 | 5471 | fi | 
 | 5472 | fi | 
 | 5473 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 5474 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5475 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
 | 5476 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5477 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5478 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5479 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5480 | fi | 
 | 5481 |  | 
 | 5482 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 5483 |     RANLIB=":" | 
 | 5484 |   else | 
 | 5485 |     case $cross_compiling:$ac_tool_warned in | 
 | 5486 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5488 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5489 | ac_tool_warned=yes ;; | 
 | 5490 | esac | 
 | 5491 |     RANLIB=$ac_ct_RANLIB | 
 | 5492 |   fi | 
 | 5493 | else | 
 | 5494 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 5495 | fi | 
 | 5496 |  | 
 | 5497 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5498 | if test -n "$ac_tool_prefix"; then | 
 | 5499 |   for ac_prog in ar aal | 
 | 5500 |   do | 
 | 5501 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 5502 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5504 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5505 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5506 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5507 | else | 
 | 5508 |   if test -n "$AR"; then | 
 | 5509 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 5510 | else | 
 | 5511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5512 | for as_dir in $PATH | 
 | 5513 | do | 
 | 5514 |   IFS=$as_save_IFS | 
 | 5515 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5516 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5517 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5518 |     ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5519 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5520 |     break 2 | 
 | 5521 |   fi | 
 | 5522 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5523 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5524 | IFS=$as_save_IFS | 
 | 5525 |  | 
 | 5526 | fi | 
 | 5527 | fi | 
 | 5528 | AR=$ac_cv_prog_AR | 
 | 5529 | if test -n "$AR"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5530 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
 | 5531 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5532 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5533 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5534 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5535 | fi | 
 | 5536 |  | 
 | 5537 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5538 |     test -n "$AR" && break | 
 | 5539 |   done | 
 | 5540 | fi | 
 | 5541 | if test -z "$AR"; then | 
 | 5542 |   ac_ct_AR=$AR | 
 | 5543 |   for ac_prog in ar aal | 
 | 5544 | do | 
 | 5545 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5546 | set dummy $ac_prog; ac_word=$2 | 
 | 5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5548 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5549 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
 | 5550 |   $as_echo_n "(cached) " >&6 | 
 | 5551 | else | 
 | 5552 |   if test -n "$ac_ct_AR"; then | 
 | 5553 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 5554 | else | 
 | 5555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5556 | for as_dir in $PATH | 
 | 5557 | do | 
 | 5558 |   IFS=$as_save_IFS | 
 | 5559 |   test -z "$as_dir" && as_dir=. | 
 | 5560 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5561 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5562 |     ac_cv_prog_ac_ct_AR="$ac_prog" | 
 | 5563 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5564 |     break 2 | 
 | 5565 |   fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5566 | done | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5567 |   done | 
 | 5568 | IFS=$as_save_IFS | 
 | 5569 |  | 
 | 5570 | fi | 
 | 5571 | fi | 
 | 5572 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 5573 | if test -n "$ac_ct_AR"; then | 
 | 5574 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
 | 5575 | $as_echo "$ac_ct_AR" >&6; } | 
 | 5576 | else | 
 | 5577 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5578 | $as_echo "no" >&6; } | 
 | 5579 | fi | 
 | 5580 |  | 
 | 5581 |  | 
 | 5582 |   test -n "$ac_ct_AR" && break | 
 | 5583 | done | 
 | 5584 |  | 
 | 5585 |   if test "x$ac_ct_AR" = x; then | 
 | 5586 |     AR="ar" | 
 | 5587 |   else | 
 | 5588 |     case $cross_compiling:$ac_tool_warned in | 
 | 5589 | yes:) | 
 | 5590 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5591 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5592 | ac_tool_warned=yes ;; | 
 | 5593 | esac | 
 | 5594 |     AR=$ac_ct_AR | 
 | 5595 |   fi | 
 | 5596 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5597 |  | 
 | 5598 |  | 
 | 5599 | # tweak ARFLAGS only if the user didn't set it on the command line | 
 | 5600 |  | 
 | 5601 | if test -z "$ARFLAGS" | 
 | 5602 | then | 
 | 5603 |         ARFLAGS="rc" | 
 | 5604 | fi | 
 | 5605 |  | 
 | 5606 |  | 
 | 5607 | # Extract the first word of "svnversion", so it can be a program name with args. | 
 | 5608 | set dummy svnversion; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5610 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5611 | if ${ac_cv_prog_SVNVERSION+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5612 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5613 | else | 
 | 5614 |   if test -n "$SVNVERSION"; then | 
 | 5615 |   ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. | 
 | 5616 | else | 
 | 5617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5618 | for as_dir in $PATH | 
 | 5619 | do | 
 | 5620 |   IFS=$as_save_IFS | 
 | 5621 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5622 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5623 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5624 |     ac_cv_prog_SVNVERSION="found" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5625 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5626 |     break 2 | 
 | 5627 |   fi | 
 | 5628 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5629 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5630 | IFS=$as_save_IFS | 
 | 5631 |  | 
 | 5632 |   test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" | 
 | 5633 | fi | 
 | 5634 | fi | 
 | 5635 | SVNVERSION=$ac_cv_prog_SVNVERSION | 
 | 5636 | if test -n "$SVNVERSION"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5637 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 | 
 | 5638 | $as_echo "$SVNVERSION" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5639 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5640 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5641 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5642 | fi | 
 | 5643 |  | 
 | 5644 |  | 
 | 5645 | if test $SVNVERSION = found | 
 | 5646 | then | 
 | 5647 | 	SVNVERSION="svnversion \$(srcdir)" | 
 | 5648 | else | 
 | 5649 | 	SVNVERSION="echo Unversioned directory" | 
 | 5650 | fi | 
 | 5651 |  | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 5652 |  | 
| Trent Nelson | abf2051 | 2012-10-17 04:32:49 -0400 | [diff] [blame] | 5653 | if test "$abs_srcdir" != "$abs_builddir"; then | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 5654 |     # If we're building out-of-tree make sure Include (in the current dir) | 
 | 5655 |     # gets picked up before its $srcdir counterpart in order for Python-ast.h | 
 | 5656 |     # and graminit.h to get picked up from the correct directory. | 
 | 5657 |     # (A side effect of this is that these resources will automatically be | 
 | 5658 |     #  regenerated when building out-of-tree, regardless of whether or not | 
 | 5659 |     #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
 | 5660 |     #  off.) | 
 | 5661 |     BASECPPFLAGS="-IInclude" | 
 | 5662 | else | 
 | 5663 |     BASECPPFLAGS="" | 
 | 5664 | fi | 
 | 5665 |  | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5666 |  | 
 | 5667 |  | 
 | 5668 |  | 
 | 5669 | # Extract the first word of "hg", so it can be a program name with args. | 
 | 5670 | set dummy hg; ac_word=$2 | 
 | 5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5672 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5673 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5674 |   $as_echo_n "(cached) " >&6 | 
 | 5675 | else | 
 | 5676 |   if test -n "$HAS_HG"; then | 
 | 5677 |   ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
 | 5678 | else | 
 | 5679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5680 | for as_dir in $PATH | 
 | 5681 | do | 
 | 5682 |   IFS=$as_save_IFS | 
 | 5683 |   test -z "$as_dir" && as_dir=. | 
 | 5684 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5685 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5686 |     ac_cv_prog_HAS_HG="found" | 
 | 5687 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5688 |     break 2 | 
 | 5689 |   fi | 
 | 5690 | done | 
 | 5691 |   done | 
 | 5692 | IFS=$as_save_IFS | 
 | 5693 |  | 
 | 5694 |   test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
 | 5695 | fi | 
 | 5696 | fi | 
 | 5697 | HAS_HG=$ac_cv_prog_HAS_HG | 
 | 5698 | if test -n "$HAS_HG"; then | 
 | 5699 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
 | 5700 | $as_echo "$HAS_HG" >&6; } | 
 | 5701 | else | 
 | 5702 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5703 | $as_echo "no" >&6; } | 
 | 5704 | fi | 
 | 5705 |  | 
 | 5706 |  | 
 | 5707 | if test $HAS_HG = found | 
 | 5708 | then | 
 | 5709 |     HGVERSION="hg id -i \$(srcdir)" | 
 | 5710 |     HGTAG="hg id -t \$(srcdir)" | 
 | 5711 |     HGBRANCH="hg id -b \$(srcdir)" | 
 | 5712 | else | 
 | 5713 |     HGVERSION="" | 
 | 5714 |     HGTAG="" | 
 | 5715 |     HGBRANCH="" | 
 | 5716 | fi | 
 | 5717 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5718 | case $MACHDEP in | 
 | 5719 | bsdos*|hp*|HP*) | 
 | 5720 | 	# install -d does not work on BSDI or HP-UX | 
 | 5721 | 	if test -z "$INSTALL" | 
 | 5722 | 	then | 
 | 5723 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 5724 | 	fi | 
 | 5725 | esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5726 | # Find a good install program.  We prefer a C program (faster), | 
 | 5727 | # so one script is as good as another.  But avoid the broken or | 
 | 5728 | # incompatible versions: | 
 | 5729 | # SysV /etc/install, /usr/sbin/install | 
 | 5730 | # SunOS /usr/etc/install | 
 | 5731 | # IRIX /sbin/install | 
 | 5732 | # AIX /bin/install | 
 | 5733 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 5734 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 5735 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 5736 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 5737 | # OS/2's system install, which has a completely different semantic | 
 | 5738 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5739 | # Reject install programs that cannot install multiple files. | 
 | 5740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
 | 5741 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5742 | if test -z "$INSTALL"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5743 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5744 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5745 | else | 
 | 5746 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5747 | for as_dir in $PATH | 
 | 5748 | do | 
 | 5749 |   IFS=$as_save_IFS | 
 | 5750 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5751 |     # Account for people who put trailing slashes in PATH elements. | 
 | 5752 | case $as_dir/ in #(( | 
 | 5753 |   ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5754 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5755 |   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5756 |   /usr/ucb/* ) ;; | 
 | 5757 |   *) | 
 | 5758 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 5759 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 5760 |     # by default. | 
 | 5761 |     for ac_prog in ginstall scoinst install; do | 
 | 5762 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5763 | 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5764 | 	  if test $ac_prog = install && | 
 | 5765 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5766 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 5767 | 	    : | 
 | 5768 | 	  elif test $ac_prog = install && | 
 | 5769 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5770 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 5771 | 	    : | 
 | 5772 | 	  else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5773 | 	    rm -rf conftest.one conftest.two conftest.dir | 
 | 5774 | 	    echo one > conftest.one | 
 | 5775 | 	    echo two > conftest.two | 
 | 5776 | 	    mkdir conftest.dir | 
 | 5777 | 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
 | 5778 | 	      test -s conftest.one && test -s conftest.two && | 
 | 5779 | 	      test -s conftest.dir/conftest.one && | 
 | 5780 | 	      test -s conftest.dir/conftest.two | 
 | 5781 | 	    then | 
 | 5782 | 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 5783 | 	      break 3 | 
 | 5784 | 	    fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5785 | 	  fi | 
 | 5786 | 	fi | 
 | 5787 |       done | 
 | 5788 |     done | 
 | 5789 |     ;; | 
 | 5790 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5791 |  | 
 | 5792 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5793 | IFS=$as_save_IFS | 
 | 5794 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5795 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5796 |  | 
 | 5797 | fi | 
 | 5798 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 5799 |     INSTALL=$ac_cv_path_install | 
 | 5800 |   else | 
 | 5801 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 5802 |     # value for INSTALL within a source directory, because that will | 
 | 5803 |     # break other packages using the cache if that directory is | 
 | 5804 |     # removed, or if the value is a relative name. | 
 | 5805 |     INSTALL=$ac_install_sh | 
 | 5806 |   fi | 
 | 5807 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
 | 5809 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5810 |  | 
 | 5811 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 5812 | # It thinks the first close brace ends the variable substitution. | 
 | 5813 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 5814 |  | 
 | 5815 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 5816 |  | 
 | 5817 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 5818 |  | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
 | 5820 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
 | 5821 | if test -z "$MKDIR_P"; then | 
 | 5822 |   if ${ac_cv_path_mkdir+:} false; then : | 
 | 5823 |   $as_echo_n "(cached) " >&6 | 
 | 5824 | else | 
 | 5825 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5826 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
 | 5827 | do | 
 | 5828 |   IFS=$as_save_IFS | 
 | 5829 |   test -z "$as_dir" && as_dir=. | 
 | 5830 |     for ac_prog in mkdir gmkdir; do | 
 | 5831 | 	 for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5832 | 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 5833 | 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
 | 5834 | 	     'mkdir (GNU coreutils) '* | \ | 
 | 5835 | 	     'mkdir (coreutils) '* | \ | 
 | 5836 | 	     'mkdir (fileutils) '4.1*) | 
 | 5837 | 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
 | 5838 | 	       break 3;; | 
 | 5839 | 	   esac | 
 | 5840 | 	 done | 
 | 5841 |        done | 
 | 5842 |   done | 
 | 5843 | IFS=$as_save_IFS | 
 | 5844 |  | 
 | 5845 | fi | 
 | 5846 |  | 
 | 5847 |   test -d ./--version && rmdir ./--version | 
 | 5848 |   if test "${ac_cv_path_mkdir+set}" = set; then | 
 | 5849 |     MKDIR_P="$ac_cv_path_mkdir -p" | 
 | 5850 |   else | 
 | 5851 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 5852 |     # value for MKDIR_P within a source directory, because that will | 
 | 5853 |     # break other packages using the cache if that directory is | 
 | 5854 |     # removed, or if the value is a relative name. | 
 | 5855 |     MKDIR_P="$ac_install_sh -d" | 
 | 5856 |   fi | 
 | 5857 | fi | 
 | 5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
 | 5859 | $as_echo "$MKDIR_P" >&6; } | 
 | 5860 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5861 |  | 
 | 5862 | # Not every filesystem supports hard links | 
 | 5863 |  | 
 | 5864 | if test -z "$LN" ; then | 
 | 5865 | 	case $ac_sys_system in | 
 | 5866 | 		BeOS*) LN="ln -s";; | 
 | 5867 | 		CYGWIN*) LN="ln -s";; | 
 | 5868 | 		atheos*) LN="ln -s";; | 
 | 5869 | 		*) LN=ln;; | 
 | 5870 | 	esac | 
 | 5871 | fi | 
 | 5872 |  | 
 | 5873 | # Check for --with-pydebug | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
 | 5875 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5876 |  | 
 | 5877 | # Check whether --with-pydebug was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5878 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5879 |   withval=$with_pydebug; | 
 | 5880 | if test "$withval" != no | 
 | 5881 | then | 
 | 5882 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5883 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5884 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5885 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5886 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5887 |   Py_DEBUG='true' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5888 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5889 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5890 | fi | 
 | 5891 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5892 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5893 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5894 | fi | 
 | 5895 |  | 
 | 5896 |  | 
 | 5897 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
 | 5898 | # merged with this chunk of code? | 
 | 5899 |  | 
 | 5900 | # Optimizer/debugger flags | 
 | 5901 | # ------------------------ | 
 | 5902 | # (The following bit of code is complicated enough - please keep things | 
 | 5903 | # indented properly.  Just pretend you're editing Python code. ;-) | 
 | 5904 |  | 
 | 5905 | # There are two parallel sets of case statements below, one that checks to | 
 | 5906 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
 | 5907 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
 | 5908 | # user set OPT. | 
 | 5909 |  | 
 | 5910 | # tweak OPT based on compiler and platform, only if the user didn't set | 
 | 5911 | # it on the command line | 
 | 5912 |  | 
| Benjamin Peterson | d4b721b | 2010-03-23 20:58:37 +0000 | [diff] [blame] | 5913 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5914 | then | 
 | 5915 |     case $GCC in | 
 | 5916 |     yes) | 
 | 5917 |         if test "$CC" != 'g++' ; then | 
 | 5918 | 	    STRICT_PROTO="-Wstrict-prototypes" | 
 | 5919 | 	fi | 
 | 5920 |         # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
 | 5921 |         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
 | 5922 |            WRAP="-fwrapv" | 
 | 5923 |         fi | 
| Stefan Krah | 503e5e1 | 2011-09-14 15:19:42 +0200 | [diff] [blame] | 5924 |  | 
 | 5925 |         # Clang also needs -fwrapv | 
| Stefan Krah | 2bc1e8f | 2011-12-08 22:26:06 +0100 | [diff] [blame] | 5926 |         case $CC in | 
 | 5927 |             *clang*) WRAP="-fwrapv" | 
 | 5928 |             ;; | 
 | 5929 |         esac | 
| Stefan Krah | 503e5e1 | 2011-09-14 15:19:42 +0200 | [diff] [blame] | 5930 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5931 | 	case $ac_cv_prog_cc_g in | 
 | 5932 | 	yes) | 
 | 5933 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 5934 | 		# Optimization messes up debuggers, so turn it off for | 
 | 5935 | 		# debug builds. | 
| Mark Dickinson | d2f3e3f | 2010-05-05 22:23:58 +0000 | [diff] [blame] | 5936 | 		OPT="-g -O0 -Wall $STRICT_PROTO" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5937 | 	    else | 
 | 5938 | 		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
 | 5939 | 	    fi | 
 | 5940 | 	    ;; | 
 | 5941 | 	*) | 
 | 5942 | 	    OPT="-O3 -Wall $STRICT_PROTO" | 
 | 5943 | 	    ;; | 
 | 5944 | 	esac | 
 | 5945 | 	case $ac_sys_system in | 
 | 5946 | 	    SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
 | 5947 | 	    ;; | 
 | 5948 |         esac | 
 | 5949 | 	;; | 
 | 5950 |  | 
 | 5951 |     *) | 
 | 5952 | 	OPT="-O" | 
 | 5953 | 	;; | 
 | 5954 |     esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5955 | fi | 
 | 5956 |  | 
 | 5957 |  | 
 | 5958 |  | 
 | 5959 | # The -arch flags for universal builds on OSX | 
 | 5960 | UNIVERSAL_ARCH_FLAGS= | 
 | 5961 |  | 
 | 5962 |  | 
 | 5963 | # tweak BASECFLAGS based on compiler and platform | 
 | 5964 | case $GCC in | 
 | 5965 | yes) | 
 | 5966 |     # Python violates C99 rules, by casting between incompatible | 
 | 5967 |     # pointer types. GCC may generate bad code as a result of that, | 
 | 5968 |     # so use -fno-strict-aliasing if supported. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5969 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5 | 
 | 5970 | $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5971 |      ac_save_cc="$CC" | 
 | 5972 |      CC="$CC -fno-strict-aliasing" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5973 |      if ${ac_cv_no_strict_aliasing_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5974 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 5975 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5976 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5977 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5978 |  | 
 | 5979 | int | 
 | 5980 | main () | 
 | 5981 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5982 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5983 |   ; | 
 | 5984 |   return 0; | 
 | 5985 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5986 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5987 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5988 |   ac_cv_no_strict_aliasing_ok=yes | 
 | 5989 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5990 |   ac_cv_no_strict_aliasing_ok=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5991 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 5993 | fi | 
 | 5994 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5995 |      CC="$ac_save_cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5996 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5 | 
 | 5997 | $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5998 |     if test $ac_cv_no_strict_aliasing_ok = yes | 
 | 5999 |     then | 
 | 6000 |       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
 | 6001 |     fi | 
 | 6002 |  | 
 | 6003 |     # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
 | 6004 |     # support.  Without this, treatment of subnormals doesn't follow | 
 | 6005 |     # the standard. | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 6006 |     case $host in | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6007 |          alpha*) | 
 | 6008 |                 BASECFLAGS="$BASECFLAGS -mieee" | 
 | 6009 |                 ;; | 
 | 6010 |     esac | 
 | 6011 |  | 
 | 6012 |     case $ac_sys_system in | 
 | 6013 | 	SCO_SV*) | 
 | 6014 | 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
 | 6015 | 	    ;; | 
 | 6016 | 	# is there any other compiler on Darwin besides gcc? | 
 | 6017 | 	Darwin*) | 
 | 6018 | 	    # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
 | 6019 | 	    # used to be here, but non-Apple gcc doesn't accept them. | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6020 | 	    if test "${CC}" = gcc | 
 | 6021 | 	    then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6022 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
 | 6023 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6024 | 		case "${UNIVERSALSDK}" in | 
 | 6025 | 		*/MacOSX10.4u.sdk) | 
 | 6026 | 			# Build using 10.4 SDK, force usage of gcc when the | 
 | 6027 | 			# compiler is gcc, otherwise the user will get very | 
 | 6028 | 			# confusing error messages when building on OSX 10.6 | 
 | 6029 | 			CC=gcc-4.0 | 
 | 6030 | 			CPP=cpp-4.0 | 
 | 6031 | 			;; | 
 | 6032 | 		esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6033 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 6034 | $as_echo "$CC" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6035 | 	    fi | 
 | 6036 |  | 
 | 6037 | 	    # Calculate the right deployment target for this build. | 
 | 6038 | 	    # | 
 | 6039 | 	    cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` | 
 | 6040 | 	    if test ${cur_target} '>' 10.2; then | 
 | 6041 | 		    cur_target=10.3 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6042 | 		    if test ${enable_universalsdk}; then | 
 | 6043 | 			    if test "${UNIVERSAL_ARCHS}" = "all"; then | 
 | 6044 | 				    # Ensure that the default platform for a | 
 | 6045 | 				    # 4-way universal build is OSX 10.5, | 
 | 6046 | 				    # that's the first OS release where | 
 | 6047 | 				    # 4-way builds make sense. | 
 | 6048 | 				    cur_target='10.5' | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 6049 |  | 
 | 6050 | 			    elif test "${UNIVERSAL_ARCHS}" = "3-way"; then | 
 | 6051 | 				    cur_target='10.5' | 
 | 6052 |  | 
 | 6053 | 			    elif test "${UNIVERSAL_ARCHS}" = "intel"; then | 
 | 6054 | 				    cur_target='10.5' | 
 | 6055 |  | 
 | 6056 | 			    elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then | 
 | 6057 | 				    cur_target='10.5' | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6058 | 			    fi | 
 | 6059 | 		    else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 6060 | 			    if test `/usr/bin/arch` = "i386"; then | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6061 | 				    # On Intel macs default to a deployment | 
 | 6062 | 				    # target of 10.4, that's the first OSX | 
 | 6063 | 				    # release with Intel support. | 
 | 6064 | 				    cur_target="10.4" | 
 | 6065 | 			    fi | 
 | 6066 | 		    fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6067 | 	    fi | 
 | 6068 | 	    CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
 | 6069 |  | 
 | 6070 | 	    # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
 | 6071 | 	    # environment with a value that is the same as what we'll use | 
 | 6072 | 	    # in the Makefile to ensure that we'll get the same compiler | 
 | 6073 | 	    # environment during configure and build time. | 
 | 6074 | 	    MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
 | 6075 | 	    export MACOSX_DEPLOYMENT_TARGET | 
 | 6076 | 	    EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
 | 6077 |  | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6078 | 	    if test "${enable_universalsdk}"; then | 
 | 6079 | 		UNIVERSAL_ARCH_FLAGS="" | 
 | 6080 | 	        if test "$UNIVERSAL_ARCHS" = "32-bit" ; then | 
 | 6081 | 		   UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
 | 6082 | 		   ARCH_RUN_32BIT="" | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 6083 | 		   LIPO_32BIT_FLAGS="" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6084 |  | 
 | 6085 | 	         elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then | 
 | 6086 | 		   UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
 | 6087 | 		   LIPO_32BIT_FLAGS="" | 
 | 6088 | 		   ARCH_RUN_32BIT="true" | 
 | 6089 |  | 
 | 6090 | 	         elif test "$UNIVERSAL_ARCHS" = "all" ; then | 
 | 6091 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
 | 6092 | 		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 6093 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6094 |  | 
 | 6095 | 	         elif test "$UNIVERSAL_ARCHS" = "intel" ; then | 
 | 6096 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
 | 6097 | 		   LIPO_32BIT_FLAGS="-extract i386" | 
| Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 6098 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6099 |  | 
 | 6100 | 	         elif test "$UNIVERSAL_ARCHS" = "3-way" ; then | 
 | 6101 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
 | 6102 | 		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 6103 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6104 |  | 
 | 6105 | 		 else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6106 | 	           as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6107 |  | 
 | 6108 | 		 fi | 
 | 6109 |  | 
 | 6110 |  | 
| Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 6111 | 		CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" | 
 | 6112 | 		if test "${UNIVERSALSDK}" != "/" | 
 | 6113 | 		then | 
 | 6114 | 			CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
 | 6115 | 			LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
 | 6116 | 			CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6117 | 		fi | 
 | 6118 |  | 
 | 6119 | 	    fi | 
 | 6120 |  | 
 | 6121 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6122 | 	    ;; | 
 | 6123 | 	OSF*) | 
 | 6124 | 	    BASECFLAGS="$BASECFLAGS -mieee" | 
 | 6125 | 	    ;; | 
 | 6126 |     esac | 
 | 6127 |     ;; | 
 | 6128 |  | 
 | 6129 | *) | 
 | 6130 |     case $ac_sys_system in | 
 | 6131 |     OpenUNIX*|UnixWare*) | 
 | 6132 | 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
 | 6133 | 	;; | 
 | 6134 |     OSF*) | 
 | 6135 | 	BASECFLAGS="$BASECFLAGS -ieee -std" | 
 | 6136 |     	;; | 
 | 6137 |     SCO_SV*) | 
 | 6138 | 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
 | 6139 | 	;; | 
 | 6140 |     esac | 
 | 6141 |     ;; | 
 | 6142 | esac | 
 | 6143 |  | 
 | 6144 | if test "$Py_DEBUG" = 'true'; then | 
 | 6145 |   : | 
 | 6146 | else | 
 | 6147 |   OPT="-DNDEBUG $OPT" | 
 | 6148 | fi | 
 | 6149 |  | 
 | 6150 | if test "$ac_arch_flags" | 
 | 6151 | then | 
 | 6152 | 	BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
 | 6153 | fi | 
 | 6154 |  | 
 | 6155 | # disable check for icc since it seems to pass, but generates a warning | 
 | 6156 | if test "$CC" = icc | 
 | 6157 | then | 
 | 6158 |   ac_cv_opt_olimit_ok=no | 
 | 6159 | fi | 
 | 6160 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 | 
 | 6162 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6163 | if ${ac_cv_opt_olimit_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6164 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6165 | else | 
 | 6166 |   ac_save_cc="$CC" | 
 | 6167 | CC="$CC -OPT:Olimit=0" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6169 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6170 |  | 
 | 6171 | int | 
 | 6172 | main () | 
 | 6173 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 6174 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6175 |   ; | 
 | 6176 |   return 0; | 
 | 6177 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6178 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6179 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6180 |   ac_cv_opt_olimit_ok=yes | 
 | 6181 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6182 |   ac_cv_opt_olimit_ok=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6183 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6184 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6186 | CC="$ac_save_cc" | 
 | 6187 | fi | 
 | 6188 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 | 
 | 6190 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6191 | if test $ac_cv_opt_olimit_ok = yes; then | 
 | 6192 |     case $ac_sys_system in | 
 | 6193 | 	# XXX is this branch needed? On MacOSX 10.2.2 the result of the | 
 | 6194 | 	# olimit_ok test is "no".  Is it "yes" in some other Darwin-esque | 
 | 6195 | 	# environment? | 
 | 6196 |         Darwin*) | 
 | 6197 | 	    ;; | 
| Trent Nelson | 34562e1 | 2012-10-17 18:01:12 -0400 | [diff] [blame] | 6198 |         # XXX thankfully this useless troublemaker of a flag has been | 
 | 6199 |         # eradicated in the 3.x line.  For now, make sure it isn't picked | 
 | 6200 |         # up by any of our other platforms that use CC. | 
 | 6201 |         AIX*|SunOS*|HP-UX*|IRIX*) | 
 | 6202 |             ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6203 |         *) | 
 | 6204 | 	    BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" | 
 | 6205 | 	    ;; | 
 | 6206 |     esac | 
 | 6207 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6208 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 | 
 | 6209 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6210 |   if ${ac_cv_olimit_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6211 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6212 | else | 
 | 6213 |   ac_save_cc="$CC" | 
 | 6214 |   CC="$CC -Olimit 1500" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6215 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6216 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6217 |  | 
 | 6218 | int | 
 | 6219 | main () | 
 | 6220 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 6221 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6222 |   ; | 
 | 6223 |   return 0; | 
 | 6224 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6225 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6226 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6227 |   ac_cv_olimit_ok=yes | 
 | 6228 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6229 |   ac_cv_olimit_ok=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6230 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6231 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6233 |   CC="$ac_save_cc" | 
 | 6234 | fi | 
 | 6235 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6236 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 | 
 | 6237 | $as_echo "$ac_cv_olimit_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6238 |   if test $ac_cv_olimit_ok = yes; then | 
| Stefan Krah | 6747326 | 2012-11-29 00:17:05 +0100 | [diff] [blame] | 6239 |     case $ac_sys_system in | 
 | 6240 |         # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive. | 
 | 6241 |         HP-UX*) | 
 | 6242 |             ;; | 
 | 6243 |         *) | 
 | 6244 |             BASECFLAGS="$BASECFLAGS -Olimit 1500" | 
 | 6245 |             ;; | 
 | 6246 |     esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6247 |   fi | 
 | 6248 | fi | 
 | 6249 |  | 
 | 6250 | # Check whether GCC supports PyArg_ParseTuple format | 
 | 6251 | if test "$GCC" = "yes" | 
 | 6252 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6253 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 | 
 | 6254 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6255 |   save_CFLAGS=$CFLAGS | 
 | 6256 |   CFLAGS="$CFLAGS -Werror" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6257 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6258 | /* end confdefs.h.  */ | 
 | 6259 |  | 
 | 6260 |     void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6261 | int | 
 | 6262 | main () | 
 | 6263 | { | 
 | 6264 |  | 
 | 6265 |   ; | 
 | 6266 |   return 0; | 
 | 6267 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6268 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6269 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6270 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6271 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6272 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6273 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6274 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6275 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6276 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6277 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6278 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6279 |  | 
 | 6280 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6281 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6282 |  | 
 | 6283 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6285 |   CFLAGS=$save_CFLAGS | 
 | 6286 | fi | 
 | 6287 |  | 
 | 6288 | # On some compilers, pthreads are available without further options | 
 | 6289 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
 | 6290 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
 | 6291 | # So we have to see first whether pthreads are available without | 
 | 6292 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
 | 6294 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6295 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6296 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6297 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6298 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6299 |   ac_cv_pthread_is_default=no | 
 | 6300 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6301 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6302 | /* end confdefs.h.  */ | 
 | 6303 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6304 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6305 | #include <pthread.h> | 
 | 6306 |  | 
 | 6307 | void* routine(void* p){return NULL;} | 
 | 6308 |  | 
 | 6309 | int main(){ | 
 | 6310 |   pthread_t p; | 
 | 6311 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6312 |     return 1; | 
 | 6313 |   (void)pthread_detach(p); | 
 | 6314 |   return 0; | 
 | 6315 | } | 
 | 6316 |  | 
 | 6317 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6318 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6319 |  | 
 | 6320 |   ac_cv_pthread_is_default=yes | 
 | 6321 |   ac_cv_kthread=no | 
 | 6322 |   ac_cv_pthread=no | 
 | 6323 |  | 
 | 6324 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6325 |   ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6326 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6327 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6328 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6329 | fi | 
 | 6330 |  | 
 | 6331 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6332 | fi | 
 | 6333 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
 | 6335 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6336 |  | 
 | 6337 |  | 
 | 6338 | if test $ac_cv_pthread_is_default = yes | 
 | 6339 | then | 
 | 6340 |   ac_cv_kpthread=no | 
 | 6341 | else | 
 | 6342 | # -Kpthread, if available, provides the right #defines | 
 | 6343 | # and linker options to make pthread_create available | 
 | 6344 | # Some compilers won't report that they do not support -Kpthread, | 
 | 6345 | # so we need to run a program to see whether it really made the | 
 | 6346 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
 | 6348 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6349 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6350 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6351 | else | 
 | 6352 |   ac_save_cc="$CC" | 
 | 6353 | CC="$CC -Kpthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6354 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6355 |   ac_cv_kpthread=no | 
 | 6356 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6357 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6358 | /* end confdefs.h.  */ | 
 | 6359 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6360 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6361 | #include <pthread.h> | 
 | 6362 |  | 
 | 6363 | void* routine(void* p){return NULL;} | 
 | 6364 |  | 
 | 6365 | int main(){ | 
 | 6366 |   pthread_t p; | 
 | 6367 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6368 |     return 1; | 
 | 6369 |   (void)pthread_detach(p); | 
 | 6370 |   return 0; | 
 | 6371 | } | 
 | 6372 |  | 
 | 6373 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6374 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6375 |   ac_cv_kpthread=yes | 
 | 6376 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6377 |   ac_cv_kpthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6378 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6379 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6380 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6381 | fi | 
 | 6382 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6383 | CC="$ac_save_cc" | 
 | 6384 | fi | 
 | 6385 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
 | 6387 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6388 | fi | 
 | 6389 |  | 
 | 6390 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
 | 6391 | then | 
 | 6392 | # -Kthread, if available, provides the right #defines | 
 | 6393 | # and linker options to make pthread_create available | 
 | 6394 | # Some compilers won't report that they do not support -Kthread, | 
 | 6395 | # so we need to run a program to see whether it really made the | 
 | 6396 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
 | 6398 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6399 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6400 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6401 | else | 
 | 6402 |   ac_save_cc="$CC" | 
 | 6403 | CC="$CC -Kthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6404 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6405 |   ac_cv_kthread=no | 
 | 6406 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6407 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6408 | /* end confdefs.h.  */ | 
 | 6409 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6410 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6411 | #include <pthread.h> | 
 | 6412 |  | 
 | 6413 | void* routine(void* p){return NULL;} | 
 | 6414 |  | 
 | 6415 | int main(){ | 
 | 6416 |   pthread_t p; | 
 | 6417 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6418 |     return 1; | 
 | 6419 |   (void)pthread_detach(p); | 
 | 6420 |   return 0; | 
 | 6421 | } | 
 | 6422 |  | 
 | 6423 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6424 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6425 |   ac_cv_kthread=yes | 
 | 6426 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6427 |   ac_cv_kthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6428 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6429 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6430 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6431 | fi | 
 | 6432 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6433 | CC="$ac_save_cc" | 
 | 6434 | fi | 
 | 6435 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
 | 6437 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6438 | fi | 
 | 6439 |  | 
 | 6440 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
 | 6441 | then | 
 | 6442 | # -pthread, if available, provides the right #defines | 
 | 6443 | # and linker options to make pthread_create available | 
 | 6444 | # Some compilers won't report that they do not support -pthread, | 
 | 6445 | # so we need to run a program to see whether it really made the | 
 | 6446 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
 | 6448 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | fa3f9a3 | 2013-01-25 15:32:31 +0100 | [diff] [blame] | 6449 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6450 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6451 | else | 
 | 6452 |   ac_save_cc="$CC" | 
 | 6453 | CC="$CC -pthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6454 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6455 |   ac_cv_pthread=no | 
 | 6456 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6457 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6458 | /* end confdefs.h.  */ | 
 | 6459 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6460 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6461 | #include <pthread.h> | 
 | 6462 |  | 
 | 6463 | void* routine(void* p){return NULL;} | 
 | 6464 |  | 
 | 6465 | int main(){ | 
 | 6466 |   pthread_t p; | 
 | 6467 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6468 |     return 1; | 
 | 6469 |   (void)pthread_detach(p); | 
 | 6470 |   return 0; | 
 | 6471 | } | 
 | 6472 |  | 
 | 6473 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6474 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6475 |   ac_cv_pthread=yes | 
 | 6476 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6477 |   ac_cv_pthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6478 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6479 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6480 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6481 | fi | 
 | 6482 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6483 | CC="$ac_save_cc" | 
 | 6484 | fi | 
 | 6485 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
 | 6487 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6488 | fi | 
 | 6489 |  | 
 | 6490 | # If we have set a CC compiler flag for thread support then | 
 | 6491 | # check if it works for CXX, too. | 
 | 6492 | ac_cv_cxx_thread=no | 
 | 6493 | if test ! -z "$CXX" | 
 | 6494 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
 | 6496 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6497 | ac_save_cxx="$CXX" | 
 | 6498 |  | 
 | 6499 | if test "$ac_cv_kpthread" = "yes" | 
 | 6500 | then | 
 | 6501 |   CXX="$CXX -Kpthread" | 
 | 6502 |   ac_cv_cxx_thread=yes | 
 | 6503 | elif test "$ac_cv_kthread" = "yes" | 
 | 6504 | then | 
 | 6505 |   CXX="$CXX -Kthread" | 
 | 6506 |   ac_cv_cxx_thread=yes | 
 | 6507 | elif test "$ac_cv_pthread" = "yes" | 
 | 6508 | then | 
 | 6509 |   CXX="$CXX -pthread" | 
 | 6510 |   ac_cv_cxx_thread=yes | 
 | 6511 | fi | 
 | 6512 |  | 
 | 6513 | if test $ac_cv_cxx_thread = yes | 
 | 6514 | then | 
 | 6515 |   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
 | 6516 |   $CXX -c conftest.$ac_ext 2>&5 | 
 | 6517 |   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
 | 6518 |      && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
 | 6519 |   then | 
 | 6520 |     ac_cv_cxx_thread=yes | 
 | 6521 |   else | 
 | 6522 |     ac_cv_cxx_thread=no | 
 | 6523 |   fi | 
 | 6524 |   rm -fr conftest* | 
 | 6525 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
 | 6527 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6528 | fi | 
 | 6529 | CXX="$ac_save_cxx" | 
 | 6530 |  | 
 | 6531 |  | 
 | 6532 | # checks for header files | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 6534 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6535 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6536 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6537 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6538 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6539 | /* end confdefs.h.  */ | 
 | 6540 | #include <stdlib.h> | 
 | 6541 | #include <stdarg.h> | 
 | 6542 | #include <string.h> | 
 | 6543 | #include <float.h> | 
 | 6544 |  | 
 | 6545 | int | 
 | 6546 | main () | 
 | 6547 | { | 
 | 6548 |  | 
 | 6549 |   ; | 
 | 6550 |   return 0; | 
 | 6551 | } | 
 | 6552 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6553 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6554 |   ac_cv_header_stdc=yes | 
 | 6555 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6556 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6557 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6559 |  | 
 | 6560 | if test $ac_cv_header_stdc = yes; then | 
 | 6561 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6562 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6563 | /* end confdefs.h.  */ | 
 | 6564 | #include <string.h> | 
 | 6565 |  | 
 | 6566 | _ACEOF | 
 | 6567 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6568 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 6569 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6570 | else | 
 | 6571 |   ac_cv_header_stdc=no | 
 | 6572 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6573 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6574 |  | 
 | 6575 | fi | 
 | 6576 |  | 
 | 6577 | if test $ac_cv_header_stdc = yes; then | 
 | 6578 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6579 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6580 | /* end confdefs.h.  */ | 
 | 6581 | #include <stdlib.h> | 
 | 6582 |  | 
 | 6583 | _ACEOF | 
 | 6584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6585 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 6586 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6587 | else | 
 | 6588 |   ac_cv_header_stdc=no | 
 | 6589 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6590 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6591 |  | 
 | 6592 | fi | 
 | 6593 |  | 
 | 6594 | if test $ac_cv_header_stdc = yes; then | 
 | 6595 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6596 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6597 |   : | 
 | 6598 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6599 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6600 | /* end confdefs.h.  */ | 
 | 6601 | #include <ctype.h> | 
 | 6602 | #include <stdlib.h> | 
 | 6603 | #if ((' ' & 0x0FF) == 0x020) | 
 | 6604 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 6605 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 6606 | #else | 
 | 6607 | # define ISLOWER(c) \ | 
 | 6608 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 6609 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 6610 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 6611 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 6612 | #endif | 
 | 6613 |  | 
 | 6614 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 6615 | int | 
 | 6616 | main () | 
 | 6617 | { | 
 | 6618 |   int i; | 
 | 6619 |   for (i = 0; i < 256; i++) | 
 | 6620 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 6621 | 	|| toupper (i) != TOUPPER (i)) | 
 | 6622 |       return 2; | 
 | 6623 |   return 0; | 
 | 6624 | } | 
 | 6625 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6626 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 6627 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6628 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6629 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6630 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6631 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6632 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6633 | fi | 
 | 6634 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6635 | fi | 
 | 6636 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 6638 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6639 | if test $ac_cv_header_stdc = yes; then | 
 | 6640 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6641 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6642 |  | 
 | 6643 | fi | 
 | 6644 |  | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6645 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ | 
 | 6646 | fcntl.h grp.h \ | 
| Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 6647 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ | 
| Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 6648 | shadow.h signal.h stdint.h stropts.h termios.h thread.h \ | 
| Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 6649 | unistd.h utime.h \ | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 6650 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ | 
 | 6651 | sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6652 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 6653 | sys/termio.h sys/time.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6654 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ | 
| Martin v. Löwis | 0347a9a | 2006-10-27 07:06:52 +0000 | [diff] [blame] | 6655 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6656 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6657 | do : | 
 | 6658 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 6659 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6660 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6661 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6662 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6663 | _ACEOF | 
 | 6664 |  | 
 | 6665 | fi | 
 | 6666 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6667 | done | 
 | 6668 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6669 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6670 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6671 |   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
 | 6673 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6674 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6675 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6676 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6677 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6678 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6679 | #include <sys/types.h> | 
 | 6680 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6681 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6682 | int | 
 | 6683 | main () | 
 | 6684 | { | 
 | 6685 | if ((DIR *) 0) | 
 | 6686 | return 0; | 
 | 6687 |   ; | 
 | 6688 |   return 0; | 
 | 6689 | } | 
 | 6690 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6691 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6692 |   eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6693 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6694 |   eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6695 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6697 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6698 | eval ac_res=\$$as_ac_Header | 
 | 6699 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 6700 | $as_echo "$ac_res" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6701 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6702 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6703 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6704 | _ACEOF | 
 | 6705 |  | 
 | 6706 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6707 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6708 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6709 | done | 
 | 6710 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 6711 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6712 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 6713 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6714 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6715 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6716 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6717 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6719 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6720 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6721 | /* Override any GCC internal prototype to avoid an error. | 
 | 6722 |    Use char because int might match the return type of a GCC | 
 | 6723 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6724 | #ifdef __cplusplus | 
 | 6725 | extern "C" | 
 | 6726 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6727 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6728 | int | 
 | 6729 | main () | 
 | 6730 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6731 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6732 |   ; | 
 | 6733 |   return 0; | 
 | 6734 | } | 
 | 6735 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6736 | for ac_lib in '' dir; do | 
 | 6737 |   if test -z "$ac_lib"; then | 
 | 6738 |     ac_res="none required" | 
 | 6739 |   else | 
 | 6740 |     ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6741 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6742 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6743 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6744 |   ac_cv_search_opendir=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6745 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6746 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6747 |     conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6748 |   if ${ac_cv_search_opendir+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6749 |   break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6750 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6751 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6752 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6753 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6754 | else | 
 | 6755 |   ac_cv_search_opendir=no | 
 | 6756 | fi | 
 | 6757 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6758 | LIBS=$ac_func_search_save_LIBS | 
 | 6759 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 6761 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6762 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6763 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6764 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6765 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6766 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6767 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6768 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6769 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 6770 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6771 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6772 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6773 | else | 
 | 6774 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6776 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6777 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6778 | /* Override any GCC internal prototype to avoid an error. | 
 | 6779 |    Use char because int might match the return type of a GCC | 
 | 6780 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6781 | #ifdef __cplusplus | 
 | 6782 | extern "C" | 
 | 6783 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6784 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6785 | int | 
 | 6786 | main () | 
 | 6787 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6788 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6789 |   ; | 
 | 6790 |   return 0; | 
 | 6791 | } | 
 | 6792 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6793 | for ac_lib in '' x; do | 
 | 6794 |   if test -z "$ac_lib"; then | 
 | 6795 |     ac_res="none required" | 
 | 6796 |   else | 
 | 6797 |     ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6798 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6799 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6800 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6801 |   ac_cv_search_opendir=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6802 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6803 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6804 |     conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6805 |   if ${ac_cv_search_opendir+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6806 |   break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6807 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6808 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6809 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6810 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6811 | else | 
 | 6812 |   ac_cv_search_opendir=no | 
 | 6813 | fi | 
 | 6814 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6815 | LIBS=$ac_func_search_save_LIBS | 
 | 6816 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 6818 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6819 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6820 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6821 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6822 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6823 | fi | 
 | 6824 |  | 
 | 6825 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6826 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
 | 6828 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6829 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6830 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6831 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6832 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6833 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6834 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6835 | int | 
 | 6836 | main () | 
 | 6837 | { | 
 | 6838 | return makedev(0, 0); | 
 | 6839 |   ; | 
 | 6840 |   return 0; | 
 | 6841 | } | 
 | 6842 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6843 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6844 |   ac_cv_header_sys_types_h_makedev=yes | 
 | 6845 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6846 |   ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6847 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6848 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6849 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6850 |  | 
 | 6851 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
 | 6853 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6854 |  | 
 | 6855 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6856 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6857 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6858 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6859 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6860 |  | 
 | 6861 | fi | 
 | 6862 |  | 
 | 6863 |  | 
 | 6864 |  | 
 | 6865 |   if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6866 |     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6867 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6868 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6869 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6870 |  | 
 | 6871 | fi | 
 | 6872 |  | 
 | 6873 |  | 
 | 6874 |   fi | 
 | 6875 | fi | 
 | 6876 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6877 |  | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6878 | # On Solaris, term.h requires curses.h | 
| Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6879 | for ac_header in term.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6880 | do : | 
 | 6881 |   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
| Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6882 | #ifdef HAVE_CURSES_H | 
 | 6883 | #include <curses.h> | 
 | 6884 | #endif | 
 | 6885 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6886 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6887 | if test "x$ac_cv_header_term_h" = xyes; then : | 
| Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6888 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6889 | #define HAVE_TERM_H 1 | 
| Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6890 | _ACEOF | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6891 |  | 
| Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6892 | fi | 
 | 6893 |  | 
 | 6894 | done | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6895 |  | 
 | 6896 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6897 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6898 | for ac_header in linux/netlink.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6899 | do : | 
 | 6900 |   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] | 6901 | #ifdef HAVE_ASM_TYPES_H | 
 | 6902 | #include <asm/types.h> | 
 | 6903 | #endif | 
 | 6904 | #ifdef HAVE_SYS_SOCKET_H | 
 | 6905 | #include <sys/socket.h> | 
 | 6906 | #endif | 
 | 6907 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6908 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6909 | 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] | 6910 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6911 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6912 | _ACEOF | 
 | 6913 |  | 
 | 6914 | fi | 
 | 6915 |  | 
 | 6916 | done | 
 | 6917 |  | 
 | 6918 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6919 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6920 | was_it_defined=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
 | 6922 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
 | 6923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6924 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6925 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6926 |  | 
 | 6927 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6928 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6929 |   $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6930 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6931 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6932 |  | 
 | 6933 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6934 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6935 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6936 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6937 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6938 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6939 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 6941 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6942 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6943 | # Check whether using makedev requires defining _OSF_SOURCE | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
 | 6945 | $as_echo_n "checking for makedev... " >&6; } | 
 | 6946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6947 | /* end confdefs.h.  */ | 
| Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6948 |  | 
 | 6949 | #if defined(MAJOR_IN_MKDEV) | 
 | 6950 | #include <sys/mkdev.h> | 
 | 6951 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 6952 | #include <sys/sysmacros.h> | 
 | 6953 | #else | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6954 | #include <sys/types.h> | 
| Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6955 | #endif | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6956 | int | 
 | 6957 | main () | 
 | 6958 | { | 
 | 6959 |  makedev(0, 0) | 
 | 6960 |   ; | 
 | 6961 |   return 0; | 
 | 6962 | } | 
 | 6963 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6964 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6965 |   ac_cv_has_makedev=yes | 
 | 6966 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6967 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6968 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6969 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6970 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6971 | if test "$ac_cv_has_makedev" = "no"; then | 
 | 6972 |     # we didn't link, try if _OSF_SOURCE will allow us to link | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6973 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6974 | /* end confdefs.h.  */ | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6975 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6976 | #define _OSF_SOURCE 1 | 
 | 6977 | #include <sys/types.h> | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6978 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6979 | int | 
 | 6980 | main () | 
 | 6981 | { | 
 | 6982 |  makedev(0, 0) | 
 | 6983 |   ; | 
 | 6984 |   return 0; | 
 | 6985 | } | 
 | 6986 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6987 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6988 |   ac_cv_has_makedev=yes | 
 | 6989 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6990 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6991 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6992 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6993 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6994 |     if test "$ac_cv_has_makedev" = "yes"; then | 
 | 6995 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6996 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6997 |  | 
 | 6998 |     fi | 
 | 6999 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
 | 7001 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7002 | if test "$ac_cv_has_makedev" = "yes"; then | 
 | 7003 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7004 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7005 |  | 
 | 7006 | fi | 
 | 7007 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7008 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
 | 7009 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
 | 7010 | # defined, but the compiler does not support pragma redefine_extname, | 
 | 7011 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
 | 7012 | # structures (such as rlimit64) without declaring them. As a | 
 | 7013 | # work-around, disable LFS on such configurations | 
 | 7014 |  | 
 | 7015 | use_lfs=yes | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
 | 7017 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
 | 7018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7019 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7020 |  | 
 | 7021 | #define _LARGEFILE_SOURCE 1 | 
 | 7022 | #define _FILE_OFFSET_BITS 64 | 
 | 7023 | #include <sys/resource.h> | 
 | 7024 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7025 | int | 
 | 7026 | main () | 
 | 7027 | { | 
 | 7028 | struct rlimit foo; | 
 | 7029 |   ; | 
 | 7030 |   return 0; | 
 | 7031 | } | 
 | 7032 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7033 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7034 |   sol_lfs_bug=no | 
 | 7035 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7036 |   sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7037 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
 | 7040 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7041 | if test "$sol_lfs_bug" = "yes"; then | 
 | 7042 |   use_lfs=no | 
 | 7043 | fi | 
 | 7044 |  | 
 | 7045 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7046 | # Two defines needed to enable largefile support on various platforms | 
 | 7047 | # These may affect some typedefs | 
| Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 7048 | case $ac_sys_system/$ac_sys_release in | 
 | 7049 | AIX*) | 
 | 7050 |  | 
 | 7051 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
 | 7052 |  | 
 | 7053 |     ;; | 
 | 7054 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7055 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7056 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7057 |  | 
 | 7058 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7059 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7060 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7061 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7062 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 7063 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 7064 | cat >> confdefs.h <<\EOF | 
 | 7065 | #if defined(SCO_DS) | 
 | 7066 | #undef _OFF_T | 
 | 7067 | #endif | 
 | 7068 | EOF | 
 | 7069 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7070 | # Type availability checks | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7071 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7072 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7073 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7074 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7075 |  | 
 | 7076 | cat >>confdefs.h <<_ACEOF | 
 | 7077 | #define mode_t int | 
 | 7078 | _ACEOF | 
 | 7079 |  | 
 | 7080 | fi | 
 | 7081 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7082 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7083 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7084 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7085 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7086 |  | 
 | 7087 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7088 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7089 | _ACEOF | 
 | 7090 |  | 
 | 7091 | fi | 
 | 7092 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7093 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7094 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7095 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7096 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7097 |  | 
 | 7098 | cat >>confdefs.h <<_ACEOF | 
 | 7099 | #define pid_t int | 
 | 7100 | _ACEOF | 
 | 7101 |  | 
 | 7102 | fi | 
 | 7103 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7104 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7105 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | cbf54b1 | 2010-05-08 11:04:18 +0000 | [diff] [blame] | 7106 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7107 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7108 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7109 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7110 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7111 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7112 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7113 |  | 
 | 7114 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7115 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7116 | _ACEOF | 
 | 7117 |  | 
 | 7118 | fi | 
 | 7119 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
 | 7121 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7122 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7123 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7124 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7125 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7126 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7127 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7128 |  | 
 | 7129 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7130 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7131 |   $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7132 |   ac_cv_type_uid_t=yes | 
 | 7133 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7134 |   ac_cv_type_uid_t=no | 
 | 7135 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 7136 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7137 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7138 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
 | 7140 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7141 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7142 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7143 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7144 |  | 
 | 7145 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7146 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7147 |  | 
 | 7148 | fi | 
 | 7149 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7150 |  | 
 | 7151 | # There are two separate checks for each of the exact-width integer types we | 
 | 7152 | # need.  First we check whether the type is available using the usual | 
 | 7153 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> | 
 | 7154 | # and <stdint.h> where available).  We then also use the special type checks of | 
 | 7155 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available | 
 | 7156 | # directly, #define's uint32_t to be a suitable type. | 
 | 7157 |  | 
 | 7158 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | 
 | 7159 | if test "x$ac_cv_type_uint32_t" = xyes; then : | 
 | 7160 |  | 
 | 7161 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h | 
 | 7162 |  | 
 | 7163 | fi | 
 | 7164 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7165 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
 | 7166 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7167 |   no|yes) ;; #( | 
 | 7168 |   *) | 
 | 7169 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7170 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7171 |  | 
 | 7172 |  | 
 | 7173 | cat >>confdefs.h <<_ACEOF | 
 | 7174 | #define uint32_t $ac_cv_c_uint32_t | 
 | 7175 | _ACEOF | 
 | 7176 | ;; | 
 | 7177 |   esac | 
 | 7178 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7179 |  | 
 | 7180 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" | 
 | 7181 | if test "x$ac_cv_type_uint64_t" = xyes; then : | 
 | 7182 |  | 
 | 7183 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h | 
 | 7184 |  | 
 | 7185 | fi | 
 | 7186 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7187 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
 | 7188 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7189 |   no|yes) ;; #( | 
 | 7190 |   *) | 
 | 7191 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7192 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7193 |  | 
 | 7194 |  | 
 | 7195 | cat >>confdefs.h <<_ACEOF | 
 | 7196 | #define uint64_t $ac_cv_c_uint64_t | 
 | 7197 | _ACEOF | 
 | 7198 | ;; | 
 | 7199 |   esac | 
 | 7200 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7201 |  | 
 | 7202 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" | 
 | 7203 | if test "x$ac_cv_type_int32_t" = xyes; then : | 
 | 7204 |  | 
 | 7205 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h | 
 | 7206 |  | 
 | 7207 | fi | 
 | 7208 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7209 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
 | 7210 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7211 |   no|yes) ;; #( | 
 | 7212 |   *) | 
 | 7213 |  | 
 | 7214 | cat >>confdefs.h <<_ACEOF | 
 | 7215 | #define int32_t $ac_cv_c_int32_t | 
 | 7216 | _ACEOF | 
 | 7217 | ;; | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7218 | esac | 
 | 7219 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7220 |  | 
 | 7221 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" | 
 | 7222 | if test "x$ac_cv_type_int64_t" = xyes; then : | 
 | 7223 |  | 
 | 7224 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | 
 | 7225 |  | 
 | 7226 | fi | 
 | 7227 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7228 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
 | 7229 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7230 |   no|yes) ;; #( | 
 | 7231 |   *) | 
 | 7232 |  | 
 | 7233 | cat >>confdefs.h <<_ACEOF | 
 | 7234 | #define int64_t $ac_cv_c_int64_t | 
 | 7235 | _ACEOF | 
 | 7236 | ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7237 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7238 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7239 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7240 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7241 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7242 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7243 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7244 |  | 
 | 7245 | fi | 
 | 7246 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7247 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7248 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7249 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7250 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7251 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7252 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7253 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
 | 7255 | $as_echo_n "checking size of int... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7256 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7257 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7258 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7259 |   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] | 7260 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7261 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7262 |   if test "$ac_cv_type_int" = yes; then | 
 | 7263 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7264 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7265 | as_fn_error 77 "cannot compute sizeof (int) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7266 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7267 |    else | 
 | 7268 |      ac_cv_sizeof_int=0 | 
 | 7269 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7270 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7271 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7272 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
 | 7274 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7275 |  | 
 | 7276 |  | 
 | 7277 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7278 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7279 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7280 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7281 |  | 
 | 7282 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7283 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7284 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7285 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7286 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
 | 7288 | $as_echo_n "checking size of long... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7289 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7290 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7291 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7292 |   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] | 7293 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7294 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7295 |   if test "$ac_cv_type_long" = yes; then | 
 | 7296 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7297 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7298 | as_fn_error 77 "cannot compute sizeof (long) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7299 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7300 |    else | 
 | 7301 |      ac_cv_sizeof_long=0 | 
 | 7302 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7303 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7304 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7305 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
 | 7307 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7308 |  | 
 | 7309 |  | 
 | 7310 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7311 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7312 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7313 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7314 |  | 
 | 7315 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7316 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7317 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7318 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7319 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
 | 7321 | $as_echo_n "checking size of void *... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7322 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7323 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7324 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7325 |   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] | 7326 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7327 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7328 |   if test "$ac_cv_type_void_p" = yes; then | 
 | 7329 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7330 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7331 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7332 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7333 |    else | 
 | 7334 |      ac_cv_sizeof_void_p=0 | 
 | 7335 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7336 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7337 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7338 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
 | 7340 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7341 |  | 
 | 7342 |  | 
 | 7343 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7344 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7345 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7346 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7347 |  | 
 | 7348 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7349 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7350 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7351 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7352 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
 | 7354 | $as_echo_n "checking size of short... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7355 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7356 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7357 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7358 |   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] | 7359 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7360 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7361 |   if test "$ac_cv_type_short" = yes; then | 
 | 7362 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7363 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7364 | as_fn_error 77 "cannot compute sizeof (short) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7365 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7366 |    else | 
 | 7367 |      ac_cv_sizeof_short=0 | 
 | 7368 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7369 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7370 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7371 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
 | 7373 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7374 |  | 
 | 7375 |  | 
 | 7376 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7377 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7378 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7379 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7380 |  | 
 | 7381 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7382 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7383 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7384 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7385 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
 | 7387 | $as_echo_n "checking size of float... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7388 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7389 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7390 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7391 |   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] | 7392 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7393 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7394 |   if test "$ac_cv_type_float" = yes; then | 
 | 7395 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7397 | as_fn_error 77 "cannot compute sizeof (float) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7398 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7399 |    else | 
 | 7400 |      ac_cv_sizeof_float=0 | 
 | 7401 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7402 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7403 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7404 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
 | 7406 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7407 |  | 
 | 7408 |  | 
 | 7409 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7410 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7411 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7412 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7413 |  | 
 | 7414 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7415 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7416 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7417 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7418 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
 | 7420 | $as_echo_n "checking size of double... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7421 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7422 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7423 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7424 |   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] | 7425 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7426 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7427 |   if test "$ac_cv_type_double" = yes; then | 
 | 7428 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7429 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7430 | as_fn_error 77 "cannot compute sizeof (double) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7431 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7432 |    else | 
 | 7433 |      ac_cv_sizeof_double=0 | 
 | 7434 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7435 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7436 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7437 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
 | 7439 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7440 |  | 
 | 7441 |  | 
 | 7442 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7443 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7444 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7445 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7446 |  | 
 | 7447 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7448 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7449 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7450 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7451 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
 | 7453 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7454 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7455 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7456 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7457 |   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] | 7458 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7459 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7460 |   if test "$ac_cv_type_fpos_t" = yes; then | 
 | 7461 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7462 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7463 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7464 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7465 |    else | 
 | 7466 |      ac_cv_sizeof_fpos_t=0 | 
 | 7467 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7468 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7469 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7470 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
 | 7472 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7473 |  | 
 | 7474 |  | 
 | 7475 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7476 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7477 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7478 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7479 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7480 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7481 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7482 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7483 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7484 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
 | 7486 | $as_echo_n "checking size of size_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7487 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7488 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7489 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7490 |   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] | 7491 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7492 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7493 |   if test "$ac_cv_type_size_t" = yes; then | 
 | 7494 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7495 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7496 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7497 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7498 |    else | 
 | 7499 |      ac_cv_sizeof_size_t=0 | 
 | 7500 |    fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7501 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7502 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7503 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
 | 7505 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7506 |  | 
 | 7507 |  | 
 | 7508 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7509 | cat >>confdefs.h <<_ACEOF | 
 | 7510 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
 | 7511 | _ACEOF | 
 | 7512 |  | 
 | 7513 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7514 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7515 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7516 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7517 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
 | 7519 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7520 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7521 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7522 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7523 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then : | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7524 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7525 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7526 |   if test "$ac_cv_type_pid_t" = yes; then | 
 | 7527 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7528 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7529 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7530 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7531 |    else | 
 | 7532 |      ac_cv_sizeof_pid_t=0 | 
 | 7533 |    fi | 
 | 7534 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7535 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7536 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
 | 7538 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7539 |  | 
 | 7540 |  | 
 | 7541 |  | 
 | 7542 | cat >>confdefs.h <<_ACEOF | 
 | 7543 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
 | 7544 | _ACEOF | 
 | 7545 |  | 
 | 7546 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7547 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
 | 7549 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7550 | have_long_long=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7552 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7553 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7554 | int | 
 | 7555 | main () | 
 | 7556 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7557 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7558 |   ; | 
 | 7559 |   return 0; | 
 | 7560 | } | 
 | 7561 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7562 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7563 |  | 
 | 7564 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7565 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7566 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7567 |   have_long_long=yes | 
 | 7568 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7569 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
 | 7572 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7573 | if test "$have_long_long" = yes ; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7574 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7575 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7576 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7577 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
 | 7579 | $as_echo_n "checking size of long long... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7580 | if ${ac_cv_sizeof_long_long+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7581 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7582 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7583 |   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] | 7584 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7585 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7586 |   if test "$ac_cv_type_long_long" = yes; then | 
 | 7587 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7588 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7589 | as_fn_error 77 "cannot compute sizeof (long long) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7590 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7591 |    else | 
 | 7592 |      ac_cv_sizeof_long_long=0 | 
 | 7593 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7594 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7595 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7596 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
 | 7598 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7599 |  | 
 | 7600 |  | 
 | 7601 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7602 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7603 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7604 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7605 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7606 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7607 | fi | 
 | 7608 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
 | 7610 | $as_echo_n "checking for long double support... " >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7611 | have_long_double=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7613 | /* end confdefs.h.  */ | 
 | 7614 |  | 
 | 7615 | int | 
 | 7616 | main () | 
 | 7617 | { | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7618 | long double x; x = (long double)0; | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7619 |   ; | 
 | 7620 |   return 0; | 
 | 7621 | } | 
 | 7622 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7623 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7624 |  | 
 | 7625 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7626 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7627 |  | 
 | 7628 |   have_long_double=yes | 
 | 7629 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7630 | fi | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
 | 7633 | $as_echo "$have_long_double" >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7634 | if test "$have_long_double" = yes ; then | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7635 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7636 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7637 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7638 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
 | 7640 | $as_echo_n "checking size of long double... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7641 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7642 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7643 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7644 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then : | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7645 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7646 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7647 |   if test "$ac_cv_type_long_double" = yes; then | 
 | 7648 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7649 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7650 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7651 | See \`config.log' for more details" "$LINENO" 5; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7652 |    else | 
 | 7653 |      ac_cv_sizeof_long_double=0 | 
 | 7654 |    fi | 
 | 7655 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7656 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7657 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
 | 7659 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7660 |  | 
 | 7661 |  | 
 | 7662 |  | 
 | 7663 | cat >>confdefs.h <<_ACEOF | 
 | 7664 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
 | 7665 | _ACEOF | 
 | 7666 |  | 
 | 7667 |  | 
 | 7668 | fi | 
 | 7669 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
 | 7671 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7672 | have_c99_bool=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7674 | /* end confdefs.h.  */ | 
 | 7675 |  | 
 | 7676 | int | 
 | 7677 | main () | 
 | 7678 | { | 
 | 7679 | _Bool x; x = (_Bool)0; | 
 | 7680 |   ; | 
 | 7681 |   return 0; | 
 | 7682 | } | 
 | 7683 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7684 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7685 |  | 
 | 7686 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7687 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7688 |  | 
 | 7689 |   have_c99_bool=yes | 
 | 7690 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7691 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
 | 7694 | $as_echo "$have_c99_bool" >&6; } | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7695 | if test "$have_c99_bool" = yes ; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7696 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7697 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7698 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7699 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
 | 7701 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7702 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7703 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7704 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7705 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then : | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7706 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7707 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7708 |   if test "$ac_cv_type__Bool" = yes; then | 
 | 7709 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7710 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7711 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7712 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7713 |    else | 
 | 7714 |      ac_cv_sizeof__Bool=0 | 
 | 7715 |    fi | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7716 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7717 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7718 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
 | 7720 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7721 |  | 
 | 7722 |  | 
 | 7723 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7724 | cat >>confdefs.h <<_ACEOF | 
 | 7725 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
 | 7726 | _ACEOF | 
 | 7727 |  | 
 | 7728 |  | 
 | 7729 | fi | 
 | 7730 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7731 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H | 
| Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 7732 |         #include <stdint.h> | 
 | 7733 |         #endif | 
| Antoine Pitrou | 7be5a65 | 2010-10-10 08:14:41 +0000 | [diff] [blame] | 7734 |         #ifdef HAVE_INTTYPES_H | 
 | 7735 |         #include <inttypes.h> | 
 | 7736 |         #endif | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7737 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7738 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
| Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7739 |  | 
 | 7740 | cat >>confdefs.h <<_ACEOF | 
 | 7741 | #define HAVE_UINTPTR_T 1 | 
 | 7742 | _ACEOF | 
 | 7743 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7744 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7745 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7746 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7747 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
 | 7749 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7750 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7751 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7752 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7753 |   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] | 7754 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7755 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7756 |   if test "$ac_cv_type_uintptr_t" = yes; then | 
 | 7757 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7758 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7759 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7760 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7761 |    else | 
 | 7762 |      ac_cv_sizeof_uintptr_t=0 | 
 | 7763 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7764 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7765 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7766 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
 | 7768 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7769 |  | 
 | 7770 |  | 
 | 7771 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7772 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7773 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7774 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7775 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7776 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7777 | fi | 
 | 7778 |  | 
| Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7779 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7780 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7781 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7782 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7783 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
 | 7785 | $as_echo_n "checking size of off_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7786 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7787 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7788 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7789 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7790 | #ifdef HAVE_SYS_TYPES_H | 
 | 7791 | #include <sys/types.h> | 
 | 7792 | #endif | 
 | 7793 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7794 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7795 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7796 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7797 |   if test "$ac_cv_type_off_t" = yes; then | 
 | 7798 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7799 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7800 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7801 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7802 |    else | 
 | 7803 |      ac_cv_sizeof_off_t=0 | 
 | 7804 |    fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7805 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7806 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7807 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
 | 7809 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7810 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7811 |  | 
 | 7812 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7813 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7814 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7815 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7816 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7817 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7818 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
 | 7820 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7821 | if test "$have_long_long" = yes | 
 | 7822 | then | 
 | 7823 | 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] | 7824 | 	"$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] | 7825 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7826 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7827 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7828 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 7829 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7830 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7831 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7832 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7833 | fi | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7834 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7835 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7836 | $as_echo "no" >&6; } | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7837 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7838 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7839 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7840 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7841 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7842 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
 | 7844 | $as_echo_n "checking size of time_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7845 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7846 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7847 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7848 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7849 | #ifdef HAVE_SYS_TYPES_H | 
 | 7850 | #include <sys/types.h> | 
 | 7851 | #endif | 
 | 7852 | #ifdef HAVE_TIME_H | 
 | 7853 | #include <time.h> | 
 | 7854 | #endif | 
 | 7855 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7856 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7857 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7858 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7859 |   if test "$ac_cv_type_time_t" = yes; then | 
 | 7860 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7861 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7862 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7863 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7864 |    else | 
 | 7865 |      ac_cv_sizeof_time_t=0 | 
 | 7866 |    fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7867 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7868 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7869 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
 | 7871 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7872 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7873 |  | 
 | 7874 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7876 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7877 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7878 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7879 |  | 
 | 7880 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7881 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7882 | ac_save_cc="$CC" | 
 | 7883 | if test "$ac_cv_kpthread" = "yes" | 
 | 7884 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7885 | elif test "$ac_cv_kthread" = "yes" | 
 | 7886 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7887 | elif test "$ac_cv_pthread" = "yes" | 
 | 7888 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7889 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
 | 7891 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7892 | have_pthread_t=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7894 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7895 |  | 
 | 7896 |   #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7897 | int | 
 | 7898 | main () | 
 | 7899 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7900 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7901 |   ; | 
 | 7902 |   return 0; | 
 | 7903 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7904 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7905 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7906 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7907 |   have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7908 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
 | 7911 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7912 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7913 |   # The cast to long int works around a bug in the HP C Compiler | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7914 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7915 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7916 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
 | 7918 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7919 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7920 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7921 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7922 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7923 | #ifdef HAVE_PTHREAD_H | 
 | 7924 | #include <pthread.h> | 
 | 7925 | #endif | 
 | 7926 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7927 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7928 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7929 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7930 |   if test "$ac_cv_type_pthread_t" = yes; then | 
 | 7931 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7932 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7933 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7934 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7935 |    else | 
 | 7936 |      ac_cv_sizeof_pthread_t=0 | 
 | 7937 |    fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7938 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7939 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7940 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
 | 7942 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7943 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7944 |  | 
 | 7945 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7947 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7948 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7949 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7950 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7951 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7952 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7953 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5 | 
 | 7955 | $as_echo_n "checking for --enable-toolbox-glue... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7956 | # Check whether --enable-toolbox-glue was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7957 | if test "${enable_toolbox_glue+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7958 |   enableval=$enable_toolbox_glue; | 
 | 7959 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7960 |  | 
 | 7961 |  | 
 | 7962 | if test -z "$enable_toolbox_glue" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7963 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7964 | 	case $ac_sys_system/$ac_sys_release in | 
 | 7965 | 	Darwin/*) | 
 | 7966 | 		enable_toolbox_glue="yes";; | 
 | 7967 | 	*) | 
 | 7968 | 		enable_toolbox_glue="no";; | 
 | 7969 | 	esac | 
 | 7970 | fi | 
 | 7971 | case "$enable_toolbox_glue" in | 
 | 7972 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7973 | 	extra_machdep_objs="Python/mactoolboxglue.o" | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7974 | 	extra_undefs="-u _PyMac_Error" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7975 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7976 | $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7977 |  | 
 | 7978 | 	;; | 
 | 7979 | *) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7980 | 	extra_machdep_objs="" | 
| Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 7981 | 	extra_undefs="" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7982 | 	;; | 
 | 7983 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5 | 
 | 7985 | $as_echo "$enable_toolbox_glue" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7986 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7987 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 7988 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7989 | case $ac_sys_system/$ac_sys_release in | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 7990 |   Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7991 |     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
 | 7992 |     ;; | 
 | 7993 |   Darwin/*) | 
 | 7994 |     OTHER_LIBTOOL_OPT="" | 
 | 7995 |     ;; | 
 | 7996 | esac | 
 | 7997 |  | 
 | 7998 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7999 | ARCH_RUN_32BIT="" | 
 | 8000 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8001 | case $ac_sys_system/$ac_sys_release in | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 8002 |   Darwin/[01567]\..*) | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8003 |     LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
 | 8004 |     if test "${enable_universalsdk}"; then | 
 | 8005 | 	    : | 
 | 8006 |     else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8007 |         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8008 |     fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8009 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8010 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8011 |   Darwin/*) | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 8012 |     gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8013 |     if test ${gcc_version} '<' 4.0 | 
 | 8014 |         then | 
 | 8015 |             LIBTOOL_CRUFT="-lcc_dynamic" | 
 | 8016 |         else | 
 | 8017 |             LIBTOOL_CRUFT="" | 
 | 8018 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8019 |     if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8020 |   ac_osx_32bit=yes | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8021 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8022 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8023 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8024 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8025 |     #include <unistd.h> | 
 | 8026 |     int main(int argc, char*argv[]) | 
 | 8027 |     { | 
 | 8028 |       if (sizeof(long) == 4) { | 
 | 8029 |     	  return 0; | 
 | 8030 |       } else { | 
 | 8031 |       	  return 1; | 
 | 8032 |       } | 
| Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 8033 |     } | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8034 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8035 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8036 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8037 |   ac_osx_32bit=yes | 
 | 8038 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8039 |   ac_osx_32bit=no | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8040 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8041 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 8042 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8043 | fi | 
 | 8044 |  | 
 | 8045 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8046 |     if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8047 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8048 |     	i386) | 
 | 8049 |     		MACOSX_DEFAULT_ARCH="i386" | 
 | 8050 |     		;; | 
 | 8051 |     	ppc) | 
 | 8052 |     		MACOSX_DEFAULT_ARCH="ppc" | 
 | 8053 |     		;; | 
 | 8054 |     	*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8055 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8056 |     		;; | 
 | 8057 |     	esac | 
 | 8058 |     else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8059 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8060 |     	i386) | 
 | 8061 |     		MACOSX_DEFAULT_ARCH="x86_64" | 
 | 8062 |     		;; | 
 | 8063 |     	ppc) | 
 | 8064 |     		MACOSX_DEFAULT_ARCH="ppc64" | 
 | 8065 |     		;; | 
 | 8066 |     	*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8067 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8068 |     		;; | 
 | 8069 |     	esac | 
 | 8070 |  | 
 | 8071 | 	#ARCH_RUN_32BIT="true" | 
 | 8072 |     fi | 
 | 8073 |  | 
 | 8074 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8075 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8076 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8077 | esac | 
 | 8078 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
 | 8080 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8081 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8082 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8083 | 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8084 | 	# -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8085 | 	# in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8086 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8087 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8088 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8089 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8090 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 8091 | 	if test $enable_shared = "yes" | 
 | 8092 | 	then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8093 | 		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5 | 
| Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 8094 | 	fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8095 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8096 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8097 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8098 | fi | 
 | 8099 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
 | 8101 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8102 | case $ac_sys_system/$ac_sys_release in | 
 | 8103 |   Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8104 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8105 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8106 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8107 |   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
 | 8108 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8109 |   	;; | 
 | 8110 |   *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8111 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8112 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8113 | 	;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8114 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8115 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8116 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8117 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8118 |  | 
 | 8119 |  | 
 | 8120 |  | 
 | 8121 |  | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8122 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8123 | # SO is the extension of shared libraries `(including the dot!) | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8124 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 | 
 | 8126 | $as_echo_n "checking SO... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8127 | if test -z "$SO" | 
 | 8128 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8129 | 	case $ac_sys_system in | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8130 | 	hp*|HP*) | 
 | 8131 | 		case `uname -m` in | 
 | 8132 | 			ia64) SO=.so;; | 
 | 8133 | 	  		*)    SO=.sl;; | 
 | 8134 | 		esac | 
 | 8135 | 		;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8136 | 	CYGWIN*)   SO=.dll;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8137 | 	*)	   SO=.so;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8138 | 	esac | 
| Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 8139 | else | 
 | 8140 | 	# this might also be a termcap variable, see #610332 | 
 | 8141 |         echo | 
 | 8142 |         echo '=====================================================================' | 
 | 8143 |         echo '+                                                                   +' | 
 | 8144 | 	echo '+ WARNING: You have set SO in your environment.                     +' | 
 | 8145 |         echo '+ Do you really mean to change the extension for shared libraries?  +' | 
 | 8146 |         echo '+ Continuing in 10 seconds to let you to ponder.                    +' | 
 | 8147 |         echo '+                                                                   +' | 
 | 8148 |         echo '=====================================================================' | 
 | 8149 | 	sleep 10 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8150 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 | 
 | 8152 | $as_echo "$SO" >&6; } | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8153 |  | 
| Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 8154 |  | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8155 | cat >>confdefs.h <<_ACEOF | 
 | 8156 | #define SHLIB_EXT "$SO" | 
 | 8157 | _ACEOF | 
 | 8158 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8159 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 8160 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8161 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 8162 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
 | 8164 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8165 | if test -z "$LDSHARED" | 
 | 8166 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8167 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8168 | 	AIX*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8169 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8170 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8171 | 		;; | 
 | 8172 | 	BeOS*) | 
 | 8173 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8174 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8175 | 		;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8176 | 	IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8177 | 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8178 | 	SunOS/5*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8179 | 		if test "$GCC" = "yes" ; then | 
 | 8180 | 			LDSHARED='$(CC) -shared' | 
 | 8181 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 8182 | 		else | 
 | 8183 | 			LDSHARED='$(CC) -G' | 
 | 8184 | 			LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8185 | 		fi ;; | 
| Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 8186 | 	hp*|HP*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8187 | 		if test "$GCC" = "yes" ; then | 
 | 8188 | 			LDSHARED='$(CC) -shared' | 
 | 8189 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 8190 | 		else | 
 | 8191 | 			LDSHARED='ld -b' | 
| Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 8192 | 		fi ;; | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8193 | 	OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8194 | 	Darwin/1.3*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8195 | 		LDSHARED='$(CC) -bundle' | 
 | 8196 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8197 | 		if test "$enable_framework" ; then | 
 | 8198 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8199 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 8200 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8201 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8202 | 		else | 
 | 8203 | 			# No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8204 | 			LDSHARED="$LDSHARED -undefined suppress" | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8205 | 			LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8206 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8207 | 	Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8208 | 		LDSHARED='$(CC) -bundle' | 
 | 8209 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8210 | 		if test "$enable_framework" ; then | 
 | 8211 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8212 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 8213 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8214 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8215 | 		else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8216 | 			# No framework, use the Python app as bundle-loader | 
 | 8217 | 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 8218 | 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8219 | 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8220 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8221 | 	Darwin/*) | 
 | 8222 | 		# Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
 | 8223 | 		# This allows an extension to be used in any Python | 
| Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 8224 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 8225 | 		if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8226 | 		then | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8227 | 			if test "${enable_universalsdk}"; then | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 8228 | 				LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8229 | 			fi | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8230 | 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
 | 8231 | 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8232 | 			BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8233 | 		else | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8234 | 			LDSHARED='$(CC) -bundle' | 
 | 8235 | 			LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8236 | 			if test "$enable_framework" ; then | 
 | 8237 | 				# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8238 | 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 8239 | 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8240 | 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8241 | 			else | 
 | 8242 | 				# No framework, use the Python app as bundle-loader | 
 | 8243 | 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
 | 8244 | 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8245 | 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8246 | 			fi | 
 | 8247 | 		fi | 
 | 8248 | 		;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8249 | 	Linux*|GNU*|QNX*) | 
 | 8250 | 		LDSHARED='$(CC) -shared' | 
 | 8251 | 		LDCXXSHARED='$(CXX) -shared';; | 
 | 8252 | 	BSD/OS*/4*) | 
 | 8253 | 		LDSHARED="gcc -shared" | 
 | 8254 | 		LDCXXSHARED="g++ -shared";; | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8255 | 	FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8256 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8257 | 		then | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8258 | 			LDSHARED='$(CC) -shared' | 
 | 8259 | 			LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8260 | 		else | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8261 | 			LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8262 | 		fi;; | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8263 | 	OpenBSD*) | 
 | 8264 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 8265 | 		then | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8266 | 				LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 8267 | 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8268 | 		else | 
 | 8269 | 				case `uname -r` in | 
 | 8270 | 				[01].* | 2.[0-7] | 2.[0-7].*) | 
 | 8271 | 				   LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 8272 | 				   ;; | 
 | 8273 | 				*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8274 | 				   LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 8275 | 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8276 | 				   ;; | 
 | 8277 | 				esac | 
 | 8278 | 		fi;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8279 | 	NetBSD*|DragonFly*) | 
| Antoine Pitrou | cb40277 | 2011-01-02 20:51:34 +0000 | [diff] [blame] | 8280 | 		LDSHARED='$(CC) -shared' | 
 | 8281 | 		LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8282 | 	OpenUNIX*|UnixWare*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8283 | 		if test "$GCC" = "yes" ; then | 
 | 8284 | 			LDSHARED='$(CC) -shared' | 
 | 8285 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 8286 | 		else | 
 | 8287 | 			LDSHARED='$(CC) -G' | 
 | 8288 | 			LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8289 | 		fi;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8290 | 	SCO_SV*) | 
 | 8291 | 		LDSHARED='$(CC) -Wl,-G,-Bexport' | 
 | 8292 | 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
 | 8293 | 	CYGWIN*) | 
 | 8294 | 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
 | 8295 | 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
 | 8296 | 	atheos*) | 
 | 8297 | 		LDSHARED="gcc -shared" | 
 | 8298 | 		LDCXXSHARED="g++ -shared";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8299 | 	*)	LDSHARED="ld";; | 
 | 8300 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8301 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
 | 8303 | $as_echo "$LDSHARED" >&6; } | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8304 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8305 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8306 | # 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] | 8307 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
 | 8309 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8310 | if test -z "$CCSHARED" | 
 | 8311 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8312 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8313 | 	SunOS*) if test "$GCC" = yes; | 
| Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 8314 | 		then CCSHARED="-fPIC"; | 
 | 8315 | 		elif test `uname -p` = sparc; | 
 | 8316 | 		then CCSHARED="-xcode=pic32"; | 
 | 8317 | 		else CCSHARED="-Kpic"; | 
 | 8318 | 		fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8319 | 	hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8320 | 		 then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8321 | 		 else CCSHARED="+z"; | 
 | 8322 | 		 fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8323 | 	Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8324 | 	BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 8325 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8326 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8327 | 		if test "$GCC" = "yes" | 
 | 8328 | 		then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8329 | 		else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8330 | 		fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8331 | 	SCO_SV*) | 
 | 8332 | 		if test "$GCC" = "yes" | 
 | 8333 | 		then CCSHARED="-fPIC" | 
 | 8334 | 		else CCSHARED="-Kpic -belf" | 
 | 8335 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8336 | 	IRIX*/6*)  case $CC in | 
 | 8337 | 		   *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8338 | 		   *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8339 | 		   esac;; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8340 | 	atheos*) CCSHARED="-fPIC";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8341 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8342 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
 | 8344 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8345 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8346 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
 | 8348 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8349 | if test -z "$LINKFORSHARED" | 
 | 8350 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8351 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8352 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8353 | 	hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8354 | 	    LINKFORSHARED="-Wl,-E -Wl,+s";; | 
 | 8355 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8356 | 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8357 | 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8358 | 	# -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8359 | 	Darwin/*) | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8360 | 		# -u _PyMac_Error is needed to pull in the mac toolbox glue, | 
 | 8361 | 		# which is | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8362 | 		# not used by the core itself but which needs to be in the core so | 
 | 8363 | 		# that dynamically loaded extension modules have access to it. | 
| Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 8364 | 		# -prebind is no longer used, because it actually seems to give a | 
 | 8365 | 		# slowdown in stead of a speedup, maybe due to the large number of | 
 | 8366 | 		# dynamic loads Python does. | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8367 |  | 
 | 8368 | 		LINKFORSHARED="$extra_undefs" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8369 | 		if test "$enable_framework" | 
 | 8370 | 		then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8371 | 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8372 | 		fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8373 | 		LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8374 | 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8375 | 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8376 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 8377 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8378 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 8379 | 		then | 
 | 8380 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 8381 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8382 | 	SunOS/5*) case $CC in | 
 | 8383 | 		  *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8384 | 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8385 | 		    then | 
 | 8386 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8387 | 		    fi;; | 
 | 8388 | 		  esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 8389 | 	CYGWIN*) | 
 | 8390 | 		if test $enable_shared = "no" | 
 | 8391 | 		then | 
 | 8392 | 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
 | 8393 | 		fi;; | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 8394 | 	QNX*) | 
 | 8395 | 		# -Wl,-E causes the symbols to be added to the dynamic | 
 | 8396 | 		# symbol table so that they can be found when a module | 
 | 8397 | 		# is loaded.  -N 2048K causes the stack size to be set | 
 | 8398 | 		# to 2048 kilobytes so that the stack doesn't overflow | 
 | 8399 | 		# when running test_compile.py. | 
 | 8400 | 		LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8401 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8402 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
 | 8404 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8405 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8406 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 8407 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
 | 8409 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8410 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 8411 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8412 | 	case $ac_sys_system in | 
 | 8413 | 	CYGWIN*) | 
 | 8414 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 8415 | 		# but not when building the interpreter DLL. | 
 | 8416 | 		CFLAGSFORSHARED='';; | 
 | 8417 | 	*) | 
 | 8418 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 8419 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8420 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
 | 8422 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8423 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8424 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
 | 8425 | # library (with --enable-shared). | 
 | 8426 | # 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] | 8427 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
 | 8428 | # if it is not required, since it creates a dependency of the shared library | 
 | 8429 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
 | 8430 | # don't need to link LIBS explicitly. The default should be only changed | 
 | 8431 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8432 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
 | 8434 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8435 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8436 | 	*) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 8437 | 		SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8438 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
 | 8440 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8441 |  | 
 | 8442 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8443 | # checks for libraries | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 8445 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8446 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8447 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8448 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8449 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8450 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8452 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8453 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8454 | /* Override any GCC internal prototype to avoid an error. | 
 | 8455 |    Use char because int might match the return type of a GCC | 
 | 8456 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8457 | #ifdef __cplusplus | 
 | 8458 | extern "C" | 
 | 8459 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8460 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8461 | int | 
 | 8462 | main () | 
 | 8463 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8464 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8465 |   ; | 
 | 8466 |   return 0; | 
 | 8467 | } | 
 | 8468 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8469 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8470 |   ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8471 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8472 |   ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8473 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8474 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8475 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8476 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8477 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 8479 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8480 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 |   cat >>confdefs.h <<_ACEOF | 
 | 8482 | #define HAVE_LIBDL 1 | 
 | 8483 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8484 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8485 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8486 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8487 | fi | 
 | 8488 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 8490 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8491 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8492 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8493 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8494 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8495 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8497 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8499 | /* Override any GCC internal prototype to avoid an error. | 
 | 8500 |    Use char because int might match the return type of a GCC | 
 | 8501 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8502 | #ifdef __cplusplus | 
 | 8503 | extern "C" | 
 | 8504 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8506 | int | 
 | 8507 | main () | 
 | 8508 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8509 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 |   ; | 
 | 8511 |   return 0; | 
 | 8512 | } | 
 | 8513 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8514 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8515 |   ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8516 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8517 |   ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8518 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8519 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8520 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8521 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8522 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 8524 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8525 | 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] | 8526 |   cat >>confdefs.h <<_ACEOF | 
 | 8527 | #define HAVE_LIBDLD 1 | 
 | 8528 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8529 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8530 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8531 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8532 | fi | 
 | 8533 | 	# Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8534 |  | 
| Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 8535 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8536 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8537 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
 | 8538 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8539 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8540 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8541 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8542 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8544 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8545 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8546 | /* Override any GCC internal prototype to avoid an error. | 
 | 8547 |    Use char because int might match the return type of a GCC | 
 | 8548 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8549 | #ifdef __cplusplus | 
 | 8550 | extern "C" | 
 | 8551 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8552 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8553 | int | 
 | 8554 | main () | 
 | 8555 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8556 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8557 |   ; | 
 | 8558 |   return 0; | 
 | 8559 | } | 
 | 8560 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8561 | for ac_lib in '' pthread rt posix4; do | 
 | 8562 |   if test -z "$ac_lib"; then | 
 | 8563 |     ac_res="none required" | 
 | 8564 |   else | 
 | 8565 |     ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8566 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8567 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8568 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8569 |   ac_cv_search_sem_init=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 8570 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8571 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8572 |     conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8573 |   if ${ac_cv_search_sem_init+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8574 |   break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8575 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8576 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8577 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8578 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8579 | else | 
 | 8580 |   ac_cv_search_sem_init=no | 
 | 8581 | fi | 
 | 8582 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8583 | LIBS=$ac_func_search_save_LIBS | 
 | 8584 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
 | 8586 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8587 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8588 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8589 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8590 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8591 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 8592 |  # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8593 | 						# posix4 on Solaris 2.6 | 
 | 8594 | 						# pthread (first!) on Linux | 
 | 8595 | fi | 
 | 8596 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8597 | # check if we need libintl for locale functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
 | 8599 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8600 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8601 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8602 | else | 
 | 8603 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8604 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8606 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8607 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8608 | /* Override any GCC internal prototype to avoid an error. | 
 | 8609 |    Use char because int might match the return type of a GCC | 
 | 8610 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8611 | #ifdef __cplusplus | 
 | 8612 | extern "C" | 
 | 8613 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8614 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8615 | int | 
 | 8616 | main () | 
 | 8617 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8618 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8619 |   ; | 
 | 8620 |   return 0; | 
 | 8621 | } | 
 | 8622 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8623 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8624 |   ac_cv_lib_intl_textdomain=yes | 
 | 8625 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8626 |   ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8627 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8628 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8629 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8630 | LIBS=$ac_check_lib_save_LIBS | 
 | 8631 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
 | 8633 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8634 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8635 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8636 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8637 |  | 
 | 8638 | fi | 
 | 8639 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8640 |  | 
 | 8641 | # checks for system dependent C++ extensions support | 
 | 8642 | case "$ac_sys_system" in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8643 | 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
 | 8644 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
 | 8645 | 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8646 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8647 |  | 
| Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 8648 | 		  #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8649 | int | 
 | 8650 | main () | 
 | 8651 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8652 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8653 |   ; | 
 | 8654 |   return 0; | 
 | 8655 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8656 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8657 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8658 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8659 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8660 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8661 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8662 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8663 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8664 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8665 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8666 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8667 |  | 
 | 8668 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8669 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8670 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8671 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8672 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8673 |     conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8674 | 	*) ;; | 
 | 8675 | esac | 
 | 8676 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8677 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8678 | # BeOS' sockets are stashed in libnet. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
 | 8680 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8681 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8682 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8683 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8684 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8685 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8687 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8688 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8689 | /* Override any GCC internal prototype to avoid an error. | 
 | 8690 |    Use char because int might match the return type of a GCC | 
 | 8691 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8692 | #ifdef __cplusplus | 
 | 8693 | extern "C" | 
 | 8694 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8695 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8696 | int | 
 | 8697 | main () | 
 | 8698 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8699 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 |   ; | 
 | 8701 |   return 0; | 
 | 8702 | } | 
 | 8703 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8704 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 |   ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8706 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8707 |   ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8708 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8709 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8710 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8711 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8712 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
 | 8714 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8715 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8716 |   LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8717 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8718 |  # SVR4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
 | 8720 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8721 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8722 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8723 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8724 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8725 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8727 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8729 | /* Override any GCC internal prototype to avoid an error. | 
 | 8730 |    Use char because int might match the return type of a GCC | 
 | 8731 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8732 | #ifdef __cplusplus | 
 | 8733 | extern "C" | 
 | 8734 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8735 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8736 | int | 
 | 8737 | main () | 
 | 8738 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8739 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8740 |   ; | 
 | 8741 |   return 0; | 
 | 8742 | } | 
 | 8743 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8744 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8745 |   ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8746 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8747 |   ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8748 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8749 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8750 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8751 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8752 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
 | 8754 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8755 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8756 |   LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8757 | fi | 
 | 8758 |  # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8759 |  | 
| Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 8760 | case "$ac_sys_system" in | 
 | 8761 | BeOS*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5 | 
 | 8763 | $as_echo_n "checking for socket in -lnet... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8764 | if ${ac_cv_lib_net_socket+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8765 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8766 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8767 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8768 | LIBS="-lnet $LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8770 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8771 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8772 | /* Override any GCC internal prototype to avoid an error. | 
 | 8773 |    Use char because int might match the return type of a GCC | 
 | 8774 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8775 | #ifdef __cplusplus | 
 | 8776 | extern "C" | 
 | 8777 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8779 | int | 
 | 8780 | main () | 
 | 8781 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8782 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 |   ; | 
 | 8784 |   return 0; | 
 | 8785 | } | 
 | 8786 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8787 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 |   ac_cv_lib_net_socket=yes | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8789 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8790 |   ac_cv_lib_net_socket=no | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8791 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8792 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8793 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8794 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8795 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5 | 
 | 8797 | $as_echo "$ac_cv_lib_net_socket" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8798 | if test "x$ac_cv_lib_net_socket" = xyes; then : | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8799 |   LIBS="-lnet $LIBS" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8800 | fi | 
 | 8801 |  # BeOS | 
 | 8802 | ;; | 
 | 8803 | esac | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8804 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
 | 8806 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8807 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8808 | # Check whether --with-libs was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8809 | if test "${with_libs+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8810 |   withval=$with_libs; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 8812 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8813 | LIBS="$withval $LIBS" | 
 | 8814 |  | 
 | 8815 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8816 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8817 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8818 | fi | 
 | 8819 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8820 |  | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8821 | if test -n "$ac_tool_prefix"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8822 |   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
 | 8823 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8825 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8826 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8827 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8828 | else | 
 | 8829 |   case $PKG_CONFIG in | 
 | 8830 |   [\\/]* | ?:[\\/]*) | 
 | 8831 |   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
 | 8832 |   ;; | 
 | 8833 |   *) | 
 | 8834 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8835 | for as_dir in $PATH | 
 | 8836 | do | 
 | 8837 |   IFS=$as_save_IFS | 
 | 8838 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8839 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 8840 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8841 |     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8842 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8843 |     break 2 | 
 | 8844 |   fi | 
 | 8845 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8846 |   done | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8847 | IFS=$as_save_IFS | 
 | 8848 |  | 
 | 8849 |   ;; | 
 | 8850 | esac | 
 | 8851 | fi | 
 | 8852 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
 | 8853 | if test -n "$PKG_CONFIG"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8854 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
 | 8855 | $as_echo "$PKG_CONFIG" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8856 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8857 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8858 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8859 | fi | 
 | 8860 |  | 
 | 8861 |  | 
 | 8862 | fi | 
 | 8863 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
 | 8864 |   ac_pt_PKG_CONFIG=$PKG_CONFIG | 
 | 8865 |   # Extract the first word of "pkg-config", so it can be a program name with args. | 
 | 8866 | set dummy pkg-config; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8868 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8869 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8870 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8871 | else | 
 | 8872 |   case $ac_pt_PKG_CONFIG in | 
 | 8873 |   [\\/]* | ?:[\\/]*) | 
 | 8874 |   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
 | 8875 |   ;; | 
 | 8876 |   *) | 
 | 8877 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8878 | for as_dir in $PATH | 
 | 8879 | do | 
 | 8880 |   IFS=$as_save_IFS | 
 | 8881 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8882 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 8883 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8884 |     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8885 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8886 |     break 2 | 
 | 8887 |   fi | 
 | 8888 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8889 |   done | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8890 | IFS=$as_save_IFS | 
 | 8891 |  | 
 | 8892 |   ;; | 
 | 8893 | esac | 
 | 8894 | fi | 
 | 8895 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
 | 8896 | if test -n "$ac_pt_PKG_CONFIG"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8897 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
 | 8898 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8899 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8900 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8901 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8902 | fi | 
 | 8903 |  | 
 | 8904 |   if test "x$ac_pt_PKG_CONFIG" = x; then | 
 | 8905 |     PKG_CONFIG="" | 
 | 8906 |   else | 
 | 8907 |     case $cross_compiling:$ac_tool_warned in | 
 | 8908 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 8910 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8911 | ac_tool_warned=yes ;; | 
 | 8912 | esac | 
 | 8913 |     PKG_CONFIG=$ac_pt_PKG_CONFIG | 
 | 8914 |   fi | 
 | 8915 | else | 
 | 8916 |   PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
 | 8917 | fi | 
 | 8918 |  | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8919 |  | 
 | 8920 | # Check for use of the system expat library | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
 | 8922 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8923 |  | 
 | 8924 | # Check whether --with-system_expat was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8925 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8926 |   withval=$with_system_expat; | 
| Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 8927 | else | 
 | 8928 |   with_system_expat="no" | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8929 | fi | 
 | 8930 |  | 
 | 8931 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
 | 8933 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8934 |  | 
 | 8935 | # Check for use of the system libffi library | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
 | 8937 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8938 |  | 
 | 8939 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8940 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8941 |   withval=$with_system_ffi; | 
| Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 8942 | else | 
 | 8943 |   with_system_ffi="no" | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8944 | fi | 
 | 8945 |  | 
 | 8946 |  | 
 | 8947 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8948 |     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
 | 8949 | else | 
 | 8950 |     LIBFFI_INCLUDEDIR="" | 
 | 8951 | fi | 
 | 8952 |  | 
 | 8953 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
 | 8955 | $as_echo "$with_system_ffi" >&6; } | 
| Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 8956 |  | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8957 | # Check for --with-dbmliborder | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
 | 8959 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8960 |  | 
 | 8961 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8962 | if test "${with_dbmliborder+set}" = set; then : | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8963 |   withval=$with_dbmliborder; | 
 | 8964 | if test x$with_dbmliborder = xyes | 
 | 8965 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8966 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8967 | else | 
 | 8968 |   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
 | 8969 |     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
 | 8970 |     then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8971 |       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8972 |     fi | 
 | 8973 |   done | 
 | 8974 | fi | 
 | 8975 | fi | 
 | 8976 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
 | 8978 | $as_echo "$with_dbmliborder" >&6; } | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8979 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8980 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8981 |  | 
 | 8982 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
 | 8984 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8986 | # Check whether --with-signal-module was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8987 | if test "${with_signal_module+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8988 |   withval=$with_signal_module; | 
 | 8989 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8990 |  | 
 | 8991 |  | 
 | 8992 | if test -z "$with_signal_module" | 
 | 8993 | then with_signal_module="yes" | 
 | 8994 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
 | 8996 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8997 |  | 
 | 8998 | if test "${with_signal_module}" = "yes"; then | 
 | 8999 | 	USE_SIGNAL_MODULE="" | 
 | 9000 | 	SIGNAL_OBJS="" | 
 | 9001 | else | 
 | 9002 | 	USE_SIGNAL_MODULE="#" | 
 | 9003 | 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
 | 9004 | fi | 
 | 9005 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9006 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9007 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9008 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9009 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 | 
 | 9011 | $as_echo_n "checking for --with-dec-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9012 |  | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9013 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9014 | # Check whether --with-dec-threads was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9015 | if test "${with_dec_threads+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9016 |   withval=$with_dec_threads; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9018 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9019 | LDLAST=-threads | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9020 | if test "${with_thread+set}" != set; then | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9021 |    with_thread="$withval"; | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9022 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9023 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9024 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9025 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9026 | fi | 
 | 9027 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9028 |  | 
 | 9029 | # Templates for things AC_DEFINEd more than once. | 
 | 9030 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9031 |  | 
 | 9032 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9033 |  | 
 | 9034 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
 | 9036 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9037 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9038 | # Check whether --with-threads was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9039 | if test "${with_threads+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9040 |   withval=$with_threads; | 
 | 9041 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9042 |  | 
 | 9043 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9044 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9045 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9046 | # Check whether --with-thread was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9047 | if test "${with_thread+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9048 |   withval=$with_thread; with_threads=$with_thread | 
 | 9049 | fi | 
 | 9050 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9051 |  | 
 | 9052 | if test -z "$with_threads" | 
 | 9053 | then with_threads="yes" | 
 | 9054 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
 | 9056 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9057 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9058 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9059 | if test "$with_threads" = "no" | 
 | 9060 | then | 
 | 9061 |     USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9062 | elif test "$ac_cv_pthread_is_default" = yes | 
 | 9063 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9064 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9065 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9066 |     # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9067 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9068 |  | 
 | 9069 |     posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9070 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9071 | elif test "$ac_cv_kpthread" = "yes" | 
 | 9072 | then | 
 | 9073 |     CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9074 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 9075 |         CXX="$CXX -Kpthread" | 
 | 9076 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9077 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9078 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9079 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9080 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9081 | elif test "$ac_cv_kthread" = "yes" | 
 | 9082 | then | 
 | 9083 |     CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9084 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 9085 |         CXX="$CXX -Kthread" | 
 | 9086 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9087 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9088 |  | 
 | 9089 |     posix_threads=yes | 
 | 9090 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9091 | elif test "$ac_cv_pthread" = "yes" | 
 | 9092 | then | 
 | 9093 |     CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9094 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 9095 |         CXX="$CXX -pthread" | 
 | 9096 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9097 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9098 |  | 
 | 9099 |     posix_threads=yes | 
 | 9100 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9101 | else | 
 | 9102 |     if test ! -z "$with_threads" -a -d "$with_threads" | 
 | 9103 |     then LDFLAGS="$LDFLAGS -L$with_threads" | 
 | 9104 |     fi | 
 | 9105 |     if test ! -z "$withval" -a -d "$withval" | 
 | 9106 |     then LDFLAGS="$LDFLAGS -L$withval" | 
 | 9107 |     fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9108 |  | 
 | 9109 |     # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 9110 |     # define _POSIX_THREADS in unistd.h. Some apparently don't | 
 | 9111 |     # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9112 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
 | 9113 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
 | 9114 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9115 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9116 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9117 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9118 | #ifdef _POSIX_THREADS | 
 | 9119 | yes | 
 | 9120 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9121 |  | 
 | 9122 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9123 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9124 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9125 |   unistd_defines_pthreads=yes | 
 | 9126 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9127 |   unistd_defines_pthreads=no | 
 | 9128 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9129 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9130 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9131 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
 | 9132 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9133 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9134 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9135 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9136 |     ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9137 | if test "x$ac_cv_header_cthreads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9138 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9139 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9140 |     $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9141 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9143 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9144 |  | 
 | 9145 |     LIBS="$LIBS -lthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9146 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9147 | else | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9148 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9149 |     ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9150 | if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9151 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9152 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9153 |     $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9154 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9155 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9156 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9157 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9158 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9159 | else | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9160 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9161 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 | 
 | 9162 | $as_echo_n "checking for --with-pth... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9163 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9164 | # Check whether --with-pth was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9165 | if test "${with_pth+set}" = set; then : | 
 | 9166 |   withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9167 | $as_echo "$withval" >&6; } | 
 | 9168 |                   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9169 |  | 
 | 9170 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9171 | $as_echo "#define HAVE_PTH 1" >>confdefs.h | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9172 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9173 |                   LIBS="-lpth $LIBS" | 
 | 9174 |                   THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9175 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9176 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9177 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9178 |  | 
 | 9179 |     # Just looking for pthread_create in libpthread is not enough: | 
 | 9180 |     # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
 | 9181 |     # So we really have to include pthread.h, and then link. | 
 | 9182 |     _libs=$LIBS | 
 | 9183 |     LIBS="$LIBS -lpthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9184 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
 | 9185 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
 | 9186 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9187 | /* end confdefs.h.  */ | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 9188 |  | 
 | 9189 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9190 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9191 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9192 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9193 | int | 
 | 9194 | main () | 
 | 9195 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9196 |  | 
 | 9197 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 |   ; | 
 | 9199 |   return 0; | 
 | 9200 | } | 
 | 9201 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9202 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9203 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9204 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9205 | $as_echo "yes" >&6; } | 
 | 9206 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9207 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9208 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9209 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9210 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9211 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9212 |     LIBS=$_libs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9213 |     ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9214 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9215 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9216 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9217 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9218 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9219 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9220 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9221 |     ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9222 | if test "x$ac_cv_header_atheos_threads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9223 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9224 |  | 
 | 9225 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9226 | $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9227 |  | 
 | 9228 |     THREADOBJ="Python/thread.o" | 
 | 9229 | else | 
 | 9230 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9231 |     ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9232 | if test "x$ac_cv_header_kernel_OS_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9233 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9234 |  | 
 | 9235 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9236 | $as_echo "#define BEOS_THREADS 1" >>confdefs.h | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9237 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9238 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9239 | else | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9240 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9241 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
 | 9242 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9243 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9244 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9245 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9246 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9247 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9249 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9250 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9251 | /* Override any GCC internal prototype to avoid an error. | 
 | 9252 |    Use char because int might match the return type of a GCC | 
 | 9253 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9254 | #ifdef __cplusplus | 
 | 9255 | extern "C" | 
 | 9256 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9257 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9258 | int | 
 | 9259 | main () | 
 | 9260 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9261 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 |   ; | 
 | 9263 |   return 0; | 
 | 9264 | } | 
 | 9265 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9266 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9267 |   ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9268 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9269 |   ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9270 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9271 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9272 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9273 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9274 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
 | 9276 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9277 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9278 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9279 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9280 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9281 |     LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9282 |     THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9283 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9284 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9285 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
 | 9286 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9287 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9288 |   $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9289 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9290 |   ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9291 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9293 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9294 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9295 | /* Override any GCC internal prototype to avoid an error. | 
 | 9296 |    Use char because int might match the return type of a GCC | 
 | 9297 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9298 | #ifdef __cplusplus | 
 | 9299 | extern "C" | 
 | 9300 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9301 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9302 | int | 
 | 9303 | main () | 
 | 9304 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9305 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9306 |   ; | 
 | 9307 |   return 0; | 
 | 9308 | } | 
 | 9309 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9310 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9311 |   ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9312 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9313 |   ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9314 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9315 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9316 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9317 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9318 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
 | 9320 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9321 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9322 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9323 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9324 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9325 |     LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9326 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9327 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9328 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9329 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
 | 9330 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9331 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9332 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9333 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9334 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9335 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9337 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9338 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9339 | /* Override any GCC internal prototype to avoid an error. | 
 | 9340 |    Use char because int might match the return type of a GCC | 
 | 9341 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9342 | #ifdef __cplusplus | 
 | 9343 | extern "C" | 
 | 9344 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9345 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9346 | int | 
 | 9347 | main () | 
 | 9348 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9349 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9350 |   ; | 
 | 9351 |   return 0; | 
 | 9352 | } | 
 | 9353 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9354 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9355 |   ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9356 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9357 |   ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9358 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9359 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9360 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9361 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9362 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
 | 9364 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9365 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9366 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9367 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9368 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9369 |     LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9370 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9371 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9372 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9373 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
 | 9374 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9375 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9376 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9377 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9378 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9379 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9381 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9382 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9383 | /* Override any GCC internal prototype to avoid an error. | 
 | 9384 |    Use char because int might match the return type of a GCC | 
 | 9385 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9386 | #ifdef __cplusplus | 
 | 9387 | extern "C" | 
 | 9388 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9389 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9390 | int | 
 | 9391 | main () | 
 | 9392 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9393 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9394 |   ; | 
 | 9395 |   return 0; | 
 | 9396 | } | 
 | 9397 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9398 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9399 |   ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9400 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9401 |   ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9402 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9403 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9404 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9405 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9406 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
 | 9408 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9409 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9410 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9411 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9412 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9413 |     LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9414 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9415 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 9416 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9417 |     USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 9418 | fi | 
 | 9419 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9420 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9421 | fi | 
 | 9422 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 9423 | fi | 
 | 9424 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9425 | fi | 
 | 9426 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9427 | fi | 
 | 9428 |  | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9429 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9430 | fi | 
 | 9431 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9432 |  | 
 | 9433 | fi | 
 | 9434 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9435 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9436 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9437 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9438 | fi | 
 | 9439 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9440 | fi | 
 | 9441 |  | 
 | 9442 |  | 
 | 9443 | fi | 
 | 9444 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9445 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9446 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9447 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
 | 9448 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9449 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9450 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9451 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9452 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9453 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9455 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9456 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9457 | /* Override any GCC internal prototype to avoid an error. | 
 | 9458 |    Use char because int might match the return type of a GCC | 
 | 9459 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9460 | #ifdef __cplusplus | 
 | 9461 | extern "C" | 
 | 9462 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9463 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9464 | int | 
 | 9465 | main () | 
 | 9466 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9467 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 |   ; | 
 | 9469 |   return 0; | 
 | 9470 | } | 
 | 9471 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9472 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9473 |   ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9474 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9475 |   ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9476 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9477 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9478 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9479 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9480 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
 | 9482 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9483 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9484 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9485 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9486 |     LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9487 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9488 |     USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9489 | fi | 
 | 9490 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9491 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 9492 |     if test "$posix_threads" != "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9493 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
 | 9494 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9495 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9496 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9497 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9498 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9499 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9501 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9502 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9503 | /* Override any GCC internal prototype to avoid an error. | 
 | 9504 |    Use char because int might match the return type of a GCC | 
 | 9505 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9506 | #ifdef __cplusplus | 
 | 9507 | extern "C" | 
 | 9508 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9509 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9510 | int | 
 | 9511 | main () | 
 | 9512 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9513 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9514 |   ; | 
 | 9515 |   return 0; | 
 | 9516 | } | 
 | 9517 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9518 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9519 |   ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9520 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9521 |   ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9522 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9523 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9524 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9525 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9526 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
 | 9528 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9529 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9530 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9531 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9532 |       LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9533 |       THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9534 |       USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9535 | fi | 
 | 9536 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9537 |     fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9538 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9539 |     if test "$USE_THREAD_MODULE" != "#" | 
 | 9540 |     then | 
 | 9541 |         # If the above checks didn't disable threads, (at least) OSF1 | 
 | 9542 |         # needs this '-threads' argument during linking. | 
 | 9543 |         case $ac_sys_system in | 
 | 9544 |         OSF1) LDLAST=-threads;; | 
 | 9545 |         esac | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 9546 |     fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9547 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9548 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9549 | if test "$posix_threads" = "yes"; then | 
 | 9550 |       if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9551 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9552 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9553 |  | 
 | 9554 |       fi | 
 | 9555 |  | 
 | 9556 |       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
 | 9557 |       case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 4929eb9 | 2011-07-21 19:41:04 +0200 | [diff] [blame] | 9558 |       SunOS/5.6) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9559 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9560 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9561 | 		       ;; | 
 | 9562 |       SunOS/5.8) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9563 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9564 |  | 
 | 9565 | 		       ;; | 
| Charles-François Natali | 4929eb9 | 2011-07-21 19:41:04 +0200 | [diff] [blame] | 9566 |       AIX/*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9567 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 9568 |  | 
 | 9569 | 		       ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9570 |       esac | 
 | 9571 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9572 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
 | 9573 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9574 |       if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9575 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9576 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9577 |   if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9578 |   ac_cv_pthread_system_supported=no | 
 | 9579 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9580 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9581 | /* end confdefs.h.  */ | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 9582 |  | 
 | 9583 |       #include <stdio.h> | 
 | 9584 |       #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9585 |       void *foo(void *parm) { | 
 | 9586 |         return NULL; | 
 | 9587 |       } | 
 | 9588 |       main() { | 
 | 9589 |         pthread_attr_t attr; | 
 | 9590 |         pthread_t id; | 
 | 9591 |         if (pthread_attr_init(&attr)) exit(-1); | 
 | 9592 |         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
 | 9593 |         if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
 | 9594 |         exit(0); | 
 | 9595 |       } | 
 | 9596 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9597 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9598 |   ac_cv_pthread_system_supported=yes | 
 | 9599 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9600 |   ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9601 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9602 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9603 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9604 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9605 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9606 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9607 | fi | 
 | 9608 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9609 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
 | 9610 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9611 |       if test "$ac_cv_pthread_system_supported" = "yes"; then | 
 | 9612 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9613 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9614 |  | 
 | 9615 |       fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9616 |       for ac_func in pthread_sigmask | 
 | 9617 | do : | 
 | 9618 |   ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9619 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9620 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9621 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9622 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9623 |  case $ac_sys_system in | 
 | 9624 |         CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9625 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9626 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9627 |  | 
 | 9628 |             ;; | 
 | 9629 |         esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9630 | fi | 
 | 9631 | done | 
 | 9632 |  | 
 | 9633 | fi | 
 | 9634 |  | 
 | 9635 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9636 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9637 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
 | 9639 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9640 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9641 | if test "${enable_ipv6+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9642 |   enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9643 |   no) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9644 |        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9645 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9646 |        ipv6=no | 
 | 9647 |        ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9648 |   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9649 | $as_echo "yes" >&6; } | 
 | 9650 |        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9651 |  | 
 | 9652 |        ipv6=yes | 
 | 9653 |        ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9654 |   esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9655 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9656 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9657 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9658 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9659 |  /* AF_INET6 available check */ | 
 | 9660 | #include <sys/types.h> | 
 | 9661 | #include <sys/socket.h> | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9662 | int | 
 | 9663 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9664 | { | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9665 | int domain = AF_INET6; | 
 | 9666 |   ; | 
 | 9667 |   return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9668 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9669 | _ACEOF | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9670 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9671 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9672 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9673 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9674 |   ipv6=yes | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9675 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9676 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9677 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9678 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9679 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9680 |   ipv6=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9681 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9682 | fi | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9684 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9685 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9686 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
 | 9687 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
 | 9688 | 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9689 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9690 |  | 
 | 9691 | 	  #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9692 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9693 | int | 
 | 9694 | main () | 
 | 9695 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9696 | struct sockaddr_in6 x; | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9697 | 			    x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9698 |   ; | 
 | 9699 |   return 0; | 
 | 9700 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9701 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9702 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9703 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9704 |  | 
 | 9705 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9706 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9707 | 	  ipv6=yes | 
 | 9708 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9709 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9710 |  | 
 | 9711 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9712 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9713 | 	  ipv6=no | 
 | 9714 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9715 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9716 | 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] | 9717 | fi | 
 | 9718 |  | 
 | 9719 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9720 | 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9721 |  | 
 | 9722 | fi | 
 | 9723 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9724 | fi | 
 | 9725 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9726 |  | 
 | 9727 | ipv6type=unknown | 
 | 9728 | ipv6lib=none | 
 | 9729 | ipv6trylibc=no | 
 | 9730 |  | 
 | 9731 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9732 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
 | 9733 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9734 | 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
 | 9735 | 	do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9736 | 		case $i in | 
 | 9737 | 		inria) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9738 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9739 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9740 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9741 | #include <netinet/in.h> | 
 | 9742 | #ifdef IPV6_INRIA_VERSION | 
 | 9743 | yes | 
 | 9744 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9745 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9746 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9747 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9748 |   ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9749 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9750 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9751 |  | 
 | 9752 | 			;; | 
 | 9753 | 		kame) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9754 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9755 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9756 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9757 | #include <netinet/in.h> | 
 | 9758 | #ifdef __KAME__ | 
 | 9759 | yes | 
 | 9760 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9762 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9763 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9764 |   ipv6type=$i; | 
 | 9765 | 				ipv6lib=inet6 | 
 | 9766 | 				ipv6libdir=/usr/local/v6/lib | 
 | 9767 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9768 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9769 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9770 |  | 
 | 9771 | 			;; | 
 | 9772 | 		linux-glibc) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9773 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9774 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9775 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9776 | #include <features.h> | 
 | 9777 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 9778 | yes | 
 | 9779 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9780 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9781 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9782 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9783 |   ipv6type=$i; | 
 | 9784 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9785 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9786 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9787 |  | 
 | 9788 | 			;; | 
 | 9789 | 		linux-inet6) | 
 | 9790 | 						if test -d /usr/inet6; then | 
 | 9791 | 				ipv6type=$i | 
 | 9792 | 				ipv6lib=inet6 | 
 | 9793 | 				ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9794 | 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9795 | 			fi | 
 | 9796 | 			;; | 
 | 9797 | 		solaris) | 
 | 9798 | 			if test -f /etc/netconfig; then | 
| Antoine Pitrou | 31e8595 | 2011-01-03 18:57:14 +0000 | [diff] [blame] | 9799 |                           if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9800 | 				ipv6type=$i | 
 | 9801 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9802 |                           fi | 
 | 9803 |                         fi | 
 | 9804 | 			;; | 
 | 9805 | 		toshiba) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9806 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9807 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9808 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9809 | #include <sys/param.h> | 
 | 9810 | #ifdef _TOSHIBA_INET6 | 
 | 9811 | yes | 
 | 9812 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9813 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9814 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9815 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9816 |   ipv6type=$i; | 
 | 9817 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9818 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9819 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9820 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9821 |  | 
 | 9822 | 			;; | 
 | 9823 | 		v6d) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9824 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9825 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9826 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9827 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 9828 | #ifdef __V6D__ | 
 | 9829 | yes | 
 | 9830 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9831 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9832 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9833 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9834 |   ipv6type=$i; | 
 | 9835 | 				ipv6lib=v6; | 
 | 9836 | 				ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9837 | 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9838 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9839 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9840 |  | 
 | 9841 | 			;; | 
 | 9842 | 		zeta) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9843 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9844 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9845 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9846 | #include <sys/param.h> | 
 | 9847 | #ifdef _ZETA_MINAMI_INET6 | 
 | 9848 | yes | 
 | 9849 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9850 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9851 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9852 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9853 |   ipv6type=$i; | 
 | 9854 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9855 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9856 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9857 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9858 |  | 
 | 9859 | 			;; | 
 | 9860 | 		esac | 
 | 9861 | 		if test "$ipv6type" != "unknown"; then | 
 | 9862 | 			break | 
 | 9863 | 		fi | 
 | 9864 | 	done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9865 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
 | 9866 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9867 | fi | 
 | 9868 |  | 
 | 9869 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 9870 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 9871 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 9872 | 		echo "using lib$ipv6lib" | 
 | 9873 | 	else | 
 | 9874 | 		if test $ipv6trylibc = "yes"; then | 
 | 9875 | 			echo "using libc" | 
 | 9876 | 		else | 
 | 9877 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 9878 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 9879 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 9880 | 			exit 1 | 
 | 9881 | 		fi | 
 | 9882 | 	fi | 
 | 9883 | fi | 
 | 9884 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
 | 9886 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
 | 9887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9888 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9889 |  | 
 | 9890 |   #include <Carbon/Carbon.h> | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9891 | int | 
 | 9892 | main () | 
 | 9893 | { | 
 | 9894 | FSIORefNum fRef = 0 | 
 | 9895 |   ; | 
 | 9896 |   return 0; | 
 | 9897 | } | 
| Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9898 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9899 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9900 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9901 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9902 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9903 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9904 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9905 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9906 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9907 |  | 
| Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9908 | else | 
 | 9909 |  | 
 | 9910 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9911 | $as_echo "no" >&6; } | 
 | 9912 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9913 | fi | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9915 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9916 | # Check for --with-doc-strings | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
 | 9918 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9919 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9920 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9921 | if test "${with_doc_strings+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9922 |   withval=$with_doc_strings; | 
 | 9923 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9924 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9925 |  | 
 | 9926 | if test -z "$with_doc_strings" | 
 | 9927 | then with_doc_strings="yes" | 
 | 9928 | fi | 
 | 9929 | if test "$with_doc_strings" != "no" | 
 | 9930 | then | 
 | 9931 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9932 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9933 |  | 
 | 9934 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
 | 9936 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9937 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9938 | # Check for Python-specific malloc support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
 | 9940 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9941 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9942 | # Check whether --with-tsc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9943 | if test "${with_tsc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9944 |   withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9945 | if test "$withval" != no | 
 | 9946 | then | 
 | 9947 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9948 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9949 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9950 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9951 | $as_echo "yes" >&6; } | 
 | 9952 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9953 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9954 | fi | 
 | 9955 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9956 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9957 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9958 | fi | 
 | 9959 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9960 |  | 
 | 9961 | # Check for Python-specific malloc support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
 | 9963 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9964 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9965 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9966 | if test "${with_pymalloc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9967 |   withval=$with_pymalloc; | 
 | 9968 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9969 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9970 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9971 | if test -z "$with_pymalloc" | 
 | 9972 | then with_pymalloc="yes" | 
 | 9973 | fi | 
 | 9974 | if test "$with_pymalloc" != "no" | 
 | 9975 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9976 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9977 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9978 |  | 
 | 9979 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
 | 9981 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9982 |  | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9983 | # Check for Valgrind support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
 | 9985 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9986 |  | 
 | 9987 | # Check whether --with-valgrind was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9988 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9989 |   withval=$with_valgrind; | 
 | 9990 | else | 
 | 9991 |   with_valgrind=no | 
 | 9992 | fi | 
 | 9993 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
 | 9995 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9996 | if test "$with_valgrind" != no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9997 |     ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9998 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9999 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10000 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10001 |  | 
 | 10002 | else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10003 |   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10004 |  | 
 | 10005 | fi | 
 | 10006 |  | 
 | 10007 |  | 
 | 10008 | fi | 
 | 10009 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10010 | # Check for --with-wctype-functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 | 
 | 10012 | $as_echo_n "checking for --with-wctype-functions... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10013 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10014 | # Check whether --with-wctype-functions was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10015 | if test "${with_wctype_functions+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10016 |   withval=$with_wctype_functions; | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10017 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10018 | then | 
 | 10019 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10020 | $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10021 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10022 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10023 | $as_echo "yes" >&6; } | 
 | 10024 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10025 | $as_echo "no" >&6; } | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10026 | fi | 
 | 10027 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10028 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10029 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10030 | fi | 
 | 10031 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10032 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10033 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10034 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 10035 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10036 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10037 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 10038 | # 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] | 10039 | for ac_func in dlopen | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10040 | do : | 
 | 10041 |   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10042 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10043 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10044 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10045 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10046 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10047 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10048 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10049 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10050 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10051 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 10052 | # loading of modules. | 
 | 10053 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
 | 10055 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10056 | if test -z "$DYNLOADFILE" | 
 | 10057 | then | 
 | 10058 | 	case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 10059 | 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
 | 10060 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 10061 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 10062 | 	else DYNLOADFILE="dynload_aix.o" | 
 | 10063 | 	fi | 
 | 10064 | 	;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10065 | 	BeOS*) DYNLOADFILE="dynload_beos.o";; | 
 | 10066 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 10067 | 	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
 | 10068 | 	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10069 | 	atheos*) DYNLOADFILE="dynload_atheos.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10070 | 	*) | 
 | 10071 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 10072 | 	# out any dynamic loading | 
 | 10073 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 10074 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 10075 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 10076 | 	fi | 
 | 10077 | 	;; | 
 | 10078 | 	esac | 
 | 10079 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
 | 10081 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10082 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 10083 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10084 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10085 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10086 |  | 
 | 10087 | fi | 
 | 10088 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10089 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 10090 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10091 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
 | 10093 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10094 | if test -z "$MACHDEP_OBJS" | 
 | 10095 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10096 | 	MACHDEP_OBJS=$extra_machdep_objs | 
 | 10097 | else | 
 | 10098 | 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10099 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 | 
 | 10101 | $as_echo "MACHDEP_OBJS" >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10102 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10103 | # checks for library functions | 
| Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 10104 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ | 
 | 10105 |  clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ | 
| Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 10106 |  gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 10107 |  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 10108 |  initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ | 
| Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 10109 |  mremap nice pathconf pause plock poll pthread_init \ | 
| Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 10110 |  putenv readlink realpath \ | 
| Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 10111 |  select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ | 
 | 10112 |  setgid \ | 
| Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 10113 |  setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ | 
| Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 10114 |  setlocale setregid setreuid setresuid setresgid \ | 
 | 10115 |  setsid setpgid setpgrp setuid setvbuf snprintf \ | 
| Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 10116 |  sigaction siginterrupt sigrelse strftime \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 10117 |  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 10118 |  truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10119 | do : | 
 | 10120 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 10121 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10122 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10123 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10124 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10125 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10126 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10127 | fi | 
 | 10128 | done | 
 | 10129 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10130 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10131 | # For some functions, having a definition is not sufficient, since | 
 | 10132 | # we want to take their address. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
 | 10134 | $as_echo_n "checking for chroot... " >&6; } | 
 | 10135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10136 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10137 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10138 | int | 
 | 10139 | main () | 
 | 10140 | { | 
 | 10141 | void *x=chroot | 
 | 10142 |   ; | 
 | 10143 |   return 0; | 
 | 10144 | } | 
 | 10145 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10146 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10147 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10148 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10149 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10150 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10151 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10152 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10153 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10154 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10155 |  | 
 | 10156 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
 | 10159 | $as_echo_n "checking for link... " >&6; } | 
 | 10160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10161 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10162 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10163 | int | 
 | 10164 | main () | 
 | 10165 | { | 
 | 10166 | void *x=link | 
 | 10167 |   ; | 
 | 10168 |   return 0; | 
 | 10169 | } | 
 | 10170 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10171 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10172 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10173 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10174 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10175 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10176 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10177 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10178 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10179 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10180 |  | 
 | 10181 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
 | 10184 | $as_echo_n "checking for symlink... " >&6; } | 
 | 10185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10186 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10187 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10188 | int | 
 | 10189 | main () | 
 | 10190 | { | 
 | 10191 | void *x=symlink | 
 | 10192 |   ; | 
 | 10193 |   return 0; | 
 | 10194 | } | 
 | 10195 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10196 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10197 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10198 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10199 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10200 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10201 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10202 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10203 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10204 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10205 |  | 
 | 10206 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
 | 10209 | $as_echo_n "checking for fchdir... " >&6; } | 
 | 10210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10211 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10212 | #include <unistd.h> | 
 | 10213 | int | 
 | 10214 | main () | 
 | 10215 | { | 
 | 10216 | void *x=fchdir | 
 | 10217 |   ; | 
 | 10218 |   return 0; | 
 | 10219 | } | 
 | 10220 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10221 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10222 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10223 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10224 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10225 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10226 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10227 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10228 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10229 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10230 |  | 
 | 10231 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
 | 10234 | $as_echo_n "checking for fsync... " >&6; } | 
 | 10235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10236 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10237 | #include <unistd.h> | 
 | 10238 | int | 
 | 10239 | main () | 
 | 10240 | { | 
 | 10241 | void *x=fsync | 
 | 10242 |   ; | 
 | 10243 |   return 0; | 
 | 10244 | } | 
 | 10245 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10246 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10247 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10248 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10249 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10250 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10251 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10252 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10253 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10254 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10255 |  | 
 | 10256 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
 | 10259 | $as_echo_n "checking for fdatasync... " >&6; } | 
 | 10260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10261 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10262 | #include <unistd.h> | 
 | 10263 | int | 
 | 10264 | main () | 
 | 10265 | { | 
 | 10266 | void *x=fdatasync | 
 | 10267 |   ; | 
 | 10268 |   return 0; | 
 | 10269 | } | 
 | 10270 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10271 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10272 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10273 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10274 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10275 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10276 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10277 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10278 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10279 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10280 |  | 
 | 10281 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
 | 10284 | $as_echo_n "checking for epoll... " >&6; } | 
 | 10285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10286 | /* end confdefs.h.  */ | 
 | 10287 | #include <sys/epoll.h> | 
 | 10288 | int | 
 | 10289 | main () | 
 | 10290 | { | 
 | 10291 | void *x=epoll_create | 
 | 10292 |   ; | 
 | 10293 |   return 0; | 
 | 10294 | } | 
 | 10295 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10296 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10297 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10298 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10299 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10300 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10301 | $as_echo "yes" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10302 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10303 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10304 | $as_echo "no" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10305 |  | 
 | 10306 | fi | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
 | 10309 | $as_echo_n "checking for kqueue... " >&6; } | 
 | 10310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10311 | /* end confdefs.h.  */ | 
 | 10312 |  | 
 | 10313 | #include <sys/types.h> | 
 | 10314 | #include <sys/event.h> | 
 | 10315 |  | 
 | 10316 | int | 
 | 10317 | main () | 
 | 10318 | { | 
 | 10319 | int x=kqueue() | 
 | 10320 |   ; | 
 | 10321 |   return 0; | 
 | 10322 | } | 
 | 10323 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10324 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10325 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10326 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10327 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10328 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10329 | $as_echo "yes" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10330 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10331 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10332 | $as_echo "no" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10333 |  | 
 | 10334 | fi | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10335 | 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] | 10336 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
 | 10337 | # functions ctermid_r, setgroups in the library, but no prototype | 
 | 10338 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
 | 10339 | # address to avoid compiler warnings and potential miscompilations | 
 | 10340 | # because of the missing prototypes. | 
 | 10341 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
 | 10343 | $as_echo_n "checking for ctermid_r... " >&6; } | 
 | 10344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10345 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10346 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10347 | #include <stdio.h> | 
 | 10348 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10349 | int | 
 | 10350 | main () | 
 | 10351 | { | 
 | 10352 | void* p = ctermid_r | 
 | 10353 |   ; | 
 | 10354 |   return 0; | 
 | 10355 | } | 
 | 10356 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10357 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10358 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10359 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10360 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10361 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10362 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10363 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10364 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10365 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10366 |  | 
 | 10367 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10369 |  | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
 | 10371 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10372 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10373 |   $as_echo_n "(cached) " >&6 | 
 | 10374 | else | 
 | 10375 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10376 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10377 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10378 | int | 
 | 10379 | main () | 
 | 10380 | { | 
 | 10381 | void* p = flock | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10382 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10383 |   ; | 
 | 10384 |   return 0; | 
 | 10385 | } | 
 | 10386 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10387 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10388 |   ac_cv_flock_decl=yes | 
 | 10389 | else | 
 | 10390 |   ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10391 |  | 
 | 10392 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10394 |  | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10395 | fi | 
 | 10396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
 | 10397 | $as_echo "$ac_cv_flock_decl" >&6; } | 
 | 10398 | if test "x${ac_cv_flock_decl}" = xyes; then | 
 | 10399 |   for ac_func in flock | 
 | 10400 | do : | 
 | 10401 |   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10402 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10403 |   cat >>confdefs.h <<_ACEOF | 
 | 10404 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10405 | _ACEOF | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10406 |  | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10407 | else | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10408 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10409 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10410 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10411 |   $as_echo_n "(cached) " >&6 | 
 | 10412 | else | 
 | 10413 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10414 | LIBS="-lbsd  $LIBS" | 
 | 10415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10416 | /* end confdefs.h.  */ | 
 | 10417 |  | 
 | 10418 | /* Override any GCC internal prototype to avoid an error. | 
 | 10419 |    Use char because int might match the return type of a GCC | 
 | 10420 |    builtin and then its argument prototype would still apply.  */ | 
 | 10421 | #ifdef __cplusplus | 
 | 10422 | extern "C" | 
 | 10423 | #endif | 
 | 10424 | char flock (); | 
 | 10425 | int | 
 | 10426 | main () | 
 | 10427 | { | 
 | 10428 | return flock (); | 
 | 10429 |   ; | 
 | 10430 |   return 0; | 
 | 10431 | } | 
 | 10432 | _ACEOF | 
 | 10433 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 10434 |   ac_cv_lib_bsd_flock=yes | 
 | 10435 | else | 
 | 10436 |   ac_cv_lib_bsd_flock=no | 
 | 10437 | fi | 
 | 10438 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10439 |     conftest$ac_exeext conftest.$ac_ext | 
 | 10440 | LIBS=$ac_check_lib_save_LIBS | 
 | 10441 | fi | 
 | 10442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
 | 10443 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10444 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10445 |   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10446 |  | 
 | 10447 |  | 
 | 10448 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
 | 10449 |  | 
 | 10450 |  | 
 | 10451 | fi | 
 | 10452 |  | 
 | 10453 |  | 
 | 10454 | fi | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10455 | done | 
 | 10456 |  | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10457 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10458 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
 | 10460 | $as_echo_n "checking for getpagesize... " >&6; } | 
 | 10461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10462 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10463 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10464 | #include <unistd.h> | 
 | 10465 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10466 | int | 
 | 10467 | main () | 
 | 10468 | { | 
 | 10469 | void* p = getpagesize | 
 | 10470 |   ; | 
 | 10471 |   return 0; | 
 | 10472 | } | 
 | 10473 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10474 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10475 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10476 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10477 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10478 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10479 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10480 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10481 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10482 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10483 |  | 
 | 10484 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10485 | 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] | 10486 |  | 
| Charles-François Natali | 93a1175 | 2011-11-27 13:01:35 +0100 | [diff] [blame] | 10487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
 | 10488 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
 | 10489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10490 | /* end confdefs.h.  */ | 
 | 10491 |  | 
 | 10492 | #include <stdlib.h> | 
 | 10493 |  | 
 | 10494 | int | 
 | 10495 | main () | 
 | 10496 | { | 
 | 10497 | int res = unsetenv("DUMMY") | 
 | 10498 |   ; | 
 | 10499 |   return 0; | 
 | 10500 | } | 
 | 10501 | _ACEOF | 
 | 10502 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10503 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10504 | $as_echo "no" >&6; } | 
 | 10505 | else | 
 | 10506 |  | 
 | 10507 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
 | 10508 |  | 
 | 10509 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10510 | $as_echo "yes" >&6; } | 
 | 10511 |  | 
 | 10512 | fi | 
 | 10513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10514 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10515 | for ac_prog in true | 
 | 10516 | do | 
 | 10517 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 10518 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10520 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10521 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10522 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10523 | else | 
 | 10524 |   if test -n "$TRUE"; then | 
 | 10525 |   ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
 | 10526 | else | 
 | 10527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10528 | for as_dir in $PATH | 
 | 10529 | do | 
 | 10530 |   IFS=$as_save_IFS | 
 | 10531 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10532 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 10533 |   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] | 10534 |     ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10535 |     $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] | 10536 |     break 2 | 
 | 10537 |   fi | 
 | 10538 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10539 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10540 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10541 |  | 
 | 10542 | fi | 
 | 10543 | fi | 
 | 10544 | TRUE=$ac_cv_prog_TRUE | 
 | 10545 | if test -n "$TRUE"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10546 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
 | 10547 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10548 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10549 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10550 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10551 | fi | 
 | 10552 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10553 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10554 |   test -n "$TRUE" && break | 
 | 10555 | done | 
 | 10556 | test -n "$TRUE" || TRUE="/bin/true" | 
 | 10557 |  | 
 | 10558 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
 | 10560 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10561 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10562 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10563 | else | 
 | 10564 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10565 | LIBS="-lc  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10567 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10568 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10569 | /* Override any GCC internal prototype to avoid an error. | 
 | 10570 |    Use char because int might match the return type of a GCC | 
 | 10571 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10572 | #ifdef __cplusplus | 
 | 10573 | extern "C" | 
 | 10574 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10575 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10576 | int | 
 | 10577 | main () | 
 | 10578 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10579 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10580 |   ; | 
 | 10581 |   return 0; | 
 | 10582 | } | 
 | 10583 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10584 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10585 |   ac_cv_lib_c_inet_aton=yes | 
 | 10586 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10587 |   ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10588 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10589 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10590 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10591 | LIBS=$ac_check_lib_save_LIBS | 
 | 10592 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
 | 10594 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10595 | 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] | 10596 |   $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10597 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10598 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
 | 10599 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10600 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10601 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10602 | else | 
 | 10603 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10604 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10606 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10607 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10608 | /* Override any GCC internal prototype to avoid an error. | 
 | 10609 |    Use char because int might match the return type of a GCC | 
 | 10610 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10611 | #ifdef __cplusplus | 
 | 10612 | extern "C" | 
 | 10613 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10614 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10615 | int | 
 | 10616 | main () | 
 | 10617 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10618 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10619 |   ; | 
 | 10620 |   return 0; | 
 | 10621 | } | 
 | 10622 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10623 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10624 |   ac_cv_lib_resolv_inet_aton=yes | 
 | 10625 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10626 |   ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10627 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10628 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10629 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10630 | LIBS=$ac_check_lib_save_LIBS | 
 | 10631 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
 | 10633 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10634 | 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] | 10635 |   cat >>confdefs.h <<_ACEOF | 
 | 10636 | #define HAVE_LIBRESOLV 1 | 
 | 10637 | _ACEOF | 
 | 10638 |  | 
 | 10639 |   LIBS="-lresolv $LIBS" | 
 | 10640 |  | 
 | 10641 | fi | 
 | 10642 |  | 
 | 10643 |  | 
 | 10644 | fi | 
 | 10645 |  | 
 | 10646 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10647 | # On Tru64, chflags seems to be present, but calling it will | 
 | 10648 | # exit Python | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
 | 10650 | $as_echo_n "checking for chflags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10651 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10652 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10653 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10654 |   if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10655 |   ac_cv_have_chflags=cross | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10656 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10657 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10658 | /* end confdefs.h.  */ | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10659 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10660 | #include <sys/stat.h> | 
 | 10661 | #include <unistd.h> | 
 | 10662 | int main(int argc, char*argv[]) | 
 | 10663 | { | 
 | 10664 |   if(chflags(argv[0], 0) != 0) | 
 | 10665 |     return 1; | 
 | 10666 |   return 0; | 
 | 10667 | } | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10668 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10669 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10670 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10671 |   ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10672 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10673 |   ac_cv_have_chflags=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10674 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10675 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10676 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 10677 | fi | 
 | 10678 |  | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10679 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10680 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
 | 10682 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10683 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10684 |   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10685 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10686 |   ac_cv_have_chflags="yes" | 
 | 10687 | else | 
 | 10688 |   ac_cv_have_chflags="no" | 
 | 10689 | fi | 
 | 10690 |  | 
 | 10691 | fi | 
 | 10692 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10693 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10694 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10695 |  | 
 | 10696 | fi | 
 | 10697 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
 | 10699 | $as_echo_n "checking for lchflags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10700 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10701 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10702 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10703 |   if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10704 |   ac_cv_have_lchflags=cross | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10705 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10706 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10707 | /* end confdefs.h.  */ | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10708 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10709 | #include <sys/stat.h> | 
 | 10710 | #include <unistd.h> | 
 | 10711 | int main(int argc, char*argv[]) | 
 | 10712 | { | 
 | 10713 |   if(lchflags(argv[0], 0) != 0) | 
 | 10714 |     return 1; | 
 | 10715 |   return 0; | 
 | 10716 | } | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10717 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10718 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10719 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10720 |   ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10721 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10722 |   ac_cv_have_lchflags=no | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10723 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10724 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10725 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10726 | fi | 
 | 10727 |  | 
 | 10728 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10729 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
 | 10731 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10732 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10733 |   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10734 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10735 |   ac_cv_have_lchflags="yes" | 
 | 10736 | else | 
 | 10737 |   ac_cv_have_lchflags="no" | 
 | 10738 | fi | 
 | 10739 |  | 
 | 10740 | fi | 
 | 10741 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10742 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10743 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10744 |  | 
 | 10745 | fi | 
 | 10746 |  | 
| Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10747 | case $ac_sys_system/$ac_sys_release in | 
 | 10748 | Darwin/*) | 
 | 10749 | 	_CUR_CFLAGS="${CFLAGS}" | 
 | 10750 | 	_CUR_LDFLAGS="${LDFLAGS}" | 
 | 10751 | 	CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
 | 10752 | 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
 | 10753 | 	;; | 
 | 10754 | esac | 
 | 10755 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
 | 10757 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10758 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10759 |   $as_echo_n "(cached) " >&6 | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10760 | else | 
 | 10761 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10762 | LIBS="-lz  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10764 | /* end confdefs.h.  */ | 
 | 10765 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10766 | /* Override any GCC internal prototype to avoid an error. | 
 | 10767 |    Use char because int might match the return type of a GCC | 
 | 10768 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10769 | #ifdef __cplusplus | 
 | 10770 | extern "C" | 
 | 10771 | #endif | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10772 | char inflateCopy (); | 
 | 10773 | int | 
 | 10774 | main () | 
 | 10775 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10776 | return inflateCopy (); | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10777 |   ; | 
 | 10778 |   return 0; | 
 | 10779 | } | 
 | 10780 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10781 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10782 |   ac_cv_lib_z_inflateCopy=yes | 
 | 10783 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10784 |   ac_cv_lib_z_inflateCopy=no | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10785 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10786 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10787 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10788 | LIBS=$ac_check_lib_save_LIBS | 
 | 10789 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
 | 10791 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10792 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10793 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10794 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10795 |  | 
 | 10796 | fi | 
 | 10797 |  | 
 | 10798 |  | 
| Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10799 | case $ac_sys_system/$ac_sys_release in | 
 | 10800 | Darwin/*) | 
 | 10801 | 	CFLAGS="${_CUR_CFLAGS}" | 
 | 10802 | 	LDFLAGS="${_CUR_LDFLAGS}" | 
 | 10803 | 	;; | 
 | 10804 | esac | 
 | 10805 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
 | 10807 | $as_echo_n "checking for hstrerror... " >&6; } | 
 | 10808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10809 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10810 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10811 | #include <netdb.h> | 
 | 10812 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10813 | int | 
 | 10814 | main () | 
 | 10815 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10816 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10817 |   ; | 
 | 10818 |   return 0; | 
 | 10819 | } | 
 | 10820 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10821 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10822 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10823 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10824 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10825 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10826 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10827 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10828 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10829 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10830 |  | 
 | 10831 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10832 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10833 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10834 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
 | 10836 | $as_echo_n "checking for inet_aton... " >&6; } | 
 | 10837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10838 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10839 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10840 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10841 | #include <sys/socket.h> | 
 | 10842 | #include <netinet/in.h> | 
 | 10843 | #include <arpa/inet.h> | 
 | 10844 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10845 | int | 
 | 10846 | main () | 
 | 10847 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10848 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10849 |   ; | 
 | 10850 |   return 0; | 
 | 10851 | } | 
 | 10852 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10853 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10854 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10855 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10856 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10857 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10858 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10859 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10860 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10861 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10862 |  | 
 | 10863 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10864 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10865 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10866 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
 | 10868 | $as_echo_n "checking for inet_pton... " >&6; } | 
 | 10869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10870 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10871 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10872 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10873 | #include <sys/socket.h> | 
 | 10874 | #include <netinet/in.h> | 
 | 10875 | #include <arpa/inet.h> | 
 | 10876 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10877 | int | 
 | 10878 | main () | 
 | 10879 | { | 
 | 10880 | void* p = inet_pton | 
 | 10881 |   ; | 
 | 10882 |   return 0; | 
 | 10883 | } | 
 | 10884 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10885 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10886 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10887 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10888 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10889 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10890 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10891 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10892 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10893 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10894 |  | 
 | 10895 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10896 | 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] | 10897 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10898 | # On some systems, setgroups is in unistd.h, on others, in grp.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
 | 10900 | $as_echo_n "checking for setgroups... " >&6; } | 
 | 10901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10902 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10903 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10904 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10905 | #ifdef HAVE_GRP_H | 
 | 10906 | #include <grp.h> | 
 | 10907 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10908 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10909 | int | 
 | 10910 | main () | 
 | 10911 | { | 
 | 10912 | void* p = setgroups | 
 | 10913 |   ; | 
 | 10914 |   return 0; | 
 | 10915 | } | 
 | 10916 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10917 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10918 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10919 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10920 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10921 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10922 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10923 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10924 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10925 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10926 |  | 
 | 10927 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10928 | 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] | 10929 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10930 | # check for openpty and forkpty | 
 | 10931 |  | 
 | 10932 | for ac_func in openpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10933 | do : | 
 | 10934 |   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10935 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10936 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10937 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10938 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10939 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10940 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10941 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
 | 10942 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10943 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10944 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10945 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10946 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10947 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10949 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10950 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10951 | /* Override any GCC internal prototype to avoid an error. | 
 | 10952 |    Use char because int might match the return type of a GCC | 
 | 10953 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10954 | #ifdef __cplusplus | 
 | 10955 | extern "C" | 
 | 10956 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10957 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10958 | int | 
 | 10959 | main () | 
 | 10960 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10961 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10962 |   ; | 
 | 10963 |   return 0; | 
 | 10964 | } | 
 | 10965 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10966 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10967 |   ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10968 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10969 |   ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10970 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10971 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10972 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10973 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10974 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
 | 10976 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10977 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10978 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10979 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10980 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10981 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
 | 10982 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10983 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10984 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10985 | else | 
 | 10986 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10987 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10989 | /* end confdefs.h.  */ | 
 | 10990 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10991 | /* Override any GCC internal prototype to avoid an error. | 
 | 10992 |    Use char because int might match the return type of a GCC | 
 | 10993 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10994 | #ifdef __cplusplus | 
 | 10995 | extern "C" | 
 | 10996 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10997 | char openpty (); | 
 | 10998 | int | 
 | 10999 | main () | 
 | 11000 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11001 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11002 |   ; | 
 | 11003 |   return 0; | 
 | 11004 | } | 
 | 11005 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11006 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11007 |   ac_cv_lib_bsd_openpty=yes | 
 | 11008 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11009 |   ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11010 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11011 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11012 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11013 | LIBS=$ac_check_lib_save_LIBS | 
 | 11014 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
 | 11016 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11017 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11018 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11019 |  LIBS="$LIBS -lbsd" | 
 | 11020 | fi | 
 | 11021 |  | 
 | 11022 |  | 
 | 11023 | fi | 
 | 11024 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11025 |  | 
 | 11026 | fi | 
 | 11027 | done | 
 | 11028 |  | 
 | 11029 | for ac_func in forkpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11030 | do : | 
 | 11031 |   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11032 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11033 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11034 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11035 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11036 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11037 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11038 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
 | 11039 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11040 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11041 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11042 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11043 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11044 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11046 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11047 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11048 | /* Override any GCC internal prototype to avoid an error. | 
 | 11049 |    Use char because int might match the return type of a GCC | 
 | 11050 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11051 | #ifdef __cplusplus | 
 | 11052 | extern "C" | 
 | 11053 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11054 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11055 | int | 
 | 11056 | main () | 
 | 11057 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11058 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11059 |   ; | 
 | 11060 |   return 0; | 
 | 11061 | } | 
 | 11062 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11063 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11064 |   ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11065 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11066 |   ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11067 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11068 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11069 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11070 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11071 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
 | 11073 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11074 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11075 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11076 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11077 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11078 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
 | 11079 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11080 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11081 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11082 | else | 
 | 11083 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11084 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11086 | /* end confdefs.h.  */ | 
 | 11087 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11088 | /* Override any GCC internal prototype to avoid an error. | 
 | 11089 |    Use char because int might match the return type of a GCC | 
 | 11090 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11091 | #ifdef __cplusplus | 
 | 11092 | extern "C" | 
 | 11093 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11094 | char forkpty (); | 
 | 11095 | int | 
 | 11096 | main () | 
 | 11097 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11098 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11099 |   ; | 
 | 11100 |   return 0; | 
 | 11101 | } | 
 | 11102 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11103 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11104 |   ac_cv_lib_bsd_forkpty=yes | 
 | 11105 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11106 |   ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11107 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11108 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11109 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11110 | LIBS=$ac_check_lib_save_LIBS | 
 | 11111 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
 | 11113 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11114 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11115 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11116 |  LIBS="$LIBS -lbsd" | 
 | 11117 | fi | 
 | 11118 |  | 
 | 11119 |  | 
 | 11120 | fi | 
 | 11121 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11122 |  | 
 | 11123 | fi | 
 | 11124 | done | 
 | 11125 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11126 |  | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11127 | # Stuff for expat. | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11128 | for ac_func in memmove | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11129 | do : | 
 | 11130 |   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11131 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11132 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11133 | #define HAVE_MEMMOVE 1 | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11134 | _ACEOF | 
 | 11135 |  | 
 | 11136 | fi | 
 | 11137 | done | 
 | 11138 |  | 
 | 11139 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11140 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11141 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11142 | do : | 
 | 11143 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 11144 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11145 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11146 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11147 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11148 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11149 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11150 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11151 | done | 
 | 11152 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11153 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11154 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11155 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11156 |   $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11157 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11158 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11159 |   case " $LIBOBJS " in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11160 |   *" dup2.$ac_objext "* ) ;; | 
 | 11161 |   *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11162 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11163 | esac | 
 | 11164 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11165 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11166 |  | 
 | 11167 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11168 | if test "x$ac_cv_func_getcwd" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11169 |   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h | 
 | 11170 |  | 
 | 11171 | else | 
 | 11172 |   case " $LIBOBJS " in | 
 | 11173 |   *" getcwd.$ac_objext "* ) ;; | 
 | 11174 |   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" | 
 | 11175 |  ;; | 
 | 11176 | esac | 
 | 11177 |  | 
 | 11178 | fi | 
 | 11179 |  | 
 | 11180 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11181 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11182 |   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
 | 11183 |  | 
 | 11184 | else | 
 | 11185 |   case " $LIBOBJS " in | 
 | 11186 |   *" strdup.$ac_objext "* ) ;; | 
 | 11187 |   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
 | 11188 |  ;; | 
 | 11189 | esac | 
 | 11190 |  | 
 | 11191 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11192 |  | 
 | 11193 |  | 
 | 11194 | for ac_func in getpgrp | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11195 | do : | 
 | 11196 |   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11197 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11198 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11199 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11200 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11201 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11202 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11203 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11204 | int | 
 | 11205 | main () | 
 | 11206 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11207 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11208 |   ; | 
 | 11209 |   return 0; | 
 | 11210 | } | 
 | 11211 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11212 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11213 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11214 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11215 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11216 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11217 | 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] | 11218 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11219 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11220 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11221 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11222 | for ac_func in setpgrp | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11223 | do : | 
 | 11224 |   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11225 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11226 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11227 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11228 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11229 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11230 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11231 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11232 | int | 
 | 11233 | main () | 
 | 11234 | { | 
 | 11235 | setpgrp(0,0); | 
 | 11236 |   ; | 
 | 11237 |   return 0; | 
 | 11238 | } | 
 | 11239 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11240 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11241 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11242 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11243 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11244 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11246 |  | 
 | 11247 | fi | 
 | 11248 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11249 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11250 | for ac_func in gettimeofday | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11251 | do : | 
 | 11252 |   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11253 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11254 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11255 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11256 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11257 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11258 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11259 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11260 | int | 
 | 11261 | main () | 
 | 11262 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11263 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11264 |   ; | 
 | 11265 |   return 0; | 
 | 11266 | } | 
 | 11267 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11268 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11269 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11270 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11271 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11272 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11273 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11275 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11276 | 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] | 11277 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11278 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11279 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11280 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11281 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
 | 11283 | $as_echo_n "checking for major... " >&6; } | 
 | 11284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11285 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11286 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11287 | #if defined(MAJOR_IN_MKDEV) | 
 | 11288 | #include <sys/mkdev.h> | 
 | 11289 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 11290 | #include <sys/sysmacros.h> | 
 | 11291 | #else | 
 | 11292 | #include <sys/types.h> | 
 | 11293 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11294 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11295 | int | 
 | 11296 | main () | 
 | 11297 | { | 
 | 11298 |  | 
 | 11299 |   makedev(major(0),minor(0)); | 
 | 11300 |  | 
 | 11301 |   ; | 
 | 11302 |   return 0; | 
 | 11303 | } | 
 | 11304 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11305 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11306 |  | 
 | 11307 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11308 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11309 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11310 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11311 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11312 |  | 
 | 11313 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11314 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11315 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11316 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11317 |  | 
 | 11318 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11319 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11320 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11321 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11322 | # 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] | 11323 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
 | 11325 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
 | 11326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11327 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11328 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 11329 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11330 | #include <sys/socket.h> | 
 | 11331 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 11332 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11333 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11334 | int | 
 | 11335 | main () | 
 | 11336 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11337 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11338 |   ; | 
 | 11339 |   return 0; | 
 | 11340 | } | 
 | 11341 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11342 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11343 |   have_getaddrinfo=yes | 
 | 11344 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11345 |   have_getaddrinfo=no | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11346 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11347 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11348 |     conftest$ac_exeext conftest.$ac_ext | 
 | 11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
 | 11350 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11351 | if test $have_getaddrinfo = yes | 
 | 11352 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11353 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
 | 11354 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11355 |   if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11356 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11357 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11358 |   if test "$cross_compiling" = yes; then : | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 11359 |  | 
 | 11360 | if test "${enable_ipv6+set}" = set; then | 
 | 11361 |   ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
 | 11362 | else | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11363 |   ac_cv_buggy_getaddrinfo=yes | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 11364 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11365 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11366 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11367 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11368 |  | 
| Stefan Krah | 0afe4e4 | 2012-11-22 23:56:51 +0100 | [diff] [blame] | 11369 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11370 | #include <sys/types.h> | 
 | 11371 | #include <netdb.h> | 
 | 11372 | #include <string.h> | 
 | 11373 | #include <sys/socket.h> | 
 | 11374 | #include <netinet/in.h> | 
 | 11375 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11376 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11377 | { | 
 | 11378 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 11379 |   struct addrinfo hints, *ai, *aitop; | 
 | 11380 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 11381 |  | 
 | 11382 |   for (passive = 0; passive <= 1; passive++) { | 
 | 11383 |     memset(&hints, 0, sizeof(hints)); | 
 | 11384 |     hints.ai_family = AF_UNSPEC; | 
 | 11385 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 11386 |     hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 11387 |     hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11388 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 11389 |       (void)gai_strerror(gaierr); | 
 | 11390 |       goto bad; | 
 | 11391 |     } | 
 | 11392 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 11393 |       if (ai->ai_addr == NULL || | 
 | 11394 |           ai->ai_addrlen == 0 || | 
 | 11395 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 11396 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 11397 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 11398 |         goto bad; | 
 | 11399 |       } | 
 | 11400 |       switch (ai->ai_family) { | 
 | 11401 |       case AF_INET: | 
 | 11402 |         if (strcmp(strport, "54321") != 0) { | 
 | 11403 |           goto bad; | 
 | 11404 |         } | 
 | 11405 |         if (passive) { | 
 | 11406 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 11407 |             goto bad; | 
 | 11408 |           } | 
 | 11409 |         } else { | 
 | 11410 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 11411 |             goto bad; | 
 | 11412 |           } | 
 | 11413 |         } | 
 | 11414 |         inet4++; | 
 | 11415 |         break; | 
 | 11416 |       case AF_INET6: | 
 | 11417 |         if (strcmp(strport, "54321") != 0) { | 
 | 11418 |           goto bad; | 
 | 11419 |         } | 
 | 11420 |         if (passive) { | 
 | 11421 |           if (strcmp(straddr, "::") != 0) { | 
 | 11422 |             goto bad; | 
 | 11423 |           } | 
 | 11424 |         } else { | 
 | 11425 |           if (strcmp(straddr, "::1") != 0) { | 
 | 11426 |             goto bad; | 
 | 11427 |           } | 
 | 11428 |         } | 
 | 11429 |         inet6++; | 
 | 11430 |         break; | 
 | 11431 |       case AF_UNSPEC: | 
 | 11432 |         goto bad; | 
 | 11433 |         break; | 
 | 11434 |       default: | 
 | 11435 |         /* another family support? */ | 
 | 11436 |         break; | 
 | 11437 |       } | 
 | 11438 |     } | 
 | 11439 |   } | 
 | 11440 |  | 
 | 11441 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 11442 |     goto bad; | 
 | 11443 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 11444 |     goto bad; | 
 | 11445 |  | 
 | 11446 |   if (aitop) | 
 | 11447 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11448 |   return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11449 |  | 
 | 11450 |  bad: | 
 | 11451 |   if (aitop) | 
 | 11452 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11453 |   return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11454 | } | 
 | 11455 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11456 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11457 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11458 |   ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11459 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11460 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11461 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11462 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11463 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11464 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11465 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11466 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11467 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11468 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11469 |  | 
| Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
 | 11471 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
 | 11472 |  | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 11473 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11474 | then | 
 | 11475 | 	if test $ipv6 = yes | 
 | 11476 | 	then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11477 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 11478 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 11479 | 		exit 1 | 
 | 11480 | 	fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11481 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11482 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11483 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11484 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11485 | fi | 
| Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 11486 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11487 | for ac_func in getnameinfo | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11488 | do : | 
 | 11489 |   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11490 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11491 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11492 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11493 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11494 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11495 | fi | 
 | 11496 | done | 
 | 11497 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11498 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11499 | # checks for structures | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 11501 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11502 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11503 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11504 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11505 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11506 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11507 | #include <sys/types.h> | 
 | 11508 | #include <sys/time.h> | 
 | 11509 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11510 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11511 | int | 
 | 11512 | main () | 
 | 11513 | { | 
 | 11514 | if ((struct tm *) 0) | 
 | 11515 | return 0; | 
 | 11516 |   ; | 
 | 11517 |   return 0; | 
 | 11518 | } | 
 | 11519 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11520 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11521 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11522 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11523 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11524 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11526 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
 | 11528 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11529 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11530 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11531 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11532 |  | 
 | 11533 | fi | 
 | 11534 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 11536 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11537 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11538 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11539 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11540 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11541 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11542 | #include <sys/types.h> | 
 | 11543 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11544 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11545 | int | 
 | 11546 | main () | 
 | 11547 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11548 | struct tm tm; | 
 | 11549 | 				     int *p = &tm.tm_sec; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11550 | 				     return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11551 |   ; | 
 | 11552 |   return 0; | 
 | 11553 | } | 
 | 11554 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11555 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11556 |   ac_cv_struct_tm=time.h | 
 | 11557 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11558 |   ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11559 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11561 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
 | 11563 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11564 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11565 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11566 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11567 |  | 
 | 11568 | fi | 
 | 11569 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11570 | 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] | 11571 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11572 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11573 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11574 | 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] | 11575 |  | 
 | 11576 | cat >>confdefs.h <<_ACEOF | 
 | 11577 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 11578 | _ACEOF | 
 | 11579 |  | 
 | 11580 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11581 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11582 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11583 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 11584 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11585 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11586 |  | 
 | 11587 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11588 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 11589 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11590 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11591 |   ac_have_decl=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11592 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11593 |   ac_have_decl=0 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11594 | fi | 
 | 11595 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11596 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11597 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11598 | _ACEOF | 
 | 11599 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11600 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 11601 | $as_echo_n "checking for tzname... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11602 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11603 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11604 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11605 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11606 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11607 | #include <time.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11608 | #if !HAVE_DECL_TZNAME | 
 | 11609 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11610 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11611 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11612 | int | 
 | 11613 | main () | 
 | 11614 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11615 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11616 |   ; | 
 | 11617 |   return 0; | 
 | 11618 | } | 
 | 11619 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11620 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11621 |   ac_cv_var_tzname=yes | 
 | 11622 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11623 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11624 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11625 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11626 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11627 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 11629 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11630 |   if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11631 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11632 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11633 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11634 |   fi | 
 | 11635 | fi | 
 | 11636 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11637 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11638 | 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] | 11639 |  | 
 | 11640 | cat >>confdefs.h <<_ACEOF | 
 | 11641 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
 | 11642 | _ACEOF | 
 | 11643 |  | 
 | 11644 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11645 | fi | 
 | 11646 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11647 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11648 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11649 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11650 | cat >>confdefs.h <<_ACEOF | 
 | 11651 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
 | 11652 | _ACEOF | 
 | 11653 |  | 
 | 11654 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11655 | fi | 
 | 11656 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11657 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11658 | 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] | 11659 |  | 
 | 11660 | cat >>confdefs.h <<_ACEOF | 
 | 11661 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
 | 11662 | _ACEOF | 
 | 11663 |  | 
 | 11664 |  | 
 | 11665 | fi | 
 | 11666 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11667 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11668 | 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] | 11669 |  | 
 | 11670 | cat >>confdefs.h <<_ACEOF | 
 | 11671 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
 | 11672 | _ACEOF | 
 | 11673 |  | 
 | 11674 |  | 
 | 11675 | fi | 
 | 11676 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11677 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11678 | 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] | 11679 |  | 
 | 11680 | cat >>confdefs.h <<_ACEOF | 
 | 11681 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
 | 11682 | _ACEOF | 
 | 11683 |  | 
 | 11684 |  | 
 | 11685 | fi | 
 | 11686 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11687 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11688 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11689 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11690 | cat >>confdefs.h <<_ACEOF | 
 | 11691 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
 | 11692 | _ACEOF | 
 | 11693 |  | 
 | 11694 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11695 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11696 |  | 
 | 11697 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11698 |   case " $LIBOBJS " in | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11699 |   *" fileblocks.$ac_objext "* ) ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11700 |   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | 
 | 11701 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11702 | esac | 
 | 11703 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11704 | fi | 
 | 11705 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11706 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11707 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
 | 11709 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11710 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11711 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11712 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11713 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11714 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11715 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11716 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11717 | int | 
 | 11718 | main () | 
 | 11719 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11720 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11721 |   ; | 
 | 11722 |   return 0; | 
 | 11723 | } | 
 | 11724 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11725 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11726 |   ac_cv_header_time_altzone=yes | 
 | 11727 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11728 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11729 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11731 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11732 | fi | 
 | 11733 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
 | 11735 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11736 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11737 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11738 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11739 |  | 
 | 11740 | fi | 
 | 11741 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11742 | was_it_defined=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
 | 11744 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
 | 11745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11746 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11747 |  | 
 | 11748 | #include <sys/types.h> | 
 | 11749 | #include <sys/select.h> | 
 | 11750 | #include <sys/time.h> | 
 | 11751 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11752 | int | 
 | 11753 | main () | 
 | 11754 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11755 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11756 |   ; | 
 | 11757 |   return 0; | 
 | 11758 | } | 
 | 11759 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11760 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11761 |  | 
 | 11762 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11763 | $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] | 11764 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11765 |   was_it_defined=yes | 
 | 11766 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11767 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 11770 | $as_echo "$was_it_defined" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11771 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
 | 11773 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11774 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11775 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11776 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11777 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11778 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11779 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11780 | int | 
 | 11781 | main () | 
 | 11782 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11783 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11784 |   ; | 
 | 11785 |   return 0; | 
 | 11786 | } | 
 | 11787 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11788 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11789 |   ac_cv_struct_addrinfo=yes | 
 | 11790 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11791 |   ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11792 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11794 | fi | 
 | 11795 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
 | 11797 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11798 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11799 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11800 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11801 |  | 
 | 11802 | fi | 
 | 11803 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
 | 11805 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11806 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11807 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11808 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11809 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11810 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11811 |  | 
 | 11812 | #		include <sys/types.h> | 
 | 11813 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11814 | int | 
 | 11815 | main () | 
 | 11816 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11817 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11818 |   ; | 
 | 11819 |   return 0; | 
 | 11820 | } | 
 | 11821 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11822 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11823 |   ac_cv_struct_sockaddr_storage=yes | 
 | 11824 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11825 |   ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11826 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11828 | fi | 
 | 11829 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
 | 11831 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11832 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11833 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11834 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11835 |  | 
 | 11836 | fi | 
 | 11837 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11838 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11839 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
 | 11841 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11842 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11843 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11844 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11845 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11846 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11847 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11848 | int | 
 | 11849 | main () | 
 | 11850 | { | 
 | 11851 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11852 | test_array [0] = 0; | 
 | 11853 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11854 |  | 
 | 11855 |   ; | 
 | 11856 |   return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11857 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11859 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11860 |   ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11861 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11862 |   ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11863 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11865 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
 | 11867 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11868 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11869 |   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11870 |  | 
 | 11871 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11872 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
 | 11874 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11875 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11876 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11877 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11878 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11879 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11880 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11881 | int | 
 | 11882 | main () | 
 | 11883 | { | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11884 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11885 | #ifndef __cplusplus | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11886 |   /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11887 |   typedef int charset[2]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11888 |   const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11889 |   /* SunOS 4.1.1 cc rejects this.  */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11890 |   char const *const *pcpcc; | 
 | 11891 |   char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11892 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 11893 |   struct point {int x, y;}; | 
 | 11894 |   static struct point const zero = {0,0}; | 
 | 11895 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 11896 |      It does not let you subtract one const X* pointer from another in | 
 | 11897 |      an arm of an if-expression whose if-part is not a constant | 
 | 11898 |      expression */ | 
 | 11899 |   const char *g = "string"; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11900 |   pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11901 |   /* HPUX 7.0 cc rejects these. */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11902 |   ++pcpcc; | 
 | 11903 |   ppc = (char**) pcpcc; | 
 | 11904 |   pcpcc = (char const *const *) ppc; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11905 |   { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
 | 11906 |     char tx; | 
 | 11907 |     char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11908 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11909 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11910 |     *t++ = 0; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11911 |     if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11912 |   } | 
 | 11913 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 11914 |     int x[] = {25, 17}; | 
 | 11915 |     const int *foo = &x[0]; | 
 | 11916 |     ++foo; | 
 | 11917 |   } | 
 | 11918 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 11919 |     typedef const int *iptr; | 
 | 11920 |     iptr p = 0; | 
 | 11921 |     ++p; | 
 | 11922 |   } | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11923 |   { /* 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] | 11924 |        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 11925 |     struct s { int j; const int *ap[3]; } bx; | 
 | 11926 |     struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11927 |   } | 
 | 11928 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 11929 |     const int foo = 10; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11930 |     if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11931 |   } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11932 |   return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11933 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11934 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11935 |   ; | 
 | 11936 |   return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11937 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11938 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11939 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11940 |   ac_cv_c_const=yes | 
 | 11941 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11942 |   ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11943 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11945 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
 | 11947 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11948 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11949 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11950 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11951 |  | 
 | 11952 | fi | 
 | 11953 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11954 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11955 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
 | 11957 | $as_echo_n "checking for working volatile... " >&6; } | 
 | 11958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11959 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11960 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11961 | int | 
 | 11962 | main () | 
 | 11963 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11964 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11965 |   ; | 
 | 11966 |   return 0; | 
 | 11967 | } | 
 | 11968 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11969 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11970 |   works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11971 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11972 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11973 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11974 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11975 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11976 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 11979 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11980 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11981 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
 | 11983 | $as_echo_n "checking for working signed char... " >&6; } | 
 | 11984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11985 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11986 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11987 | int | 
 | 11988 | main () | 
 | 11989 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11990 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11991 |   ; | 
 | 11992 |   return 0; | 
 | 11993 | } | 
 | 11994 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11995 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11996 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11997 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11998 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11999 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12000 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12001 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12002 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 12005 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12006 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12007 | have_prototypes=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
 | 12009 | $as_echo_n "checking for prototypes... " >&6; } | 
 | 12010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12011 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12012 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12013 | int | 
 | 12014 | main () | 
 | 12015 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12016 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12017 |   ; | 
 | 12018 |   return 0; | 
 | 12019 | } | 
 | 12020 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12021 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12022 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12023 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12024 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12025 |    have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12026 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
 | 12029 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12030 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12031 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
 | 12033 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
 | 12034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12035 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12036 |  | 
 | 12037 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 12038 | int foo(int x, ...) { | 
 | 12039 | 	va_list va; | 
 | 12040 | 	va_start(va, x); | 
 | 12041 | 	va_arg(va, int); | 
 | 12042 | 	va_arg(va, char *); | 
 | 12043 | 	va_arg(va, double); | 
 | 12044 | 	return 0; | 
 | 12045 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12046 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12047 | int | 
 | 12048 | main () | 
 | 12049 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 12050 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12051 |   ; | 
 | 12052 |   return 0; | 
 | 12053 | } | 
 | 12054 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12055 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12056 |  | 
 | 12057 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12058 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12059 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12060 |   works=yes | 
 | 12061 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12062 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 12065 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12066 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12067 | # check for socketpair | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
 | 12069 | $as_echo_n "checking for socketpair... " >&6; } | 
 | 12070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12071 | /* end confdefs.h.  */ | 
 | 12072 |  | 
 | 12073 | #include <sys/types.h> | 
 | 12074 | #include <sys/socket.h> | 
 | 12075 |  | 
 | 12076 | int | 
 | 12077 | main () | 
 | 12078 | { | 
 | 12079 | void *x=socketpair | 
 | 12080 |   ; | 
 | 12081 |   return 0; | 
 | 12082 | } | 
 | 12083 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12084 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12085 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12086 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12087 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12088 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12089 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12090 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12091 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12092 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12093 |  | 
 | 12094 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12095 | 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] | 12096 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12097 | # check if sockaddr has sa_len member | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
 | 12099 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
 | 12100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12101 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12102 | #include <sys/types.h> | 
 | 12103 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12104 | int | 
 | 12105 | main () | 
 | 12106 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12107 | struct sockaddr x; | 
 | 12108 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12109 |   ; | 
 | 12110 |   return 0; | 
 | 12111 | } | 
 | 12112 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12113 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12114 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12115 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12116 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12117 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12118 |  | 
 | 12119 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12120 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12121 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12122 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12123 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12124 | 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] | 12125 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12126 | va_list_is_array=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
 | 12128 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
 | 12129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12130 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12131 |  | 
 | 12132 | #ifdef HAVE_STDARG_PROTOTYPES | 
 | 12133 | #include <stdarg.h> | 
 | 12134 | #else | 
 | 12135 | #include <varargs.h> | 
 | 12136 | #endif | 
 | 12137 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 | int | 
 | 12139 | main () | 
 | 12140 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12141 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12142 |   ; | 
 | 12143 |   return 0; | 
 | 12144 | } | 
 | 12145 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12146 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12147 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12148 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12149 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12150 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12151 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12152 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12153 |  va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12154 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12155 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
 | 12158 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12159 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12160 | # 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] | 12161 |  | 
 | 12162 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12163 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12164 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12165 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12166 |   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12167 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12168 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
 | 12169 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12170 |   OLD_CFLAGS=$CFLAGS | 
 | 12171 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12172 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12173 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12174 |  | 
 | 12175 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12176 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12177 | int | 
 | 12178 | main () | 
 | 12179 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12180 |  | 
 | 12181 |     char *name; | 
 | 12182 |     struct hostent *he, *res; | 
 | 12183 |     char buffer[2048]; | 
 | 12184 |     int buflen = 2048; | 
 | 12185 |     int h_errnop; | 
 | 12186 |  | 
 | 12187 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12188 |  | 
 | 12189 |   ; | 
 | 12190 |   return 0; | 
 | 12191 | } | 
 | 12192 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12193 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12194 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12195 |     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 12196 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12197 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12198 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12199 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12200 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12201 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12202 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12203 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12204 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12205 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12206 | $as_echo "no" >&6; } | 
 | 12207 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
 | 12208 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
 | 12209 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12210 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12211 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12212 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12213 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12214 | int | 
 | 12215 | main () | 
 | 12216 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12217 |  | 
 | 12218 |         char *name; | 
 | 12219 |         struct hostent *he; | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12220 |         char buffer[2048]; | 
 | 12221 |         int buflen = 2048; | 
 | 12222 |         int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12223 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12224 |         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12225 |  | 
 | 12226 |   ; | 
 | 12227 |   return 0; | 
 | 12228 | } | 
 | 12229 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12230 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12231 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12232 |         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 12233 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12234 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12235 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12236 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12237 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12238 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12239 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12240 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12241 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12242 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12243 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12244 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
 | 12245 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
 | 12246 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12247 | /* end confdefs.h.  */ | 
 | 12248 |  | 
 | 12249 | #           include <netdb.h> | 
 | 12250 |  | 
 | 12251 | int | 
 | 12252 | main () | 
 | 12253 | { | 
 | 12254 |  | 
 | 12255 |             char *name; | 
 | 12256 |             struct hostent *he; | 
 | 12257 |             struct hostent_data data; | 
 | 12258 |  | 
 | 12259 |             (void) gethostbyname_r(name, he, &data); | 
 | 12260 |  | 
 | 12261 |   ; | 
 | 12262 |   return 0; | 
 | 12263 | } | 
 | 12264 | _ACEOF | 
 | 12265 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12266 |  | 
 | 12267 |             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
 | 12268 |  | 
 | 12269 |  | 
 | 12270 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
 | 12271 |  | 
 | 12272 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12273 | $as_echo "yes" >&6; } | 
 | 12274 |  | 
 | 12275 | else | 
 | 12276 |  | 
 | 12277 |            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12278 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12279 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12280 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12281 | 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] | 12282 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12283 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12284 | 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] | 12285 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12286 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12288 |   CFLAGS=$OLD_CFLAGS | 
 | 12289 |  | 
 | 12290 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12291 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12292 |   for ac_func in gethostbyname | 
 | 12293 | do : | 
 | 12294 |   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12295 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12296 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12297 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12298 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12299 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12300 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12301 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12302 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12303 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12304 | fi | 
 | 12305 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12306 |  | 
 | 12307 |  | 
 | 12308 |  | 
 | 12309 |  | 
 | 12310 |  | 
 | 12311 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12312 | # checks for system services | 
 | 12313 | # (none yet) | 
 | 12314 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12315 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12316 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12317 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12318 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 12319 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12320 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
 | 12321 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12322 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12323 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12324 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12325 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12326 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12328 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12329 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12330 | /* Override any GCC internal prototype to avoid an error. | 
 | 12331 |    Use char because int might match the return type of a GCC | 
 | 12332 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12333 | #ifdef __cplusplus | 
 | 12334 | extern "C" | 
 | 12335 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12336 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12337 | int | 
 | 12338 | main () | 
 | 12339 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12340 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12341 |   ; | 
 | 12342 |   return 0; | 
 | 12343 | } | 
 | 12344 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12345 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12346 |   ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12347 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12348 |   ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12349 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12350 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12351 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12352 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12353 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
 | 12355 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12356 | 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] | 12357 |   cat >>confdefs.h <<_ACEOF | 
 | 12358 | #define HAVE_LIBIEEE 1 | 
 | 12359 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12360 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12361 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12362 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12363 | fi | 
 | 12364 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12365 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 12366 | fi | 
 | 12367 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12368 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12369 | # Check for --with-fpectl | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
 | 12371 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12372 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12373 | # Check whether --with-fpectl was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12374 | if test "${with_fpectl+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12375 |   withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12376 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12377 | then | 
 | 12378 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12379 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12380 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12381 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12382 | $as_echo "yes" >&6; } | 
 | 12383 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12384 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12385 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12386 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12387 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12388 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12389 | fi | 
 | 12390 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12391 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12392 | # check for --with-libm=... | 
 | 12393 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12394 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 12395 | Darwin) ;; | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12396 | BeOS) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12397 | *) LIBM=-lm | 
 | 12398 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
 | 12400 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12401 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12402 | # Check whether --with-libm was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12403 | if test "${with_libm+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12404 |   withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12405 | if test "$withval" = no | 
 | 12406 | then LIBM= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12407 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
 | 12408 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12409 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12410 | then LIBM=$withval | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12411 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
 | 12412 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12413 | 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] | 12414 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12415 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12416 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
 | 12417 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12418 | fi | 
 | 12419 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12420 |  | 
 | 12421 | # check for --with-libc=... | 
 | 12422 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
 | 12424 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12425 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12426 | # Check whether --with-libc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12427 | if test "${with_libc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12428 |   withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12429 | if test "$withval" = no | 
 | 12430 | then LIBC= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12431 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
 | 12432 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12433 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12434 | then LIBC=$withval | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12435 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
 | 12436 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12437 | 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] | 12438 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12439 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12440 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
 | 12441 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12442 | fi | 
 | 12443 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12444 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12445 | # ************************************************** | 
 | 12446 | # * Check for various properties of floating point * | 
 | 12447 | # ************************************************** | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12448 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
 | 12450 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12451 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12452 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12453 | else | 
 | 12454 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12455 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12456 |   ac_cv_little_endian_double=no | 
 | 12457 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12458 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12459 | /* end confdefs.h.  */ | 
 | 12460 |  | 
 | 12461 | #include <string.h> | 
 | 12462 | int main() { | 
 | 12463 |     double x = 9006104071832581.0; | 
 | 12464 |     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
 | 12465 |         return 0; | 
 | 12466 |     else | 
 | 12467 |         return 1; | 
 | 12468 | } | 
 | 12469 |  | 
 | 12470 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12471 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12472 |   ac_cv_little_endian_double=yes | 
 | 12473 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12474 |   ac_cv_little_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12475 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12476 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12477 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12478 | fi | 
 | 12479 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12480 | fi | 
 | 12481 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
 | 12483 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12484 | if test "$ac_cv_little_endian_double" = yes | 
 | 12485 | then | 
 | 12486 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12487 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12488 |  | 
 | 12489 | fi | 
 | 12490 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
 | 12492 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12493 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12494 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12495 | else | 
 | 12496 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12497 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12498 |   ac_cv_big_endian_double=no | 
 | 12499 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12500 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12501 | /* end confdefs.h.  */ | 
 | 12502 |  | 
 | 12503 | #include <string.h> | 
 | 12504 | int main() { | 
 | 12505 |     double x = 9006104071832581.0; | 
 | 12506 |     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
 | 12507 |         return 0; | 
 | 12508 |     else | 
 | 12509 |         return 1; | 
 | 12510 | } | 
 | 12511 |  | 
 | 12512 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12513 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12514 |   ac_cv_big_endian_double=yes | 
 | 12515 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12516 |   ac_cv_big_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12517 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12518 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12519 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12520 | fi | 
 | 12521 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12522 | fi | 
 | 12523 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
 | 12525 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12526 | if test "$ac_cv_big_endian_double" = yes | 
 | 12527 | then | 
 | 12528 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12529 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12530 |  | 
 | 12531 | fi | 
 | 12532 |  | 
 | 12533 | # Some ARM platforms use a mixed-endian representation for doubles. | 
 | 12534 | # While Python doesn't currently have full support for these platforms | 
 | 12535 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
 | 12536 | # conversions work. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
 | 12538 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12539 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12540 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12541 | else | 
 | 12542 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12543 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12544 |   ac_cv_mixed_endian_double=no | 
 | 12545 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12546 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12547 | /* end confdefs.h.  */ | 
 | 12548 |  | 
 | 12549 | #include <string.h> | 
 | 12550 | int main() { | 
 | 12551 |     double x = 9006104071832581.0; | 
 | 12552 |     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
 | 12553 |         return 0; | 
 | 12554 |     else | 
 | 12555 |         return 1; | 
 | 12556 | } | 
 | 12557 |  | 
 | 12558 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12559 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12560 |   ac_cv_mixed_endian_double=yes | 
 | 12561 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12562 |   ac_cv_mixed_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12563 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12564 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12565 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12566 | fi | 
 | 12567 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12568 | fi | 
 | 12569 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
 | 12571 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12572 | if test "$ac_cv_mixed_endian_double" = yes | 
 | 12573 | then | 
 | 12574 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12575 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12576 |  | 
 | 12577 | fi | 
 | 12578 |  | 
 | 12579 | # The short float repr introduced in Python 3.1 requires the | 
 | 12580 | # correctly-rounded string <-> double conversion functions from | 
 | 12581 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit | 
 | 12582 | # rounding; this is a problem on x86, where the x87 FPU has a default | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12583 | # rounding precision of 64 bits.  For gcc/x86, we can fix this by | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12584 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12585 |  | 
 | 12586 | # This inline assembler syntax may also work for suncc and icc, | 
 | 12587 | # so we try it on all platforms. | 
 | 12588 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
 | 12590 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
 | 12591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12592 | /* end confdefs.h.  */ | 
 | 12593 |  | 
 | 12594 | int | 
 | 12595 | main () | 
 | 12596 | { | 
 | 12597 |  | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12598 |   unsigned short cw; | 
 | 12599 |   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
 | 12600 |   __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12601 |  | 
 | 12602 |   ; | 
 | 12603 |   return 0; | 
 | 12604 | } | 
 | 12605 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12606 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12607 |   have_gcc_asm_for_x87=yes | 
 | 12608 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12609 |   have_gcc_asm_for_x87=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12610 | fi | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
 | 12613 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12614 | if test "$have_gcc_asm_for_x87" = yes | 
 | 12615 | then | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12616 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12617 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12618 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12619 | fi | 
| Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12620 |  | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12621 | # Detect whether system arithmetic is subject to x87-style double | 
 | 12622 | # rounding issues.  The result of this test has little meaning on non | 
 | 12623 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
 | 12624 | # mode is round-to-nearest and double rounding issues are present, and | 
 | 12625 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
 | 12627 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12628 | # $BASECFLAGS may affect the result | 
 | 12629 | ac_save_cc="$CC" | 
 | 12630 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12631 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12632 |   ac_cv_x87_double_rounding=no | 
 | 12633 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12634 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12635 | /* end confdefs.h.  */ | 
 | 12636 |  | 
 | 12637 | #include <stdlib.h> | 
 | 12638 | #include <math.h> | 
 | 12639 | int main() { | 
 | 12640 |     volatile double x, y, z; | 
 | 12641 |     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
 | 12642 |     x = 0.99999999999999989; /* 1-2**-53 */ | 
 | 12643 |     y = 1./x; | 
 | 12644 |     if (y != 1.) | 
 | 12645 |         exit(0); | 
 | 12646 |     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
 | 12647 |     x = 1e16; | 
 | 12648 |     y = 2.99999; | 
 | 12649 |     z = x + y; | 
 | 12650 |     if (z != 1e16+4.) | 
 | 12651 |         exit(0); | 
 | 12652 |     /* both tests show evidence of double rounding */ | 
 | 12653 |     exit(1); | 
 | 12654 | } | 
 | 12655 |  | 
 | 12656 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12657 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12658 |   ac_cv_x87_double_rounding=no | 
 | 12659 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12660 |   ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12661 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12662 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12663 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12664 | fi | 
 | 12665 |  | 
| Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12666 | CC="$ac_save_cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
 | 12668 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12669 | if test "$ac_cv_x87_double_rounding" = yes | 
 | 12670 | then | 
 | 12671 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12672 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12673 |  | 
 | 12674 | fi | 
 | 12675 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12676 | # ************************************ | 
 | 12677 | # * Check for mathematical functions * | 
 | 12678 | # ************************************ | 
 | 12679 |  | 
 | 12680 | LIBS_SAVE=$LIBS | 
 | 12681 | LIBS="$LIBS $LIBM" | 
 | 12682 |  | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12683 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
 | 12684 | # -0. on some architectures. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
 | 12686 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12687 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12688 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12689 | else | 
 | 12690 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12691 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12692 |   ac_cv_tanh_preserves_zero_sign=no | 
 | 12693 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12694 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12695 | /* end confdefs.h.  */ | 
 | 12696 |  | 
 | 12697 | #include <math.h> | 
| Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12698 | #include <stdlib.h> | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12699 | int main() { | 
 | 12700 |     /* return 0 if either negative zeros don't exist | 
 | 12701 |        on this platform or if negative zeros exist | 
 | 12702 |        and tanh(-0.) == -0. */ | 
 | 12703 |   if (atan2(0., -1.) == atan2(-0., -1.) || | 
 | 12704 |       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
 | 12705 |   else exit(1); | 
 | 12706 | } | 
 | 12707 |  | 
 | 12708 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12709 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12710 |   ac_cv_tanh_preserves_zero_sign=yes | 
 | 12711 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12712 |   ac_cv_tanh_preserves_zero_sign=no | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12713 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12714 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12715 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12716 | fi | 
 | 12717 |  | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12718 | fi | 
 | 12719 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
 | 12721 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12722 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
 | 12723 | then | 
 | 12724 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12725 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12726 |  | 
 | 12727 | fi | 
 | 12728 |  | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12729 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12730 | do : | 
 | 12731 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12732 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12733 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12734 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12735 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12736 | _ACEOF | 
 | 12737 |  | 
 | 12738 | fi | 
 | 12739 | done | 
 | 12740 |  | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12741 | for ac_func in hypot lgamma log1p round tgamma | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12742 | do : | 
 | 12743 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12744 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12745 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12746 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12747 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12748 | _ACEOF | 
 | 12749 |  | 
 | 12750 | fi | 
 | 12751 | done | 
 | 12752 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12753 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
 | 12754 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12755 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12756 |   ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12757 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12758 |   ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12759 | fi | 
 | 12760 |  | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12761 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12762 | #define HAVE_DECL_ISINF $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12763 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12764 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
 | 12765 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12766 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12767 |   ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12768 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12769 |   ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12770 | fi | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12771 |  | 
 | 12772 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12773 | #define HAVE_DECL_ISNAN $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12774 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12775 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
 | 12776 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12777 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12778 |   ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12779 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12780 |   ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12781 | fi | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12782 |  | 
 | 12783 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12784 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12785 | _ACEOF | 
 | 12786 |  | 
 | 12787 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12788 | LIBS=$LIBS_SAVE | 
 | 12789 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12790 | # For multiprocessing module, check that sem_open | 
 | 12791 | # actually works.  For FreeBSD versions <= 7.2, | 
 | 12792 | # the kernel module that provides POSIX semaphores | 
 | 12793 | # isn't loaded by default, so an attempt to call | 
 | 12794 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
 | 12796 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12797 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12798 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12799 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12800 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12801 |   ac_cv_posix_semaphores_enabled=yes | 
 | 12802 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12803 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12804 | /* end confdefs.h.  */ | 
 | 12805 |  | 
 | 12806 | #include <unistd.h> | 
 | 12807 | #include <fcntl.h> | 
 | 12808 | #include <stdio.h> | 
 | 12809 | #include <semaphore.h> | 
 | 12810 | #include <sys/stat.h> | 
 | 12811 |  | 
 | 12812 | int main(void) { | 
 | 12813 |   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
 | 12814 |   if (a == SEM_FAILED) { | 
 | 12815 |     perror("sem_open"); | 
 | 12816 |     return 1; | 
 | 12817 |   } | 
 | 12818 |   sem_close(a); | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12819 |   sem_unlink("/autoconf"); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12820 |   return 0; | 
 | 12821 | } | 
 | 12822 |  | 
 | 12823 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12824 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12825 |   ac_cv_posix_semaphores_enabled=yes | 
 | 12826 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12827 |   ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12828 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12829 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12830 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12831 | fi | 
 | 12832 |  | 
 | 12833 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12834 | fi | 
 | 12835 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
 | 12837 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12838 | if test $ac_cv_posix_semaphores_enabled = no | 
 | 12839 | then | 
 | 12840 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12841 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12842 |  | 
 | 12843 | fi | 
 | 12844 |  | 
 | 12845 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
 | 12847 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12848 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12849 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12850 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12851 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12852 |   ac_cv_broken_sem_getvalue=yes | 
 | 12853 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12854 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12855 | /* end confdefs.h.  */ | 
 | 12856 |  | 
 | 12857 | #include <unistd.h> | 
 | 12858 | #include <fcntl.h> | 
 | 12859 | #include <stdio.h> | 
 | 12860 | #include <semaphore.h> | 
 | 12861 | #include <sys/stat.h> | 
 | 12862 |  | 
 | 12863 | int main(void){ | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12864 |   sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12865 |   int count; | 
 | 12866 |   int res; | 
 | 12867 |   if(a==SEM_FAILED){ | 
 | 12868 |     perror("sem_open"); | 
 | 12869 |     return 1; | 
 | 12870 |  | 
 | 12871 |   } | 
 | 12872 |   res = sem_getvalue(a, &count); | 
 | 12873 |   sem_close(a); | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12874 |   sem_unlink("/autocftw"); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12875 |   return res==-1 ? 1 : 0; | 
 | 12876 | } | 
 | 12877 |  | 
 | 12878 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12879 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12880 |   ac_cv_broken_sem_getvalue=no | 
 | 12881 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12882 |   ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12883 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12884 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12885 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12886 | fi | 
 | 12887 |  | 
 | 12888 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12889 | fi | 
 | 12890 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
 | 12892 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12893 | if test $ac_cv_broken_sem_getvalue = yes | 
 | 12894 | then | 
 | 12895 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12896 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12897 |  | 
 | 12898 | fi | 
 | 12899 |  | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12900 | # determine what size digit to use for Python's longs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
 | 12902 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12903 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12904 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12905 |   enableval=$enable_big_digits; case $enable_big_digits in | 
 | 12906 | yes) | 
 | 12907 |   enable_big_digits=30 ;; | 
 | 12908 | no) | 
 | 12909 |   enable_big_digits=15 ;; | 
 | 12910 | 15|30) | 
 | 12911 |   ;; | 
 | 12912 | *) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12913 |   as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12914 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
 | 12916 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12917 |  | 
 | 12918 | cat >>confdefs.h <<_ACEOF | 
 | 12919 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
 | 12920 | _ACEOF | 
 | 12921 |  | 
 | 12922 |  | 
 | 12923 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12924 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 12925 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12926 | fi | 
 | 12927 |  | 
 | 12928 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12929 | # check for wchar.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12930 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12931 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12932 |  | 
 | 12933 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12934 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12935 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12936 |   wchar_h="yes" | 
 | 12937 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12938 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 |   wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12940 |  | 
 | 12941 | fi | 
 | 12942 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12943 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12945 | # determine wchar_t size | 
 | 12946 | if test "$wchar_h" = yes | 
 | 12947 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12948 |   # The cast to long int works around a bug in the HP C Compiler | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12949 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 12950 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 12951 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
 | 12953 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12954 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12955 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12956 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12957 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
 | 12958 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12959 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12960 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12961 |   if test "$ac_cv_type_wchar_t" = yes; then | 
 | 12962 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 12963 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12964 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12965 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12966 |    else | 
 | 12967 |      ac_cv_sizeof_wchar_t=0 | 
 | 12968 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12969 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12970 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12971 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
 | 12973 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12974 |  | 
 | 12975 |  | 
 | 12976 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12977 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12978 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12979 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12980 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12981 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12982 | fi | 
 | 12983 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
 | 12985 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12986 | have_ucs4_tcl=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12988 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12989 |  | 
 | 12990 | #include <tcl.h> | 
 | 12991 | #if TCL_UTF_MAX != 6 | 
 | 12992 | # error "NOT UCS4_TCL" | 
 | 12993 | #endif | 
 | 12994 | int | 
 | 12995 | main () | 
 | 12996 | { | 
 | 12997 |  | 
 | 12998 |   ; | 
 | 12999 |   return 0; | 
 | 13000 | } | 
 | 13001 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13002 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13003 |  | 
 | 13004 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13005 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13006 |  | 
 | 13007 |   have_ucs4_tcl=yes | 
 | 13008 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13009 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
 | 13012 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13013 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13014 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13015 | if test "$wchar_h" = yes | 
 | 13016 | then | 
 | 13017 |   # check whether wchar_t is signed or not | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13018 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
 | 13019 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13020 |   if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13021 |   $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13022 | else | 
 | 13023 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13024 |   if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13025 |   ac_cv_wchar_t_signed=yes | 
 | 13026 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13027 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13028 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13029 |  | 
 | 13030 |   #include <wchar.h> | 
 | 13031 |   int main() | 
 | 13032 |   { | 
| Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 13033 | 	/* Success: exit code 0 */ | 
 | 13034 |         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13035 |   } | 
 | 13036 |  | 
 | 13037 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13038 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13039 |   ac_cv_wchar_t_signed=yes | 
 | 13040 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13041 |   ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13042 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13043 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13044 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13045 | fi | 
 | 13046 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13047 | fi | 
 | 13048 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13049 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
 | 13050 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13051 | fi | 
 | 13052 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5 | 
 | 13054 | $as_echo_n "checking what type to use for unicode... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13055 | # Check whether --enable-unicode was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13056 | if test "${enable_unicode+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13057 |   enableval=$enable_unicode; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13058 | else | 
 | 13059 |   enable_unicode=yes | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13060 | fi | 
 | 13061 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13062 |  | 
 | 13063 | if test $enable_unicode = yes | 
 | 13064 | then | 
| Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 13065 |   # Without any arguments, Py_UNICODE defaults to two-byte mode | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13066 |   case "$have_ucs4_tcl" in | 
 | 13067 |   yes) enable_unicode="ucs4" | 
 | 13068 |        ;; | 
 | 13069 |   *)   enable_unicode="ucs2" | 
 | 13070 |        ;; | 
 | 13071 |   esac | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13072 | fi | 
 | 13073 |  | 
| Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 13074 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13075 | case "$enable_unicode" in | 
 | 13076 | ucs2) unicode_size="2" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13077 |       $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13078 |  | 
 | 13079 |       ;; | 
 | 13080 | ucs4) unicode_size="4" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13081 |       $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13082 |  | 
 | 13083 |       ;; | 
| Martin v. Löwis | ed11a5d | 2012-05-20 10:42:17 +0200 | [diff] [blame] | 13084 | no)   ;;      # To allow --disable-unicode | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13085 | *) as_fn_error $? "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13086 | esac | 
 | 13087 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13088 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13089 |  | 
 | 13090 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13091 | if test "$enable_unicode" = "no" | 
 | 13092 | then | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 13093 |   UNICODE_OBJS="" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13094 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5 | 
 | 13095 | $as_echo "not used" >&6; } | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13096 | else | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 13097 |   UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13098 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13099 | $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13100 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13101 |  | 
 | 13102 |   # wchar_t is only usable if it maps to an unsigned type | 
 | 13103 |   if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 13104 |           -a "$ac_cv_wchar_t_signed" = "no" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13105 |   then | 
 | 13106 |     PY_UNICODE_TYPE="wchar_t" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13107 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13108 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13109 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13110 |     $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13111 |  | 
 | 13112 |   elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
 | 13113 |   then | 
 | 13114 |        PY_UNICODE_TYPE="unsigned short" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13115 |        $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13116 |  | 
 | 13117 |   elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
 | 13118 |   then | 
 | 13119 |        PY_UNICODE_TYPE="unsigned long" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13120 |        $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13121 |  | 
 | 13122 |   else | 
 | 13123 |        PY_UNICODE_TYPE="no type found" | 
 | 13124 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13125 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 | 
 | 13126 | $as_echo "$PY_UNICODE_TYPE" >&6; } | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13127 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13128 |  | 
 | 13129 | # check for endianness | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13130 |  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
 | 13131 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13132 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13133 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13134 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13135 |   ac_cv_c_bigendian=unknown | 
 | 13136 |     # See if we're dealing with a universal compiler. | 
 | 13137 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13138 | /* end confdefs.h.  */ | 
 | 13139 | #ifndef __APPLE_CC__ | 
 | 13140 | 	       not a universal capable compiler | 
 | 13141 | 	     #endif | 
 | 13142 | 	     typedef int dummy; | 
 | 13143 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13144 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13145 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13146 |  | 
 | 13147 | 	# Check for potential -arch flags.  It is not universal unless | 
 | 13148 | 	# there are at least two -arch flags with different values. | 
 | 13149 | 	ac_arch= | 
 | 13150 | 	ac_prev= | 
 | 13151 | 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
 | 13152 | 	 if test -n "$ac_prev"; then | 
 | 13153 | 	   case $ac_word in | 
 | 13154 | 	     i?86 | x86_64 | ppc | ppc64) | 
 | 13155 | 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
 | 13156 | 		 ac_arch=$ac_word | 
 | 13157 | 	       else | 
 | 13158 | 		 ac_cv_c_bigendian=universal | 
 | 13159 | 		 break | 
 | 13160 | 	       fi | 
 | 13161 | 	       ;; | 
 | 13162 | 	   esac | 
 | 13163 | 	   ac_prev= | 
 | 13164 | 	 elif test "x$ac_word" = "x-arch"; then | 
 | 13165 | 	   ac_prev=arch | 
 | 13166 | 	 fi | 
 | 13167 |        done | 
 | 13168 | fi | 
 | 13169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13170 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 13171 |       # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 13172 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13173 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13174 | #include <sys/types.h> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13175 | 	     #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13176 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13177 | int | 
 | 13178 | main () | 
 | 13179 | { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13180 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
 | 13181 | 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
 | 13182 | 		     && LITTLE_ENDIAN) | 
 | 13183 | 	      bogus endian macros | 
 | 13184 | 	     #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13185 |  | 
 | 13186 |   ; | 
 | 13187 |   return 0; | 
 | 13188 | } | 
 | 13189 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13190 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13191 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13192 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13193 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13194 | #include <sys/types.h> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13195 | 		#include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13196 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13197 | int | 
 | 13198 | main () | 
 | 13199 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13200 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13201 | 		 not big endian | 
 | 13202 | 		#endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13203 |  | 
 | 13204 |   ; | 
 | 13205 |   return 0; | 
 | 13206 | } | 
 | 13207 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13208 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13209 |   ac_cv_c_bigendian=yes | 
 | 13210 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13211 |   ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13212 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13214 | fi | 
 | 13215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13216 |     fi | 
 | 13217 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 13218 |       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
 | 13219 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13220 | /* end confdefs.h.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13221 | #include <limits.h> | 
 | 13222 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13223 | int | 
 | 13224 | main () | 
 | 13225 | { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13226 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
 | 13227 | 	      bogus endian macros | 
 | 13228 | 	     #endif | 
 | 13229 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13230 |   ; | 
 | 13231 |   return 0; | 
 | 13232 | } | 
 | 13233 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13234 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13235 |   # It does; now see whether it defined to _BIG_ENDIAN or not. | 
 | 13236 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13237 | /* end confdefs.h.  */ | 
 | 13238 | #include <limits.h> | 
 | 13239 |  | 
 | 13240 | int | 
 | 13241 | main () | 
 | 13242 | { | 
 | 13243 | #ifndef _BIG_ENDIAN | 
 | 13244 | 		 not big endian | 
 | 13245 | 		#endif | 
 | 13246 |  | 
 | 13247 |   ; | 
 | 13248 |   return 0; | 
 | 13249 | } | 
 | 13250 | _ACEOF | 
 | 13251 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13252 |   ac_cv_c_bigendian=yes | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13253 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13254 |   ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13255 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13257 | fi | 
 | 13258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13259 |     fi | 
 | 13260 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 13261 |       # Compile a test program. | 
 | 13262 |       if test "$cross_compiling" = yes; then : | 
 | 13263 |   # Try to guess by grepping values from an object file. | 
 | 13264 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13265 | /* end confdefs.h.  */ | 
 | 13266 | short int ascii_mm[] = | 
 | 13267 | 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 13268 | 		short int ascii_ii[] = | 
 | 13269 | 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 13270 | 		int use_ascii (int i) { | 
 | 13271 | 		  return ascii_mm[i] + ascii_ii[i]; | 
 | 13272 | 		} | 
 | 13273 | 		short int ebcdic_ii[] = | 
 | 13274 | 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 13275 | 		short int ebcdic_mm[] = | 
 | 13276 | 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 13277 | 		int use_ebcdic (int i) { | 
 | 13278 | 		  return ebcdic_mm[i] + ebcdic_ii[i]; | 
 | 13279 | 		} | 
 | 13280 | 		extern int foo; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13281 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13282 | int | 
 | 13283 | main () | 
 | 13284 | { | 
 | 13285 | return use_ascii (foo) == use_ebcdic (foo); | 
 | 13286 |   ; | 
 | 13287 |   return 0; | 
 | 13288 | } | 
 | 13289 | _ACEOF | 
 | 13290 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13291 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
 | 13292 | 	      ac_cv_c_bigendian=yes | 
 | 13293 | 	    fi | 
 | 13294 | 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 13295 | 	      if test "$ac_cv_c_bigendian" = unknown; then | 
 | 13296 | 		ac_cv_c_bigendian=no | 
 | 13297 | 	      else | 
 | 13298 | 		# finding both strings is unlikely to happen, but who knows? | 
 | 13299 | 		ac_cv_c_bigendian=unknown | 
 | 13300 | 	      fi | 
 | 13301 | 	    fi | 
 | 13302 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13303 | 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] | 13304 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13305 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13306 | /* end confdefs.h.  */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13307 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13308 | int | 
 | 13309 | main () | 
 | 13310 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13311 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13312 | 	     /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 13313 | 	     union | 
 | 13314 | 	     { | 
 | 13315 | 	       long int l; | 
 | 13316 | 	       char c[sizeof (long int)]; | 
 | 13317 | 	     } u; | 
 | 13318 | 	     u.l = 1; | 
 | 13319 | 	     return u.c[sizeof (long int) - 1] == 1; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13320 |  | 
 | 13321 |   ; | 
 | 13322 |   return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13323 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13324 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13325 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13326 |   ac_cv_c_bigendian=no | 
 | 13327 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13328 |   ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13329 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13330 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13331 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13332 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13333 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13334 |     fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13335 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
 | 13337 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
 | 13338 |  case $ac_cv_c_bigendian in #( | 
 | 13339 |    yes) | 
 | 13340 |      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
 | 13341 | ;; #( | 
 | 13342 |    no) | 
 | 13343 |       ;; #( | 
 | 13344 |    universal) | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13345 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13346 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13347 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13348 |      ;; #( | 
 | 13349 |    *) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13350 |      as_fn_error $? "unknown endianness | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13351 |  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13352 |  esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13353 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13354 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13355 | # Check whether right shifting a negative integer extends the sign bit | 
 | 13356 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
 | 13358 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13359 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13360 |   $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13361 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13362 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13363 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13364 |   ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13365 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13366 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13367 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13368 |  | 
 | 13369 | int main() | 
 | 13370 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13371 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13372 | } | 
 | 13373 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13374 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13375 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13376 |   ac_cv_rshift_extends_sign=yes | 
 | 13377 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13378 |   ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13379 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13380 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13381 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13382 | fi | 
 | 13383 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13384 | fi | 
 | 13385 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
 | 13387 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13388 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13389 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13390 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13391 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13392 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13393 | fi | 
 | 13394 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13395 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
 | 13397 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13398 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13399 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13400 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13401 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13403 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13404 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13405 | int | 
 | 13406 | main () | 
 | 13407 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13408 |  | 
 | 13409 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 13410 | 	flockfile(f); | 
 | 13411 | 	getc_unlocked(f); | 
 | 13412 | 	funlockfile(f); | 
 | 13413 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13414 |   ; | 
 | 13415 |   return 0; | 
 | 13416 | } | 
 | 13417 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13418 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13419 |   ac_cv_have_getc_unlocked=yes | 
 | 13420 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13421 |   ac_cv_have_getc_unlocked=no | 
 | 13422 | fi | 
 | 13423 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13424 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13425 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13426 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
 | 13428 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13429 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 13430 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13431 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13432 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13433 |  | 
 | 13434 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13435 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13436 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13437 | # save the value of LIBS so we don't actually link Python with readline | 
 | 13438 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13439 |  | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13440 | # On some systems we need to link readline to a termcap compatible | 
 | 13441 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
 | 13442 | # with setup.py. | 
 | 13443 | py_cv_lib_readline=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
 | 13445 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13446 | for py_libtermcap in "" ncursesw ncurses curses termcap; do | 
 | 13447 |   if test -z "$py_libtermcap"; then | 
 | 13448 |     READLINE_LIBS="-lreadline" | 
 | 13449 |   else | 
 | 13450 |     READLINE_LIBS="-lreadline -l$py_libtermcap" | 
 | 13451 |   fi | 
 | 13452 |   LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13453 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13454 | /* end confdefs.h.  */ | 
 | 13455 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13456 | /* Override any GCC internal prototype to avoid an error. | 
 | 13457 |    Use char because int might match the return type of a GCC | 
 | 13458 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13459 | #ifdef __cplusplus | 
 | 13460 | extern "C" | 
 | 13461 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13462 | char readline (); | 
 | 13463 | int | 
 | 13464 | main () | 
 | 13465 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13466 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13467 |   ; | 
 | 13468 |   return 0; | 
 | 13469 | } | 
 | 13470 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13471 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13472 |   py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13473 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13474 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13475 |     conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13476 |   if test $py_cv_lib_readline = yes; then | 
 | 13477 |     break | 
 | 13478 |   fi | 
 | 13479 | done | 
 | 13480 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
 | 13481 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 13482 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13483 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 13484 | $as_echo "none" >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13485 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13486 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
 | 13487 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13488 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13489 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13490 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13491 | fi | 
 | 13492 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13493 | # check for readline 2.1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
 | 13495 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13496 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13497 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13498 | else | 
 | 13499 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13500 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13502 | /* end confdefs.h.  */ | 
 | 13503 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13504 | /* Override any GCC internal prototype to avoid an error. | 
 | 13505 |    Use char because int might match the return type of a GCC | 
 | 13506 |    builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13507 | #ifdef __cplusplus | 
 | 13508 | extern "C" | 
 | 13509 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13510 | char rl_callback_handler_install (); | 
 | 13511 | int | 
 | 13512 | main () | 
 | 13513 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13514 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13515 |   ; | 
 | 13516 |   return 0; | 
 | 13517 | } | 
 | 13518 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13519 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13520 |   ac_cv_lib_readline_rl_callback_handler_install=yes | 
 | 13521 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13522 |   ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13523 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13524 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13525 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13526 | LIBS=$ac_check_lib_save_LIBS | 
 | 13527 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
 | 13529 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13530 | 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] | 13531 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13532 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13533 |  | 
 | 13534 | fi | 
 | 13535 |  | 
 | 13536 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13537 | # check for readline 2.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13539 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13540 | #include <readline/readline.h> | 
 | 13541 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13542 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13543 |   have_readline=yes | 
 | 13544 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13545 |   have_readline=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13546 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13547 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13548 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13549 | if test $have_readline = yes | 
 | 13550 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13551 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13552 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13553 | #include <readline/readline.h> | 
 | 13554 |  | 
 | 13555 | _ACEOF | 
 | 13556 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13557 |   $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] | 13558 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13559 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13560 |  | 
 | 13561 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13562 | rm -f conftest* | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13563 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13564 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13565 | /* end confdefs.h.  */ | 
 | 13566 | #include <readline/readline.h> | 
 | 13567 |  | 
 | 13568 | _ACEOF | 
 | 13569 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13570 |   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13571 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13572 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13573 |  | 
 | 13574 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13575 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13576 |  | 
 | 13577 | fi | 
 | 13578 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13579 | # check for readline 4.0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
 | 13581 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13582 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13583 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13584 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13585 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13586 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13588 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13589 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13590 | /* Override any GCC internal prototype to avoid an error. | 
 | 13591 |    Use char because int might match the return type of a GCC | 
 | 13592 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13593 | #ifdef __cplusplus | 
 | 13594 | extern "C" | 
 | 13595 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13596 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13597 | int | 
 | 13598 | main () | 
 | 13599 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13600 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13601 |   ; | 
 | 13602 |   return 0; | 
 | 13603 | } | 
 | 13604 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13605 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13606 |   ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13607 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13608 |   ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13609 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13610 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13611 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13612 | LIBS=$ac_check_lib_save_LIBS | 
 | 13613 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
 | 13615 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13616 | 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] | 13617 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13618 | $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] | 13619 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13620 | fi | 
 | 13621 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13622 |  | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13623 | # also in 4.0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
 | 13625 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13626 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13627 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13628 | else | 
 | 13629 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13630 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13632 | /* end confdefs.h.  */ | 
 | 13633 |  | 
 | 13634 | /* Override any GCC internal prototype to avoid an error. | 
 | 13635 |    Use char because int might match the return type of a GCC | 
 | 13636 |    builtin and then its argument prototype would still apply.  */ | 
 | 13637 | #ifdef __cplusplus | 
 | 13638 | extern "C" | 
 | 13639 | #endif | 
 | 13640 | char rl_completion_display_matches_hook (); | 
 | 13641 | int | 
 | 13642 | main () | 
 | 13643 | { | 
 | 13644 | return rl_completion_display_matches_hook (); | 
 | 13645 |   ; | 
 | 13646 |   return 0; | 
 | 13647 | } | 
 | 13648 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13649 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13650 |   ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
 | 13651 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13652 |   ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13653 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13654 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13655 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13656 | LIBS=$ac_check_lib_save_LIBS | 
 | 13657 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
 | 13659 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13660 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13661 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13662 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13663 |  | 
 | 13664 | fi | 
 | 13665 |  | 
 | 13666 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13667 | # check for readline 4.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
 | 13669 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13670 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13671 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13672 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13673 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13674 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13676 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13677 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13678 | /* Override any GCC internal prototype to avoid an error. | 
 | 13679 |    Use char because int might match the return type of a GCC | 
 | 13680 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13681 | #ifdef __cplusplus | 
 | 13682 | extern "C" | 
 | 13683 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13684 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13685 | int | 
 | 13686 | main () | 
 | 13687 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13688 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13689 |   ; | 
 | 13690 |   return 0; | 
 | 13691 | } | 
 | 13692 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13693 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13694 |   ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13695 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13696 |   ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13697 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13698 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13699 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13700 | LIBS=$ac_check_lib_save_LIBS | 
 | 13701 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
 | 13703 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13704 | 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] | 13705 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13706 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13707 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13708 | fi | 
 | 13709 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13710 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13711 | # also in readline 4.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13713 | /* end confdefs.h.  */ | 
 | 13714 | #include <readline/readline.h> | 
 | 13715 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13716 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13717 |   have_readline=yes | 
 | 13718 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13719 |   have_readline=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13720 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13721 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13722 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13723 | if test $have_readline = yes | 
 | 13724 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13725 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13726 | /* end confdefs.h.  */ | 
 | 13727 | #include <readline/readline.h> | 
 | 13728 |  | 
 | 13729 | _ACEOF | 
 | 13730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13731 |   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13732 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13733 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13734 |  | 
 | 13735 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13736 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13737 |  | 
 | 13738 | fi | 
 | 13739 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13740 | # End of readline checks: restore LIBS | 
 | 13741 | LIBS=$LIBS_no_readline | 
 | 13742 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
 | 13744 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13745 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13746 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13747 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13748 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13749 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13750 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13751 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13752 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13753 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13754 |  | 
 | 13755 | int main() | 
 | 13756 | { | 
 | 13757 | 	int val1 = nice(1); | 
 | 13758 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 13759 | 		exit(0); | 
 | 13760 | 	exit(1); | 
 | 13761 | } | 
 | 13762 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13763 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13764 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13765 |   ac_cv_broken_nice=yes | 
 | 13766 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13767 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13768 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13769 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13770 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13771 | fi | 
 | 13772 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13773 | fi | 
 | 13774 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
 | 13776 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13777 | if test "$ac_cv_broken_nice" = yes | 
 | 13778 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13779 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13780 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13781 |  | 
 | 13782 | fi | 
 | 13783 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
 | 13785 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13786 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13787 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13788 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13789 |   if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13790 |   ac_cv_broken_poll=no | 
 | 13791 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13792 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13793 | /* end confdefs.h.  */ | 
 | 13794 |  | 
 | 13795 | #include <poll.h> | 
 | 13796 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13797 | int main() | 
 | 13798 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13799 |     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13800 |     int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13801 |  | 
 | 13802 |     close (42); | 
 | 13803 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13804 |     poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13805 |     if (poll_test < 0) | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13806 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13807 |     else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13808 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13809 |     else | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13810 |         return 1; | 
 | 13811 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13812 |  | 
 | 13813 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13814 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13815 |   ac_cv_broken_poll=yes | 
 | 13816 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13817 |   ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13818 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13819 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13820 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13821 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13822 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13823 | fi | 
 | 13824 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
 | 13826 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13827 | if test "$ac_cv_broken_poll" = yes | 
 | 13828 | then | 
 | 13829 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13830 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13831 |  | 
 | 13832 | fi | 
 | 13833 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13834 | # 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] | 13835 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
 | 13836 | # tzname[] | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13837 | 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] | 13838 | #include <$ac_cv_struct_tm> | 
 | 13839 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13840 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13841 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13842 |  | 
 | 13843 | cat >>confdefs.h <<_ACEOF | 
 | 13844 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 13845 | _ACEOF | 
 | 13846 |  | 
 | 13847 |  | 
 | 13848 | fi | 
 | 13849 |  | 
 | 13850 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 13851 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13852 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13853 |  | 
 | 13854 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13855 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 13856 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13857 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13858 |   ac_have_decl=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13859 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13860 |   ac_have_decl=0 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13861 | fi | 
 | 13862 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13863 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13864 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13865 | _ACEOF | 
 | 13866 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13867 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 13868 | $as_echo_n "checking for tzname... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13869 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13870 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13871 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13872 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13873 | /* end confdefs.h.  */ | 
 | 13874 | #include <time.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13875 | #if !HAVE_DECL_TZNAME | 
 | 13876 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13877 | #endif | 
 | 13878 |  | 
 | 13879 | int | 
 | 13880 | main () | 
 | 13881 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13882 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13883 |   ; | 
 | 13884 |   return 0; | 
 | 13885 | } | 
 | 13886 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13887 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13888 |   ac_cv_var_tzname=yes | 
 | 13889 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13890 |   ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13891 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13892 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13893 |     conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13894 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 13896 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13897 |   if test $ac_cv_var_tzname = yes; then | 
 | 13898 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13899 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13900 |  | 
 | 13901 |   fi | 
 | 13902 | fi | 
 | 13903 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13904 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13905 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
 | 13907 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13908 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13909 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13910 | else | 
 | 13911 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13912 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13913 |   ac_cv_working_tzset=no | 
 | 13914 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13915 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13916 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13917 |  | 
 | 13918 | #include <stdlib.h> | 
 | 13919 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13920 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13921 |  | 
 | 13922 | #if HAVE_TZNAME | 
 | 13923 | extern char *tzname[]; | 
 | 13924 | #endif | 
 | 13925 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13926 | int main() | 
 | 13927 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13928 | 	/* Note that we need to ensure that not only does tzset(3) | 
 | 13929 | 	   do 'something' with localtime, but it works as documented | 
 | 13930 | 	   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] | 13931 | 	   This includes making sure that tzname is set properly if | 
 | 13932 | 	   tm->tm_zone does not exist since it is the alternative way | 
 | 13933 | 	   of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13934 |  | 
 | 13935 | 	   Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13936 | 	   after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13937 | 	*/ | 
 | 13938 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13939 | 	time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13940 | 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
 | 13941 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13942 | 	putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13943 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13944 | 	if (localtime(&groundhogday)->tm_hour != 0) | 
 | 13945 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13946 | #if HAVE_TZNAME | 
 | 13947 | 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
 | 13948 | 	if (strcmp(tzname[0], "UTC") || | 
 | 13949 | 		(tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
 | 13950 | 	    exit(1); | 
 | 13951 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13952 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13953 | 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13954 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13955 | 	if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13956 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13957 | #if HAVE_TZNAME | 
 | 13958 | 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
 | 13959 | 	    exit(1); | 
 | 13960 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13961 |  | 
 | 13962 | 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
 | 13963 | 	tzset(); | 
 | 13964 | 	if (localtime(&groundhogday)->tm_hour != 11) | 
 | 13965 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13966 | #if HAVE_TZNAME | 
 | 13967 | 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
 | 13968 | 	    exit(1); | 
 | 13969 | #endif | 
 | 13970 |  | 
 | 13971 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13972 | 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
 | 13973 | 	    exit(1); | 
 | 13974 | 	if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
 | 13975 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13976 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13977 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13978 | 	exit(0); | 
 | 13979 | } | 
 | 13980 |  | 
 | 13981 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13982 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13983 |   ac_cv_working_tzset=yes | 
 | 13984 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13985 |   ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13986 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13987 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13988 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13989 | fi | 
 | 13990 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13991 | fi | 
 | 13992 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
 | 13994 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13995 | if test "$ac_cv_working_tzset" = yes | 
 | 13996 | then | 
 | 13997 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13998 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13999 |  | 
 | 14000 | fi | 
 | 14001 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14002 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
 | 14004 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14005 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14006 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14007 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14008 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14009 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14010 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14011 | int | 
 | 14012 | main () | 
 | 14013 | { | 
 | 14014 |  | 
 | 14015 | struct stat st; | 
 | 14016 | st.st_mtim.tv_nsec = 1; | 
 | 14017 |  | 
 | 14018 |   ; | 
 | 14019 |   return 0; | 
 | 14020 | } | 
 | 14021 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14022 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 14023 |   ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14024 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14025 |   ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14026 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14028 | fi | 
 | 14029 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
 | 14031 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14032 | if test "$ac_cv_stat_tv_nsec" = yes | 
 | 14033 | then | 
 | 14034 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14035 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14036 |  | 
 | 14037 | fi | 
 | 14038 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14039 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
 | 14041 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14042 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14043 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14044 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14045 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14046 | /* end confdefs.h.  */ | 
 | 14047 | #include <sys/stat.h> | 
 | 14048 | int | 
 | 14049 | main () | 
 | 14050 | { | 
 | 14051 |  | 
 | 14052 | struct stat st; | 
 | 14053 | st.st_mtimespec.tv_nsec = 1; | 
 | 14054 |  | 
 | 14055 |   ; | 
 | 14056 |   return 0; | 
 | 14057 | } | 
 | 14058 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14059 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14060 |   ac_cv_stat_tv_nsec2=yes | 
 | 14061 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14062 |   ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14063 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14065 | fi | 
 | 14066 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
 | 14068 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14069 | if test "$ac_cv_stat_tv_nsec2" = yes | 
 | 14070 | then | 
 | 14071 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14072 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14073 |  | 
 | 14074 | fi | 
 | 14075 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14076 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
 | 14078 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14079 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14080 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14081 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14082 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14083 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14084 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14085 | int | 
 | 14086 | main () | 
 | 14087 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14088 |  | 
 | 14089 |   int rtn; | 
 | 14090 |   rtn = mvwdelch(0,0,0); | 
 | 14091 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14092 |   ; | 
 | 14093 |   return 0; | 
 | 14094 | } | 
 | 14095 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14096 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14097 |   ac_cv_mvwdelch_is_expression=yes | 
 | 14098 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14099 |   ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14100 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14102 | fi | 
 | 14103 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
 | 14105 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14106 |  | 
 | 14107 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
 | 14108 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14109 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14110 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14111 |  | 
 | 14112 | fi | 
 | 14113 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
 | 14115 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14116 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14117 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14118 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14119 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14120 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14121 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14122 | int | 
 | 14123 | main () | 
 | 14124 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14125 |  | 
 | 14126 |   WINDOW *w; | 
 | 14127 |   w->_flags = 0; | 
 | 14128 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14129 |   ; | 
 | 14130 |   return 0; | 
 | 14131 | } | 
 | 14132 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14133 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14134 |   ac_cv_window_has_flags=yes | 
 | 14135 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14136 |   ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14137 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14139 | fi | 
 | 14140 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
 | 14142 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14143 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14144 |  | 
 | 14145 | if test "$ac_cv_window_has_flags" = yes | 
 | 14146 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14147 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14148 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14149 |  | 
 | 14150 | fi | 
 | 14151 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
 | 14153 | $as_echo_n "checking for is_term_resized... " >&6; } | 
 | 14154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14155 | /* end confdefs.h.  */ | 
 | 14156 | #include <curses.h> | 
 | 14157 | int | 
 | 14158 | main () | 
 | 14159 | { | 
 | 14160 | void *x=is_term_resized | 
 | 14161 |   ; | 
 | 14162 |   return 0; | 
 | 14163 | } | 
 | 14164 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14165 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14166 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14167 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14168 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14169 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14170 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14171 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14172 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14173 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14174 |  | 
 | 14175 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14177 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
 | 14179 | $as_echo_n "checking for resize_term... " >&6; } | 
 | 14180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14181 | /* end confdefs.h.  */ | 
 | 14182 | #include <curses.h> | 
 | 14183 | int | 
 | 14184 | main () | 
 | 14185 | { | 
 | 14186 | void *x=resize_term | 
 | 14187 |   ; | 
 | 14188 |   return 0; | 
 | 14189 | } | 
 | 14190 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14191 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14192 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14193 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14194 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14195 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14196 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14197 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14198 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14199 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14200 |  | 
 | 14201 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14203 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
 | 14205 | $as_echo_n "checking for resizeterm... " >&6; } | 
 | 14206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14207 | /* end confdefs.h.  */ | 
 | 14208 | #include <curses.h> | 
 | 14209 | int | 
 | 14210 | main () | 
 | 14211 | { | 
 | 14212 | void *x=resizeterm | 
 | 14213 |   ; | 
 | 14214 |   return 0; | 
 | 14215 | } | 
 | 14216 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14217 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14218 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14219 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14220 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14221 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14222 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14223 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14224 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14225 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14226 |  | 
 | 14227 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14229 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
 | 14231 | $as_echo "$as_me: checking for device files" >&6;} | 
 | 14232 |  | 
 | 14233 | if test "x$cross_compiling" = xyes; then | 
 | 14234 |   if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
 | 14235 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 14236 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
 | 14237 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 14238 | $as_echo "not set" >&6; } | 
 | 14239 |     as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 14240 |   fi | 
 | 14241 |   if test "${ac_cv_file__dev_ptc+set}" != set; then | 
 | 14242 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 14243 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
 | 14244 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 14245 | $as_echo "not set" >&6; } | 
 | 14246 |     as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 14247 |   fi | 
 | 14248 | fi | 
 | 14249 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 14251 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14252 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
 | 14253 |   $as_echo_n "(cached) " >&6 | 
 | 14254 | else | 
 | 14255 |   test "$cross_compiling" = yes && | 
 | 14256 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 14257 | if test -r "/dev/ptmx"; then | 
 | 14258 |   ac_cv_file__dev_ptmx=yes | 
 | 14259 | else | 
 | 14260 |   ac_cv_file__dev_ptmx=no | 
 | 14261 | fi | 
 | 14262 | fi | 
 | 14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
 | 14264 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
 | 14265 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 14266 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14267 | fi | 
 | 14268 |  | 
 | 14269 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14270 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14271 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14272 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14273 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 14275 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14276 | if ${ac_cv_file__dev_ptc+:} false; then : | 
 | 14277 |   $as_echo_n "(cached) " >&6 | 
 | 14278 | else | 
 | 14279 |   test "$cross_compiling" = yes && | 
 | 14280 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 14281 | if test -r "/dev/ptc"; then | 
 | 14282 |   ac_cv_file__dev_ptc=yes | 
 | 14283 | else | 
 | 14284 |   ac_cv_file__dev_ptc=no | 
 | 14285 | fi | 
 | 14286 | fi | 
 | 14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
 | 14288 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
 | 14289 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 14290 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14291 | fi | 
 | 14292 |  | 
 | 14293 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14294 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14295 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14296 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14297 | fi | 
 | 14298 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14299 | if test "$have_long_long" = yes | 
 | 14300 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14301 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
 | 14302 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14303 |   if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14304 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14305 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14306 |   if test "$cross_compiling" = yes; then : | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14307 |   ac_cv_have_long_long_format="cross -- assuming no" | 
 | 14308 |    if test x$GCC = xyes; then | 
 | 14309 |     save_CFLAGS=$CFLAGS | 
 | 14310 |     CFLAGS="$CFLAGS -Werror -Wformat" | 
 | 14311 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14312 | /* end confdefs.h.  */ | 
 | 14313 |  | 
 | 14314 |         #include <stdio.h> | 
 | 14315 |         #include <stddef.h> | 
 | 14316 |  | 
 | 14317 | int | 
 | 14318 | main () | 
 | 14319 | { | 
 | 14320 |  | 
 | 14321 |       char *buffer; | 
 | 14322 |       sprintf(buffer, "%lld", (long long)123); | 
 | 14323 |       sprintf(buffer, "%lld", (long long)-123); | 
 | 14324 |       sprintf(buffer, "%llu", (unsigned long long)123); | 
 | 14325 |  | 
 | 14326 |   ; | 
 | 14327 |   return 0; | 
 | 14328 | } | 
 | 14329 | _ACEOF | 
 | 14330 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14331 |   ac_cv_have_long_long_format=yes | 
 | 14332 |  | 
 | 14333 | fi | 
 | 14334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14335 |     CFLAGS=$save_CFLAGS | 
 | 14336 |    fi | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14337 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14338 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14339 | /* end confdefs.h.  */ | 
 | 14340 |  | 
 | 14341 |   #include <stdio.h> | 
 | 14342 |   #include <stddef.h> | 
 | 14343 |   #include <string.h> | 
 | 14344 |  | 
 | 14345 |   #ifdef HAVE_SYS_TYPES_H | 
 | 14346 |   #include <sys/types.h> | 
 | 14347 |   #endif | 
 | 14348 |  | 
 | 14349 |   int main() | 
 | 14350 |   { | 
 | 14351 |       char buffer[256]; | 
 | 14352 |  | 
 | 14353 |       if (sprintf(buffer, "%lld", (long long)123) < 0) | 
 | 14354 |           return 1; | 
 | 14355 |       if (strcmp(buffer, "123")) | 
 | 14356 |           return 1; | 
 | 14357 |  | 
 | 14358 |       if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
 | 14359 |           return 1; | 
 | 14360 |       if (strcmp(buffer, "-123")) | 
 | 14361 |           return 1; | 
 | 14362 |  | 
 | 14363 |       if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
 | 14364 |           return 1; | 
 | 14365 |       if (strcmp(buffer, "123")) | 
 | 14366 |           return 1; | 
 | 14367 |  | 
 | 14368 |       return 0; | 
 | 14369 |   } | 
 | 14370 |  | 
 | 14371 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14372 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14373 |   ac_cv_have_long_long_format=yes | 
 | 14374 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14375 |   ac_cv_have_long_long_format=no | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14376 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14377 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14378 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14379 | fi | 
 | 14380 |  | 
 | 14381 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14382 | fi | 
 | 14383 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14384 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
 | 14385 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14386 | fi | 
 | 14387 |  | 
| Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 14388 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14389 | then | 
 | 14390 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14391 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14392 |  | 
 | 14393 | fi | 
 | 14394 |  | 
| Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 14395 | if test $ac_sys_system = Darwin | 
 | 14396 | then | 
 | 14397 | 	LIBS="$LIBS -framework CoreFoundation" | 
 | 14398 | fi | 
 | 14399 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14400 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
 | 14402 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14403 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14404 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14405 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14406 |   if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 14407 |   ac_cv_have_size_t_format="cross -- assuming yes" | 
 | 14408 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14409 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14410 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14411 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14412 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14413 | #include <stdio.h> | 
 | 14414 | #include <stddef.h> | 
 | 14415 | #include <string.h> | 
 | 14416 |  | 
| Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 14417 | #ifdef HAVE_SYS_TYPES_H | 
 | 14418 | #include <sys/types.h> | 
 | 14419 | #endif | 
| Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 14420 |  | 
 | 14421 | #ifdef HAVE_SSIZE_T | 
 | 14422 | typedef ssize_t Py_ssize_t; | 
 | 14423 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
 | 14424 | typedef long Py_ssize_t; | 
 | 14425 | #else | 
 | 14426 | typedef int Py_ssize_t; | 
 | 14427 | #endif | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14428 |  | 
| Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 14429 | int main() | 
 | 14430 | { | 
 | 14431 |     char buffer[256]; | 
 | 14432 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14433 |     if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
 | 14434 |        	return 1; | 
 | 14435 |  | 
| Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 14436 |     if (strcmp(buffer, "123")) | 
 | 14437 | 	return 1; | 
 | 14438 |  | 
 | 14439 |     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
 | 14440 |        	return 1; | 
 | 14441 |  | 
 | 14442 |     if (strcmp(buffer, "-123")) | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14443 | 	return 1; | 
 | 14444 |  | 
 | 14445 |     return 0; | 
 | 14446 | } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14447 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14448 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14449 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14450 |   ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14451 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14452 |   ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14453 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14454 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14455 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 14456 | fi | 
 | 14457 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14458 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
 | 14460 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 14461 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14462 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14463 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14464 |  | 
 | 14465 | fi | 
 | 14466 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14467 | 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] | 14468 | #ifdef HAVE_SYS_TYPES_H | 
 | 14469 | #include <sys/types.h> | 
 | 14470 | #endif | 
 | 14471 | #ifdef HAVE_SYS_SOCKET_H | 
 | 14472 | #include <sys/socket.h> | 
 | 14473 | #endif | 
 | 14474 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14475 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14476 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 14477 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14478 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 14479 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14480 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 14481 |  | 
 | 14482 | fi | 
 | 14483 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14484 |  | 
| Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame] | 14485 | case $ac_sys_system in | 
 | 14486 | AIX*) | 
 | 14487 |  | 
 | 14488 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
 | 14489 |  ;; | 
 | 14490 | esac | 
 | 14491 |  | 
 | 14492 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14493 |  | 
 | 14494 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 14495 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
 | 14496 | do | 
 | 14497 |   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
 | 14498 | done | 
 | 14499 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14500 |  | 
| Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 14501 | SRCDIRS="Parser Grammar Objects Python Modules Mac" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
 | 14503 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14504 | for dir in $SRCDIRS; do | 
 | 14505 |     if test ! -d $dir; then | 
 | 14506 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 14507 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14508 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
 | 14510 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 14511 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14512 | # generate output files | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 14513 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc" | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 14514 |  | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 14515 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
 | 14516 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14517 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14518 | # This file is a shell script that caches the results of configure | 
 | 14519 | # 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] | 14520 | # scripts and configure runs, see configure's option --config-cache. | 
 | 14521 | # It is not useful on other systems.  If it contains results you don't | 
 | 14522 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14523 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14524 | # config.status only pays attention to the cache file if you give it | 
 | 14525 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14526 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14527 | # `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] | 14528 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 14529 | # following values. | 
 | 14530 |  | 
 | 14531 | _ACEOF | 
 | 14532 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14533 | # The following way of writing the cache mishandles newlines in values, | 
 | 14534 | # but we know of no workaround that is simple, portable, and efficient. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14535 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14536 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 14537 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14538 | ( | 
 | 14539 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 14540 |     eval ac_val=\$$ac_var | 
 | 14541 |     case $ac_val in #( | 
 | 14542 |     *${as_nl}*) | 
 | 14543 |       case $ac_var in #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14544 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 14545 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14546 |       esac | 
 | 14547 |       case $ac_var in #( | 
 | 14548 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14549 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 14550 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14551 |       esac ;; | 
 | 14552 |     esac | 
 | 14553 |   done | 
 | 14554 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14555 |   (set) 2>&1 | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14556 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 14557 |     *${as_nl}ac_space=\ *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14558 |       # `set' does not quote correctly, so add quotes: double-quote | 
 | 14559 |       # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14560 |       sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14561 | 	"s/'/'\\\\''/g; | 
 | 14562 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14563 |       ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14564 |     *) | 
 | 14565 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14566 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14567 |       ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14568 |     esac | | 
 | 14569 |     sort | 
 | 14570 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14571 |   sed ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14572 |      /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14573 |      t clear | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14574 |      :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14575 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 14576 |      t end | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14577 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 14578 |      :end' >>confcache | 
 | 14579 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 14580 |   if test -w "$cache_file"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14581 |     if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14582 |       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
 | 14583 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14584 |       if test ! -f "$cache_file" || test -h "$cache_file"; then | 
 | 14585 | 	cat confcache >"$cache_file" | 
 | 14586 |       else | 
 | 14587 |         case $cache_file in #( | 
 | 14588 |         */* | ?:*) | 
 | 14589 | 	  mv -f confcache "$cache_file"$$ && | 
 | 14590 | 	  mv -f "$cache_file"$$ "$cache_file" ;; #( | 
 | 14591 |         *) | 
 | 14592 | 	  mv -f confcache "$cache_file" ;; | 
 | 14593 | 	esac | 
 | 14594 |       fi | 
 | 14595 |     fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14596 |   else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14597 |     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
 | 14598 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14599 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14600 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14601 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14602 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14603 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 14604 | # Let make expand exec_prefix. | 
 | 14605 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14606 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14607 | DEFS=-DHAVE_CONFIG_H | 
 | 14608 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14609 | ac_libobjs= | 
 | 14610 | ac_ltlibobjs= | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14611 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14612 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 14613 |   # 1. Remove the extension, and $U if already installed. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14614 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14615 |   ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14616 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 14617 |   #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14618 |   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 14619 |   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14620 | done | 
 | 14621 | LIBOBJS=$ac_libobjs | 
 | 14622 |  | 
 | 14623 | LTLIBOBJS=$ac_ltlibobjs | 
 | 14624 |  | 
 | 14625 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14626 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14627 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14628 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14629 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14630 | ac_clean_files_save=$ac_clean_files | 
 | 14631 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14632 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
 | 14633 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 14634 | as_write_fail=0 | 
 | 14635 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14636 | #! $SHELL | 
 | 14637 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14638 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14639 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14640 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14641 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14642 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14643 | ac_cs_recheck=false | 
 | 14644 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14645 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14646 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 14647 | export SHELL | 
 | 14648 | _ASEOF | 
 | 14649 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
 | 14650 | ## -------------------- ## | 
 | 14651 | ## M4sh Initialization. ## | 
 | 14652 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14653 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14654 | # Be more Bourne compatible | 
 | 14655 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14656 | 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] | 14657 |   emulate sh | 
 | 14658 |   NULLCMD=: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14659 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14660 |   # is contrary to our usage.  Disable this feature. | 
 | 14661 |   alias -g '${1+"$@"}'='"$@"' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14662 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14663 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14664 |   case `(set -o) 2>/dev/null` in #( | 
 | 14665 |   *posix*) : | 
 | 14666 |     set -o posix ;; #( | 
 | 14667 |   *) : | 
 | 14668 |      ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14669 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14671 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14672 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14673 | as_nl=' | 
 | 14674 | ' | 
 | 14675 | export as_nl | 
 | 14676 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 14677 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 14678 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 14679 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 14680 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 14681 | # but without wasting forks for bash or zsh. | 
 | 14682 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 14683 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 14684 |   as_echo='print -r --' | 
 | 14685 |   as_echo_n='print -rn --' | 
 | 14686 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 14687 |   as_echo='printf %s\n' | 
 | 14688 |   as_echo_n='printf %s' | 
 | 14689 | else | 
 | 14690 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 14691 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 14692 |     as_echo_n='/usr/ucb/echo -n' | 
 | 14693 |   else | 
 | 14694 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 14695 |     as_echo_n_body='eval | 
 | 14696 |       arg=$1; | 
 | 14697 |       case $arg in #( | 
 | 14698 |       *"$as_nl"*) | 
 | 14699 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 14700 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 14701 |       esac; | 
 | 14702 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 14703 |     ' | 
 | 14704 |     export as_echo_n_body | 
 | 14705 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 14706 |   fi | 
 | 14707 |   export as_echo_body | 
 | 14708 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 14709 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14710 |  | 
 | 14711 | # The user is always right. | 
 | 14712 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14713 |   PATH_SEPARATOR=: | 
 | 14714 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 14715 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 14716 |       PATH_SEPARATOR=';' | 
 | 14717 |   } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14718 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14719 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14720 |  | 
 | 14721 | # IFS | 
 | 14722 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 14723 | # there to prevent editors from complaining about space-tab. | 
 | 14724 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 14725 | # splitting by setting IFS to empty value.) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14726 | IFS=" ""	$as_nl" | 
 | 14727 |  | 
 | 14728 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14729 | as_myself= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14730 | case $0 in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14731 |   *[\\/]* ) as_myself=$0 ;; | 
 | 14732 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14733 | for as_dir in $PATH | 
 | 14734 | do | 
 | 14735 |   IFS=$as_save_IFS | 
 | 14736 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14737 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 14738 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14739 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14741 |      ;; | 
 | 14742 | esac | 
 | 14743 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 14744 | # in which case we are not to be found in the path. | 
 | 14745 | if test "x$as_myself" = x; then | 
 | 14746 |   as_myself=$0 | 
 | 14747 | fi | 
 | 14748 | if test ! -f "$as_myself"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14749 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 14750 |   exit 1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14751 | fi | 
 | 14752 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14753 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 14754 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 14755 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 14756 | # trigger a bug in pdksh 5.2.14. | 
 | 14757 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 14758 | do eval test x\${$as_var+set} = xset \ | 
 | 14759 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14760 | done | 
 | 14761 | PS1='$ ' | 
 | 14762 | PS2='> ' | 
 | 14763 | PS4='+ ' | 
 | 14764 |  | 
 | 14765 | # NLS nuisances. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14766 | LC_ALL=C | 
 | 14767 | export LC_ALL | 
 | 14768 | LANGUAGE=C | 
 | 14769 | export LANGUAGE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14770 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14771 | # CDPATH. | 
 | 14772 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 14773 |  | 
 | 14774 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14775 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 14776 | # ---------------------------------------- | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14777 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 14778 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14779 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14780 | as_fn_error () | 
 | 14781 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14782 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 14783 |   if test "$4"; then | 
 | 14784 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 14785 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14786 |   fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14787 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14788 |   as_fn_exit $as_status | 
 | 14789 | } # as_fn_error | 
 | 14790 |  | 
 | 14791 |  | 
 | 14792 | # as_fn_set_status STATUS | 
 | 14793 | # ----------------------- | 
 | 14794 | # Set $? to STATUS, without forking. | 
 | 14795 | as_fn_set_status () | 
 | 14796 | { | 
 | 14797 |   return $1 | 
 | 14798 | } # as_fn_set_status | 
 | 14799 |  | 
 | 14800 | # as_fn_exit STATUS | 
 | 14801 | # ----------------- | 
 | 14802 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 14803 | as_fn_exit () | 
 | 14804 | { | 
 | 14805 |   set +e | 
 | 14806 |   as_fn_set_status $1 | 
 | 14807 |   exit $1 | 
 | 14808 | } # as_fn_exit | 
 | 14809 |  | 
 | 14810 | # as_fn_unset VAR | 
 | 14811 | # --------------- | 
 | 14812 | # Portably unset VAR. | 
 | 14813 | as_fn_unset () | 
 | 14814 | { | 
 | 14815 |   { eval $1=; unset $1;} | 
 | 14816 | } | 
 | 14817 | as_unset=as_fn_unset | 
 | 14818 | # as_fn_append VAR VALUE | 
 | 14819 | # ---------------------- | 
 | 14820 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 14821 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 14822 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 14823 | # implementations. | 
 | 14824 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 14825 |   eval 'as_fn_append () | 
 | 14826 |   { | 
 | 14827 |     eval $1+=\$2 | 
 | 14828 |   }' | 
 | 14829 | else | 
 | 14830 |   as_fn_append () | 
 | 14831 |   { | 
 | 14832 |     eval $1=\$$1\$2 | 
 | 14833 |   } | 
 | 14834 | fi # as_fn_append | 
 | 14835 |  | 
 | 14836 | # as_fn_arith ARG... | 
 | 14837 | # ------------------ | 
 | 14838 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 14839 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 14840 | # must be portable across $(()) and expr. | 
 | 14841 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 14842 |   eval 'as_fn_arith () | 
 | 14843 |   { | 
 | 14844 |     as_val=$(( $* )) | 
 | 14845 |   }' | 
 | 14846 | else | 
 | 14847 |   as_fn_arith () | 
 | 14848 |   { | 
 | 14849 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 14850 |   } | 
 | 14851 | fi # as_fn_arith | 
 | 14852 |  | 
 | 14853 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14854 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 14855 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 14856 |   as_expr=expr | 
 | 14857 | else | 
 | 14858 |   as_expr=false | 
 | 14859 | fi | 
 | 14860 |  | 
 | 14861 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 14862 |   as_basename=basename | 
 | 14863 | else | 
 | 14864 |   as_basename=false | 
 | 14865 | fi | 
 | 14866 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14867 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 14868 |   as_dirname=dirname | 
 | 14869 | else | 
 | 14870 |   as_dirname=false | 
 | 14871 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14872 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14873 | as_me=`$as_basename -- "$0" || | 
 | 14874 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 14875 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 14876 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14877 | $as_echo X/"$0" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14878 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 14879 | 	    s//\1/ | 
 | 14880 | 	    q | 
 | 14881 | 	  } | 
 | 14882 | 	  /^X\/\(\/\/\)$/{ | 
 | 14883 | 	    s//\1/ | 
 | 14884 | 	    q | 
 | 14885 | 	  } | 
 | 14886 | 	  /^X\/\(\/\).*/{ | 
 | 14887 | 	    s//\1/ | 
 | 14888 | 	    q | 
 | 14889 | 	  } | 
 | 14890 | 	  s/.*/./; q'` | 
 | 14891 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14892 | # Avoid depending upon Character Ranges. | 
 | 14893 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 14894 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 14895 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 14896 | as_cr_digits='0123456789' | 
 | 14897 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14898 |  | 
 | 14899 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14900 | case `echo -n x` in #((((( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14901 | -n*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14902 |   case `echo 'xy\c'` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14903 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14904 |   xy)  ECHO_C='\c';; | 
 | 14905 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 14906 |        ECHO_T='	';; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14907 |   esac;; | 
 | 14908 | *) | 
 | 14909 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14910 | esac | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14911 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14912 | rm -f conf$$ conf$$.exe conf$$.file | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14913 | if test -d conf$$.dir; then | 
 | 14914 |   rm -f conf$$.dir/conf$$.file | 
 | 14915 | else | 
 | 14916 |   rm -f conf$$.dir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14917 |   mkdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14918 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14919 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 14920 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 14921 |     as_ln_s='ln -s' | 
 | 14922 |     # ... but there are two gotchas: | 
 | 14923 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 14924 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 14925 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14926 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 14927 |       as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14928 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 14929 |     as_ln_s=ln | 
 | 14930 |   else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 14931 |     as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14932 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14933 | else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 14934 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14935 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14936 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 14937 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14938 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14939 |  | 
 | 14940 | # as_fn_mkdir_p | 
 | 14941 | # ------------- | 
 | 14942 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 14943 | as_fn_mkdir_p () | 
 | 14944 | { | 
 | 14945 |  | 
 | 14946 |   case $as_dir in #( | 
 | 14947 |   -*) as_dir=./$as_dir;; | 
 | 14948 |   esac | 
 | 14949 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 14950 |     as_dirs= | 
 | 14951 |     while :; do | 
 | 14952 |       case $as_dir in #( | 
 | 14953 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 14954 |       *) as_qdir=$as_dir;; | 
 | 14955 |       esac | 
 | 14956 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 14957 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 14958 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 14959 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 14960 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 14961 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 14962 | $as_echo X"$as_dir" | | 
 | 14963 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 14964 | 	    s//\1/ | 
 | 14965 | 	    q | 
 | 14966 | 	  } | 
 | 14967 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 14968 | 	    s//\1/ | 
 | 14969 | 	    q | 
 | 14970 | 	  } | 
 | 14971 | 	  /^X\(\/\/\)$/{ | 
 | 14972 | 	    s//\1/ | 
 | 14973 | 	    q | 
 | 14974 | 	  } | 
 | 14975 | 	  /^X\(\/\).*/{ | 
 | 14976 | 	    s//\1/ | 
 | 14977 | 	    q | 
 | 14978 | 	  } | 
 | 14979 | 	  s/.*/./; q'` | 
 | 14980 |       test -d "$as_dir" && break | 
 | 14981 |     done | 
 | 14982 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14983 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14984 |  | 
 | 14985 |  | 
 | 14986 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14987 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14988 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14989 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14990 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14991 |   as_mkdir_p=false | 
 | 14992 | fi | 
 | 14993 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 14994 |  | 
 | 14995 | # as_fn_executable_p FILE | 
 | 14996 | # ----------------------- | 
 | 14997 | # Test if FILE is an executable regular file. | 
 | 14998 | as_fn_executable_p () | 
 | 14999 | { | 
 | 15000 |   test -f "$1" && test -x "$1" | 
 | 15001 | } # as_fn_executable_p | 
 | 15002 | as_test_x='test -x' | 
 | 15003 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15004 |  | 
 | 15005 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15006 | 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] | 15007 |  | 
 | 15008 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15009 | 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] | 15010 |  | 
 | 15011 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15012 | exec 6>&1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15013 | ## ----------------------------------- ## | 
 | 15014 | ## Main body of $CONFIG_STATUS script. ## | 
 | 15015 | ## ----------------------------------- ## | 
 | 15016 | _ASEOF | 
 | 15017 | 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] | 15018 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15019 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 15020 | # 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] | 15021 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15022 | # values after options handling. | 
 | 15023 | ac_log=" | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 15024 | This file was extended by python $as_me 2.7, which was | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15025 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15026 |  | 
 | 15027 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 15028 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 15029 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 15030 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 15031 |   $ $0 $@ | 
 | 15032 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15033 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 15034 | " | 
 | 15035 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15036 | _ACEOF | 
 | 15037 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15038 | case $ac_config_files in *" | 
 | 15039 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
 | 15040 | esac | 
 | 15041 |  | 
 | 15042 | case $ac_config_headers in *" | 
 | 15043 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
 | 15044 | esac | 
 | 15045 |  | 
 | 15046 |  | 
 | 15047 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15048 | # Files that config.status was made for. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15049 | config_files="$ac_config_files" | 
 | 15050 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15051 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15052 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15053 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15054 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15055 | ac_cs_usage="\ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15056 | \`$as_me' instantiates files and other configuration actions | 
 | 15057 | from templates according to the current configuration.  Unless the files | 
 | 15058 | 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] | 15059 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15060 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15061 |  | 
 | 15062 |   -h, --help       print this help, then exit | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15063 |   -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15064 |       --config     print configuration, then exit | 
 | 15065 |   -q, --quiet, --silent | 
 | 15066 |                    do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15067 |   -d, --debug      don't remove temporary files | 
 | 15068 |       --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15069 |       --file=FILE[:TEMPLATE] | 
 | 15070 |                    instantiate the configuration file FILE | 
 | 15071 |       --header=FILE[:TEMPLATE] | 
 | 15072 |                    instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 |  | 
 | 15074 | Configuration files: | 
 | 15075 | $config_files | 
 | 15076 |  | 
 | 15077 | Configuration headers: | 
 | 15078 | $config_headers | 
 | 15079 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15080 | Report bugs to <http://bugs.python.org/>." | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15081 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15082 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15083 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15084 | 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] | 15085 | ac_cs_version="\\ | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 15086 | python config.status 2.7 | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15087 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15088 |   with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15089 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15090 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15091 | This config.status script is free software; the Free Software Foundation | 
 | 15092 | gives unlimited permission to copy, distribute and modify it." | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15093 |  | 
 | 15094 | ac_pwd='$ac_pwd' | 
 | 15095 | srcdir='$srcdir' | 
 | 15096 | INSTALL='$INSTALL' | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15097 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15098 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15099 | _ACEOF | 
 | 15100 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15101 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 15102 | # 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] | 15103 | ac_need_defaults=: | 
 | 15104 | while test $# != 0 | 
 | 15105 | do | 
 | 15106 |   case $1 in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15107 |   --*=?*) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15108 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 15109 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15110 |     ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15111 |     ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15112 |   --*=) | 
 | 15113 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 15114 |     ac_optarg= | 
 | 15115 |     ac_shift=: | 
 | 15116 |     ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15117 |   *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15118 |     ac_option=$1 | 
 | 15119 |     ac_optarg=$2 | 
 | 15120 |     ac_shift=shift | 
 | 15121 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15122 |   esac | 
 | 15123 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15124 |   case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15125 |   # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15126 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 15127 |     ac_cs_recheck=: ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15128 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15129 |     $as_echo "$ac_cs_version"; exit ;; | 
 | 15130 |   --config | --confi | --conf | --con | --co | --c ) | 
 | 15131 |     $as_echo "$ac_cs_config"; exit ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15132 |   --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15133 |     debug=: ;; | 
 | 15134 |   --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15135 |     $ac_shift | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15136 |     case $ac_optarg in | 
 | 15137 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15138 |     '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15139 |     esac | 
 | 15140 |     as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15141 |     ac_need_defaults=false;; | 
 | 15142 |   --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15143 |     $ac_shift | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15144 |     case $ac_optarg in | 
 | 15145 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 15146 |     esac | 
 | 15147 |     as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15148 |     ac_need_defaults=false;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15149 |   --he | --h) | 
 | 15150 |     # Conflict between --help and --header | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15151 |     as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15152 | Try \`$0 --help' for more information.";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15153 |   --help | --hel | -h ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15154 |     $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15155 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 15156 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 15157 |     ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15158 |  | 
 | 15159 |   # This is an error. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15160 |   -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15161 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15162 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15163 |   *) as_fn_append ac_config_targets " $1" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15164 |      ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15165 |  | 
 | 15166 |   esac | 
 | 15167 |   shift | 
 | 15168 | done | 
 | 15169 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15170 | ac_configure_extra_args= | 
 | 15171 |  | 
 | 15172 | if $ac_cs_silent; then | 
 | 15173 |   exec 6>/dev/null | 
 | 15174 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 15175 | fi | 
 | 15176 |  | 
 | 15177 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15178 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15179 | if \$ac_cs_recheck; then | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15180 |   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15181 |   shift | 
 | 15182 |   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
 | 15183 |   CONFIG_SHELL='$SHELL' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15184 |   export CONFIG_SHELL | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15185 |   exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15186 | fi | 
 | 15187 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15188 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15189 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15190 | exec 5>>config.log | 
 | 15191 | { | 
 | 15192 |   echo | 
 | 15193 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 15194 | ## Running $as_me. ## | 
 | 15195 | _ASBOX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15196 |   $as_echo "$ac_log" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15197 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15198 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15199 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15200 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15201 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15202 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15203 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15204 |  | 
 | 15205 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15206 | for ac_config_target in $ac_config_targets | 
 | 15207 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15208 |   case $ac_config_target in | 
 | 15209 |     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
 | 15210 |     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
 | 15211 |     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
 | 15212 |     "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 15213 |     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
 | 15214 |     "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15215 |     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
 | 15216 |     "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 15217 |     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 15218 |     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15219 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15220 |   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15221 |   esac | 
 | 15222 | done | 
 | 15223 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15224 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15225 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 15226 | # then the envvar interface is used.  Set only those that are not. | 
 | 15227 | # We use the long form for the default assignment because of an extremely | 
 | 15228 | # bizarre bug on SunOS 4.1.3. | 
 | 15229 | if $ac_need_defaults; then | 
 | 15230 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 15231 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
 | 15232 | fi | 
 | 15233 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15234 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15235 | # 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] | 15236 | # creating and moving files from /tmp can sometimes cause problems. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15237 | # Hook for its removal unless debugging. | 
 | 15238 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 15239 | # 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] | 15240 | $debug || | 
 | 15241 | { | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15242 |   tmp= ac_tmp= | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15243 |   trap 'exit_status=$? | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15244 |   : "${ac_tmp:=$tmp}" | 
 | 15245 |   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15246 | ' 0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15247 |   trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15248 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15249 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15250 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15251 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15252 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15253 |   test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15254 | }  || | 
 | 15255 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15256 |   tmp=./conf$$-$RANDOM | 
 | 15257 |   (umask 077 && mkdir "$tmp") | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15258 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15259 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15260 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15261 | # Set up the scripts for CONFIG_FILES section. | 
 | 15262 | # No need to generate them if there are no CONFIG_FILES. | 
 | 15263 | # This happens for instance with `./config.status config.h'. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15264 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15266 |  | 
 | 15267 | ac_cr=`echo X | tr X '\015'` | 
 | 15268 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
 | 15269 | # But we know of no other shell where ac_cr would be empty at this | 
 | 15270 | # point, so we can use a bashism as a fallback. | 
 | 15271 | if test "x$ac_cr" = x; then | 
 | 15272 |   eval ac_cr=\$\'\\r\' | 
 | 15273 | fi | 
 | 15274 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
 | 15275 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15276 |   ac_cs_awk_cr='\\r' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15277 | else | 
 | 15278 |   ac_cs_awk_cr=$ac_cr | 
 | 15279 | fi | 
 | 15280 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15281 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15282 | _ACEOF | 
 | 15283 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15284 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15285 | { | 
 | 15286 |   echo "cat >conf$$subs.awk <<_ACEOF" && | 
 | 15287 |   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
 | 15288 |   echo "_ACEOF" | 
 | 15289 | } >conf$$subs.sh || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15290 |   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
 | 15291 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15292 | ac_delim='%!_!# ' | 
 | 15293 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15294 |   . ./conf$$subs.sh || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15295 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15296 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15297 |   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
 | 15298 |   if test $ac_delim_n = $ac_delim_num; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15299 |     break | 
 | 15300 |   elif $ac_last_try; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15301 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15302 |   else | 
 | 15303 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15304 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15305 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15306 | rm -f conf$$subs.sh | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15307 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15308 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15309 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15310 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15311 | sed -n ' | 
 | 15312 | h | 
 | 15313 | s/^/S["/; s/!.*/"]=/ | 
 | 15314 | p | 
 | 15315 | g | 
 | 15316 | s/^[^!]*!// | 
 | 15317 | :repl | 
 | 15318 | t repl | 
 | 15319 | s/'"$ac_delim"'$// | 
 | 15320 | t delim | 
 | 15321 | :nl | 
 | 15322 | h | 
 | 15323 | s/\(.\{148\}\)..*/\1/ | 
 | 15324 | t more1 | 
 | 15325 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
 | 15326 | p | 
 | 15327 | n | 
 | 15328 | b repl | 
 | 15329 | :more1 | 
 | 15330 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 15331 | p | 
 | 15332 | g | 
 | 15333 | s/.\{148\}// | 
 | 15334 | t nl | 
 | 15335 | :delim | 
 | 15336 | h | 
 | 15337 | s/\(.\{148\}\)..*/\1/ | 
 | 15338 | t more2 | 
 | 15339 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
 | 15340 | p | 
 | 15341 | b | 
 | 15342 | :more2 | 
 | 15343 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 15344 | p | 
 | 15345 | g | 
 | 15346 | s/.\{148\}// | 
 | 15347 | t delim | 
 | 15348 | ' <conf$$subs.awk | sed ' | 
 | 15349 | /^[^""]/{ | 
 | 15350 |   N | 
 | 15351 |   s/\n// | 
 | 15352 | } | 
 | 15353 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 15354 | rm -f conf$$subs.awk | 
 | 15355 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15356 | _ACAWK | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15357 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15358 |   for (key in S) S_is_set[key] = 1 | 
 | 15359 |   FS = "" | 
 | 15360 |  | 
 | 15361 | } | 
 | 15362 | { | 
 | 15363 |   line = $ 0 | 
 | 15364 |   nfields = split(line, field, "@") | 
 | 15365 |   substed = 0 | 
 | 15366 |   len = length(field[1]) | 
 | 15367 |   for (i = 2; i < nfields; i++) { | 
 | 15368 |     key = field[i] | 
 | 15369 |     keylen = length(key) | 
 | 15370 |     if (S_is_set[key]) { | 
 | 15371 |       value = S[key] | 
 | 15372 |       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
 | 15373 |       len += length(value) + length(field[++i]) | 
 | 15374 |       substed = 1 | 
 | 15375 |     } else | 
 | 15376 |       len += 1 + keylen | 
 | 15377 |   } | 
 | 15378 |  | 
 | 15379 |   print line | 
 | 15380 | } | 
 | 15381 |  | 
 | 15382 | _ACAWK | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15383 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15384 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 15385 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
 | 15386 |   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
 | 15387 | else | 
 | 15388 |   cat | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15389 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15390 |   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15391 | _ACEOF | 
 | 15392 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15393 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
 | 15394 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15395 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 15396 | # (actually we leave an empty line to preserve line numbers). | 
 | 15397 | if test "x$srcdir" = x.; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15398 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
 | 15399 | h | 
 | 15400 | s/// | 
 | 15401 | s/^/:/ | 
 | 15402 | s/[	 ]*$/:/ | 
 | 15403 | s/:\$(srcdir):/:/g | 
 | 15404 | s/:\${srcdir}:/:/g | 
 | 15405 | s/:@srcdir@:/:/g | 
 | 15406 | s/^:*// | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15407 | s/:*$// | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15408 | x | 
 | 15409 | s/\(=[	 ]*\).*/\1/ | 
 | 15410 | G | 
 | 15411 | s/\n// | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15412 | s/^[^=]*=[	 ]*$// | 
 | 15413 | }' | 
 | 15414 | fi | 
 | 15415 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15416 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15417 | fi # test -n "$CONFIG_FILES" | 
 | 15418 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15419 | # Set up the scripts for CONFIG_HEADERS section. | 
 | 15420 | # No need to generate them if there are no CONFIG_HEADERS. | 
 | 15421 | # This happens for instance with `./config.status Makefile'. | 
 | 15422 | if test -n "$CONFIG_HEADERS"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15423 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15424 | BEGIN { | 
 | 15425 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15426 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15427 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
 | 15428 | # here-document in config.status, that substitutes the proper values into | 
 | 15429 | # config.h.in to produce config.h. | 
 | 15430 |  | 
 | 15431 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
 | 15432 | # handling of long lines. | 
 | 15433 | ac_delim='%!_!# ' | 
 | 15434 | for ac_last_try in false false :; do | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15435 |   ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
 | 15436 |   if test -z "$ac_tt"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15437 |     break | 
 | 15438 |   elif $ac_last_try; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15439 |     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15440 |   else | 
 | 15441 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 15442 |   fi | 
 | 15443 | done | 
 | 15444 |  | 
 | 15445 | # For the awk script, D is an array of macro values keyed by name, | 
 | 15446 | # likewise P contains macro parameters if any.  Preserve backslash | 
 | 15447 | # newline sequences. | 
 | 15448 |  | 
 | 15449 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 15450 | sed -n ' | 
 | 15451 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 15452 | t rset | 
 | 15453 | :rset | 
 | 15454 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
 | 15455 | t def | 
 | 15456 | d | 
 | 15457 | :def | 
 | 15458 | s/\\$// | 
 | 15459 | t bsnl | 
 | 15460 | s/["\\]/\\&/g | 
 | 15461 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 15462 | D["\1"]=" \3"/p | 
 | 15463 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
 | 15464 | d | 
 | 15465 | :bsnl | 
 | 15466 | s/["\\]/\\&/g | 
 | 15467 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 15468 | D["\1"]=" \3\\\\\\n"\\/p | 
 | 15469 | t cont | 
 | 15470 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
 | 15471 | t cont | 
 | 15472 | d | 
 | 15473 | :cont | 
 | 15474 | n | 
 | 15475 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 15476 | t clear | 
 | 15477 | :clear | 
 | 15478 | s/\\$// | 
 | 15479 | t bsnlc | 
 | 15480 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
 | 15481 | d | 
 | 15482 | :bsnlc | 
 | 15483 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
 | 15484 | b cont | 
 | 15485 | ' <confdefs.h | sed ' | 
 | 15486 | s/'"$ac_delim"'/"\\\ | 
 | 15487 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 15488 |  | 
 | 15489 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15490 |   for (key in D) D_is_set[key] = 1 | 
 | 15491 |   FS = "" | 
 | 15492 | } | 
 | 15493 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
 | 15494 |   line = \$ 0 | 
 | 15495 |   split(line, arg, " ") | 
 | 15496 |   if (arg[1] == "#") { | 
 | 15497 |     defundef = arg[2] | 
 | 15498 |     mac1 = arg[3] | 
 | 15499 |   } else { | 
 | 15500 |     defundef = substr(arg[1], 2) | 
 | 15501 |     mac1 = arg[2] | 
 | 15502 |   } | 
 | 15503 |   split(mac1, mac2, "(") #) | 
 | 15504 |   macro = mac2[1] | 
 | 15505 |   prefix = substr(line, 1, index(line, defundef) - 1) | 
 | 15506 |   if (D_is_set[macro]) { | 
 | 15507 |     # Preserve the white space surrounding the "#". | 
 | 15508 |     print prefix "define", macro P[macro] D[macro] | 
 | 15509 |     next | 
 | 15510 |   } else { | 
 | 15511 |     # Replace #undef with comments.  This is necessary, for example, | 
 | 15512 |     # in the case of _POSIX_SOURCE, which is predefined and required | 
 | 15513 |     # on some systems where configure will not decide to define it. | 
 | 15514 |     if (defundef == "undef") { | 
 | 15515 |       print "/*", prefix defundef, macro, "*/" | 
 | 15516 |       next | 
 | 15517 |     } | 
 | 15518 |   } | 
 | 15519 | } | 
 | 15520 | { print } | 
 | 15521 | _ACAWK | 
 | 15522 | _ACEOF | 
 | 15523 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15524 |   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15525 | fi # test -n "$CONFIG_HEADERS" | 
 | 15526 |  | 
 | 15527 |  | 
 | 15528 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
 | 15529 | shift | 
 | 15530 | for ac_tag | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15531 | do | 
 | 15532 |   case $ac_tag in | 
 | 15533 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 15534 |   esac | 
 | 15535 |   case $ac_mode$ac_tag in | 
 | 15536 |   :[FHL]*:*);; | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15537 |   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15538 |   :[FH]-) ac_tag=-:-;; | 
 | 15539 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 15540 |   esac | 
 | 15541 |   ac_save_IFS=$IFS | 
 | 15542 |   IFS=: | 
 | 15543 |   set x $ac_tag | 
 | 15544 |   IFS=$ac_save_IFS | 
 | 15545 |   shift | 
 | 15546 |   ac_file=$1 | 
 | 15547 |   shift | 
 | 15548 |  | 
 | 15549 |   case $ac_mode in | 
 | 15550 |   :L) ac_source=$1;; | 
 | 15551 |   :[FH]) | 
 | 15552 |     ac_file_inputs= | 
 | 15553 |     for ac_f | 
 | 15554 |     do | 
 | 15555 |       case $ac_f in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15556 |       -) ac_f="$ac_tmp/stdin";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15557 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 15558 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 15559 | 	 # because $ac_f cannot contain `:'. | 
 | 15560 | 	 test -f "$ac_f" || | 
 | 15561 | 	   case $ac_f in | 
 | 15562 | 	   [\\/$]*) false;; | 
 | 15563 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 15564 | 	   esac || | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15565 | 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15566 |       esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15567 |       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
 | 15568 |       as_fn_append ac_file_inputs " '$ac_f'" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15569 |     done | 
 | 15570 |  | 
 | 15571 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 15572 |     # use $as_me), people would be surprised to read: | 
 | 15573 |     #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15574 |     configure_input='Generated from '` | 
 | 15575 | 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
 | 15576 | 	`' by configure.' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15577 |     if test x"$ac_file" != x-; then | 
 | 15578 |       configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15579 |       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
 | 15580 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15581 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15582 |     # Neutralize special characters interpreted by sed in replacement strings. | 
 | 15583 |     case $configure_input in #( | 
 | 15584 |     *\&* | *\|* | *\\* ) | 
 | 15585 |        ac_sed_conf_input=`$as_echo "$configure_input" | | 
 | 15586 |        sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
 | 15587 |     *) ac_sed_conf_input=$configure_input;; | 
 | 15588 |     esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15589 |  | 
 | 15590 |     case $ac_tag in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15591 |     *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
 | 15592 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15593 |     esac | 
 | 15594 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15595 |   esac | 
 | 15596 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15597 |   ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15598 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15599 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 15600 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15601 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15602 | $as_echo X"$ac_file" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15603 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 15604 | 	    s//\1/ | 
 | 15605 | 	    q | 
 | 15606 | 	  } | 
 | 15607 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 15608 | 	    s//\1/ | 
 | 15609 | 	    q | 
 | 15610 | 	  } | 
 | 15611 | 	  /^X\(\/\/\)$/{ | 
 | 15612 | 	    s//\1/ | 
 | 15613 | 	    q | 
 | 15614 | 	  } | 
 | 15615 | 	  /^X\(\/\).*/{ | 
 | 15616 | 	    s//\1/ | 
 | 15617 | 	    q | 
 | 15618 | 	  } | 
 | 15619 | 	  s/.*/./; q'` | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15620 |   as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15621 |   ac_builddir=. | 
 | 15622 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15623 | case "$ac_dir" in | 
 | 15624 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 15625 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15626 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15627 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15628 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15629 |   case $ac_top_builddir_sub in | 
 | 15630 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 15631 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 15632 |   esac ;; | 
 | 15633 | esac | 
 | 15634 | ac_abs_top_builddir=$ac_pwd | 
 | 15635 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 15636 | # for backward compatibility: | 
 | 15637 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15638 |  | 
 | 15639 | case $srcdir in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15640 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15641 |     ac_srcdir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15642 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 15643 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 15644 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15645 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15646 |     ac_top_srcdir=$srcdir | 
 | 15647 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 15648 |   *) # Relative name. | 
 | 15649 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 15650 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 15651 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15652 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15653 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15654 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15655 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15656 |   case $ac_mode in | 
 | 15657 |   :F) | 
 | 15658 |   # | 
 | 15659 |   # CONFIG_FILE | 
 | 15660 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15661 |  | 
 | 15662 |   case $INSTALL in | 
 | 15663 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15664 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15665 |   esac | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15666 |   ac_MKDIR_P=$MKDIR_P | 
 | 15667 |   case $MKDIR_P in | 
 | 15668 |   [\\/$]* | ?:[\\/]* ) ;; | 
 | 15669 |   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
 | 15670 |   esac | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15671 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15672 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15673 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15674 | # If the template does not know about datarootdir, expand it. | 
 | 15675 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 15676 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15677 | ac_sed_dataroot=' | 
 | 15678 | /datarootdir/ { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15679 |   p | 
 | 15680 |   q | 
 | 15681 | } | 
 | 15682 | /@datadir@/p | 
 | 15683 | /@docdir@/p | 
 | 15684 | /@infodir@/p | 
 | 15685 | /@localedir@/p | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15686 | /@mandir@/p' | 
 | 15687 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15688 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 15689 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15690 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
 | 15691 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15692 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15693 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15694 |   ac_datarootdir_hack=' | 
 | 15695 |   s&@datadir@&$datadir&g | 
 | 15696 |   s&@docdir@&$docdir&g | 
 | 15697 |   s&@infodir@&$infodir&g | 
 | 15698 |   s&@localedir@&$localedir&g | 
 | 15699 |   s&@mandir@&$mandir&g | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15700 |   s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15701 | esac | 
 | 15702 | _ACEOF | 
 | 15703 |  | 
 | 15704 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 15705 | # Shell code in configure.ac might set extrasub. | 
 | 15706 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15707 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15708 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15709 | $extrasub | 
 | 15710 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15711 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15712 | :t | 
 | 15713 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15714 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15715 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15716 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15717 | s&@srcdir@&$ac_srcdir&;t t | 
 | 15718 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 15719 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 15720 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 15721 | s&@builddir@&$ac_builddir&;t t | 
 | 15722 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 15723 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 15724 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15725 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15726 | $ac_datarootdir_hack | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15727 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15728 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
 | 15729 |   >$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] | 15730 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15731 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15732 |   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
 | 15733 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
 | 15734 |       "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15735 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15736 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15737 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15738 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15739 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15740 |   rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15741 |   case $ac_file in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15742 |   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
 | 15743 |   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15744 |   esac \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15745 |   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15746 |  ;; | 
 | 15747 |   :H) | 
 | 15748 |   # | 
 | 15749 |   # CONFIG_HEADER | 
 | 15750 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15751 |   if test x"$ac_file" != x-; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15752 |     { | 
 | 15753 |       $as_echo "/* $configure_input  */" \ | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15754 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
 | 15755 |     } >"$ac_tmp/config.h" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15756 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15757 |     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15758 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
 | 15759 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15760 |     else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15761 |       rm -f "$ac_file" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15762 |       mv "$ac_tmp/config.h" "$ac_file" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15763 | 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15764 |     fi | 
 | 15765 |   else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15766 |     $as_echo "/* $configure_input  */" \ | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15767 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15768 |       || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15769 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15770 |  ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15771 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15772 |  | 
 | 15773 |   esac | 
 | 15774 |  | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 15775 |  | 
 | 15776 |   case $ac_file$ac_mode in | 
 | 15777 |     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
 | 15778 |  | 
 | 15779 |   esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15780 | done # for ac_tag | 
 | 15781 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15782 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15783 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15784 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15785 | ac_clean_files=$ac_clean_files_save | 
 | 15786 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15787 | test $ac_write_fail = 0 || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15788 |   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15789 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15790 |  | 
 | 15791 | # configure is writing to config.log, and then calls config.status. | 
 | 15792 | # config.status does its own redirection, appending to config.log. | 
 | 15793 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 15794 | # by configure, so config.status won't be able to write to it; its | 
 | 15795 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 15796 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 15797 | # appended to by config.status.  When coming back to configure, we | 
 | 15798 | # need to make the FD available again. | 
 | 15799 | if test "$no_create" != yes; then | 
 | 15800 |   ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15801 |   ac_config_status_args= | 
 | 15802 |   test "$silent" = yes && | 
 | 15803 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15804 |   exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15805 |   $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] | 15806 |   exec 5>>config.log | 
 | 15807 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 15808 |   # would make configure fail if this is the last instruction. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15809 |   $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15810 | fi | 
 | 15811 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
 | 15812 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
 | 15813 | $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] | 15814 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15815 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15816 |  | 
| Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 15817 | echo "creating Modules/Setup" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15818 | if test ! -f Modules/Setup | 
 | 15819 | then | 
 | 15820 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 15821 | fi | 
 | 15822 |  | 
| Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 15823 | echo "creating Modules/Setup.local" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15824 | if test ! -f Modules/Setup.local | 
 | 15825 | then | 
 | 15826 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 15827 | fi | 
 | 15828 |  | 
 | 15829 | echo "creating Makefile" | 
 | 15830 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
 | 15831 | 			-s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 15832 | 			Modules/Setup.local Modules/Setup | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15833 |  | 
 | 15834 | case $ac_sys_system in | 
 | 15835 | BeOS) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15836 |         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15837 |  | 
 | 15838 |   Support for BeOS is deprecated as of Python 2.6. | 
 | 15839 |   See PEP 11 for the gory details. | 
 | 15840 |   " >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15841 | $as_echo "$as_me: WARNING: | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15842 |  | 
 | 15843 |   Support for BeOS is deprecated as of Python 2.6. | 
 | 15844 |   See PEP 11 for the gory details. | 
 | 15845 |   " >&2;} | 
 | 15846 |   ;; | 
 | 15847 | *) ;; | 
 | 15848 | esac | 
 | 15849 |  | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 15850 | mv config.c Modules |