Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 79902 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 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 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in |
| 27 | *posix*) set -o posix ;; |
| 28 | esac |
| 29 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
| 34 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | # Avoid depending upon Character Ranges. |
| 37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 40 | as_cr_digits='0123456789' |
| 41 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 42 | |
| 43 | # The user is always right. |
| 44 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 45 | echo "#! /bin/sh" >conf$$.sh |
| 46 | echo "exit 0" >>conf$$.sh |
| 47 | chmod +x conf$$.sh |
| 48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 49 | PATH_SEPARATOR=';' |
| 50 | else |
| 51 | PATH_SEPARATOR=: |
| 52 | fi |
| 53 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 54 | fi |
| 55 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 56 | # Support unset when possible. |
| 57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 58 | as_unset=unset |
| 59 | else |
| 60 | as_unset=false |
| 61 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 63 | |
| 64 | # IFS |
| 65 | # We need space, tab and new line, in precisely that order. Quoting is |
| 66 | # there to prevent editors from complaining about space-tab. |
| 67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 68 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 69 | as_nl=' |
| 70 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 71 | IFS=" "" $as_nl" |
| 72 | |
| 73 | # Find who we are. Look in the path if we contain no directory separator. |
| 74 | case $0 in |
| 75 | *[\\/]* ) as_myself=$0 ;; |
| 76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | for as_dir in $PATH |
| 78 | do |
| 79 | IFS=$as_save_IFS |
| 80 | test -z "$as_dir" && as_dir=. |
| 81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 82 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 83 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 85 | ;; |
| 86 | esac |
| 87 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 88 | # in which case we are not to be found in the path. |
| 89 | if test "x$as_myself" = x; then |
| 90 | as_myself=$0 |
| 91 | fi |
| 92 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 94 | { (exit 1); exit 1; } |
| 95 | fi |
| 96 | |
| 97 | # Work around bugs in pre-3.0 UWIN ksh. |
| 98 | for as_var in ENV MAIL MAILPATH |
| 99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 100 | done |
| 101 | PS1='$ ' |
| 102 | PS2='> ' |
| 103 | PS4='+ ' |
| 104 | |
| 105 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 106 | for as_var in \ |
| 107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 109 | LC_TELEPHONE LC_TIME |
| 110 | do |
| 111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 112 | eval $as_var=C; export $as_var |
| 113 | else |
| 114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 115 | fi |
| 116 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 117 | |
| 118 | # Required to use basename. |
| 119 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 121 | as_expr=expr |
| 122 | else |
| 123 | as_expr=false |
| 124 | fi |
| 125 | |
| 126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 127 | as_basename=basename |
| 128 | else |
| 129 | as_basename=false |
| 130 | fi |
| 131 | |
| 132 | |
| 133 | # Name of the executable. |
| 134 | as_me=`$as_basename -- "$0" || |
| 135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 136 | X"$0" : 'X\(//\)$' \| \ |
| 137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 138 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 140 | s//\1/ |
| 141 | q |
| 142 | } |
| 143 | /^X\/\(\/\/\)$/{ |
| 144 | s//\1/ |
| 145 | q |
| 146 | } |
| 147 | /^X\/\(\/\).*/{ |
| 148 | s//\1/ |
| 149 | q |
| 150 | } |
| 151 | s/.*/./; q'` |
| 152 | |
| 153 | # CDPATH. |
| 154 | $as_unset CDPATH |
| 155 | |
| 156 | |
| 157 | if test "x$CONFIG_SHELL" = x; then |
| 158 | if (eval ":") 2>/dev/null; then |
| 159 | as_have_required=yes |
| 160 | else |
| 161 | as_have_required=no |
| 162 | fi |
| 163 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 164 | if test $as_have_required = yes && (eval ": |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 165 | (as_func_return () { |
| 166 | (exit \$1) |
| 167 | } |
| 168 | as_func_success () { |
| 169 | as_func_return 0 |
| 170 | } |
| 171 | as_func_failure () { |
| 172 | as_func_return 1 |
| 173 | } |
| 174 | as_func_ret_success () { |
| 175 | return 0 |
| 176 | } |
| 177 | as_func_ret_failure () { |
| 178 | return 1 |
| 179 | } |
| 180 | |
| 181 | exitcode=0 |
| 182 | if as_func_success; then |
| 183 | : |
| 184 | else |
| 185 | exitcode=1 |
| 186 | echo as_func_success failed. |
| 187 | fi |
| 188 | |
| 189 | if as_func_failure; then |
| 190 | exitcode=1 |
| 191 | echo as_func_failure succeeded. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_success; then |
| 195 | : |
| 196 | else |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_success failed. |
| 199 | fi |
| 200 | |
| 201 | if as_func_ret_failure; then |
| 202 | exitcode=1 |
| 203 | echo as_func_ret_failure succeeded. |
| 204 | fi |
| 205 | |
| 206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 207 | : |
| 208 | else |
| 209 | exitcode=1 |
| 210 | echo positional parameters were not saved. |
| 211 | fi |
| 212 | |
| 213 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 214 | |
| 215 | ( |
| 216 | as_lineno_1=\$LINENO |
| 217 | as_lineno_2=\$LINENO |
| 218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 220 | ") 2> /dev/null; then |
| 221 | : |
| 222 | else |
| 223 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 226 | do |
| 227 | IFS=$as_save_IFS |
| 228 | test -z "$as_dir" && as_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 229 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | /*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 231 | for as_base in sh bash ksh sh5; do |
| 232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 233 | done;; |
| 234 | esac |
| 235 | done |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | for as_shell in $as_candidate_shells $SHELL; do |
| 240 | # Try only shells that exist, to save several forks. |
| 241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 242 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 244 | emulate sh |
| 245 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 247 | # is contrary to our usage. Disable this feature. |
| 248 | alias -g '${1+"$@"}'='"$@"' |
| 249 | setopt NO_GLOB_SUBST |
| 250 | else |
| 251 | case `(set -o) 2>/dev/null` in |
| 252 | *posix*) set -o posix ;; |
| 253 | esac |
| 254 | |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | : |
| 259 | _ASEOF |
| 260 | }; then |
| 261 | CONFIG_SHELL=$as_shell |
| 262 | as_have_required=yes |
| 263 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 265 | emulate sh |
| 266 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 268 | # is contrary to our usage. Disable this feature. |
| 269 | alias -g '${1+"$@"}'='"$@"' |
| 270 | setopt NO_GLOB_SUBST |
| 271 | else |
| 272 | case `(set -o) 2>/dev/null` in |
| 273 | *posix*) set -o posix ;; |
| 274 | esac |
| 275 | |
| 276 | fi |
| 277 | |
| 278 | |
| 279 | : |
| 280 | (as_func_return () { |
| 281 | (exit $1) |
| 282 | } |
| 283 | as_func_success () { |
| 284 | as_func_return 0 |
| 285 | } |
| 286 | as_func_failure () { |
| 287 | as_func_return 1 |
| 288 | } |
| 289 | as_func_ret_success () { |
| 290 | return 0 |
| 291 | } |
| 292 | as_func_ret_failure () { |
| 293 | return 1 |
| 294 | } |
| 295 | |
| 296 | exitcode=0 |
| 297 | if as_func_success; then |
| 298 | : |
| 299 | else |
| 300 | exitcode=1 |
| 301 | echo as_func_success failed. |
| 302 | fi |
| 303 | |
| 304 | if as_func_failure; then |
| 305 | exitcode=1 |
| 306 | echo as_func_failure succeeded. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_success; then |
| 310 | : |
| 311 | else |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_success failed. |
| 314 | fi |
| 315 | |
| 316 | if as_func_ret_failure; then |
| 317 | exitcode=1 |
| 318 | echo as_func_ret_failure succeeded. |
| 319 | fi |
| 320 | |
| 321 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 322 | : |
| 323 | else |
| 324 | exitcode=1 |
| 325 | echo positional parameters were not saved. |
| 326 | fi |
| 327 | |
| 328 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 329 | |
| 330 | ( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 335 | |
| 336 | _ASEOF |
| 337 | }; then |
| 338 | break |
| 339 | fi |
| 340 | |
| 341 | fi |
| 342 | |
| 343 | done |
| 344 | |
| 345 | if test "x$CONFIG_SHELL" != x; then |
| 346 | for as_var in BASH_ENV ENV |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 348 | done |
| 349 | export CONFIG_SHELL |
| 350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 351 | fi |
| 352 | |
| 353 | |
| 354 | if test $as_have_required = no; then |
| 355 | echo This script requires a shell more modern than all the |
| 356 | echo shells that I found on your system. Please install a |
| 357 | echo modern shell, or manually run the script under such a |
| 358 | echo shell if you do have one. |
| 359 | { (exit 1); exit 1; } |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | fi |
| 364 | |
| 365 | fi |
| 366 | |
| 367 | |
| 368 | |
| 369 | (eval "as_func_return () { |
| 370 | (exit \$1) |
| 371 | } |
| 372 | as_func_success () { |
| 373 | as_func_return 0 |
| 374 | } |
| 375 | as_func_failure () { |
| 376 | as_func_return 1 |
| 377 | } |
| 378 | as_func_ret_success () { |
| 379 | return 0 |
| 380 | } |
| 381 | as_func_ret_failure () { |
| 382 | return 1 |
| 383 | } |
| 384 | |
| 385 | exitcode=0 |
| 386 | if as_func_success; then |
| 387 | : |
| 388 | else |
| 389 | exitcode=1 |
| 390 | echo as_func_success failed. |
| 391 | fi |
| 392 | |
| 393 | if as_func_failure; then |
| 394 | exitcode=1 |
| 395 | echo as_func_failure succeeded. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_success; then |
| 399 | : |
| 400 | else |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_success failed. |
| 403 | fi |
| 404 | |
| 405 | if as_func_ret_failure; then |
| 406 | exitcode=1 |
| 407 | echo as_func_ret_failure succeeded. |
| 408 | fi |
| 409 | |
| 410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 411 | : |
| 412 | else |
| 413 | exitcode=1 |
| 414 | echo positional parameters were not saved. |
| 415 | fi |
| 416 | |
| 417 | test \$exitcode = 0") || { |
| 418 | echo No shell found that supports shell functions. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 419 | echo Please tell autoconf@gnu.org about your system, |
| 420 | echo including any error possibly output before this |
| 421 | echo message |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 422 | } |
| 423 | |
| 424 | |
| 425 | |
| 426 | as_lineno_1=$LINENO |
| 427 | as_lineno_2=$LINENO |
| 428 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | |
| 431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 432 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 433 | # line-number line after each line using $LINENO; the second 'sed' |
| 434 | # does the real work. The second script uses 'N' to pair each |
| 435 | # line-number line with the line containing $LINENO, and appends |
| 436 | # trailing '-' during substitution so that $LINENO is not a special |
| 437 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 439 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 440 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 441 | sed -n ' |
| 442 | p |
| 443 | /[$]LINENO/= |
| 444 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 445 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 446 | s/[$]LINENO.*/&-/ |
| 447 | t lineno |
| 448 | b |
| 449 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 451 | :loop |
| 452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 454 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 456 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | { (exit 1); exit 1; }; } |
| 459 | |
| 460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 461 | # (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] | 462 | # original and so on. Autoconf is especially sensitive to this). |
| 463 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | # Exit status is that of the last command. |
| 465 | exit |
| 466 | } |
| 467 | |
| 468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 470 | as_dirname=dirname |
| 471 | else |
| 472 | as_dirname=false |
| 473 | fi |
| 474 | |
| 475 | ECHO_C= ECHO_N= ECHO_T= |
| 476 | case `echo -n x` in |
| 477 | -n*) |
| 478 | case `echo 'x\c'` in |
| 479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 480 | *) ECHO_C='\c';; |
| 481 | esac;; |
| 482 | *) |
| 483 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 484 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 486 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_expr=expr |
| 489 | else |
| 490 | as_expr=false |
| 491 | fi |
| 492 | |
| 493 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 494 | if test -d conf$$.dir; then |
| 495 | rm -f conf$$.dir/conf$$.file |
| 496 | else |
| 497 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 498 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 499 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 500 | echo >conf$$.file |
| 501 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 502 | as_ln_s='ln -s' |
| 503 | # ... but there are two gotchas: |
| 504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 506 | # In both cases, we have to default to `cp -p'. |
| 507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 508 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 510 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | else |
| 512 | as_ln_s='cp -p' |
| 513 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 515 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 517 | if mkdir -p . 2>/dev/null; then |
| 518 | as_mkdir_p=: |
| 519 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 520 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 521 | as_mkdir_p=false |
| 522 | fi |
| 523 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 524 | if test -x / >/dev/null 2>&1; then |
| 525 | as_test_x='test -x' |
| 526 | else |
| 527 | if ls -dL / >/dev/null 2>&1; then |
| 528 | as_ls_L_option=L |
| 529 | else |
| 530 | as_ls_L_option= |
| 531 | fi |
| 532 | as_test_x=' |
| 533 | eval sh -c '\'' |
| 534 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 535 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 536 | else |
| 537 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 538 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 539 | esac; |
| 540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 541 | ???[sx]*):;;*)false;;esac;fi |
| 542 | '\'' sh |
| 543 | ' |
| 544 | fi |
| 545 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 548 | 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] | 549 | |
| 550 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 551 | 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] | 552 | |
| 553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 554 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 555 | exec 7<&0 </dev/null 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | |
| 557 | # Name of the host. |
| 558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 559 | # so uname gets run too. |
| 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | # |
| 563 | # Initializations. |
| 564 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | ac_default_prefix=/usr/local |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 566 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 567 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 568 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | cross_compiling=no |
| 570 | subdirs= |
| 571 | MFLAGS= |
| 572 | MAKEFLAGS= |
| 573 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 576 | PACKAGE_NAME='python' |
| 577 | PACKAGE_TARNAME='python' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='2.7' |
| 579 | PACKAGE_STRING='python 2.7' |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 580 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | |
| 582 | ac_unique_file="Include/object.h" |
| 583 | # Factoring default headers for most tests. |
| 584 | ac_includes_default="\ |
| 585 | #include <stdio.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 586 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | # include <sys/types.h> |
| 588 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 589 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | # include <sys/stat.h> |
| 591 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 592 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <stdlib.h> |
| 594 | # include <stddef.h> |
| 595 | #else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <stdlib.h> |
| 598 | # endif |
| 599 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 600 | #ifdef HAVE_STRING_H |
| 601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | # include <memory.h> |
| 603 | # endif |
| 604 | # include <string.h> |
| 605 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 607 | # include <strings.h> |
| 608 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 609 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | # include <inttypes.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 611 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STDINT_H |
| 613 | # include <stdint.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <unistd.h> |
| 617 | #endif" |
| 618 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 619 | ac_subst_vars='SHELL |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 620 | PATH_SEPARATOR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 621 | PACKAGE_NAME |
| 622 | PACKAGE_TARNAME |
| 623 | PACKAGE_VERSION |
| 624 | PACKAGE_STRING |
| 625 | PACKAGE_BUGREPORT |
| 626 | exec_prefix |
| 627 | prefix |
| 628 | program_transform_name |
| 629 | bindir |
| 630 | sbindir |
| 631 | libexecdir |
| 632 | datarootdir |
| 633 | datadir |
| 634 | sysconfdir |
| 635 | sharedstatedir |
| 636 | localstatedir |
| 637 | includedir |
| 638 | oldincludedir |
| 639 | docdir |
| 640 | infodir |
| 641 | htmldir |
| 642 | dvidir |
| 643 | pdfdir |
| 644 | psdir |
| 645 | libdir |
| 646 | localedir |
| 647 | mandir |
| 648 | DEFS |
| 649 | ECHO_C |
| 650 | ECHO_N |
| 651 | ECHO_T |
| 652 | LIBS |
| 653 | build_alias |
| 654 | host_alias |
| 655 | target_alias |
| 656 | VERSION |
| 657 | SOVERSION |
| 658 | CONFIG_ARGS |
| 659 | UNIVERSALSDK |
| 660 | ARCH_RUN_32BIT |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 661 | LIPO_32BIT_FLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 662 | PYTHONFRAMEWORK |
| 663 | PYTHONFRAMEWORKIDENTIFIER |
| 664 | PYTHONFRAMEWORKDIR |
| 665 | PYTHONFRAMEWORKPREFIX |
| 666 | PYTHONFRAMEWORKINSTALLDIR |
| 667 | FRAMEWORKINSTALLFIRST |
| 668 | FRAMEWORKINSTALLLAST |
| 669 | FRAMEWORKALTINSTALLFIRST |
| 670 | FRAMEWORKALTINSTALLLAST |
| 671 | FRAMEWORKUNIXTOOLSPREFIX |
| 672 | MACHDEP |
| 673 | SGI_ABI |
| 674 | EXTRAPLATDIR |
| 675 | EXTRAMACHDEPPATH |
| 676 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 677 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 678 | CC |
| 679 | CFLAGS |
| 680 | LDFLAGS |
| 681 | CPPFLAGS |
| 682 | ac_ct_CC |
| 683 | EXEEXT |
| 684 | OBJEXT |
| 685 | CXX |
| 686 | MAINCC |
| 687 | CPP |
| 688 | GREP |
| 689 | EGREP |
| 690 | BUILDEXEEXT |
| 691 | LIBRARY |
| 692 | LDLIBRARY |
| 693 | DLLLIBRARY |
| 694 | BLDLIBRARY |
| 695 | LDLIBRARYDIR |
| 696 | INSTSONAME |
| 697 | RUNSHARED |
| 698 | LINKCC |
| 699 | GNULD |
| 700 | RANLIB |
| 701 | AR |
| 702 | ARFLAGS |
| 703 | SVNVERSION |
| 704 | INSTALL_PROGRAM |
| 705 | INSTALL_SCRIPT |
| 706 | INSTALL_DATA |
| 707 | LN |
| 708 | OPT |
| 709 | BASECFLAGS |
| 710 | UNIVERSAL_ARCH_FLAGS |
| 711 | OTHER_LIBTOOL_OPT |
| 712 | LIBTOOL_CRUFT |
| 713 | SO |
| 714 | LDSHARED |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 715 | LDCXXSHARED |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 716 | BLDSHARED |
| 717 | CCSHARED |
| 718 | LINKFORSHARED |
| 719 | CFLAGSFORSHARED |
| 720 | SHLIBS |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 721 | PKG_CONFIG |
| 722 | LIBFFI_INCLUDEDIR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 723 | USE_SIGNAL_MODULE |
| 724 | SIGNAL_OBJS |
| 725 | USE_THREAD_MODULE |
| 726 | LDLAST |
| 727 | THREADOBJ |
| 728 | DLINCLDIR |
| 729 | DYNLOADFILE |
| 730 | MACHDEP_OBJS |
| 731 | TRUE |
| 732 | LIBOBJS |
| 733 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 734 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 735 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 736 | HAVE_GETHOSTBYNAME_R |
| 737 | HAVE_GETHOSTBYNAME |
| 738 | LIBM |
| 739 | LIBC |
| 740 | UNICODE_OBJS |
| 741 | THREADHEADERS |
| 742 | SRCDIRS |
| 743 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 744 | ac_subst_files='' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 745 | ac_precious_vars='build_alias |
| 746 | host_alias |
| 747 | target_alias |
| 748 | CC |
| 749 | CFLAGS |
| 750 | LDFLAGS |
| 751 | LIBS |
| 752 | CPPFLAGS |
| 753 | CPP' |
| 754 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 755 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 756 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 757 | ac_init_help= |
| 758 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 759 | # The variables have the same names as the options, with |
| 760 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 761 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 762 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 763 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 764 | no_recursion= |
| 765 | prefix=NONE |
| 766 | program_prefix=NONE |
| 767 | program_suffix=NONE |
| 768 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 769 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 770 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 771 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 772 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 773 | x_includes=NONE |
| 774 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 775 | |
| 776 | # Installation directory options. |
| 777 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 778 | # and all the variables that are supposed to be based on exec_prefix |
| 779 | # by default will actually change. |
| 780 | # 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] | 781 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 782 | bindir='${exec_prefix}/bin' |
| 783 | sbindir='${exec_prefix}/sbin' |
| 784 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 785 | datarootdir='${prefix}/share' |
| 786 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 787 | sysconfdir='${prefix}/etc' |
| 788 | sharedstatedir='${prefix}/com' |
| 789 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 790 | includedir='${prefix}/include' |
| 791 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 792 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 793 | infodir='${datarootdir}/info' |
| 794 | htmldir='${docdir}' |
| 795 | dvidir='${docdir}' |
| 796 | pdfdir='${docdir}' |
| 797 | psdir='${docdir}' |
| 798 | libdir='${exec_prefix}/lib' |
| 799 | localedir='${datarootdir}/locale' |
| 800 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 801 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 802 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 803 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 804 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 805 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 806 | # If the previous option needs an argument, assign it. |
| 807 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 808 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 809 | ac_prev= |
| 810 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 811 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 812 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 813 | case $ac_option in |
| 814 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 815 | *) ac_optarg=yes ;; |
| 816 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 817 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 818 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 819 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 820 | case $ac_dashdash$ac_option in |
| 821 | --) |
| 822 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 823 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 824 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 825 | ac_prev=bindir ;; |
| 826 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 827 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 828 | |
| 829 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 830 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 831 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 832 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 833 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 834 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 835 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 836 | ac_prev=cache_file ;; |
| 837 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 838 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 839 | cache_file=$ac_optarg ;; |
| 840 | |
| 841 | --config-cache | -C) |
| 842 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 843 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 844 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 845 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 846 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 847 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 848 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 849 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 850 | | --dataroo | --dataro | --datar) |
| 851 | ac_prev=datarootdir ;; |
| 852 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 853 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 854 | datarootdir=$ac_optarg ;; |
| 855 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 856 | -disable-* | --disable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 857 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 858 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 859 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 860 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 861 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 862 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 863 | eval enable_$ac_feature=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 864 | |
| 865 | -docdir | --docdir | --docdi | --doc | --do) |
| 866 | ac_prev=docdir ;; |
| 867 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 868 | docdir=$ac_optarg ;; |
| 869 | |
| 870 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 871 | ac_prev=dvidir ;; |
| 872 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 873 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 874 | |
| 875 | -enable-* | --enable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 876 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 877 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 878 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 879 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 880 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 881 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 882 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 883 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 884 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 885 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 886 | | --exec | --exe | --ex) |
| 887 | ac_prev=exec_prefix ;; |
| 888 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 889 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 890 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 891 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 892 | |
| 893 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 894 | # Obsolete; use --with-gas. |
| 895 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 897 | -help | --help | --hel | --he | -h) |
| 898 | ac_init_help=long ;; |
| 899 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 900 | ac_init_help=recursive ;; |
| 901 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 902 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 903 | |
| 904 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 905 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 906 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 907 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 908 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 909 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 910 | ac_prev=htmldir ;; |
| 911 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 912 | | --ht=*) |
| 913 | htmldir=$ac_optarg ;; |
| 914 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 915 | -includedir | --includedir | --includedi | --included | --include \ |
| 916 | | --includ | --inclu | --incl | --inc) |
| 917 | ac_prev=includedir ;; |
| 918 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 919 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 920 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 921 | |
| 922 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 923 | ac_prev=infodir ;; |
| 924 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 925 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 926 | |
| 927 | -libdir | --libdir | --libdi | --libd) |
| 928 | ac_prev=libdir ;; |
| 929 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 930 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 931 | |
| 932 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 933 | | --libexe | --libex | --libe) |
| 934 | ac_prev=libexecdir ;; |
| 935 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 936 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 937 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 938 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 939 | -localedir | --localedir | --localedi | --localed | --locale) |
| 940 | ac_prev=localedir ;; |
| 941 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 942 | localedir=$ac_optarg ;; |
| 943 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 944 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 945 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 946 | ac_prev=localstatedir ;; |
| 947 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 948 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 949 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 950 | |
| 951 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 952 | ac_prev=mandir ;; |
| 953 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 954 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 955 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 956 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 957 | # Obsolete; use --without-fp. |
| 958 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 959 | |
| 960 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 961 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 962 | no_create=yes ;; |
| 963 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 964 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 965 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 966 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 967 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 968 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 969 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 970 | | --oldin | --oldi | --old | --ol | --o) |
| 971 | ac_prev=oldincludedir ;; |
| 972 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 973 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 974 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 975 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 976 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 977 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 978 | ac_prev=prefix ;; |
| 979 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 980 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 981 | |
| 982 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 983 | | --program-pre | --program-pr | --program-p) |
| 984 | ac_prev=program_prefix ;; |
| 985 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 986 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 987 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 988 | |
| 989 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 990 | | --program-suf | --program-su | --program-s) |
| 991 | ac_prev=program_suffix ;; |
| 992 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 993 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 994 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 995 | |
| 996 | -program-transform-name | --program-transform-name \ |
| 997 | | --program-transform-nam | --program-transform-na \ |
| 998 | | --program-transform-n | --program-transform- \ |
| 999 | | --program-transform | --program-transfor \ |
| 1000 | | --program-transfo | --program-transf \ |
| 1001 | | --program-trans | --program-tran \ |
| 1002 | | --progr-tra | --program-tr | --program-t) |
| 1003 | ac_prev=program_transform_name ;; |
| 1004 | -program-transform-name=* | --program-transform-name=* \ |
| 1005 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1006 | | --program-transform-n=* | --program-transform-=* \ |
| 1007 | | --program-transform=* | --program-transfor=* \ |
| 1008 | | --program-transfo=* | --program-transf=* \ |
| 1009 | | --program-trans=* | --program-tran=* \ |
| 1010 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1011 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1012 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1013 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1014 | ac_prev=pdfdir ;; |
| 1015 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1016 | pdfdir=$ac_optarg ;; |
| 1017 | |
| 1018 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1019 | ac_prev=psdir ;; |
| 1020 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1021 | psdir=$ac_optarg ;; |
| 1022 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1023 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1024 | | -silent | --silent | --silen | --sile | --sil) |
| 1025 | silent=yes ;; |
| 1026 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1027 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1028 | ac_prev=sbindir ;; |
| 1029 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1030 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1031 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1032 | |
| 1033 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1034 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1035 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1036 | | --sha | --sh) |
| 1037 | ac_prev=sharedstatedir ;; |
| 1038 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1039 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1040 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1041 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1042 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1043 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1044 | -site | --site | --sit) |
| 1045 | ac_prev=site ;; |
| 1046 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1047 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1048 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1049 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1050 | ac_prev=srcdir ;; |
| 1051 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1052 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1053 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1054 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1055 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1056 | ac_prev=sysconfdir ;; |
| 1057 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1058 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1060 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1061 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1063 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1064 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1065 | |
| 1066 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1067 | verbose=yes ;; |
| 1068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1069 | -version | --version | --versio | --versi | --vers | -V) |
| 1070 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1071 | |
| 1072 | -with-* | --with-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1073 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1074 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1075 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1076 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1077 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1078 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1079 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1080 | |
| 1081 | -without-* | --without-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1082 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1083 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1084 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1085 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1086 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1087 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1088 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1089 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1090 | --x) |
| 1091 | # Obsolete; use --with-x. |
| 1092 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1093 | |
| 1094 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1095 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1096 | ac_prev=x_includes ;; |
| 1097 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1098 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1099 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1100 | |
| 1101 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1102 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1103 | ac_prev=x_libraries ;; |
| 1104 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1105 | | --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] | 1106 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1107 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1108 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1109 | Try \`$0 --help' for more information." >&2 |
| 1110 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1111 | ;; |
| 1112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1113 | *=*) |
| 1114 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1115 | # Reject names that are not valid shell variable names. |
| 1116 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1117 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1118 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1119 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1120 | export $ac_envvar ;; |
| 1121 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1122 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1123 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1124 | 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] | 1125 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1126 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1127 | : ${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] | 1128 | ;; |
| 1129 | |
| 1130 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1131 | done |
| 1132 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1133 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1134 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1135 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1136 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1137 | fi |
| 1138 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1139 | # Be sure to have absolute directory names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1140 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1141 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1142 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1143 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1144 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1145 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1146 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1147 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1148 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1149 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1150 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1151 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1152 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1154 | # There might be people who depend on the old broken behavior: `$host' |
| 1155 | # used to hold the argument of --host etc. |
| 1156 | # FIXME: To remove some day. |
| 1157 | build=$build_alias |
| 1158 | host=$host_alias |
| 1159 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1161 | # FIXME: To remove some day. |
| 1162 | if test "x$host_alias" != x; then |
| 1163 | if test "x$build_alias" = x; then |
| 1164 | cross_compiling=maybe |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1165 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1166 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1167 | elif test "x$build_alias" != "x$host_alias"; then |
| 1168 | cross_compiling=yes |
| 1169 | fi |
| 1170 | fi |
| 1171 | |
| 1172 | ac_tool_prefix= |
| 1173 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1174 | |
| 1175 | test "$silent" = yes && exec 6>/dev/null |
| 1176 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1177 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1178 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1179 | ac_ls_di=`ls -di .` && |
| 1180 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1181 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1182 | { (exit 1); exit 1; }; } |
| 1183 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1184 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1185 | { (exit 1); exit 1; }; } |
| 1186 | |
| 1187 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1188 | # Find the source files, if location was not specified. |
| 1189 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1190 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1191 | # Try the directory containing this script, then the parent directory. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1192 | ac_confdir=`$as_dirname -- "$0" || |
| 1193 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1194 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1195 | X"$0" : 'X\(//\)$' \| \ |
| 1196 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1197 | echo X"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1198 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1199 | s//\1/ |
| 1200 | q |
| 1201 | } |
| 1202 | /^X\(\/\/\)[^/].*/{ |
| 1203 | s//\1/ |
| 1204 | q |
| 1205 | } |
| 1206 | /^X\(\/\/\)$/{ |
| 1207 | s//\1/ |
| 1208 | q |
| 1209 | } |
| 1210 | /^X\(\/\).*/{ |
| 1211 | s//\1/ |
| 1212 | q |
| 1213 | } |
| 1214 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1215 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1216 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1217 | srcdir=.. |
| 1218 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1219 | else |
| 1220 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1221 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1222 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1223 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1224 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1225 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1226 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1227 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1228 | ac_abs_confdir=`( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1229 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1230 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1231 | pwd)` |
| 1232 | # When building in place, set srcdir=. |
| 1233 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1234 | srcdir=. |
| 1235 | fi |
| 1236 | # Remove unnecessary trailing slashes from srcdir. |
| 1237 | # Double slashes in file names in object file debugging info |
| 1238 | # mess up M-x gdb in Emacs. |
| 1239 | case $srcdir in |
| 1240 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1241 | esac |
| 1242 | for ac_var in $ac_precious_vars; do |
| 1243 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1244 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1245 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1246 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1247 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1249 | # |
| 1250 | # Report the --help message. |
| 1251 | # |
| 1252 | if test "$ac_init_help" = "long"; then |
| 1253 | # Omit some internal or obsolete options to make the list less imposing. |
| 1254 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1255 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1256 | \`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] | 1257 | |
| 1258 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1259 | |
| 1260 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1261 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1262 | |
| 1263 | Defaults for the options are specified in brackets. |
| 1264 | |
| 1265 | Configuration: |
| 1266 | -h, --help display this help and exit |
| 1267 | --help=short display options specific to this package |
| 1268 | --help=recursive display the short help of all the included packages |
| 1269 | -V, --version display version information and exit |
| 1270 | -q, --quiet, --silent do not print \`checking...' messages |
| 1271 | --cache-file=FILE cache test results in FILE [disabled] |
| 1272 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1273 | -n, --no-create do not create output files |
| 1274 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1275 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1276 | Installation directories: |
| 1277 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1278 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1279 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1280 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1281 | |
| 1282 | By default, \`make install' will install all the files in |
| 1283 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1284 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1285 | for instance \`--prefix=\$HOME'. |
| 1286 | |
| 1287 | For better control, use the options below. |
| 1288 | |
| 1289 | Fine tuning of the installation directories: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1290 | --bindir=DIR user executables [EPREFIX/bin] |
| 1291 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1292 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1293 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1294 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1295 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1296 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1297 | --includedir=DIR C header files [PREFIX/include] |
| 1298 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1299 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1300 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1301 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1302 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1303 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1304 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1305 | --htmldir=DIR html documentation [DOCDIR] |
| 1306 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1307 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1308 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1309 | _ACEOF |
| 1310 | |
| 1311 | cat <<\_ACEOF |
| 1312 | _ACEOF |
| 1313 | fi |
| 1314 | |
| 1315 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1316 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1317 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1318 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1319 | cat <<\_ACEOF |
| 1320 | |
| 1321 | Optional Features: |
| 1322 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1323 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1324 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1325 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1326 | --enable-framework[=INSTALLDIR] |
| 1327 | Build (MacOSX|Darwin) framework |
| 1328 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1329 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1330 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1331 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1332 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1333 | --enable-big-digits[=BITS] |
| 1334 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1335 | --enable-unicode[=ucs[24]] |
| 1336 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1337 | |
| 1338 | Optional Packages: |
| 1339 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1340 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1341 | --with-universal-archs=ARCH |
| 1342 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1343 | "64-bit", "3-way", "intel" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1344 | --with-framework-name=FRAMEWORK |
| 1345 | specify an alternate name of the framework built |
| 1346 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1347 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1348 | --with-cxx-main=<compiler> |
| 1349 | compile main() and link python executable with C++ |
| 1350 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1351 | --with-suffix=.exe set executable suffix |
| 1352 | --with-pydebug build with Py_DEBUG defined |
| 1353 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1354 | --with-system-expat build pyexpat module using an installed expat |
| 1355 | library |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1356 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1357 | --with-dbmliborder=db1:db2:... |
| 1358 | order to check db backends for dbm. Valid value is a |
| 1359 | colon separated string with the backend names |
| 1360 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1361 | --with-signal-module disable/enable signal module |
| 1362 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1363 | --with(out)-threads[=DIRECTORY] |
| 1364 | disable/enable thread support |
| 1365 | --with(out)-thread[=DIRECTORY] |
| 1366 | deprecated; use --with(out)-threads |
| 1367 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1368 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1369 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1370 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1371 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1372 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1373 | --with-fpectl enable SIGFPE catching |
| 1374 | --with-libm=STRING math library |
| 1375 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1376 | |
| 1377 | Some influential environment variables: |
| 1378 | CC C compiler command |
| 1379 | CFLAGS C compiler flags |
| 1380 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1381 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1382 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1383 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1384 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1385 | CPP C preprocessor |
| 1386 | |
| 1387 | Use these variables to override the choices made by `configure' or to help |
| 1388 | it to find libraries and programs with nonstandard names/locations. |
| 1389 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1390 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1391 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1392 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1393 | fi |
| 1394 | |
| 1395 | if test "$ac_init_help" = "recursive"; then |
| 1396 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1397 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1398 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1399 | ac_builddir=. |
| 1400 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1401 | case "$ac_dir" in |
| 1402 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1403 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1404 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1405 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1406 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1407 | case $ac_top_builddir_sub in |
| 1408 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1409 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1410 | esac ;; |
| 1411 | esac |
| 1412 | ac_abs_top_builddir=$ac_pwd |
| 1413 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1414 | # for backward compatibility: |
| 1415 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | |
| 1417 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1418 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1419 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1420 | ac_top_srcdir=$ac_top_builddir_sub |
| 1421 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1422 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1424 | ac_top_srcdir=$srcdir |
| 1425 | ac_abs_top_srcdir=$srcdir ;; |
| 1426 | *) # Relative name. |
| 1427 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1428 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1429 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1430 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1431 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1432 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1433 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1434 | # Check for guested configure. |
| 1435 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1436 | echo && |
| 1437 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1438 | elif test -f "$ac_srcdir/configure"; then |
| 1439 | echo && |
| 1440 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1441 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1442 | 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] | 1443 | fi || ac_status=$? |
| 1444 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1445 | done |
| 1446 | fi |
| 1447 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1448 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1449 | if $ac_init_version; then |
| 1450 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1451 | python configure 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1452 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1453 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1454 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1455 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1456 | This configure script is free software; the Free Software Foundation |
| 1457 | gives unlimited permission to copy, distribute and modify it. |
| 1458 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1459 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1460 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1461 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1462 | This file contains any messages produced by compilers while |
| 1463 | running configure, to aid debugging if configure makes a mistake. |
| 1464 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1465 | It was created by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1466 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1467 | |
| 1468 | $ $0 $@ |
| 1469 | |
| 1470 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1471 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1472 | { |
| 1473 | cat <<_ASUNAME |
| 1474 | ## --------- ## |
| 1475 | ## Platform. ## |
| 1476 | ## --------- ## |
| 1477 | |
| 1478 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1479 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1480 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1481 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1482 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1483 | |
| 1484 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1485 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1486 | |
| 1487 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1488 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1489 | /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] | 1490 | /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] | 1491 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1492 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1493 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1494 | |
| 1495 | _ASUNAME |
| 1496 | |
| 1497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1498 | for as_dir in $PATH |
| 1499 | do |
| 1500 | IFS=$as_save_IFS |
| 1501 | test -z "$as_dir" && as_dir=. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1502 | echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1503 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1504 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1505 | |
| 1506 | } >&5 |
| 1507 | |
| 1508 | cat >&5 <<_ACEOF |
| 1509 | |
| 1510 | |
| 1511 | ## ----------- ## |
| 1512 | ## Core tests. ## |
| 1513 | ## ----------- ## |
| 1514 | |
| 1515 | _ACEOF |
| 1516 | |
| 1517 | |
| 1518 | # Keep a trace of the command line. |
| 1519 | # 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] | 1520 | # 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] | 1521 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1522 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1523 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1524 | ac_configure_args0= |
| 1525 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1526 | ac_must_keep_next=false |
| 1527 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1528 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1529 | for ac_arg |
| 1530 | do |
| 1531 | case $ac_arg in |
| 1532 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1533 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1534 | | -silent | --silent | --silen | --sile | --sil) |
| 1535 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1536 | *\'*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1537 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1538 | esac |
| 1539 | case $ac_pass in |
| 1540 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1541 | 2) |
| 1542 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1543 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1544 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1545 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1546 | case $ac_arg in |
| 1547 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1548 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1549 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1550 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1551 | case "$ac_configure_args0 " in |
| 1552 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1553 | esac |
| 1554 | ;; |
| 1555 | -* ) ac_must_keep_next=true ;; |
| 1556 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1557 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1558 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1559 | ;; |
| 1560 | esac |
| 1561 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1562 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1563 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1564 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1565 | |
| 1566 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1567 | # config.log. We remove comments because anyway the quotes in there |
| 1568 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1569 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1570 | # 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] | 1571 | trap 'exit_status=$? |
| 1572 | # Save into config.log some information that might help in debugging. |
| 1573 | { |
| 1574 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1576 | cat <<\_ASBOX |
| 1577 | ## ---------------- ## |
| 1578 | ## Cache variables. ## |
| 1579 | ## ---------------- ## |
| 1580 | _ASBOX |
| 1581 | echo |
| 1582 | # 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] | 1583 | ( |
| 1584 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1585 | eval ac_val=\$$ac_var |
| 1586 | case $ac_val in #( |
| 1587 | *${as_nl}*) |
| 1588 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1589 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1590 | 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] | 1591 | esac |
| 1592 | case $ac_var in #( |
| 1593 | _ | IFS | as_nl) ;; #( |
| 1594 | *) $as_unset $ac_var ;; |
| 1595 | esac ;; |
| 1596 | esac |
| 1597 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1598 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1599 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1600 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1601 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1602 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1603 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1604 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1605 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1606 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1607 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1608 | esac | |
| 1609 | sort |
| 1610 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1611 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1612 | |
| 1613 | cat <<\_ASBOX |
| 1614 | ## ----------------- ## |
| 1615 | ## Output variables. ## |
| 1616 | ## ----------------- ## |
| 1617 | _ASBOX |
| 1618 | echo |
| 1619 | for ac_var in $ac_subst_vars |
| 1620 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1621 | eval ac_val=\$$ac_var |
| 1622 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1623 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1624 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1625 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1626 | done | sort |
| 1627 | echo |
| 1628 | |
| 1629 | if test -n "$ac_subst_files"; then |
| 1630 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1631 | ## ------------------- ## |
| 1632 | ## File substitutions. ## |
| 1633 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1634 | _ASBOX |
| 1635 | echo |
| 1636 | for ac_var in $ac_subst_files |
| 1637 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1638 | eval ac_val=\$$ac_var |
| 1639 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1640 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1641 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1642 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1643 | done | sort |
| 1644 | echo |
| 1645 | fi |
| 1646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1647 | if test -s confdefs.h; then |
| 1648 | cat <<\_ASBOX |
| 1649 | ## ----------- ## |
| 1650 | ## confdefs.h. ## |
| 1651 | ## ----------- ## |
| 1652 | _ASBOX |
| 1653 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1654 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1655 | echo |
| 1656 | fi |
| 1657 | test "$ac_signal" != 0 && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1658 | echo "$as_me: caught signal $ac_signal" |
| 1659 | echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1660 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1661 | rm -f core *.core core.conftest.* && |
| 1662 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1663 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1664 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1665 | for ac_signal in 1 2 13 15; do |
| 1666 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1667 | done |
| 1668 | ac_signal=0 |
| 1669 | |
| 1670 | # 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] | 1671 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1672 | |
| 1673 | # Predefined preprocessor variables. |
| 1674 | |
| 1675 | cat >>confdefs.h <<_ACEOF |
| 1676 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1677 | _ACEOF |
| 1678 | |
| 1679 | |
| 1680 | cat >>confdefs.h <<_ACEOF |
| 1681 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1682 | _ACEOF |
| 1683 | |
| 1684 | |
| 1685 | cat >>confdefs.h <<_ACEOF |
| 1686 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1687 | _ACEOF |
| 1688 | |
| 1689 | |
| 1690 | cat >>confdefs.h <<_ACEOF |
| 1691 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1692 | _ACEOF |
| 1693 | |
| 1694 | |
| 1695 | cat >>confdefs.h <<_ACEOF |
| 1696 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1697 | _ACEOF |
| 1698 | |
| 1699 | |
| 1700 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1701 | # Prefer explicitly selected file to automatically selected ones. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1702 | if test -n "$CONFIG_SITE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1703 | set x "$CONFIG_SITE" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1704 | elif test "x$prefix" != xNONE; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1705 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1706 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1707 | set x "$ac_default_prefix/share/config.site" \ |
| 1708 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1709 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1710 | shift |
| 1711 | for ac_site_file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1712 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1713 | if test -r "$ac_site_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1714 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1715 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1716 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1717 | . "$ac_site_file" |
| 1718 | fi |
| 1719 | done |
| 1720 | |
| 1721 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1722 | # Some versions of bash will fail to source /dev/null (special |
| 1723 | # files actually), so we avoid doing that. |
| 1724 | if test -f "$cache_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1725 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1726 | echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1727 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1728 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1729 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1730 | esac |
| 1731 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1732 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1733 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1734 | echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1735 | >$cache_file |
| 1736 | fi |
| 1737 | |
| 1738 | # Check that the precious variables saved in the cache have kept the same |
| 1739 | # value. |
| 1740 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1741 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1742 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1743 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1744 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1745 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1746 | case $ac_old_set,$ac_new_set in |
| 1747 | set,) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1748 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1749 | 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] | 1750 | ac_cache_corrupted=: ;; |
| 1751 | ,set) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1752 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1753 | 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] | 1754 | ac_cache_corrupted=: ;; |
| 1755 | ,);; |
| 1756 | *) |
| 1757 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1758 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1759 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1760 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1761 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1762 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1763 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1764 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1765 | fi;; |
| 1766 | esac |
| 1767 | # Pass precious variables to config.status. |
| 1768 | if test "$ac_new_set" = set; then |
| 1769 | case $ac_new_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1770 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1771 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1772 | esac |
| 1773 | case " $ac_configure_args " in |
| 1774 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1775 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1776 | esac |
| 1777 | fi |
| 1778 | done |
| 1779 | if $ac_cache_corrupted; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1780 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1781 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1782 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1783 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1784 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1785 | fi |
| 1786 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
| 1804 | |
| 1805 | |
| 1806 | |
| 1807 | |
| 1808 | |
| 1809 | |
| 1810 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1811 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1812 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1816 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1817 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1818 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1819 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1820 | |
| 1821 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1822 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 1823 | if test "$prefix" != "/"; then |
| 1824 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1825 | fi |
| 1826 | |
| 1827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1828 | |
| 1829 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1830 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1831 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1832 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1833 | # with other autoconf-based packages that include Python.h |
| 1834 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1835 | rm confdefs.h |
| 1836 | mv confdefs.h.new confdefs.h |
| 1837 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1838 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1839 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1840 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1841 | |
| 1842 | SOVERSION=1.0 |
| 1843 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1844 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1845 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1846 | |
| 1847 | cat >>confdefs.h <<\_ACEOF |
| 1848 | #define _GNU_SOURCE 1 |
| 1849 | _ACEOF |
| 1850 | |
| 1851 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1852 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1853 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1854 | # them. |
| 1855 | |
| 1856 | cat >>confdefs.h <<\_ACEOF |
| 1857 | #define _NETBSD_SOURCE 1 |
| 1858 | _ACEOF |
| 1859 | |
| 1860 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1861 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1862 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1863 | # them. |
| 1864 | |
| 1865 | cat >>confdefs.h <<\_ACEOF |
| 1866 | #define __BSD_VISIBLE 1 |
| 1867 | _ACEOF |
| 1868 | |
| 1869 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1870 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1871 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1872 | |
| 1873 | cat >>confdefs.h <<\_ACEOF |
| 1874 | #define _BSD_TYPES 1 |
| 1875 | _ACEOF |
| 1876 | |
| 1877 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1878 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1879 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1880 | # them. |
| 1881 | |
| 1882 | cat >>confdefs.h <<\_ACEOF |
| 1883 | #define _DARWIN_C_SOURCE 1 |
| 1884 | _ACEOF |
| 1885 | |
| 1886 | |
| 1887 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1888 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1889 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1890 | # Arguments passed to configure. |
| 1891 | |
| 1892 | CONFIG_ARGS="$ac_configure_args" |
| 1893 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1894 | { echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5 |
| 1895 | echo $ECHO_N "checking for --enable-universalsdk... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1896 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1897 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1898 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1899 | case $enableval in |
| 1900 | yes) |
| 1901 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1902 | if test ! -d "${enableval}" |
| 1903 | then |
| 1904 | enableval=/ |
| 1905 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1906 | ;; |
| 1907 | esac |
| 1908 | case $enableval in |
| 1909 | no) |
| 1910 | UNIVERSALSDK= |
| 1911 | enable_universalsdk= |
| 1912 | ;; |
| 1913 | *) |
| 1914 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1915 | if test ! -d "${UNIVERSALSDK}" |
| 1916 | then |
| 1917 | { { echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5 |
| 1918 | echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;} |
| 1919 | { (exit 1); exit 1; }; } |
| 1920 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1921 | ;; |
| 1922 | esac |
| 1923 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1924 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1925 | else |
| 1926 | |
| 1927 | UNIVERSALSDK= |
| 1928 | enable_universalsdk= |
| 1929 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1930 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1931 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1932 | if test -n "${UNIVERSALSDK}" |
| 1933 | then |
| 1934 | { echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5 |
| 1935 | echo "${ECHO_T}${UNIVERSALSDK}" >&6; } |
| 1936 | else |
| 1937 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1938 | echo "${ECHO_T}no" >&6; } |
| 1939 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1940 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1941 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 1942 | |
| 1943 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1944 | UNIVERSAL_ARCHS="32-bit" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 1945 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1946 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1947 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1948 | |
| 1949 | # Check whether --with-universal-archs was given. |
| 1950 | if test "${with_universal_archs+set}" = set; then |
| 1951 | withval=$with_universal_archs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1952 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1953 | echo "${ECHO_T}$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1954 | UNIVERSAL_ARCHS="$withval" |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1955 | if test "${enable_universalsdk}" ; then |
| 1956 | : |
| 1957 | else |
| 1958 | { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5 |
| 1959 | echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;} |
| 1960 | { (exit 1); exit 1; }; } |
| 1961 | fi |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1962 | |
| 1963 | else |
| 1964 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1965 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1966 | echo "${ECHO_T}32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1967 | |
| 1968 | fi |
| 1969 | |
| 1970 | |
| 1971 | |
| 1972 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1973 | |
| 1974 | # Check whether --with-framework-name was given. |
| 1975 | if test "${with_framework_name+set}" = set; then |
| 1976 | withval=$with_framework_name; |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1977 | if test "${enable_framework}"; then |
| 1978 | : |
| 1979 | else |
| 1980 | { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5 |
| 1981 | echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;} |
| 1982 | { (exit 1); exit 1; }; } |
| 1983 | fi |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1984 | PYTHONFRAMEWORK=${withval} |
| 1985 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1986 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1987 | |
| 1988 | else |
| 1989 | |
| 1990 | PYTHONFRAMEWORK=Python |
| 1991 | PYTHONFRAMEWORKDIR=Python.framework |
| 1992 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1993 | |
| 1994 | fi |
| 1995 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1996 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1997 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1998 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1999 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2000 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2001 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2002 | esac |
| 2003 | case $enableval in |
| 2004 | no) |
| 2005 | PYTHONFRAMEWORK= |
| 2006 | PYTHONFRAMEWORKDIR=no-framework |
| 2007 | PYTHONFRAMEWORKPREFIX= |
| 2008 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2009 | FRAMEWORKINSTALLFIRST= |
| 2010 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2011 | FRAMEWORKALTINSTALLFIRST= |
| 2012 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2013 | if test "x${prefix}" = "xNONE"; then |
| 2014 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2015 | else |
| 2016 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2017 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2018 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2019 | ;; |
| 2020 | *) |
| 2021 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2022 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2023 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2024 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2025 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 2026 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2027 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2028 | if test "x${prefix}" = "xNONE" ; then |
| 2029 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2030 | else |
| 2031 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2032 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2033 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2034 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2035 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2036 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2037 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2038 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2039 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2040 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2041 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2042 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2043 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2044 | |
| 2045 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2046 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2047 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2048 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2049 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2050 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2051 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2052 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2053 | PYTHONFRAMEWORKPREFIX= |
| 2054 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2055 | FRAMEWORKINSTALLFIRST= |
| 2056 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2057 | FRAMEWORKALTINSTALLFIRST= |
| 2058 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2059 | if test "x${prefix}" = "xNONE" ; then |
| 2060 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2061 | else |
| 2062 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2063 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2064 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2065 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2066 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2067 | fi |
| 2068 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2069 | |
| 2070 | |
| 2071 | |
| 2072 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2073 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2074 | |
| 2075 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2076 | |
| 2077 | |
| 2078 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2079 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2080 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2081 | ## AC_HELP_STRING(--with-dyld, |
| 2082 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2083 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2084 | # Set name for machine-dependent library files |
| 2085 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2086 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2087 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2088 | if test -z "$MACHDEP" |
| 2089 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2090 | ac_sys_system=`uname -s` |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2091 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2092 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2093 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2094 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2095 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2096 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2097 | ac_md_system=`echo $ac_sys_system | |
| 2098 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2099 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2100 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2101 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2102 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2103 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2104 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2105 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2106 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2107 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2108 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2109 | esac |
| 2110 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2111 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2112 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2113 | # disable features if it is defined, without any means to access these |
| 2114 | # features as extensions. For these systems, we skip the definition of |
| 2115 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2116 | # some feature, make sure there is no alternative way to access this |
| 2117 | # feature. Also, when using wildcards, make sure you have verified the |
| 2118 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2119 | # wildcard, and that the wildcard does not include future systems |
| 2120 | # (which may remove their limitations). |
| 2121 | case $ac_sys_system/$ac_sys_release in |
| 2122 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2123 | # 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] | 2124 | # 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] | 2125 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 2126 | # OpenBSD 4.6, but is fixed in 4.7. |
| 2127 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 2128 | define_xopen_source=no |
| 2129 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2130 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2131 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2132 | |
| 2133 | cat >>confdefs.h <<\_ACEOF |
| 2134 | #define _BSD_SOURCE 1 |
| 2135 | _ACEOF |
| 2136 | |
| 2137 | ;; |
Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 2138 | OpenBSD/4.[789]) |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 2139 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2140 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2141 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2142 | |
| 2143 | cat >>confdefs.h <<\_ACEOF |
| 2144 | #define _BSD_SOURCE 1 |
| 2145 | _ACEOF |
| 2146 | |
| 2147 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2148 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2149 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2150 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 2151 | 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] | 2152 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2153 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2154 | # of union __?sigval. Reported by Stuart Bishop. |
| 2155 | SunOS/5.6) |
| 2156 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2157 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2158 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2159 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2160 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2161 | define_xopen_source=no;; |
| 2162 | # 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] | 2163 | # 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] | 2164 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2165 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 2166 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2167 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2168 | FreeBSD/4.*) |
| 2169 | define_xopen_source=no;; |
| 2170 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2171 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2172 | # identifies itself as Darwin/7.* |
| 2173 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2174 | # disables platform specific features beyond repair. |
| 2175 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2176 | # has no effect, don't bother defining them |
| 2177 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2178 | define_xopen_source=no;; |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 2179 | Darwin/1[0-9].*) |
| 2180 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2181 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2182 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2183 | # 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] | 2184 | AIX/4) |
| 2185 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2186 | AIX/5) |
| 2187 | if test `uname -r` -eq 1; then |
| 2188 | define_xopen_source=no |
| 2189 | fi |
| 2190 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 2191 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2192 | # defining NI_NUMERICHOST. |
| 2193 | QNX/6.3.2) |
| 2194 | define_xopen_source=no |
| 2195 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2196 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2197 | esac |
| 2198 | |
| 2199 | if test $define_xopen_source = yes |
| 2200 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2201 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2202 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2203 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2204 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2205 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2206 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2207 | |
| 2208 | cat >>confdefs.h <<\_ACEOF |
| 2209 | #define _XOPEN_SOURCE 500 |
| 2210 | _ACEOF |
| 2211 | |
| 2212 | ;; |
| 2213 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2214 | |
| 2215 | cat >>confdefs.h <<\_ACEOF |
| 2216 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2217 | _ACEOF |
| 2218 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2219 | ;; |
| 2220 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2221 | |
| 2222 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2223 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2224 | # several APIs are not declared. Since this is also needed in some |
| 2225 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2226 | # except for Solaris 10, where it must not be defined, |
| 2227 | # as it implies XPG4.2 |
| 2228 | case $ac_sys_system/$ac_sys_release in |
| 2229 | SunOS/5.10) |
| 2230 | ;; |
| 2231 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2232 | |
| 2233 | cat >>confdefs.h <<\_ACEOF |
| 2234 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2235 | _ACEOF |
| 2236 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2237 | ;; |
| 2238 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2239 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2240 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2241 | cat >>confdefs.h <<\_ACEOF |
| 2242 | #define _POSIX_C_SOURCE 200112L |
| 2243 | _ACEOF |
| 2244 | |
| 2245 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2246 | fi |
| 2247 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2248 | # |
| 2249 | # SGI compilers allow the specification of the both the ABI and the |
| 2250 | # ISA on the command line. Depending on the values of these switches, |
| 2251 | # different and often incompatable code will be generated. |
| 2252 | # |
| 2253 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2254 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2255 | # variable is also adjusted. |
| 2256 | # |
| 2257 | |
| 2258 | if test ! -z "$SGI_ABI" |
| 2259 | then |
| 2260 | CC="cc $SGI_ABI" |
| 2261 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2262 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2263 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2264 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2265 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2266 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2267 | # And add extra plat-mac for darwin |
| 2268 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2269 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2270 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2271 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2272 | if test -z "$EXTRAPLATDIR" |
| 2273 | then |
| 2274 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2275 | darwin) |
| 2276 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2277 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2278 | ;; |
| 2279 | *) |
| 2280 | EXTRAPLATDIR="" |
| 2281 | EXTRAMACHDEPPATH="" |
| 2282 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2283 | esac |
| 2284 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2285 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2286 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2287 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2288 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2289 | # it may influence the way we can build extensions, so distutils |
| 2290 | # needs to check it |
| 2291 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2292 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2293 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2294 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2295 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2296 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2297 | echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2298 | ac_sys_machine=`uname -m` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2299 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2300 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2301 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2302 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2303 | |
| 2304 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2305 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2306 | # just to get things to compile and link. Users are free to override OPT |
| 2307 | # when running configure or make. The build should not break if they do. |
| 2308 | # BASECFLAGS should generally not be messed with, however. |
| 2309 | |
| 2310 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2311 | # on that fiddles with OPT and BASECFLAGS? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2312 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2313 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2314 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2315 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2316 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2317 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2318 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 2319 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2320 | without_gcc=yes;; |
| 2321 | yes) CC=gcc |
| 2322 | without_gcc=no;; |
| 2323 | *) CC=$withval |
| 2324 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2325 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2326 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2327 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2328 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2329 | AIX*) CC=cc_r |
| 2330 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2331 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2332 | case $BE_HOST_CPU in |
| 2333 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2334 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2335 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2336 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2337 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2338 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2339 | ;; |
| 2340 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2341 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2342 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2343 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2344 | ;; |
| 2345 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2346 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2347 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2348 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2349 | ;; |
| 2350 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2351 | AR="\$(srcdir)/Modules/ar_beos" |
| 2352 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2353 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2354 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2355 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2356 | fi |
| 2357 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2358 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2359 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2360 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2361 | # If the user switches compilers, we can't believe the cache |
| 2362 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2363 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2364 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2365 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2366 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2367 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2368 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2369 | fi |
| 2370 | |
Victor Stinner | 6cbf90f | 2010-03-25 00:21:53 +0000 | [diff] [blame] | 2371 | save_CFLAGS=$CFLAGS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2372 | ac_ext=c |
| 2373 | ac_cpp='$CPP $CPPFLAGS' |
| 2374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2377 | if test -n "$ac_tool_prefix"; then |
| 2378 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2379 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2380 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2382 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2384 | else |
| 2385 | if test -n "$CC"; then |
| 2386 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2387 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2389 | for as_dir in $PATH |
| 2390 | do |
| 2391 | IFS=$as_save_IFS |
| 2392 | test -z "$as_dir" && as_dir=. |
| 2393 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2395 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2397 | break 2 |
| 2398 | fi |
| 2399 | done |
| 2400 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2401 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2402 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2403 | fi |
| 2404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2405 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2406 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2407 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2408 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2409 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2410 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2411 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2412 | fi |
| 2413 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2415 | fi |
| 2416 | if test -z "$ac_cv_prog_CC"; then |
| 2417 | ac_ct_CC=$CC |
| 2418 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2419 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2420 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2422 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2424 | else |
| 2425 | if test -n "$ac_ct_CC"; then |
| 2426 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2427 | else |
| 2428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2429 | for as_dir in $PATH |
| 2430 | do |
| 2431 | IFS=$as_save_IFS |
| 2432 | test -z "$as_dir" && as_dir=. |
| 2433 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2435 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2436 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2437 | break 2 |
| 2438 | fi |
| 2439 | done |
| 2440 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2441 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2442 | |
| 2443 | fi |
| 2444 | fi |
| 2445 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2446 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2447 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2448 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2449 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2450 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2451 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | fi |
| 2453 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2454 | if test "x$ac_ct_CC" = x; then |
| 2455 | CC="" |
| 2456 | else |
| 2457 | case $cross_compiling:$ac_tool_warned in |
| 2458 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2459 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2460 | whose name does not start with the host triplet. If you think this |
| 2461 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2462 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2463 | whose name does not start with the host triplet. If you think this |
| 2464 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2465 | ac_tool_warned=yes ;; |
| 2466 | esac |
| 2467 | CC=$ac_ct_CC |
| 2468 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2469 | else |
| 2470 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2471 | fi |
| 2472 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2473 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2474 | if test -n "$ac_tool_prefix"; then |
| 2475 | # 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] | 2476 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2477 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2481 | else |
| 2482 | if test -n "$CC"; then |
| 2483 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2484 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2486 | for as_dir in $PATH |
| 2487 | do |
| 2488 | IFS=$as_save_IFS |
| 2489 | test -z "$as_dir" && as_dir=. |
| 2490 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2492 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2494 | break 2 |
| 2495 | fi |
| 2496 | done |
| 2497 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2498 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2499 | |
| 2500 | fi |
| 2501 | fi |
| 2502 | CC=$ac_cv_prog_CC |
| 2503 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2504 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2505 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2506 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2507 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2508 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2509 | fi |
| 2510 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2512 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2513 | fi |
| 2514 | if test -z "$CC"; then |
| 2515 | # Extract the first word of "cc", so it can be a program name with args. |
| 2516 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2517 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | else |
| 2522 | if test -n "$CC"; then |
| 2523 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2524 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2525 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2527 | for as_dir in $PATH |
| 2528 | do |
| 2529 | IFS=$as_save_IFS |
| 2530 | test -z "$as_dir" && as_dir=. |
| 2531 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2533 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2534 | ac_prog_rejected=yes |
| 2535 | continue |
| 2536 | fi |
| 2537 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2539 | break 2 |
| 2540 | fi |
| 2541 | done |
| 2542 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2543 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2544 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2545 | if test $ac_prog_rejected = yes; then |
| 2546 | # We found a bogon in the path, so make sure we never use it. |
| 2547 | set dummy $ac_cv_prog_CC |
| 2548 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2549 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2550 | # We chose a different compiler from the bogus one. |
| 2551 | # However, it has the same basename, so the bogon will be chosen |
| 2552 | # first if we set CC to just the basename; use the full file name. |
| 2553 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2554 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2555 | fi |
| 2556 | fi |
| 2557 | fi |
| 2558 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2559 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2560 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2561 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2562 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2563 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2564 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2565 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2566 | fi |
| 2567 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2569 | fi |
| 2570 | if test -z "$CC"; then |
| 2571 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2572 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2573 | do |
| 2574 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2575 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2576 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2580 | else |
| 2581 | if test -n "$CC"; then |
| 2582 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2583 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2585 | for as_dir in $PATH |
| 2586 | do |
| 2587 | IFS=$as_save_IFS |
| 2588 | test -z "$as_dir" && as_dir=. |
| 2589 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2591 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2592 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2594 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2595 | done |
| 2596 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2597 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2598 | |
| 2599 | fi |
| 2600 | fi |
| 2601 | CC=$ac_cv_prog_CC |
| 2602 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2603 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2604 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2606 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2607 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2608 | fi |
| 2609 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2611 | test -n "$CC" && break |
| 2612 | done |
| 2613 | fi |
| 2614 | if test -z "$CC"; then |
| 2615 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2616 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2617 | do |
| 2618 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2619 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2620 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2622 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | else |
| 2625 | if test -n "$ac_ct_CC"; then |
| 2626 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2627 | else |
| 2628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2629 | for as_dir in $PATH |
| 2630 | do |
| 2631 | IFS=$as_save_IFS |
| 2632 | test -z "$as_dir" && as_dir=. |
| 2633 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2635 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2636 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2637 | break 2 |
| 2638 | fi |
| 2639 | done |
| 2640 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2641 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2643 | fi |
| 2644 | fi |
| 2645 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2646 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2647 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2648 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2649 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2650 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2651 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2652 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2653 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2655 | test -n "$ac_ct_CC" && break |
| 2656 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2657 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2658 | if test "x$ac_ct_CC" = x; then |
| 2659 | CC="" |
| 2660 | else |
| 2661 | case $cross_compiling:$ac_tool_warned in |
| 2662 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2663 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2664 | whose name does not start with the host triplet. If you think this |
| 2665 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2666 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2667 | whose name does not start with the host triplet. If you think this |
| 2668 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2669 | ac_tool_warned=yes ;; |
| 2670 | esac |
| 2671 | CC=$ac_ct_CC |
| 2672 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 | fi |
| 2674 | |
| 2675 | fi |
| 2676 | |
| 2677 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2678 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2679 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2680 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2681 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2682 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2683 | |
| 2684 | # Provide some information about the compiler. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2685 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2686 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2687 | { (ac_try="$ac_compiler --version >&5" |
| 2688 | case "(($ac_try" in |
| 2689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2690 | *) ac_try_echo=$ac_try;; |
| 2691 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2693 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2694 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2696 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2697 | { (ac_try="$ac_compiler -v >&5" |
| 2698 | case "(($ac_try" in |
| 2699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2700 | *) ac_try_echo=$ac_try;; |
| 2701 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2703 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2704 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2706 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2707 | { (ac_try="$ac_compiler -V >&5" |
| 2708 | case "(($ac_try" in |
| 2709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2710 | *) ac_try_echo=$ac_try;; |
| 2711 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2713 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2714 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2716 | (exit $ac_status); } |
| 2717 | |
| 2718 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2719 | /* confdefs.h. */ |
| 2720 | _ACEOF |
| 2721 | cat confdefs.h >>conftest.$ac_ext |
| 2722 | cat >>conftest.$ac_ext <<_ACEOF |
| 2723 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2725 | int |
| 2726 | main () |
| 2727 | { |
| 2728 | |
| 2729 | ; |
| 2730 | return 0; |
| 2731 | } |
| 2732 | _ACEOF |
| 2733 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2734 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2735 | # Try to create an executable without -o first, disregard a.out. |
| 2736 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2737 | # of exeext. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2738 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2739 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2740 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2741 | # |
| 2742 | # List of possible output files, starting from the most likely. |
| 2743 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2744 | # only as a last resort. b.out is created by i960 compilers. |
| 2745 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2746 | # |
| 2747 | # The IRIX 6 linker writes into existing files which may not be |
| 2748 | # executable, retaining their permissions. Remove them first so a |
| 2749 | # subsequent execution test works. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2750 | ac_rmfiles= |
| 2751 | for ac_file in $ac_files |
| 2752 | do |
| 2753 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2754 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2755 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2756 | esac |
| 2757 | done |
| 2758 | rm -f $ac_rmfiles |
| 2759 | |
| 2760 | if { (ac_try="$ac_link_default" |
| 2761 | case "(($ac_try" in |
| 2762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2763 | *) ac_try_echo=$ac_try;; |
| 2764 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2766 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2767 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2769 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2770 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2771 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2772 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2773 | # so that the user can short-circuit this test for compilers unknown to |
| 2774 | # Autoconf. |
| 2775 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2776 | do |
| 2777 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2778 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2779 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2780 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2781 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2782 | # We found the default executable, but exeext='' is most |
| 2783 | # certainly right. |
| 2784 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2785 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2786 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2787 | then :; else |
| 2788 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2789 | fi |
| 2790 | # We set ac_cv_exeext here because the later test for it is not |
| 2791 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2792 | # argument, so we may need to know it at that point already. |
| 2793 | # Even if this section looks crufty: it has the advantage of |
| 2794 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2795 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2796 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2797 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2798 | esac |
| 2799 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2800 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2801 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2802 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2803 | ac_file='' |
| 2804 | fi |
| 2805 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2806 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2807 | echo "${ECHO_T}$ac_file" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2808 | if test -z "$ac_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2809 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2811 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2812 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2813 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2814 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2815 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2816 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2817 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2819 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2820 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2821 | # Check that the compiler produces executables we can run. If not, either |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2822 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2823 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2824 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2825 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2826 | # If not cross compiling, check that we can run a simple program. |
| 2827 | if test "$cross_compiling" != yes; then |
| 2828 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2829 | { (case "(($ac_try" in |
| 2830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2831 | *) ac_try_echo=$ac_try;; |
| 2832 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2834 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2835 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2837 | (exit $ac_status); }; }; then |
| 2838 | cross_compiling=no |
| 2839 | else |
| 2840 | if test "$cross_compiling" = maybe; then |
| 2841 | cross_compiling=yes |
| 2842 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2843 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2844 | If you meant to cross compile, use \`--host'. |
| 2845 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2846 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2847 | If you meant to cross compile, use \`--host'. |
| 2848 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2849 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2850 | fi |
| 2851 | fi |
| 2852 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2853 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2854 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2855 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2856 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2857 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2858 | # Check that the compiler produces executables we can run. If not, either |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2859 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2860 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2861 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2862 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2863 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2864 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2865 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2866 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2867 | if { (ac_try="$ac_link" |
| 2868 | case "(($ac_try" in |
| 2869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2870 | *) ac_try_echo=$ac_try;; |
| 2871 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2873 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2874 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2876 | (exit $ac_status); }; then |
| 2877 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2878 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2879 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2880 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2881 | for ac_file in conftest.exe conftest conftest.*; do |
| 2882 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2883 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2884 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2885 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2886 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2887 | * ) break;; |
| 2888 | esac |
| 2889 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2890 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2891 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2892 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2893 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2894 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2895 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2896 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2898 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2899 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2900 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2901 | |
| 2902 | rm -f conftest.$ac_ext |
| 2903 | EXEEXT=$ac_cv_exeext |
| 2904 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2905 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2906 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2907 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2910 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2911 | /* confdefs.h. */ |
| 2912 | _ACEOF |
| 2913 | cat confdefs.h >>conftest.$ac_ext |
| 2914 | cat >>conftest.$ac_ext <<_ACEOF |
| 2915 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2917 | int |
| 2918 | main () |
| 2919 | { |
| 2920 | |
| 2921 | ; |
| 2922 | return 0; |
| 2923 | } |
| 2924 | _ACEOF |
| 2925 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2926 | if { (ac_try="$ac_compile" |
| 2927 | case "(($ac_try" in |
| 2928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2929 | *) ac_try_echo=$ac_try;; |
| 2930 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2932 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2933 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2935 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2936 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2937 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2938 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2939 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2940 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2941 | break;; |
| 2942 | esac |
| 2943 | done |
| 2944 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2945 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2947 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2948 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2949 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2950 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2951 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2952 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2953 | fi |
| 2954 | |
| 2955 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2956 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2957 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2958 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2959 | OBJEXT=$ac_cv_objext |
| 2960 | ac_objext=$OBJEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2961 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2962 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2963 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2965 | else |
| 2966 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2967 | /* confdefs.h. */ |
| 2968 | _ACEOF |
| 2969 | cat confdefs.h >>conftest.$ac_ext |
| 2970 | cat >>conftest.$ac_ext <<_ACEOF |
| 2971 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2973 | int |
| 2974 | main () |
| 2975 | { |
| 2976 | #ifndef __GNUC__ |
| 2977 | choke me |
| 2978 | #endif |
| 2979 | |
| 2980 | ; |
| 2981 | return 0; |
| 2982 | } |
| 2983 | _ACEOF |
| 2984 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2985 | if { (ac_try="$ac_compile" |
| 2986 | case "(($ac_try" in |
| 2987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2988 | *) ac_try_echo=$ac_try;; |
| 2989 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2991 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2992 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2994 | rm -f conftest.er1 |
| 2995 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2997 | (exit $ac_status); } && { |
| 2998 | test -z "$ac_c_werror_flag" || |
| 2999 | test ! -s conftest.err |
| 3000 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3001 | ac_compiler_gnu=yes |
| 3002 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3003 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3005 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3006 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3007 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3008 | |
| 3009 | 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] | 3010 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3011 | |
| 3012 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3013 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3014 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3015 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3016 | ac_test_CFLAGS=${CFLAGS+set} |
| 3017 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3018 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3019 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3020 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3022 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3023 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3024 | ac_c_werror_flag=yes |
| 3025 | ac_cv_prog_cc_g=no |
| 3026 | CFLAGS="-g" |
| 3027 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3028 | /* confdefs.h. */ |
| 3029 | _ACEOF |
| 3030 | cat confdefs.h >>conftest.$ac_ext |
| 3031 | cat >>conftest.$ac_ext <<_ACEOF |
| 3032 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3034 | int |
| 3035 | main () |
| 3036 | { |
| 3037 | |
| 3038 | ; |
| 3039 | return 0; |
| 3040 | } |
| 3041 | _ACEOF |
| 3042 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3043 | if { (ac_try="$ac_compile" |
| 3044 | case "(($ac_try" in |
| 3045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3046 | *) ac_try_echo=$ac_try;; |
| 3047 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3049 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3050 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3052 | rm -f conftest.er1 |
| 3053 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3055 | (exit $ac_status); } && { |
| 3056 | test -z "$ac_c_werror_flag" || |
| 3057 | test ! -s conftest.err |
| 3058 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3059 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3060 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3061 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3063 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3064 | CFLAGS="" |
| 3065 | cat >conftest.$ac_ext <<_ACEOF |
| 3066 | /* confdefs.h. */ |
| 3067 | _ACEOF |
| 3068 | cat confdefs.h >>conftest.$ac_ext |
| 3069 | cat >>conftest.$ac_ext <<_ACEOF |
| 3070 | /* end confdefs.h. */ |
| 3071 | |
| 3072 | int |
| 3073 | main () |
| 3074 | { |
| 3075 | |
| 3076 | ; |
| 3077 | return 0; |
| 3078 | } |
| 3079 | _ACEOF |
| 3080 | rm -f conftest.$ac_objext |
| 3081 | if { (ac_try="$ac_compile" |
| 3082 | case "(($ac_try" in |
| 3083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3084 | *) ac_try_echo=$ac_try;; |
| 3085 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3087 | (eval "$ac_compile") 2>conftest.er1 |
| 3088 | ac_status=$? |
| 3089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3090 | rm -f conftest.er1 |
| 3091 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3093 | (exit $ac_status); } && { |
| 3094 | test -z "$ac_c_werror_flag" || |
| 3095 | test ! -s conftest.err |
| 3096 | } && test -s conftest.$ac_objext; then |
| 3097 | : |
| 3098 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3099 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3101 | |
| 3102 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3103 | CFLAGS="-g" |
| 3104 | cat >conftest.$ac_ext <<_ACEOF |
| 3105 | /* confdefs.h. */ |
| 3106 | _ACEOF |
| 3107 | cat confdefs.h >>conftest.$ac_ext |
| 3108 | cat >>conftest.$ac_ext <<_ACEOF |
| 3109 | /* end confdefs.h. */ |
| 3110 | |
| 3111 | int |
| 3112 | main () |
| 3113 | { |
| 3114 | |
| 3115 | ; |
| 3116 | return 0; |
| 3117 | } |
| 3118 | _ACEOF |
| 3119 | rm -f conftest.$ac_objext |
| 3120 | if { (ac_try="$ac_compile" |
| 3121 | case "(($ac_try" in |
| 3122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3123 | *) ac_try_echo=$ac_try;; |
| 3124 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3126 | (eval "$ac_compile") 2>conftest.er1 |
| 3127 | ac_status=$? |
| 3128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3129 | rm -f conftest.er1 |
| 3130 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3132 | (exit $ac_status); } && { |
| 3133 | test -z "$ac_c_werror_flag" || |
| 3134 | test ! -s conftest.err |
| 3135 | } && test -s conftest.$ac_objext; then |
| 3136 | ac_cv_prog_cc_g=yes |
| 3137 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3138 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3140 | |
| 3141 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3142 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3143 | |
| 3144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3145 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3146 | |
| 3147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3148 | fi |
| 3149 | |
| 3150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3151 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3152 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3153 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3154 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3155 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3156 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3157 | elif test $ac_cv_prog_cc_g = yes; then |
| 3158 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3159 | CFLAGS="-g -O2" |
| 3160 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3161 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3162 | fi |
| 3163 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3164 | if test "$GCC" = yes; then |
| 3165 | CFLAGS="-O2" |
| 3166 | else |
| 3167 | CFLAGS= |
| 3168 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3169 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3170 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3171 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3172 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3174 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3175 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3176 | ac_save_CC=$CC |
| 3177 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3178 | /* confdefs.h. */ |
| 3179 | _ACEOF |
| 3180 | cat confdefs.h >>conftest.$ac_ext |
| 3181 | cat >>conftest.$ac_ext <<_ACEOF |
| 3182 | /* end confdefs.h. */ |
| 3183 | #include <stdarg.h> |
| 3184 | #include <stdio.h> |
| 3185 | #include <sys/types.h> |
| 3186 | #include <sys/stat.h> |
| 3187 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3188 | struct buf { int x; }; |
| 3189 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3190 | static char *e (p, i) |
| 3191 | char **p; |
| 3192 | int i; |
| 3193 | { |
| 3194 | return p[i]; |
| 3195 | } |
| 3196 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3197 | { |
| 3198 | char *s; |
| 3199 | va_list v; |
| 3200 | va_start (v,p); |
| 3201 | s = g (p, va_arg (v,int)); |
| 3202 | va_end (v); |
| 3203 | return s; |
| 3204 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3205 | |
| 3206 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3207 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3208 | 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] | 3209 | 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] | 3210 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3211 | 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] | 3212 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3213 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3214 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3215 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3216 | inside strings and character constants. */ |
| 3217 | #define FOO(x) 'x' |
| 3218 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3219 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3220 | int test (int i, double x); |
| 3221 | struct s1 {int (*f) (int a);}; |
| 3222 | struct s2 {int (*f) (double a);}; |
| 3223 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3224 | int argc; |
| 3225 | char **argv; |
| 3226 | int |
| 3227 | main () |
| 3228 | { |
| 3229 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3230 | ; |
| 3231 | return 0; |
| 3232 | } |
| 3233 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3234 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3235 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3236 | do |
| 3237 | CC="$ac_save_CC $ac_arg" |
| 3238 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3239 | if { (ac_try="$ac_compile" |
| 3240 | case "(($ac_try" in |
| 3241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3242 | *) ac_try_echo=$ac_try;; |
| 3243 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3245 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3246 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3248 | rm -f conftest.er1 |
| 3249 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3251 | (exit $ac_status); } && { |
| 3252 | test -z "$ac_c_werror_flag" || |
| 3253 | test ! -s conftest.err |
| 3254 | } && test -s conftest.$ac_objext; then |
| 3255 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3256 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3257 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3259 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3260 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3261 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3262 | |
| 3263 | rm -f core conftest.err conftest.$ac_objext |
| 3264 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3265 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3266 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3267 | CC=$ac_save_CC |
| 3268 | |
| 3269 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3270 | # AC_CACHE_VAL |
| 3271 | case "x$ac_cv_prog_cc_c89" in |
| 3272 | x) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3273 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3274 | echo "${ECHO_T}none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3275 | xno) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3276 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3277 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3278 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3279 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3280 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3281 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3282 | esac |
| 3283 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3284 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3285 | ac_ext=c |
| 3286 | ac_cpp='$CPP $CPPFLAGS' |
| 3287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3290 | |
Victor Stinner | 6cbf90f | 2010-03-25 00:21:53 +0000 | [diff] [blame] | 3291 | CFLAGS=$save_CFLAGS |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3292 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3293 | |
| 3294 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3295 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3296 | echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3297 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3298 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3299 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3300 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3301 | |
| 3302 | case $withval in |
| 3303 | no) with_cxx_main=no |
| 3304 | MAINCC='$(CC)';; |
| 3305 | yes) with_cxx_main=yes |
| 3306 | MAINCC='$(CXX)';; |
| 3307 | *) with_cxx_main=yes |
| 3308 | MAINCC=$withval |
| 3309 | if test -z "$CXX" |
| 3310 | then |
| 3311 | CXX=$withval |
| 3312 | fi;; |
| 3313 | esac |
| 3314 | else |
| 3315 | |
| 3316 | with_cxx_main=no |
| 3317 | MAINCC='$(CC)' |
| 3318 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3319 | fi |
| 3320 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3321 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3322 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3323 | |
| 3324 | preset_cxx="$CXX" |
| 3325 | if test -z "$CXX" |
| 3326 | then |
| 3327 | case "$CC" in |
| 3328 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3329 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3330 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3331 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3332 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3334 | else |
| 3335 | case $CXX in |
| 3336 | [\\/]* | ?:[\\/]*) |
| 3337 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3338 | ;; |
| 3339 | *) |
| 3340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3341 | for as_dir in notfound |
| 3342 | do |
| 3343 | IFS=$as_save_IFS |
| 3344 | test -z "$as_dir" && as_dir=. |
| 3345 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3346 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3347 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3348 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3349 | break 2 |
| 3350 | fi |
| 3351 | done |
| 3352 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3353 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3354 | |
| 3355 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3356 | ;; |
| 3357 | esac |
| 3358 | fi |
| 3359 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3360 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3361 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3362 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3363 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3364 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3365 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3366 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3367 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3368 | ;; |
| 3369 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3370 | set dummy c++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3371 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3373 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3375 | else |
| 3376 | case $CXX in |
| 3377 | [\\/]* | ?:[\\/]*) |
| 3378 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3379 | ;; |
| 3380 | *) |
| 3381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3382 | for as_dir in notfound |
| 3383 | do |
| 3384 | IFS=$as_save_IFS |
| 3385 | test -z "$as_dir" && as_dir=. |
| 3386 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3387 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3388 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3389 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3390 | break 2 |
| 3391 | fi |
| 3392 | done |
| 3393 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3394 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3395 | |
| 3396 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3397 | ;; |
| 3398 | esac |
| 3399 | fi |
| 3400 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3401 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3402 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3403 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3404 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3405 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3406 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3407 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3408 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3409 | ;; |
| 3410 | esac |
| 3411 | if test "$CXX" = "notfound" |
| 3412 | then |
| 3413 | CXX="" |
| 3414 | fi |
| 3415 | fi |
| 3416 | if test -z "$CXX" |
| 3417 | then |
| 3418 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3419 | do |
| 3420 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3421 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3422 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3424 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3426 | else |
| 3427 | if test -n "$CXX"; then |
| 3428 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3429 | else |
| 3430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3431 | for as_dir in $PATH |
| 3432 | do |
| 3433 | IFS=$as_save_IFS |
| 3434 | test -z "$as_dir" && as_dir=. |
| 3435 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3437 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3438 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3439 | break 2 |
| 3440 | fi |
| 3441 | done |
| 3442 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3443 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3444 | |
| 3445 | fi |
| 3446 | fi |
| 3447 | CXX=$ac_cv_prog_CXX |
| 3448 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3449 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3450 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3451 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3452 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3453 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3454 | fi |
| 3455 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3456 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3457 | test -n "$CXX" && break |
| 3458 | done |
| 3459 | test -n "$CXX" || CXX="notfound" |
| 3460 | |
| 3461 | if test "$CXX" = "notfound" |
| 3462 | then |
| 3463 | CXX="" |
| 3464 | fi |
| 3465 | fi |
| 3466 | if test "$preset_cxx" != "$CXX" |
| 3467 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3468 | { echo "$as_me:$LINENO: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3469 | |
| 3470 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3471 | If this is not intended, then set CXX on the configure command line. |
| 3472 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3473 | echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3474 | |
| 3475 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3476 | If this is not intended, then set CXX on the configure command line. |
| 3477 | " >&2;} |
| 3478 | fi |
| 3479 | |
| 3480 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3481 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3482 | |
| 3483 | ac_ext=c |
| 3484 | ac_cpp='$CPP $CPPFLAGS' |
| 3485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3488 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3489 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3490 | # On Suns, sometimes $CPP names a directory. |
| 3491 | if test -n "$CPP" && test -d "$CPP"; then |
| 3492 | CPP= |
| 3493 | fi |
| 3494 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3495 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3497 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3498 | # Double quotes because CPP needs to be expanded |
| 3499 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3500 | do |
| 3501 | ac_preproc_ok=false |
| 3502 | for ac_c_preproc_warn_flag in '' yes |
| 3503 | do |
| 3504 | # Use a header file that comes with gcc, so configuring glibc |
| 3505 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3506 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3507 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3508 | # 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] | 3509 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3510 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3511 | /* confdefs.h. */ |
| 3512 | _ACEOF |
| 3513 | cat confdefs.h >>conftest.$ac_ext |
| 3514 | cat >>conftest.$ac_ext <<_ACEOF |
| 3515 | /* end confdefs.h. */ |
| 3516 | #ifdef __STDC__ |
| 3517 | # include <limits.h> |
| 3518 | #else |
| 3519 | # include <assert.h> |
| 3520 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3521 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3522 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3523 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3524 | case "(($ac_try" in |
| 3525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3526 | *) ac_try_echo=$ac_try;; |
| 3527 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3529 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3530 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3531 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3532 | rm -f conftest.er1 |
| 3533 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3535 | (exit $ac_status); } >/dev/null && { |
| 3536 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3537 | test ! -s conftest.err |
| 3538 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3539 | : |
| 3540 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3541 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3543 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3544 | # Broken: fails on valid input. |
| 3545 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3546 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3548 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3549 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3550 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 | # can be detected and how. |
| 3552 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3553 | /* confdefs.h. */ |
| 3554 | _ACEOF |
| 3555 | cat confdefs.h >>conftest.$ac_ext |
| 3556 | cat >>conftest.$ac_ext <<_ACEOF |
| 3557 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3558 | #include <ac_nonexistent.h> |
| 3559 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3560 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3561 | case "(($ac_try" in |
| 3562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3563 | *) ac_try_echo=$ac_try;; |
| 3564 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3566 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3567 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3568 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3569 | rm -f conftest.er1 |
| 3570 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3572 | (exit $ac_status); } >/dev/null && { |
| 3573 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3574 | test ! -s conftest.err |
| 3575 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3576 | # Broken: success on invalid input. |
| 3577 | continue |
| 3578 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3579 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3582 | # Passes both tests. |
| 3583 | ac_preproc_ok=: |
| 3584 | break |
| 3585 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3587 | rm -f conftest.err conftest.$ac_ext |
| 3588 | |
| 3589 | done |
| 3590 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3591 | rm -f conftest.err conftest.$ac_ext |
| 3592 | if $ac_preproc_ok; then |
| 3593 | break |
| 3594 | fi |
| 3595 | |
| 3596 | done |
| 3597 | ac_cv_prog_CPP=$CPP |
| 3598 | |
| 3599 | fi |
| 3600 | CPP=$ac_cv_prog_CPP |
| 3601 | else |
| 3602 | ac_cv_prog_CPP=$CPP |
| 3603 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3604 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3605 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3606 | ac_preproc_ok=false |
| 3607 | for ac_c_preproc_warn_flag in '' yes |
| 3608 | do |
| 3609 | # Use a header file that comes with gcc, so configuring glibc |
| 3610 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3611 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3612 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3613 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3614 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3615 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3616 | /* confdefs.h. */ |
| 3617 | _ACEOF |
| 3618 | cat confdefs.h >>conftest.$ac_ext |
| 3619 | cat >>conftest.$ac_ext <<_ACEOF |
| 3620 | /* end confdefs.h. */ |
| 3621 | #ifdef __STDC__ |
| 3622 | # include <limits.h> |
| 3623 | #else |
| 3624 | # include <assert.h> |
| 3625 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3626 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3627 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3628 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3629 | case "(($ac_try" in |
| 3630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3631 | *) ac_try_echo=$ac_try;; |
| 3632 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3634 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3635 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3636 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3637 | rm -f conftest.er1 |
| 3638 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3640 | (exit $ac_status); } >/dev/null && { |
| 3641 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3642 | test ! -s conftest.err |
| 3643 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3644 | : |
| 3645 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3646 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3649 | # Broken: fails on valid input. |
| 3650 | continue |
| 3651 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | rm -f conftest.err conftest.$ac_ext |
| 3654 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3655 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3656 | # can be detected and how. |
| 3657 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3658 | /* confdefs.h. */ |
| 3659 | _ACEOF |
| 3660 | cat confdefs.h >>conftest.$ac_ext |
| 3661 | cat >>conftest.$ac_ext <<_ACEOF |
| 3662 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3663 | #include <ac_nonexistent.h> |
| 3664 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3665 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3666 | case "(($ac_try" in |
| 3667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3668 | *) ac_try_echo=$ac_try;; |
| 3669 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3671 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3672 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3673 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3674 | rm -f conftest.er1 |
| 3675 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3677 | (exit $ac_status); } >/dev/null && { |
| 3678 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3679 | test ! -s conftest.err |
| 3680 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3681 | # Broken: success on invalid input. |
| 3682 | continue |
| 3683 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3684 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3687 | # Passes both tests. |
| 3688 | ac_preproc_ok=: |
| 3689 | break |
| 3690 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3692 | rm -f conftest.err conftest.$ac_ext |
| 3693 | |
| 3694 | done |
| 3695 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3696 | rm -f conftest.err conftest.$ac_ext |
| 3697 | if $ac_preproc_ok; then |
| 3698 | : |
| 3699 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3700 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3701 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3702 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3703 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3704 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3705 | fi |
| 3706 | |
| 3707 | ac_ext=c |
| 3708 | ac_cpp='$CPP $CPPFLAGS' |
| 3709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3712 | |
| 3713 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3714 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3715 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3716 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3718 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3719 | # Extract the first word of "grep ggrep" to use in msg output |
| 3720 | if test -z "$GREP"; then |
| 3721 | set dummy grep ggrep; ac_prog_name=$2 |
| 3722 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3724 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3725 | ac_path_GREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3726 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3728 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3729 | do |
| 3730 | IFS=$as_save_IFS |
| 3731 | test -z "$as_dir" && as_dir=. |
| 3732 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3733 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3734 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3735 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3736 | # 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] | 3737 | # Check for GNU $ac_path_GREP |
| 3738 | case `"$ac_path_GREP" --version 2>&1` in |
| 3739 | *GNU*) |
| 3740 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3741 | *) |
| 3742 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3743 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3744 | while : |
| 3745 | do |
| 3746 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3747 | mv "conftest.tmp" "conftest.in" |
| 3748 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3749 | echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3750 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3751 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3752 | ac_count=`expr $ac_count + 1` |
| 3753 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3754 | # Best one so far, save it but keep looking for a better one |
| 3755 | ac_cv_path_GREP="$ac_path_GREP" |
| 3756 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3757 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3758 | # 10*(2^10) chars as input seems more than enough |
| 3759 | test $ac_count -gt 10 && break |
| 3760 | done |
| 3761 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3762 | esac |
| 3763 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3764 | |
| 3765 | $ac_path_GREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3766 | done |
| 3767 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3768 | |
| 3769 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3770 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3771 | |
| 3772 | |
| 3773 | fi |
| 3774 | |
| 3775 | GREP="$ac_cv_path_GREP" |
| 3776 | if test -z "$GREP"; then |
| 3777 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3778 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3779 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3780 | fi |
| 3781 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3782 | else |
| 3783 | ac_cv_path_GREP=$GREP |
| 3784 | fi |
| 3785 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3786 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3787 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3788 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3789 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3790 | GREP="$ac_cv_path_GREP" |
| 3791 | |
| 3792 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3793 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3794 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3795 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3797 | else |
| 3798 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3799 | then ac_cv_path_EGREP="$GREP -E" |
| 3800 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3801 | # Extract the first word of "egrep" to use in msg output |
| 3802 | if test -z "$EGREP"; then |
| 3803 | set dummy egrep; ac_prog_name=$2 |
| 3804 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3806 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3807 | ac_path_EGREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3808 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3810 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3811 | do |
| 3812 | IFS=$as_save_IFS |
| 3813 | test -z "$as_dir" && as_dir=. |
| 3814 | for ac_prog in egrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3816 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3817 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3818 | # 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] | 3819 | # Check for GNU $ac_path_EGREP |
| 3820 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3821 | *GNU*) |
| 3822 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3823 | *) |
| 3824 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3825 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3826 | while : |
| 3827 | do |
| 3828 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3829 | mv "conftest.tmp" "conftest.in" |
| 3830 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3831 | echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3832 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3833 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3834 | ac_count=`expr $ac_count + 1` |
| 3835 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3836 | # Best one so far, save it but keep looking for a better one |
| 3837 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3838 | ac_path_EGREP_max=$ac_count |
| 3839 | fi |
| 3840 | # 10*(2^10) chars as input seems more than enough |
| 3841 | test $ac_count -gt 10 && break |
| 3842 | done |
| 3843 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3844 | esac |
| 3845 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3846 | |
| 3847 | $ac_path_EGREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3848 | done |
| 3849 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3850 | |
| 3851 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3852 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3853 | |
| 3854 | |
| 3855 | fi |
| 3856 | |
| 3857 | EGREP="$ac_cv_path_EGREP" |
| 3858 | if test -z "$EGREP"; then |
| 3859 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3860 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3861 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3862 | fi |
| 3863 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3864 | else |
| 3865 | ac_cv_path_EGREP=$EGREP |
| 3866 | fi |
| 3867 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3868 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3869 | fi |
| 3870 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3871 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3872 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3873 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3874 | |
| 3875 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3876 | |
| 3877 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3878 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3879 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3880 | /* confdefs.h. */ |
| 3881 | _ACEOF |
| 3882 | cat confdefs.h >>conftest.$ac_ext |
| 3883 | cat >>conftest.$ac_ext <<_ACEOF |
| 3884 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3885 | #ifdef _AIX |
| 3886 | yes |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3887 | #endif |
| 3888 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3889 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3890 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3891 | $EGREP "yes" >/dev/null 2>&1; then |
| 3892 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3893 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3894 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3895 | #define _ALL_SOURCE 1 |
| 3896 | _ACEOF |
| 3897 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3898 | else |
| 3899 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3900 | echo "${ECHO_T}no" >&6; } |
| 3901 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 3902 | rm -f -r conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3903 | |
| 3904 | |
| 3905 | |
| 3906 | # Check for unsupported systems |
| 3907 | case $ac_sys_system/$ac_sys_release in |
| 3908 | atheos*|Linux*/1*) |
| 3909 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3910 | echo See README for details. |
| 3911 | exit 1;; |
| 3912 | esac |
| 3913 | |
| 3914 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3915 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3916 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3917 | |
| 3918 | # Check whether --with-suffix was given. |
| 3919 | if test "${with_suffix+set}" = set; then |
| 3920 | withval=$with_suffix; |
| 3921 | case $withval in |
| 3922 | no) EXEEXT=;; |
| 3923 | yes) EXEEXT=.exe;; |
| 3924 | *) EXEEXT=$withval;; |
| 3925 | esac |
| 3926 | fi |
| 3927 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3928 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3929 | echo "${ECHO_T}$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3930 | |
| 3931 | # Test whether we're running on a non-case-sensitive system, in which |
| 3932 | # case we give a warning if no ext is given |
| 3933 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3934 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3935 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3936 | if test ! -d CaseSensitiveTestDir; then |
| 3937 | mkdir CaseSensitiveTestDir |
| 3938 | fi |
| 3939 | |
| 3940 | if test -d casesensitivetestdir |
| 3941 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3942 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3943 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3944 | BUILDEXEEXT=.exe |
| 3945 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3946 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3947 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3948 | BUILDEXEEXT=$EXEEXT |
| 3949 | fi |
| 3950 | rmdir CaseSensitiveTestDir |
| 3951 | |
| 3952 | case $MACHDEP in |
| 3953 | bsdos*) |
| 3954 | case $CC in |
| 3955 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3956 | esac;; |
| 3957 | esac |
| 3958 | |
| 3959 | case $ac_sys_system in |
| 3960 | hp*|HP*) |
| 3961 | case $CC in |
| 3962 | cc|*/cc) CC="$CC -Ae";; |
| 3963 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3964 | SunOS*) |
| 3965 | # Some functions have a prototype only with that define, e.g. confstr |
| 3966 | |
| 3967 | cat >>confdefs.h <<\_ACEOF |
| 3968 | #define __EXTENSIONS__ 1 |
| 3969 | _ACEOF |
| 3970 | |
| 3971 | ;; |
| 3972 | esac |
| 3973 | |
| 3974 | |
| 3975 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3976 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3977 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3978 | if test -z "$LIBRARY" |
| 3979 | then |
| 3980 | LIBRARY='libpython$(VERSION).a' |
| 3981 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3982 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3983 | echo "${ECHO_T}$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3984 | |
| 3985 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 3986 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3987 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3988 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3989 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3990 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3991 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3992 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 3993 | # |
| 3994 | # RUNSHARED is used to run shared python without installed libraries |
| 3995 | # |
| 3996 | # INSTSONAME is the name of the shared library that will be use to install |
| 3997 | # on the system - some systems like version suffix, others don't |
| 3998 | |
| 3999 | |
| 4000 | |
| 4001 | |
| 4002 | |
| 4003 | |
| 4004 | LDLIBRARY="$LIBRARY" |
| 4005 | BLDLIBRARY='$(LDLIBRARY)' |
| 4006 | INSTSONAME='$(LDLIBRARY)' |
| 4007 | DLLLIBRARY='' |
| 4008 | LDLIBRARYDIR='' |
| 4009 | RUNSHARED='' |
| 4010 | |
| 4011 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4012 | # If CXX is set, and if it is needed to link a main function that was |
| 4013 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4014 | # python might then depend on the C++ runtime |
| 4015 | # This is altered for AIX in order to build the export list before |
| 4016 | # linking. |
| 4017 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4018 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 4019 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4020 | if test -z "$LINKCC" |
| 4021 | then |
| 4022 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4023 | case $ac_sys_system in |
| 4024 | AIX*) |
| 4025 | exp_extra="\"\"" |
| 4026 | if test $ac_sys_release -ge 5 -o \ |
| 4027 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4028 | exp_extra="." |
| 4029 | fi |
| 4030 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4031 | QNX*) |
| 4032 | # qcc must be used because the other compilers do not |
| 4033 | # support -N. |
| 4034 | LINKCC=qcc;; |
| 4035 | esac |
| 4036 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4037 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 4038 | echo "${ECHO_T}$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4039 | |
| 4040 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4041 | # make sure we default having it set to "no": this is used by |
| 4042 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4043 | # to linker command lines, and failing to detect GNU ld simply results |
| 4044 | # in the same bahaviour as before. |
| 4045 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4046 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4047 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4048 | ac_prog=ld |
| 4049 | if test "$GCC" = yes; then |
| 4050 | ac_prog=`$CC -print-prog-name=ld` |
| 4051 | fi |
| 4052 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4053 | *GNU*) |
| 4054 | GNULD=yes;; |
| 4055 | *) |
| 4056 | GNULD=no;; |
| 4057 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4058 | { echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4059 | echo "${ECHO_T}$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4060 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4061 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4062 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4063 | # Check whether --enable-shared was given. |
| 4064 | if test "${enable_shared+set}" = set; then |
| 4065 | enableval=$enable_shared; |
| 4066 | fi |
| 4067 | |
| 4068 | |
| 4069 | if test -z "$enable_shared" |
| 4070 | then |
| 4071 | case $ac_sys_system in |
| 4072 | CYGWIN* | atheos*) |
| 4073 | enable_shared="yes";; |
| 4074 | *) |
| 4075 | enable_shared="no";; |
| 4076 | esac |
| 4077 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4078 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4079 | echo "${ECHO_T}$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4080 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4081 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4082 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4083 | # Check whether --enable-profiling was given. |
| 4084 | if test "${enable_profiling+set}" = set; then |
| 4085 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4086 | CC="$CC -pg" |
| 4087 | if test "$cross_compiling" = yes; then |
| 4088 | ac_enable_profiling="no" |
| 4089 | else |
| 4090 | cat >conftest.$ac_ext <<_ACEOF |
| 4091 | /* confdefs.h. */ |
| 4092 | _ACEOF |
| 4093 | cat confdefs.h >>conftest.$ac_ext |
| 4094 | cat >>conftest.$ac_ext <<_ACEOF |
| 4095 | /* end confdefs.h. */ |
| 4096 | int main() { return 0; } |
| 4097 | _ACEOF |
| 4098 | rm -f conftest$ac_exeext |
| 4099 | if { (ac_try="$ac_link" |
| 4100 | case "(($ac_try" in |
| 4101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4102 | *) ac_try_echo=$ac_try;; |
| 4103 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4105 | (eval "$ac_link") 2>&5 |
| 4106 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4108 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4109 | { (case "(($ac_try" in |
| 4110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4111 | *) ac_try_echo=$ac_try;; |
| 4112 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4114 | (eval "$ac_try") 2>&5 |
| 4115 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4117 | (exit $ac_status); }; }; then |
| 4118 | ac_enable_profiling="yes" |
| 4119 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4120 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4121 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4123 | |
| 4124 | ( exit $ac_status ) |
| 4125 | ac_enable_profiling="no" |
| 4126 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4127 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4128 | fi |
| 4129 | |
| 4130 | |
| 4131 | CC="$ac_save_cc" |
| 4132 | fi |
| 4133 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4134 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4135 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4136 | |
| 4137 | case "$ac_enable_profiling" in |
| 4138 | "yes") |
| 4139 | BASECFLAGS="-pg $BASECFLAGS" |
| 4140 | LDFLAGS="-pg $LDFLAGS" |
| 4141 | ;; |
| 4142 | esac |
| 4143 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4144 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4145 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4146 | |
| 4147 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4148 | # library that we build, but we do not want to link against it (we |
| 4149 | # will find it with a -framework option). For this reason there is an |
| 4150 | # extra variable BLDLIBRARY against which Python and the extension |
| 4151 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4152 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4153 | if test "$enable_framework" |
| 4154 | then |
| 4155 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4156 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4157 | BLDLIBRARY='' |
| 4158 | else |
| 4159 | BLDLIBRARY='$(LDLIBRARY)' |
| 4160 | fi |
| 4161 | |
| 4162 | # Other platforms follow |
| 4163 | if test $enable_shared = "yes"; then |
| 4164 | |
| 4165 | cat >>confdefs.h <<\_ACEOF |
| 4166 | #define Py_ENABLE_SHARED 1 |
| 4167 | _ACEOF |
| 4168 | |
| 4169 | case $ac_sys_system in |
| 4170 | BeOS*) |
| 4171 | LDLIBRARY='libpython$(VERSION).so' |
| 4172 | ;; |
| 4173 | CYGWIN*) |
| 4174 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4175 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4176 | ;; |
| 4177 | SunOS*) |
| 4178 | LDLIBRARY='libpython$(VERSION).so' |
| 4179 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4180 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4181 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4182 | ;; |
| 4183 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4184 | LDLIBRARY='libpython$(VERSION).so' |
| 4185 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4186 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4187 | case $ac_sys_system in |
| 4188 | FreeBSD*) |
| 4189 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4190 | ;; |
| 4191 | esac |
| 4192 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4193 | ;; |
| 4194 | hp*|HP*) |
| 4195 | case `uname -m` in |
| 4196 | ia64) |
| 4197 | LDLIBRARY='libpython$(VERSION).so' |
| 4198 | ;; |
| 4199 | *) |
| 4200 | LDLIBRARY='libpython$(VERSION).sl' |
| 4201 | ;; |
| 4202 | esac |
| 4203 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4204 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4205 | ;; |
| 4206 | OSF*) |
| 4207 | LDLIBRARY='libpython$(VERSION).so' |
| 4208 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4209 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4210 | ;; |
| 4211 | atheos*) |
| 4212 | LDLIBRARY='libpython$(VERSION).so' |
| 4213 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4214 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4215 | ;; |
| 4216 | Darwin*) |
| 4217 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4218 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4219 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4220 | ;; |
| 4221 | |
| 4222 | esac |
| 4223 | else # shared is disabled |
| 4224 | case $ac_sys_system in |
| 4225 | CYGWIN*) |
| 4226 | BLDLIBRARY='$(LIBRARY)' |
| 4227 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4228 | ;; |
| 4229 | esac |
| 4230 | fi |
| 4231 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4232 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4233 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4234 | |
| 4235 | if test -n "$ac_tool_prefix"; then |
| 4236 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4237 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4238 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4240 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4242 | else |
| 4243 | if test -n "$RANLIB"; then |
| 4244 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4245 | else |
| 4246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4247 | for as_dir in $PATH |
| 4248 | do |
| 4249 | IFS=$as_save_IFS |
| 4250 | test -z "$as_dir" && as_dir=. |
| 4251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4252 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4253 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4255 | break 2 |
| 4256 | fi |
| 4257 | done |
| 4258 | done |
| 4259 | IFS=$as_save_IFS |
| 4260 | |
| 4261 | fi |
| 4262 | fi |
| 4263 | RANLIB=$ac_cv_prog_RANLIB |
| 4264 | if test -n "$RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4265 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4266 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4267 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4268 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4269 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4270 | fi |
| 4271 | |
| 4272 | |
| 4273 | fi |
| 4274 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4275 | ac_ct_RANLIB=$RANLIB |
| 4276 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4277 | set dummy ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4278 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4280 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4282 | else |
| 4283 | if test -n "$ac_ct_RANLIB"; then |
| 4284 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4285 | else |
| 4286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4287 | for as_dir in $PATH |
| 4288 | do |
| 4289 | IFS=$as_save_IFS |
| 4290 | test -z "$as_dir" && as_dir=. |
| 4291 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4292 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4293 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4295 | break 2 |
| 4296 | fi |
| 4297 | done |
| 4298 | done |
| 4299 | IFS=$as_save_IFS |
| 4300 | |
| 4301 | fi |
| 4302 | fi |
| 4303 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4304 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4305 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4306 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4307 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4308 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4309 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4310 | fi |
| 4311 | |
| 4312 | if test "x$ac_ct_RANLIB" = x; then |
| 4313 | RANLIB=":" |
| 4314 | else |
| 4315 | case $cross_compiling:$ac_tool_warned in |
| 4316 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4317 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4318 | whose name does not start with the host triplet. If you think this |
| 4319 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4320 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4321 | whose name does not start with the host triplet. If you think this |
| 4322 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4323 | ac_tool_warned=yes ;; |
| 4324 | esac |
| 4325 | RANLIB=$ac_ct_RANLIB |
| 4326 | fi |
| 4327 | else |
| 4328 | RANLIB="$ac_cv_prog_RANLIB" |
| 4329 | fi |
| 4330 | |
| 4331 | |
| 4332 | for ac_prog in ar aal |
| 4333 | do |
| 4334 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4335 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4336 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4338 | if test "${ac_cv_prog_AR+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4340 | else |
| 4341 | if test -n "$AR"; then |
| 4342 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4343 | else |
| 4344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4345 | for as_dir in $PATH |
| 4346 | do |
| 4347 | IFS=$as_save_IFS |
| 4348 | test -z "$as_dir" && as_dir=. |
| 4349 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4351 | ac_cv_prog_AR="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4353 | break 2 |
| 4354 | fi |
| 4355 | done |
| 4356 | done |
| 4357 | IFS=$as_save_IFS |
| 4358 | |
| 4359 | fi |
| 4360 | fi |
| 4361 | AR=$ac_cv_prog_AR |
| 4362 | if test -n "$AR"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4363 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4364 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4365 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4366 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4367 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4368 | fi |
| 4369 | |
| 4370 | |
| 4371 | test -n "$AR" && break |
| 4372 | done |
| 4373 | test -n "$AR" || AR="ar" |
| 4374 | |
| 4375 | |
| 4376 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4377 | |
| 4378 | if test -z "$ARFLAGS" |
| 4379 | then |
| 4380 | ARFLAGS="rc" |
| 4381 | fi |
| 4382 | |
| 4383 | |
| 4384 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4385 | set dummy svnversion; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4386 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4388 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4390 | else |
| 4391 | if test -n "$SVNVERSION"; then |
| 4392 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4393 | else |
| 4394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4395 | for as_dir in $PATH |
| 4396 | do |
| 4397 | IFS=$as_save_IFS |
| 4398 | test -z "$as_dir" && as_dir=. |
| 4399 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4401 | ac_cv_prog_SVNVERSION="found" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4403 | break 2 |
| 4404 | fi |
| 4405 | done |
| 4406 | done |
| 4407 | IFS=$as_save_IFS |
| 4408 | |
| 4409 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4410 | fi |
| 4411 | fi |
| 4412 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4413 | if test -n "$SVNVERSION"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4414 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4415 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4416 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4417 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4418 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4419 | fi |
| 4420 | |
| 4421 | |
| 4422 | if test $SVNVERSION = found |
| 4423 | then |
| 4424 | SVNVERSION="svnversion \$(srcdir)" |
| 4425 | else |
| 4426 | SVNVERSION="echo Unversioned directory" |
| 4427 | fi |
| 4428 | |
| 4429 | case $MACHDEP in |
| 4430 | bsdos*|hp*|HP*) |
| 4431 | # install -d does not work on BSDI or HP-UX |
| 4432 | if test -z "$INSTALL" |
| 4433 | then |
| 4434 | INSTALL="${srcdir}/install-sh -c" |
| 4435 | fi |
| 4436 | esac |
| 4437 | ac_aux_dir= |
| 4438 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4439 | if test -f "$ac_dir/install-sh"; then |
| 4440 | ac_aux_dir=$ac_dir |
| 4441 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4442 | break |
| 4443 | elif test -f "$ac_dir/install.sh"; then |
| 4444 | ac_aux_dir=$ac_dir |
| 4445 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4446 | break |
| 4447 | elif test -f "$ac_dir/shtool"; then |
| 4448 | ac_aux_dir=$ac_dir |
| 4449 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4450 | break |
| 4451 | fi |
| 4452 | done |
| 4453 | if test -z "$ac_aux_dir"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4454 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4455 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4456 | { (exit 1); exit 1; }; } |
| 4457 | fi |
| 4458 | |
| 4459 | # These three variables are undocumented and unsupported, |
| 4460 | # and are intended to be withdrawn in a future Autoconf release. |
| 4461 | # They can cause serious problems if a builder's source tree is in a directory |
| 4462 | # whose full name contains unusual characters. |
| 4463 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4464 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4465 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4466 | |
| 4467 | |
| 4468 | # Find a good install program. We prefer a C program (faster), |
| 4469 | # so one script is as good as another. But avoid the broken or |
| 4470 | # incompatible versions: |
| 4471 | # SysV /etc/install, /usr/sbin/install |
| 4472 | # SunOS /usr/etc/install |
| 4473 | # IRIX /sbin/install |
| 4474 | # AIX /bin/install |
| 4475 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4476 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4477 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4478 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4479 | # OS/2's system install, which has a completely different semantic |
| 4480 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4481 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4482 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4483 | if test -z "$INSTALL"; then |
| 4484 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4486 | else |
| 4487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4488 | for as_dir in $PATH |
| 4489 | do |
| 4490 | IFS=$as_save_IFS |
| 4491 | test -z "$as_dir" && as_dir=. |
| 4492 | # Account for people who put trailing slashes in PATH elements. |
| 4493 | case $as_dir/ in |
| 4494 | ./ | .// | /cC/* | \ |
| 4495 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4496 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4497 | /usr/ucb/* ) ;; |
| 4498 | *) |
| 4499 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4500 | # Don't use installbsd from OSF since it installs stuff as root |
| 4501 | # by default. |
| 4502 | for ac_prog in ginstall scoinst install; do |
| 4503 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4504 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4505 | if test $ac_prog = install && |
| 4506 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4507 | # AIX install. It has an incompatible calling convention. |
| 4508 | : |
| 4509 | elif test $ac_prog = install && |
| 4510 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4511 | # program-specific install script used by HP pwplus--don't use. |
| 4512 | : |
| 4513 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4514 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4515 | break 3 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4516 | fi |
| 4517 | fi |
| 4518 | done |
| 4519 | done |
| 4520 | ;; |
| 4521 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4522 | done |
| 4523 | IFS=$as_save_IFS |
| 4524 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4525 | |
| 4526 | fi |
| 4527 | if test "${ac_cv_path_install+set}" = set; then |
| 4528 | INSTALL=$ac_cv_path_install |
| 4529 | else |
| 4530 | # As a last resort, use the slow shell script. Don't cache a |
| 4531 | # value for INSTALL within a source directory, because that will |
| 4532 | # break other packages using the cache if that directory is |
| 4533 | # removed, or if the value is a relative name. |
| 4534 | INSTALL=$ac_install_sh |
| 4535 | fi |
| 4536 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4537 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4538 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4539 | |
| 4540 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4541 | # It thinks the first close brace ends the variable substitution. |
| 4542 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4543 | |
| 4544 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4545 | |
| 4546 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4547 | |
| 4548 | |
| 4549 | # Not every filesystem supports hard links |
| 4550 | |
| 4551 | if test -z "$LN" ; then |
| 4552 | case $ac_sys_system in |
| 4553 | BeOS*) LN="ln -s";; |
| 4554 | CYGWIN*) LN="ln -s";; |
| 4555 | atheos*) LN="ln -s";; |
| 4556 | *) LN=ln;; |
| 4557 | esac |
| 4558 | fi |
| 4559 | |
| 4560 | # Check for --with-pydebug |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4561 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4562 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4563 | |
| 4564 | # Check whether --with-pydebug was given. |
| 4565 | if test "${with_pydebug+set}" = set; then |
| 4566 | withval=$with_pydebug; |
| 4567 | if test "$withval" != no |
| 4568 | then |
| 4569 | |
| 4570 | cat >>confdefs.h <<\_ACEOF |
| 4571 | #define Py_DEBUG 1 |
| 4572 | _ACEOF |
| 4573 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4574 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4575 | echo "${ECHO_T}yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4576 | Py_DEBUG='true' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4577 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4578 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4579 | fi |
| 4580 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4581 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4582 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4583 | fi |
| 4584 | |
| 4585 | |
| 4586 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4587 | # merged with this chunk of code? |
| 4588 | |
| 4589 | # Optimizer/debugger flags |
| 4590 | # ------------------------ |
| 4591 | # (The following bit of code is complicated enough - please keep things |
| 4592 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4593 | |
| 4594 | # There are two parallel sets of case statements below, one that checks to |
| 4595 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4596 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4597 | # user set OPT. |
| 4598 | |
| 4599 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4600 | # it on the command line |
| 4601 | |
Benjamin Peterson | d4b721b | 2010-03-23 20:58:37 +0000 | [diff] [blame] | 4602 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4603 | then |
| 4604 | case $GCC in |
| 4605 | yes) |
| 4606 | if test "$CC" != 'g++' ; then |
| 4607 | STRICT_PROTO="-Wstrict-prototypes" |
| 4608 | fi |
| 4609 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4610 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4611 | WRAP="-fwrapv" |
| 4612 | fi |
| 4613 | case $ac_cv_prog_cc_g in |
| 4614 | yes) |
| 4615 | if test "$Py_DEBUG" = 'true' ; then |
| 4616 | # Optimization messes up debuggers, so turn it off for |
| 4617 | # debug builds. |
| 4618 | OPT="-g -Wall $STRICT_PROTO" |
| 4619 | else |
| 4620 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4621 | fi |
| 4622 | ;; |
| 4623 | *) |
| 4624 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4625 | ;; |
| 4626 | esac |
| 4627 | case $ac_sys_system in |
| 4628 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4629 | ;; |
| 4630 | esac |
| 4631 | ;; |
| 4632 | |
| 4633 | *) |
| 4634 | OPT="-O" |
| 4635 | ;; |
| 4636 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4637 | fi |
| 4638 | |
| 4639 | |
| 4640 | |
| 4641 | # The -arch flags for universal builds on OSX |
| 4642 | UNIVERSAL_ARCH_FLAGS= |
| 4643 | |
| 4644 | |
| 4645 | # tweak BASECFLAGS based on compiler and platform |
| 4646 | case $GCC in |
| 4647 | yes) |
| 4648 | # Python violates C99 rules, by casting between incompatible |
| 4649 | # pointer types. GCC may generate bad code as a result of that, |
| 4650 | # so use -fno-strict-aliasing if supported. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4651 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4652 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4653 | ac_save_cc="$CC" |
| 4654 | CC="$CC -fno-strict-aliasing" |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4655 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then |
| 4656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4657 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4658 | cat >conftest.$ac_ext <<_ACEOF |
| 4659 | /* confdefs.h. */ |
| 4660 | _ACEOF |
| 4661 | cat confdefs.h >>conftest.$ac_ext |
| 4662 | cat >>conftest.$ac_ext <<_ACEOF |
| 4663 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4664 | |
| 4665 | int |
| 4666 | main () |
| 4667 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4668 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4669 | ; |
| 4670 | return 0; |
| 4671 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4672 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4673 | rm -f conftest.$ac_objext |
| 4674 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4675 | case "(($ac_try" in |
| 4676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4677 | *) ac_try_echo=$ac_try;; |
| 4678 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4680 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4681 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4683 | rm -f conftest.er1 |
| 4684 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4686 | (exit $ac_status); } && { |
| 4687 | test -z "$ac_c_werror_flag" || |
| 4688 | test ! -s conftest.err |
| 4689 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4690 | ac_cv_no_strict_aliasing_ok=yes |
| 4691 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4692 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4694 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4695 | ac_cv_no_strict_aliasing_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4696 | fi |
| 4697 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4699 | fi |
| 4700 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4701 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4702 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4703 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4704 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4705 | then |
| 4706 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4707 | fi |
| 4708 | |
| 4709 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4710 | # support. Without this, treatment of subnormals doesn't follow |
| 4711 | # the standard. |
| 4712 | case $ac_sys_machine in |
| 4713 | alpha*) |
| 4714 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4715 | ;; |
| 4716 | esac |
| 4717 | |
| 4718 | case $ac_sys_system in |
| 4719 | SCO_SV*) |
| 4720 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4721 | ;; |
| 4722 | # is there any other compiler on Darwin besides gcc? |
| 4723 | Darwin*) |
| 4724 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4725 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4726 | if test "${CC}" = gcc |
| 4727 | then |
| 4728 | { echo "$as_me:$LINENO: checking which compiler should be used" >&5 |
| 4729 | echo $ECHO_N "checking which compiler should be used... $ECHO_C" >&6; } |
| 4730 | case "${UNIVERSALSDK}" in |
| 4731 | */MacOSX10.4u.sdk) |
| 4732 | # Build using 10.4 SDK, force usage of gcc when the |
| 4733 | # compiler is gcc, otherwise the user will get very |
| 4734 | # confusing error messages when building on OSX 10.6 |
| 4735 | CC=gcc-4.0 |
| 4736 | CPP=cpp-4.0 |
| 4737 | ;; |
| 4738 | esac |
| 4739 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 4740 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4741 | fi |
| 4742 | |
| 4743 | # Calculate the right deployment target for this build. |
| 4744 | # |
| 4745 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4746 | if test ${cur_target} '>' 10.2; then |
| 4747 | cur_target=10.3 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4748 | if test ${enable_universalsdk}; then |
| 4749 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4750 | # Ensure that the default platform for a |
| 4751 | # 4-way universal build is OSX 10.5, |
| 4752 | # that's the first OS release where |
| 4753 | # 4-way builds make sense. |
| 4754 | cur_target='10.5' |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4755 | |
| 4756 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 4757 | cur_target='10.5' |
| 4758 | |
| 4759 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 4760 | cur_target='10.5' |
| 4761 | |
| 4762 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 4763 | cur_target='10.5' |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4764 | fi |
| 4765 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 4766 | if test `/usr/bin/arch` = "i386"; then |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4767 | # On Intel macs default to a deployment |
| 4768 | # target of 10.4, that's the first OSX |
| 4769 | # release with Intel support. |
| 4770 | cur_target="10.4" |
| 4771 | fi |
| 4772 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4773 | fi |
| 4774 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4775 | |
| 4776 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4777 | # environment with a value that is the same as what we'll use |
| 4778 | # in the Makefile to ensure that we'll get the same compiler |
| 4779 | # environment during configure and build time. |
| 4780 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4781 | export MACOSX_DEPLOYMENT_TARGET |
| 4782 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4783 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4784 | if test "${enable_universalsdk}"; then |
| 4785 | UNIVERSAL_ARCH_FLAGS="" |
| 4786 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4787 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4788 | ARCH_RUN_32BIT="" |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 4789 | LIPO_32BIT_FLAGS="" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4790 | |
| 4791 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4792 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 4793 | LIPO_32BIT_FLAGS="" |
| 4794 | ARCH_RUN_32BIT="true" |
| 4795 | |
| 4796 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4797 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 4798 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 4799 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4800 | |
| 4801 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 4802 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 4803 | LIPO_32BIT_FLAGS="-extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 4804 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4805 | |
| 4806 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 4807 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 4808 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 4809 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4810 | |
| 4811 | else |
| 4812 | { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5 |
| 4813 | echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;} |
| 4814 | { (exit 1); exit 1; }; } |
| 4815 | |
| 4816 | fi |
| 4817 | |
| 4818 | |
Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 4819 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" |
| 4820 | if test "${UNIVERSALSDK}" != "/" |
| 4821 | then |
| 4822 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
| 4823 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 4824 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4825 | fi |
| 4826 | |
| 4827 | fi |
| 4828 | |
| 4829 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4830 | ;; |
| 4831 | OSF*) |
| 4832 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4833 | ;; |
| 4834 | esac |
| 4835 | ;; |
| 4836 | |
| 4837 | *) |
| 4838 | case $ac_sys_system in |
| 4839 | OpenUNIX*|UnixWare*) |
| 4840 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4841 | ;; |
| 4842 | OSF*) |
| 4843 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4844 | ;; |
| 4845 | SCO_SV*) |
| 4846 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4847 | ;; |
| 4848 | esac |
| 4849 | ;; |
| 4850 | esac |
| 4851 | |
| 4852 | if test "$Py_DEBUG" = 'true'; then |
| 4853 | : |
| 4854 | else |
| 4855 | OPT="-DNDEBUG $OPT" |
| 4856 | fi |
| 4857 | |
| 4858 | if test "$ac_arch_flags" |
| 4859 | then |
| 4860 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4861 | fi |
| 4862 | |
| 4863 | # disable check for icc since it seems to pass, but generates a warning |
| 4864 | if test "$CC" = icc |
| 4865 | then |
| 4866 | ac_cv_opt_olimit_ok=no |
| 4867 | fi |
| 4868 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4869 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4870 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4871 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4873 | else |
| 4874 | ac_save_cc="$CC" |
| 4875 | CC="$CC -OPT:Olimit=0" |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4876 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4877 | /* confdefs.h. */ |
| 4878 | _ACEOF |
| 4879 | cat confdefs.h >>conftest.$ac_ext |
| 4880 | cat >>conftest.$ac_ext <<_ACEOF |
| 4881 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4882 | |
| 4883 | int |
| 4884 | main () |
| 4885 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4886 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4887 | ; |
| 4888 | return 0; |
| 4889 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4890 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4891 | rm -f conftest.$ac_objext |
| 4892 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4893 | case "(($ac_try" in |
| 4894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4895 | *) ac_try_echo=$ac_try;; |
| 4896 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4898 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4899 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4901 | rm -f conftest.er1 |
| 4902 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4904 | (exit $ac_status); } && { |
| 4905 | test -z "$ac_c_werror_flag" || |
| 4906 | test ! -s conftest.err |
| 4907 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4908 | ac_cv_opt_olimit_ok=yes |
| 4909 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4910 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4912 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4913 | ac_cv_opt_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4914 | fi |
| 4915 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4917 | CC="$ac_save_cc" |
| 4918 | fi |
| 4919 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4920 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4921 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4922 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4923 | case $ac_sys_system in |
| 4924 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4925 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4926 | # environment? |
| 4927 | Darwin*) |
| 4928 | ;; |
| 4929 | *) |
| 4930 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4931 | ;; |
| 4932 | esac |
| 4933 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4934 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4935 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4936 | if test "${ac_cv_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4938 | else |
| 4939 | ac_save_cc="$CC" |
| 4940 | CC="$CC -Olimit 1500" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4941 | cat >conftest.$ac_ext <<_ACEOF |
| 4942 | /* confdefs.h. */ |
| 4943 | _ACEOF |
| 4944 | cat confdefs.h >>conftest.$ac_ext |
| 4945 | cat >>conftest.$ac_ext <<_ACEOF |
| 4946 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4947 | |
| 4948 | int |
| 4949 | main () |
| 4950 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4951 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4952 | ; |
| 4953 | return 0; |
| 4954 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4955 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4956 | rm -f conftest.$ac_objext |
| 4957 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4958 | case "(($ac_try" in |
| 4959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4960 | *) ac_try_echo=$ac_try;; |
| 4961 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4963 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4964 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4966 | rm -f conftest.er1 |
| 4967 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4969 | (exit $ac_status); } && { |
| 4970 | test -z "$ac_c_werror_flag" || |
| 4971 | test ! -s conftest.err |
| 4972 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4973 | ac_cv_olimit_ok=yes |
| 4974 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4975 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4977 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4978 | ac_cv_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4979 | fi |
| 4980 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4982 | CC="$ac_save_cc" |
| 4983 | fi |
| 4984 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4985 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4986 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4987 | if test $ac_cv_olimit_ok = yes; then |
| 4988 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 4989 | fi |
| 4990 | fi |
| 4991 | |
| 4992 | # Check whether GCC supports PyArg_ParseTuple format |
| 4993 | if test "$GCC" = "yes" |
| 4994 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4995 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4996 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4997 | save_CFLAGS=$CFLAGS |
| 4998 | CFLAGS="$CFLAGS -Werror" |
| 4999 | cat >conftest.$ac_ext <<_ACEOF |
| 5000 | /* confdefs.h. */ |
| 5001 | _ACEOF |
| 5002 | cat confdefs.h >>conftest.$ac_ext |
| 5003 | cat >>conftest.$ac_ext <<_ACEOF |
| 5004 | /* end confdefs.h. */ |
| 5005 | |
| 5006 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 5007 | |
| 5008 | int |
| 5009 | main () |
| 5010 | { |
| 5011 | |
| 5012 | ; |
| 5013 | return 0; |
| 5014 | } |
| 5015 | _ACEOF |
| 5016 | rm -f conftest.$ac_objext |
| 5017 | if { (ac_try="$ac_compile" |
| 5018 | case "(($ac_try" in |
| 5019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5020 | *) ac_try_echo=$ac_try;; |
| 5021 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5023 | (eval "$ac_compile") 2>conftest.er1 |
| 5024 | ac_status=$? |
| 5025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5026 | rm -f conftest.er1 |
| 5027 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5029 | (exit $ac_status); } && { |
| 5030 | test -z "$ac_c_werror_flag" || |
| 5031 | test ! -s conftest.err |
| 5032 | } && test -s conftest.$ac_objext; then |
| 5033 | |
| 5034 | cat >>confdefs.h <<\_ACEOF |
| 5035 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 5036 | _ACEOF |
| 5037 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5038 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5039 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5040 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5041 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5043 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5044 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5045 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5046 | |
| 5047 | fi |
| 5048 | |
| 5049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5050 | CFLAGS=$save_CFLAGS |
| 5051 | fi |
| 5052 | |
| 5053 | # On some compilers, pthreads are available without further options |
| 5054 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5055 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5056 | # So we have to see first whether pthreads are available without |
| 5057 | # options before we can check whether -Kpthread improves anything. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5058 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 5059 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5060 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5062 | else |
| 5063 | if test "$cross_compiling" = yes; then |
| 5064 | ac_cv_pthread_is_default=no |
| 5065 | else |
| 5066 | cat >conftest.$ac_ext <<_ACEOF |
| 5067 | /* confdefs.h. */ |
| 5068 | _ACEOF |
| 5069 | cat confdefs.h >>conftest.$ac_ext |
| 5070 | cat >>conftest.$ac_ext <<_ACEOF |
| 5071 | /* end confdefs.h. */ |
| 5072 | |
| 5073 | #include <pthread.h> |
| 5074 | |
| 5075 | void* routine(void* p){return NULL;} |
| 5076 | |
| 5077 | int main(){ |
| 5078 | pthread_t p; |
| 5079 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5080 | return 1; |
| 5081 | (void)pthread_detach(p); |
| 5082 | return 0; |
| 5083 | } |
| 5084 | |
| 5085 | _ACEOF |
| 5086 | rm -f conftest$ac_exeext |
| 5087 | if { (ac_try="$ac_link" |
| 5088 | case "(($ac_try" in |
| 5089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5090 | *) ac_try_echo=$ac_try;; |
| 5091 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5093 | (eval "$ac_link") 2>&5 |
| 5094 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5096 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5097 | { (case "(($ac_try" in |
| 5098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5099 | *) ac_try_echo=$ac_try;; |
| 5100 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5102 | (eval "$ac_try") 2>&5 |
| 5103 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5105 | (exit $ac_status); }; }; then |
| 5106 | |
| 5107 | ac_cv_pthread_is_default=yes |
| 5108 | ac_cv_kthread=no |
| 5109 | ac_cv_pthread=no |
| 5110 | |
| 5111 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5112 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5113 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5115 | |
| 5116 | ( exit $ac_status ) |
| 5117 | ac_cv_pthread_is_default=no |
| 5118 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5119 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5120 | fi |
| 5121 | |
| 5122 | |
| 5123 | |
| 5124 | fi |
| 5125 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5126 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5127 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5128 | |
| 5129 | |
| 5130 | if test $ac_cv_pthread_is_default = yes |
| 5131 | then |
| 5132 | ac_cv_kpthread=no |
| 5133 | else |
| 5134 | # -Kpthread, if available, provides the right #defines |
| 5135 | # and linker options to make pthread_create available |
| 5136 | # Some compilers won't report that they do not support -Kpthread, |
| 5137 | # so we need to run a program to see whether it really made the |
| 5138 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5139 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5140 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5141 | if test "${ac_cv_kpthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5143 | else |
| 5144 | ac_save_cc="$CC" |
| 5145 | CC="$CC -Kpthread" |
| 5146 | if test "$cross_compiling" = yes; then |
| 5147 | ac_cv_kpthread=no |
| 5148 | else |
| 5149 | cat >conftest.$ac_ext <<_ACEOF |
| 5150 | /* confdefs.h. */ |
| 5151 | _ACEOF |
| 5152 | cat confdefs.h >>conftest.$ac_ext |
| 5153 | cat >>conftest.$ac_ext <<_ACEOF |
| 5154 | /* end confdefs.h. */ |
| 5155 | |
| 5156 | #include <pthread.h> |
| 5157 | |
| 5158 | void* routine(void* p){return NULL;} |
| 5159 | |
| 5160 | int main(){ |
| 5161 | pthread_t p; |
| 5162 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5163 | return 1; |
| 5164 | (void)pthread_detach(p); |
| 5165 | return 0; |
| 5166 | } |
| 5167 | |
| 5168 | _ACEOF |
| 5169 | rm -f conftest$ac_exeext |
| 5170 | if { (ac_try="$ac_link" |
| 5171 | case "(($ac_try" in |
| 5172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5173 | *) ac_try_echo=$ac_try;; |
| 5174 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5176 | (eval "$ac_link") 2>&5 |
| 5177 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5179 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5180 | { (case "(($ac_try" in |
| 5181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5182 | *) ac_try_echo=$ac_try;; |
| 5183 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5185 | (eval "$ac_try") 2>&5 |
| 5186 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5188 | (exit $ac_status); }; }; then |
| 5189 | ac_cv_kpthread=yes |
| 5190 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5191 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5192 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5194 | |
| 5195 | ( exit $ac_status ) |
| 5196 | ac_cv_kpthread=no |
| 5197 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5198 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5199 | fi |
| 5200 | |
| 5201 | |
| 5202 | CC="$ac_save_cc" |
| 5203 | fi |
| 5204 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5205 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5206 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5207 | fi |
| 5208 | |
| 5209 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5210 | then |
| 5211 | # -Kthread, if available, provides the right #defines |
| 5212 | # and linker options to make pthread_create available |
| 5213 | # Some compilers won't report that they do not support -Kthread, |
| 5214 | # so we need to run a program to see whether it really made the |
| 5215 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5216 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5217 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5218 | if test "${ac_cv_kthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5220 | else |
| 5221 | ac_save_cc="$CC" |
| 5222 | CC="$CC -Kthread" |
| 5223 | if test "$cross_compiling" = yes; then |
| 5224 | ac_cv_kthread=no |
| 5225 | else |
| 5226 | cat >conftest.$ac_ext <<_ACEOF |
| 5227 | /* confdefs.h. */ |
| 5228 | _ACEOF |
| 5229 | cat confdefs.h >>conftest.$ac_ext |
| 5230 | cat >>conftest.$ac_ext <<_ACEOF |
| 5231 | /* end confdefs.h. */ |
| 5232 | |
| 5233 | #include <pthread.h> |
| 5234 | |
| 5235 | void* routine(void* p){return NULL;} |
| 5236 | |
| 5237 | int main(){ |
| 5238 | pthread_t p; |
| 5239 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5240 | return 1; |
| 5241 | (void)pthread_detach(p); |
| 5242 | return 0; |
| 5243 | } |
| 5244 | |
| 5245 | _ACEOF |
| 5246 | rm -f conftest$ac_exeext |
| 5247 | if { (ac_try="$ac_link" |
| 5248 | case "(($ac_try" in |
| 5249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5250 | *) ac_try_echo=$ac_try;; |
| 5251 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5253 | (eval "$ac_link") 2>&5 |
| 5254 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5256 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5257 | { (case "(($ac_try" in |
| 5258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5259 | *) ac_try_echo=$ac_try;; |
| 5260 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5262 | (eval "$ac_try") 2>&5 |
| 5263 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5265 | (exit $ac_status); }; }; then |
| 5266 | ac_cv_kthread=yes |
| 5267 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5268 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5269 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5271 | |
| 5272 | ( exit $ac_status ) |
| 5273 | ac_cv_kthread=no |
| 5274 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5275 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5276 | fi |
| 5277 | |
| 5278 | |
| 5279 | CC="$ac_save_cc" |
| 5280 | fi |
| 5281 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5282 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5283 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5284 | fi |
| 5285 | |
| 5286 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5287 | then |
| 5288 | # -pthread, if available, provides the right #defines |
| 5289 | # and linker options to make pthread_create available |
| 5290 | # Some compilers won't report that they do not support -pthread, |
| 5291 | # so we need to run a program to see whether it really made the |
| 5292 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5293 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5294 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5295 | if test "${ac_cv_thread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5297 | else |
| 5298 | ac_save_cc="$CC" |
| 5299 | CC="$CC -pthread" |
| 5300 | if test "$cross_compiling" = yes; then |
| 5301 | ac_cv_pthread=no |
| 5302 | else |
| 5303 | cat >conftest.$ac_ext <<_ACEOF |
| 5304 | /* confdefs.h. */ |
| 5305 | _ACEOF |
| 5306 | cat confdefs.h >>conftest.$ac_ext |
| 5307 | cat >>conftest.$ac_ext <<_ACEOF |
| 5308 | /* end confdefs.h. */ |
| 5309 | |
| 5310 | #include <pthread.h> |
| 5311 | |
| 5312 | void* routine(void* p){return NULL;} |
| 5313 | |
| 5314 | int main(){ |
| 5315 | pthread_t p; |
| 5316 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5317 | return 1; |
| 5318 | (void)pthread_detach(p); |
| 5319 | return 0; |
| 5320 | } |
| 5321 | |
| 5322 | _ACEOF |
| 5323 | rm -f conftest$ac_exeext |
| 5324 | if { (ac_try="$ac_link" |
| 5325 | case "(($ac_try" in |
| 5326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5327 | *) ac_try_echo=$ac_try;; |
| 5328 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5330 | (eval "$ac_link") 2>&5 |
| 5331 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5333 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5334 | { (case "(($ac_try" in |
| 5335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5336 | *) ac_try_echo=$ac_try;; |
| 5337 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5339 | (eval "$ac_try") 2>&5 |
| 5340 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5342 | (exit $ac_status); }; }; then |
| 5343 | ac_cv_pthread=yes |
| 5344 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5345 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5346 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5348 | |
| 5349 | ( exit $ac_status ) |
| 5350 | ac_cv_pthread=no |
| 5351 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5352 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5353 | fi |
| 5354 | |
| 5355 | |
| 5356 | CC="$ac_save_cc" |
| 5357 | fi |
| 5358 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5359 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5360 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5361 | fi |
| 5362 | |
| 5363 | # If we have set a CC compiler flag for thread support then |
| 5364 | # check if it works for CXX, too. |
| 5365 | ac_cv_cxx_thread=no |
| 5366 | if test ! -z "$CXX" |
| 5367 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5368 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5369 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5370 | ac_save_cxx="$CXX" |
| 5371 | |
| 5372 | if test "$ac_cv_kpthread" = "yes" |
| 5373 | then |
| 5374 | CXX="$CXX -Kpthread" |
| 5375 | ac_cv_cxx_thread=yes |
| 5376 | elif test "$ac_cv_kthread" = "yes" |
| 5377 | then |
| 5378 | CXX="$CXX -Kthread" |
| 5379 | ac_cv_cxx_thread=yes |
| 5380 | elif test "$ac_cv_pthread" = "yes" |
| 5381 | then |
| 5382 | CXX="$CXX -pthread" |
| 5383 | ac_cv_cxx_thread=yes |
| 5384 | fi |
| 5385 | |
| 5386 | if test $ac_cv_cxx_thread = yes |
| 5387 | then |
| 5388 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5389 | $CXX -c conftest.$ac_ext 2>&5 |
| 5390 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5391 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5392 | then |
| 5393 | ac_cv_cxx_thread=yes |
| 5394 | else |
| 5395 | ac_cv_cxx_thread=no |
| 5396 | fi |
| 5397 | rm -fr conftest* |
| 5398 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5399 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5400 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5401 | fi |
| 5402 | CXX="$ac_save_cxx" |
| 5403 | |
| 5404 | |
| 5405 | # checks for header files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5406 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5407 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5408 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5410 | else |
| 5411 | cat >conftest.$ac_ext <<_ACEOF |
| 5412 | /* confdefs.h. */ |
| 5413 | _ACEOF |
| 5414 | cat confdefs.h >>conftest.$ac_ext |
| 5415 | cat >>conftest.$ac_ext <<_ACEOF |
| 5416 | /* end confdefs.h. */ |
| 5417 | #include <stdlib.h> |
| 5418 | #include <stdarg.h> |
| 5419 | #include <string.h> |
| 5420 | #include <float.h> |
| 5421 | |
| 5422 | int |
| 5423 | main () |
| 5424 | { |
| 5425 | |
| 5426 | ; |
| 5427 | return 0; |
| 5428 | } |
| 5429 | _ACEOF |
| 5430 | rm -f conftest.$ac_objext |
| 5431 | if { (ac_try="$ac_compile" |
| 5432 | case "(($ac_try" in |
| 5433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5434 | *) ac_try_echo=$ac_try;; |
| 5435 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5437 | (eval "$ac_compile") 2>conftest.er1 |
| 5438 | ac_status=$? |
| 5439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5440 | rm -f conftest.er1 |
| 5441 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5443 | (exit $ac_status); } && { |
| 5444 | test -z "$ac_c_werror_flag" || |
| 5445 | test ! -s conftest.err |
| 5446 | } && test -s conftest.$ac_objext; then |
| 5447 | ac_cv_header_stdc=yes |
| 5448 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5449 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5451 | |
| 5452 | ac_cv_header_stdc=no |
| 5453 | fi |
| 5454 | |
| 5455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5456 | |
| 5457 | if test $ac_cv_header_stdc = yes; then |
| 5458 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5459 | cat >conftest.$ac_ext <<_ACEOF |
| 5460 | /* confdefs.h. */ |
| 5461 | _ACEOF |
| 5462 | cat confdefs.h >>conftest.$ac_ext |
| 5463 | cat >>conftest.$ac_ext <<_ACEOF |
| 5464 | /* end confdefs.h. */ |
| 5465 | #include <string.h> |
| 5466 | |
| 5467 | _ACEOF |
| 5468 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5469 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5470 | : |
| 5471 | else |
| 5472 | ac_cv_header_stdc=no |
| 5473 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 5474 | rm -f -r conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5475 | |
| 5476 | fi |
| 5477 | |
| 5478 | if test $ac_cv_header_stdc = yes; then |
| 5479 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5480 | cat >conftest.$ac_ext <<_ACEOF |
| 5481 | /* confdefs.h. */ |
| 5482 | _ACEOF |
| 5483 | cat confdefs.h >>conftest.$ac_ext |
| 5484 | cat >>conftest.$ac_ext <<_ACEOF |
| 5485 | /* end confdefs.h. */ |
| 5486 | #include <stdlib.h> |
| 5487 | |
| 5488 | _ACEOF |
| 5489 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5490 | $EGREP "free" >/dev/null 2>&1; then |
| 5491 | : |
| 5492 | else |
| 5493 | ac_cv_header_stdc=no |
| 5494 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 5495 | rm -f -r conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5496 | |
| 5497 | fi |
| 5498 | |
| 5499 | if test $ac_cv_header_stdc = yes; then |
| 5500 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5501 | if test "$cross_compiling" = yes; then |
| 5502 | : |
| 5503 | else |
| 5504 | cat >conftest.$ac_ext <<_ACEOF |
| 5505 | /* confdefs.h. */ |
| 5506 | _ACEOF |
| 5507 | cat confdefs.h >>conftest.$ac_ext |
| 5508 | cat >>conftest.$ac_ext <<_ACEOF |
| 5509 | /* end confdefs.h. */ |
| 5510 | #include <ctype.h> |
| 5511 | #include <stdlib.h> |
| 5512 | #if ((' ' & 0x0FF) == 0x020) |
| 5513 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5514 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5515 | #else |
| 5516 | # define ISLOWER(c) \ |
| 5517 | (('a' <= (c) && (c) <= 'i') \ |
| 5518 | || ('j' <= (c) && (c) <= 'r') \ |
| 5519 | || ('s' <= (c) && (c) <= 'z')) |
| 5520 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5521 | #endif |
| 5522 | |
| 5523 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5524 | int |
| 5525 | main () |
| 5526 | { |
| 5527 | int i; |
| 5528 | for (i = 0; i < 256; i++) |
| 5529 | if (XOR (islower (i), ISLOWER (i)) |
| 5530 | || toupper (i) != TOUPPER (i)) |
| 5531 | return 2; |
| 5532 | return 0; |
| 5533 | } |
| 5534 | _ACEOF |
| 5535 | rm -f conftest$ac_exeext |
| 5536 | if { (ac_try="$ac_link" |
| 5537 | case "(($ac_try" in |
| 5538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5539 | *) ac_try_echo=$ac_try;; |
| 5540 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5542 | (eval "$ac_link") 2>&5 |
| 5543 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5545 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5546 | { (case "(($ac_try" in |
| 5547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5548 | *) ac_try_echo=$ac_try;; |
| 5549 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5551 | (eval "$ac_try") 2>&5 |
| 5552 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5554 | (exit $ac_status); }; }; then |
| 5555 | : |
| 5556 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5557 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5558 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5560 | |
| 5561 | ( exit $ac_status ) |
| 5562 | ac_cv_header_stdc=no |
| 5563 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5564 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5565 | fi |
| 5566 | |
| 5567 | |
| 5568 | fi |
| 5569 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5570 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5571 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5572 | if test $ac_cv_header_stdc = yes; then |
| 5573 | |
| 5574 | cat >>confdefs.h <<\_ACEOF |
| 5575 | #define STDC_HEADERS 1 |
| 5576 | _ACEOF |
| 5577 | |
| 5578 | fi |
| 5579 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5580 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5581 | |
| 5582 | |
| 5583 | |
| 5584 | |
| 5585 | |
| 5586 | |
| 5587 | |
| 5588 | |
| 5589 | |
| 5590 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5591 | inttypes.h stdint.h unistd.h |
| 5592 | do |
| 5593 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5594 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5596 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5598 | else |
| 5599 | cat >conftest.$ac_ext <<_ACEOF |
| 5600 | /* confdefs.h. */ |
| 5601 | _ACEOF |
| 5602 | cat confdefs.h >>conftest.$ac_ext |
| 5603 | cat >>conftest.$ac_ext <<_ACEOF |
| 5604 | /* end confdefs.h. */ |
| 5605 | $ac_includes_default |
| 5606 | |
| 5607 | #include <$ac_header> |
| 5608 | _ACEOF |
| 5609 | rm -f conftest.$ac_objext |
| 5610 | if { (ac_try="$ac_compile" |
| 5611 | case "(($ac_try" in |
| 5612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5613 | *) ac_try_echo=$ac_try;; |
| 5614 | esac |
| 5615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5616 | (eval "$ac_compile") 2>conftest.er1 |
| 5617 | ac_status=$? |
| 5618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5619 | rm -f conftest.er1 |
| 5620 | cat conftest.err >&5 |
| 5621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5622 | (exit $ac_status); } && { |
| 5623 | test -z "$ac_c_werror_flag" || |
| 5624 | test ! -s conftest.err |
| 5625 | } && test -s conftest.$ac_objext; then |
| 5626 | eval "$as_ac_Header=yes" |
| 5627 | else |
| 5628 | echo "$as_me: failed program was:" >&5 |
| 5629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5630 | |
| 5631 | eval "$as_ac_Header=no" |
| 5632 | fi |
| 5633 | |
| 5634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5635 | fi |
| 5636 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5637 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5638 | echo "${ECHO_T}$ac_res" >&6; } |
| 5639 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5640 | cat >>confdefs.h <<_ACEOF |
| 5641 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5642 | _ACEOF |
| 5643 | |
| 5644 | fi |
| 5645 | |
| 5646 | done |
| 5647 | |
| 5648 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5650 | |
| 5651 | |
| 5652 | |
| 5653 | |
| 5654 | |
| 5655 | |
| 5656 | |
| 5657 | |
| 5658 | |
| 5659 | |
| 5660 | |
| 5661 | |
| 5662 | |
| 5663 | |
| 5664 | |
| 5665 | |
| 5666 | |
| 5667 | |
| 5668 | |
| 5669 | |
| 5670 | |
| 5671 | |
| 5672 | |
| 5673 | |
| 5674 | |
| 5675 | |
| 5676 | |
| 5677 | |
| 5678 | |
| 5679 | |
| 5680 | |
| 5681 | |
| 5682 | |
| 5683 | |
| 5684 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5685 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5686 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5687 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5688 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5689 | |
| 5690 | |
| 5691 | |
| 5692 | |
| 5693 | |
| 5694 | |
| 5695 | |
| 5696 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5697 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5698 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5699 | |
| 5700 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5701 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5702 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5703 | |
| 5704 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5705 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5706 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5707 | 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] | 5708 | 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] | 5709 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5710 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5711 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5712 | 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] | 5713 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5714 | 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] | 5715 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5716 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5717 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5718 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5719 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5720 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5722 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5724 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5725 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5726 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5727 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5728 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5729 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5730 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5731 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5732 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5733 | /* confdefs.h. */ |
| 5734 | _ACEOF |
| 5735 | cat confdefs.h >>conftest.$ac_ext |
| 5736 | cat >>conftest.$ac_ext <<_ACEOF |
| 5737 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5738 | $ac_includes_default |
| 5739 | #include <$ac_header> |
| 5740 | _ACEOF |
| 5741 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5742 | if { (ac_try="$ac_compile" |
| 5743 | case "(($ac_try" in |
| 5744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5745 | *) ac_try_echo=$ac_try;; |
| 5746 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5748 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5749 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5751 | rm -f conftest.er1 |
| 5752 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5754 | (exit $ac_status); } && { |
| 5755 | test -z "$ac_c_werror_flag" || |
| 5756 | test ! -s conftest.err |
| 5757 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5758 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5759 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5760 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5762 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5763 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5764 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5765 | |
| 5766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5767 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5768 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5769 | |
| 5770 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5771 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5772 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5773 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5774 | /* confdefs.h. */ |
| 5775 | _ACEOF |
| 5776 | cat confdefs.h >>conftest.$ac_ext |
| 5777 | cat >>conftest.$ac_ext <<_ACEOF |
| 5778 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5779 | #include <$ac_header> |
| 5780 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5781 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5782 | case "(($ac_try" in |
| 5783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5784 | *) ac_try_echo=$ac_try;; |
| 5785 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5787 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5788 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5789 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5790 | rm -f conftest.er1 |
| 5791 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5793 | (exit $ac_status); } >/dev/null && { |
| 5794 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5795 | test ! -s conftest.err |
| 5796 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5797 | ac_header_preproc=yes |
| 5798 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5799 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5802 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5803 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5804 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5805 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5806 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5807 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5808 | |
| 5809 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5810 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5811 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5812 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5813 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5814 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5815 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5816 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5817 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5818 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5819 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5820 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5821 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5822 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5823 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5824 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5825 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5826 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5827 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5828 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5829 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5830 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5831 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 5832 | ## -------------------------------------- ## |
| 5833 | ## Report this to http://bugs.python.org/ ## |
| 5834 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5835 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5836 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5837 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5838 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5839 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5840 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5841 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5843 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5844 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5845 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5846 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5847 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5848 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5849 | |
| 5850 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5851 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5852 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5853 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5854 | _ACEOF |
| 5855 | |
| 5856 | fi |
| 5857 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5858 | done |
| 5859 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5860 | |
| 5861 | |
| 5862 | |
| 5863 | |
| 5864 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5865 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5866 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5867 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5868 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5869 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5870 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5873 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5874 | /* confdefs.h. */ |
| 5875 | _ACEOF |
| 5876 | cat confdefs.h >>conftest.$ac_ext |
| 5877 | cat >>conftest.$ac_ext <<_ACEOF |
| 5878 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5879 | #include <sys/types.h> |
| 5880 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5882 | int |
| 5883 | main () |
| 5884 | { |
| 5885 | if ((DIR *) 0) |
| 5886 | return 0; |
| 5887 | ; |
| 5888 | return 0; |
| 5889 | } |
| 5890 | _ACEOF |
| 5891 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5892 | if { (ac_try="$ac_compile" |
| 5893 | case "(($ac_try" in |
| 5894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5895 | *) ac_try_echo=$ac_try;; |
| 5896 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5898 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5899 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5901 | rm -f conftest.er1 |
| 5902 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5904 | (exit $ac_status); } && { |
| 5905 | test -z "$ac_c_werror_flag" || |
| 5906 | test ! -s conftest.err |
| 5907 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5908 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5909 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5910 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5913 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5914 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5915 | |
| 5916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5917 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5918 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5919 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5920 | echo "${ECHO_T}$ac_res" >&6; } |
| 5921 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5922 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5923 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5924 | _ACEOF |
| 5925 | |
| 5926 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5927 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5928 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5929 | done |
| 5930 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5931 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5932 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5933 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5934 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5936 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5937 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5938 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5939 | /* confdefs.h. */ |
| 5940 | _ACEOF |
| 5941 | cat confdefs.h >>conftest.$ac_ext |
| 5942 | cat >>conftest.$ac_ext <<_ACEOF |
| 5943 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5944 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5945 | /* Override any GCC internal prototype to avoid an error. |
| 5946 | Use char because int might match the return type of a GCC |
| 5947 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5948 | #ifdef __cplusplus |
| 5949 | extern "C" |
| 5950 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5951 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5952 | int |
| 5953 | main () |
| 5954 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5955 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5956 | ; |
| 5957 | return 0; |
| 5958 | } |
| 5959 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5960 | for ac_lib in '' dir; do |
| 5961 | if test -z "$ac_lib"; then |
| 5962 | ac_res="none required" |
| 5963 | else |
| 5964 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5965 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5966 | fi |
| 5967 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5968 | if { (ac_try="$ac_link" |
| 5969 | case "(($ac_try" in |
| 5970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5971 | *) ac_try_echo=$ac_try;; |
| 5972 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5974 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5975 | ac_status=$? |
| 5976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5977 | rm -f conftest.er1 |
| 5978 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5980 | (exit $ac_status); } && { |
| 5981 | test -z "$ac_c_werror_flag" || |
| 5982 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5983 | } && test -s conftest$ac_exeext && |
| 5984 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5985 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5986 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5987 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5989 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5990 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5991 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5992 | |
| 5993 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5994 | conftest$ac_exeext |
| 5995 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5996 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5997 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5998 | done |
| 5999 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6000 | : |
| 6001 | else |
| 6002 | ac_cv_search_opendir=no |
| 6003 | fi |
| 6004 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6005 | LIBS=$ac_func_search_save_LIBS |
| 6006 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6007 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6008 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6009 | ac_res=$ac_cv_search_opendir |
| 6010 | if test "$ac_res" != no; then |
| 6011 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6012 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6013 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6014 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6015 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6016 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6017 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6018 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6020 | else |
| 6021 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6022 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6023 | /* confdefs.h. */ |
| 6024 | _ACEOF |
| 6025 | cat confdefs.h >>conftest.$ac_ext |
| 6026 | cat >>conftest.$ac_ext <<_ACEOF |
| 6027 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6028 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6029 | /* Override any GCC internal prototype to avoid an error. |
| 6030 | Use char because int might match the return type of a GCC |
| 6031 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6032 | #ifdef __cplusplus |
| 6033 | extern "C" |
| 6034 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6035 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6036 | int |
| 6037 | main () |
| 6038 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6039 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6040 | ; |
| 6041 | return 0; |
| 6042 | } |
| 6043 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6044 | for ac_lib in '' x; do |
| 6045 | if test -z "$ac_lib"; then |
| 6046 | ac_res="none required" |
| 6047 | else |
| 6048 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6049 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6050 | fi |
| 6051 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6052 | if { (ac_try="$ac_link" |
| 6053 | case "(($ac_try" in |
| 6054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6055 | *) ac_try_echo=$ac_try;; |
| 6056 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6058 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6059 | ac_status=$? |
| 6060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6061 | rm -f conftest.er1 |
| 6062 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6064 | (exit $ac_status); } && { |
| 6065 | test -z "$ac_c_werror_flag" || |
| 6066 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6067 | } && test -s conftest$ac_exeext && |
| 6068 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6069 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6070 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6071 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6073 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6074 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6075 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6076 | |
| 6077 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6078 | conftest$ac_exeext |
| 6079 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6080 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6081 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6082 | done |
| 6083 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6084 | : |
| 6085 | else |
| 6086 | ac_cv_search_opendir=no |
| 6087 | fi |
| 6088 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6089 | LIBS=$ac_func_search_save_LIBS |
| 6090 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6091 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6092 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6093 | ac_res=$ac_cv_search_opendir |
| 6094 | if test "$ac_res" != no; then |
| 6095 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6096 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6097 | fi |
| 6098 | |
| 6099 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6100 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6101 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6102 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6103 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6105 | else |
| 6106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6107 | /* confdefs.h. */ |
| 6108 | _ACEOF |
| 6109 | cat confdefs.h >>conftest.$ac_ext |
| 6110 | cat >>conftest.$ac_ext <<_ACEOF |
| 6111 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6112 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6113 | int |
| 6114 | main () |
| 6115 | { |
| 6116 | return makedev(0, 0); |
| 6117 | ; |
| 6118 | return 0; |
| 6119 | } |
| 6120 | _ACEOF |
| 6121 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6122 | if { (ac_try="$ac_link" |
| 6123 | case "(($ac_try" in |
| 6124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6125 | *) ac_try_echo=$ac_try;; |
| 6126 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6128 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6129 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6131 | rm -f conftest.er1 |
| 6132 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6134 | (exit $ac_status); } && { |
| 6135 | test -z "$ac_c_werror_flag" || |
| 6136 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6137 | } && test -s conftest$ac_exeext && |
| 6138 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6139 | ac_cv_header_sys_types_h_makedev=yes |
| 6140 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6141 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6143 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6144 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6145 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6146 | |
| 6147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6148 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6149 | |
| 6150 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6151 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6152 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6153 | |
| 6154 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6155 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6156 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6157 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6158 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6160 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6161 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6162 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6163 | else |
| 6164 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6165 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6166 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6167 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6168 | /* confdefs.h. */ |
| 6169 | _ACEOF |
| 6170 | cat confdefs.h >>conftest.$ac_ext |
| 6171 | cat >>conftest.$ac_ext <<_ACEOF |
| 6172 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6173 | $ac_includes_default |
| 6174 | #include <sys/mkdev.h> |
| 6175 | _ACEOF |
| 6176 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6177 | if { (ac_try="$ac_compile" |
| 6178 | case "(($ac_try" in |
| 6179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6180 | *) ac_try_echo=$ac_try;; |
| 6181 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6183 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6184 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6186 | rm -f conftest.er1 |
| 6187 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6189 | (exit $ac_status); } && { |
| 6190 | test -z "$ac_c_werror_flag" || |
| 6191 | test ! -s conftest.err |
| 6192 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6193 | ac_header_compiler=yes |
| 6194 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6195 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6197 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6198 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6199 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6200 | |
| 6201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6202 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6203 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6204 | |
| 6205 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6206 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6207 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6209 | /* confdefs.h. */ |
| 6210 | _ACEOF |
| 6211 | cat confdefs.h >>conftest.$ac_ext |
| 6212 | cat >>conftest.$ac_ext <<_ACEOF |
| 6213 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6214 | #include <sys/mkdev.h> |
| 6215 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6216 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6217 | case "(($ac_try" in |
| 6218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6219 | *) ac_try_echo=$ac_try;; |
| 6220 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6222 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6223 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6224 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6225 | rm -f conftest.er1 |
| 6226 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6228 | (exit $ac_status); } >/dev/null && { |
| 6229 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6230 | test ! -s conftest.err |
| 6231 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6232 | ac_header_preproc=yes |
| 6233 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6234 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6236 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6237 | ac_header_preproc=no |
| 6238 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6239 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6240 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6241 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6242 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6243 | |
| 6244 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6245 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6246 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6247 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6248 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6249 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6250 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6251 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6252 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6253 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6254 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6255 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6256 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6257 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6258 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6259 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6260 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6261 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6262 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6263 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6264 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6265 | echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6266 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6267 | ## -------------------------------------- ## |
| 6268 | ## Report this to http://bugs.python.org/ ## |
| 6269 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6270 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6271 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6272 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6273 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6274 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6275 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6276 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6278 | else |
| 6279 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6280 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6281 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6282 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6283 | |
| 6284 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6285 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6286 | |
| 6287 | cat >>confdefs.h <<\_ACEOF |
| 6288 | #define MAJOR_IN_MKDEV 1 |
| 6289 | _ACEOF |
| 6290 | |
| 6291 | fi |
| 6292 | |
| 6293 | |
| 6294 | |
| 6295 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6296 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6297 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6298 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6299 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6301 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6302 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6303 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6304 | else |
| 6305 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6306 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6307 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6308 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6309 | /* confdefs.h. */ |
| 6310 | _ACEOF |
| 6311 | cat confdefs.h >>conftest.$ac_ext |
| 6312 | cat >>conftest.$ac_ext <<_ACEOF |
| 6313 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6314 | $ac_includes_default |
| 6315 | #include <sys/sysmacros.h> |
| 6316 | _ACEOF |
| 6317 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6318 | if { (ac_try="$ac_compile" |
| 6319 | case "(($ac_try" in |
| 6320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6321 | *) ac_try_echo=$ac_try;; |
| 6322 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6324 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6325 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6327 | rm -f conftest.er1 |
| 6328 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6330 | (exit $ac_status); } && { |
| 6331 | test -z "$ac_c_werror_flag" || |
| 6332 | test ! -s conftest.err |
| 6333 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6334 | ac_header_compiler=yes |
| 6335 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6336 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6338 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6339 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6340 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6341 | |
| 6342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6343 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6344 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6345 | |
| 6346 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6347 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6348 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6349 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6350 | /* confdefs.h. */ |
| 6351 | _ACEOF |
| 6352 | cat confdefs.h >>conftest.$ac_ext |
| 6353 | cat >>conftest.$ac_ext <<_ACEOF |
| 6354 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6355 | #include <sys/sysmacros.h> |
| 6356 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6357 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6358 | case "(($ac_try" in |
| 6359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6360 | *) ac_try_echo=$ac_try;; |
| 6361 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6363 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6364 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6365 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6366 | rm -f conftest.er1 |
| 6367 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6369 | (exit $ac_status); } >/dev/null && { |
| 6370 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6371 | test ! -s conftest.err |
| 6372 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6373 | ac_header_preproc=yes |
| 6374 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6375 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6377 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6378 | ac_header_preproc=no |
| 6379 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6380 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6381 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6382 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6383 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6384 | |
| 6385 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6386 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6387 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6388 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6389 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6390 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6391 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6392 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6393 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6394 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6395 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6396 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6397 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6398 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6399 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6400 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6401 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6402 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6403 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6404 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6405 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6406 | echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6407 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6408 | ## -------------------------------------- ## |
| 6409 | ## Report this to http://bugs.python.org/ ## |
| 6410 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6411 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6412 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6413 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6414 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6415 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6416 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6417 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6419 | else |
| 6420 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6421 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6422 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6423 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6424 | |
| 6425 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6426 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6427 | |
| 6428 | cat >>confdefs.h <<\_ACEOF |
| 6429 | #define MAJOR_IN_SYSMACROS 1 |
| 6430 | _ACEOF |
| 6431 | |
| 6432 | fi |
| 6433 | |
| 6434 | |
| 6435 | fi |
| 6436 | fi |
| 6437 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6438 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6439 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6440 | |
| 6441 | for ac_header in term.h |
| 6442 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6443 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6444 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6445 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6446 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6448 | else |
| 6449 | cat >conftest.$ac_ext <<_ACEOF |
| 6450 | /* confdefs.h. */ |
| 6451 | _ACEOF |
| 6452 | cat confdefs.h >>conftest.$ac_ext |
| 6453 | cat >>conftest.$ac_ext <<_ACEOF |
| 6454 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6455 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6456 | #ifdef HAVE_CURSES_H |
| 6457 | #include <curses.h> |
| 6458 | #endif |
| 6459 | |
| 6460 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6461 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6462 | _ACEOF |
| 6463 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6464 | if { (ac_try="$ac_compile" |
| 6465 | case "(($ac_try" in |
| 6466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6467 | *) ac_try_echo=$ac_try;; |
| 6468 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6470 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6471 | ac_status=$? |
| 6472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6473 | rm -f conftest.er1 |
| 6474 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6476 | (exit $ac_status); } && { |
| 6477 | test -z "$ac_c_werror_flag" || |
| 6478 | test ! -s conftest.err |
| 6479 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6480 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6481 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6482 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6484 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6485 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6486 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6487 | |
| 6488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6489 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6490 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6491 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6492 | echo "${ECHO_T}$ac_res" >&6; } |
| 6493 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6494 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6495 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6496 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6497 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6498 | fi |
| 6499 | |
| 6500 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6501 | |
| 6502 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6503 | # On Linux, netlink.h requires asm/types.h |
| 6504 | |
| 6505 | for ac_header in linux/netlink.h |
| 6506 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6507 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6508 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6509 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6510 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6512 | else |
| 6513 | cat >conftest.$ac_ext <<_ACEOF |
| 6514 | /* confdefs.h. */ |
| 6515 | _ACEOF |
| 6516 | cat confdefs.h >>conftest.$ac_ext |
| 6517 | cat >>conftest.$ac_ext <<_ACEOF |
| 6518 | /* end confdefs.h. */ |
| 6519 | |
| 6520 | #ifdef HAVE_ASM_TYPES_H |
| 6521 | #include <asm/types.h> |
| 6522 | #endif |
| 6523 | #ifdef HAVE_SYS_SOCKET_H |
| 6524 | #include <sys/socket.h> |
| 6525 | #endif |
| 6526 | |
| 6527 | |
| 6528 | #include <$ac_header> |
| 6529 | _ACEOF |
| 6530 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6531 | if { (ac_try="$ac_compile" |
| 6532 | case "(($ac_try" in |
| 6533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6534 | *) ac_try_echo=$ac_try;; |
| 6535 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6537 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6538 | ac_status=$? |
| 6539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6540 | rm -f conftest.er1 |
| 6541 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6543 | (exit $ac_status); } && { |
| 6544 | test -z "$ac_c_werror_flag" || |
| 6545 | test ! -s conftest.err |
| 6546 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6547 | eval "$as_ac_Header=yes" |
| 6548 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6549 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6551 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6552 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6553 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6554 | |
| 6555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6556 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6557 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6558 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6559 | echo "${ECHO_T}$ac_res" >&6; } |
| 6560 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6561 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6562 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6563 | _ACEOF |
| 6564 | |
| 6565 | fi |
| 6566 | |
| 6567 | done |
| 6568 | |
| 6569 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6570 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6571 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6572 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6573 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6574 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6575 | /* confdefs.h. */ |
| 6576 | _ACEOF |
| 6577 | cat confdefs.h >>conftest.$ac_ext |
| 6578 | cat >>conftest.$ac_ext <<_ACEOF |
| 6579 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6580 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6581 | |
| 6582 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6584 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6585 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6586 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6587 | |
| 6588 | |
| 6589 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6590 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6591 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6592 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6593 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6594 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 6595 | rm -f -r conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6596 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6597 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6598 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6599 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6600 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6601 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6602 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6603 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6604 | /* confdefs.h. */ |
| 6605 | _ACEOF |
| 6606 | cat confdefs.h >>conftest.$ac_ext |
| 6607 | cat >>conftest.$ac_ext <<_ACEOF |
| 6608 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6609 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6610 | int |
| 6611 | main () |
| 6612 | { |
| 6613 | makedev(0, 0) |
| 6614 | ; |
| 6615 | return 0; |
| 6616 | } |
| 6617 | _ACEOF |
| 6618 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6619 | if { (ac_try="$ac_link" |
| 6620 | case "(($ac_try" in |
| 6621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6622 | *) ac_try_echo=$ac_try;; |
| 6623 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6625 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6626 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6628 | rm -f conftest.er1 |
| 6629 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6631 | (exit $ac_status); } && { |
| 6632 | test -z "$ac_c_werror_flag" || |
| 6633 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6634 | } && test -s conftest$ac_exeext && |
| 6635 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6636 | ac_cv_has_makedev=yes |
| 6637 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6638 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6640 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6641 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6642 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6643 | |
| 6644 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6645 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6646 | if test "$ac_cv_has_makedev" = "no"; then |
| 6647 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6648 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6649 | /* confdefs.h. */ |
| 6650 | _ACEOF |
| 6651 | cat confdefs.h >>conftest.$ac_ext |
| 6652 | cat >>conftest.$ac_ext <<_ACEOF |
| 6653 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6654 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6655 | #define _OSF_SOURCE 1 |
| 6656 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6657 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6658 | int |
| 6659 | main () |
| 6660 | { |
| 6661 | makedev(0, 0) |
| 6662 | ; |
| 6663 | return 0; |
| 6664 | } |
| 6665 | _ACEOF |
| 6666 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6667 | if { (ac_try="$ac_link" |
| 6668 | case "(($ac_try" in |
| 6669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6670 | *) ac_try_echo=$ac_try;; |
| 6671 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6673 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6674 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6676 | rm -f conftest.er1 |
| 6677 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6679 | (exit $ac_status); } && { |
| 6680 | test -z "$ac_c_werror_flag" || |
| 6681 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6682 | } && test -s conftest$ac_exeext && |
| 6683 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6684 | ac_cv_has_makedev=yes |
| 6685 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6686 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6688 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6689 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6690 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6691 | |
| 6692 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6693 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6694 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6695 | |
| 6696 | cat >>confdefs.h <<\_ACEOF |
| 6697 | #define _OSF_SOURCE 1 |
| 6698 | _ACEOF |
| 6699 | |
| 6700 | fi |
| 6701 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6702 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6703 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6704 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6705 | |
| 6706 | cat >>confdefs.h <<\_ACEOF |
| 6707 | #define HAVE_MAKEDEV 1 |
| 6708 | _ACEOF |
| 6709 | |
| 6710 | fi |
| 6711 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6712 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6713 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6714 | # defined, but the compiler does not support pragma redefine_extname, |
| 6715 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6716 | # structures (such as rlimit64) without declaring them. As a |
| 6717 | # work-around, disable LFS on such configurations |
| 6718 | |
| 6719 | use_lfs=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6720 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6721 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6722 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6723 | /* confdefs.h. */ |
| 6724 | _ACEOF |
| 6725 | cat confdefs.h >>conftest.$ac_ext |
| 6726 | cat >>conftest.$ac_ext <<_ACEOF |
| 6727 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6728 | |
| 6729 | #define _LARGEFILE_SOURCE 1 |
| 6730 | #define _FILE_OFFSET_BITS 64 |
| 6731 | #include <sys/resource.h> |
| 6732 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6733 | int |
| 6734 | main () |
| 6735 | { |
| 6736 | struct rlimit foo; |
| 6737 | ; |
| 6738 | return 0; |
| 6739 | } |
| 6740 | _ACEOF |
| 6741 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6742 | if { (ac_try="$ac_compile" |
| 6743 | case "(($ac_try" in |
| 6744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6745 | *) ac_try_echo=$ac_try;; |
| 6746 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6748 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6749 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6751 | rm -f conftest.er1 |
| 6752 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6754 | (exit $ac_status); } && { |
| 6755 | test -z "$ac_c_werror_flag" || |
| 6756 | test ! -s conftest.err |
| 6757 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6758 | sol_lfs_bug=no |
| 6759 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6760 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6762 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6763 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6764 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6765 | |
| 6766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6767 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6768 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6769 | if test "$sol_lfs_bug" = "yes"; then |
| 6770 | use_lfs=no |
| 6771 | fi |
| 6772 | |
| 6773 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6774 | # Two defines needed to enable largefile support on various platforms |
| 6775 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6777 | cat >>confdefs.h <<\_ACEOF |
| 6778 | #define _LARGEFILE_SOURCE 1 |
| 6779 | _ACEOF |
| 6780 | |
| 6781 | |
| 6782 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6783 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6784 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6785 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6786 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6787 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6788 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6789 | cat >> confdefs.h <<\EOF |
| 6790 | #if defined(SCO_DS) |
| 6791 | #undef _OFF_T |
| 6792 | #endif |
| 6793 | EOF |
| 6794 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6795 | # Type availability checks |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6796 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6797 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6798 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6800 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6801 | cat >conftest.$ac_ext <<_ACEOF |
| 6802 | /* confdefs.h. */ |
| 6803 | _ACEOF |
| 6804 | cat confdefs.h >>conftest.$ac_ext |
| 6805 | cat >>conftest.$ac_ext <<_ACEOF |
| 6806 | /* end confdefs.h. */ |
| 6807 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6808 | typedef mode_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6809 | int |
| 6810 | main () |
| 6811 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6812 | if ((ac__type_new_ *) 0) |
| 6813 | return 0; |
| 6814 | if (sizeof (ac__type_new_)) |
| 6815 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6816 | ; |
| 6817 | return 0; |
| 6818 | } |
| 6819 | _ACEOF |
| 6820 | rm -f conftest.$ac_objext |
| 6821 | if { (ac_try="$ac_compile" |
| 6822 | case "(($ac_try" in |
| 6823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6824 | *) ac_try_echo=$ac_try;; |
| 6825 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6827 | (eval "$ac_compile") 2>conftest.er1 |
| 6828 | ac_status=$? |
| 6829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6830 | rm -f conftest.er1 |
| 6831 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6833 | (exit $ac_status); } && { |
| 6834 | test -z "$ac_c_werror_flag" || |
| 6835 | test ! -s conftest.err |
| 6836 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6837 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6838 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6839 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6841 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6842 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6843 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6844 | |
| 6845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6846 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6847 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6848 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6849 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6850 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6851 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6852 | |
| 6853 | cat >>confdefs.h <<_ACEOF |
| 6854 | #define mode_t int |
| 6855 | _ACEOF |
| 6856 | |
| 6857 | fi |
| 6858 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6859 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6860 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6861 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6863 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6864 | cat >conftest.$ac_ext <<_ACEOF |
| 6865 | /* confdefs.h. */ |
| 6866 | _ACEOF |
| 6867 | cat confdefs.h >>conftest.$ac_ext |
| 6868 | cat >>conftest.$ac_ext <<_ACEOF |
| 6869 | /* end confdefs.h. */ |
| 6870 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6871 | typedef off_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6872 | int |
| 6873 | main () |
| 6874 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6875 | if ((ac__type_new_ *) 0) |
| 6876 | return 0; |
| 6877 | if (sizeof (ac__type_new_)) |
| 6878 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6879 | ; |
| 6880 | return 0; |
| 6881 | } |
| 6882 | _ACEOF |
| 6883 | rm -f conftest.$ac_objext |
| 6884 | if { (ac_try="$ac_compile" |
| 6885 | case "(($ac_try" in |
| 6886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6887 | *) ac_try_echo=$ac_try;; |
| 6888 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6890 | (eval "$ac_compile") 2>conftest.er1 |
| 6891 | ac_status=$? |
| 6892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6893 | rm -f conftest.er1 |
| 6894 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6896 | (exit $ac_status); } && { |
| 6897 | test -z "$ac_c_werror_flag" || |
| 6898 | test ! -s conftest.err |
| 6899 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6900 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6901 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6902 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6904 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6905 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6906 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6907 | |
| 6908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6909 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6910 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6911 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6912 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6913 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6915 | |
| 6916 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6917 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6918 | _ACEOF |
| 6919 | |
| 6920 | fi |
| 6921 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6922 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6923 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6924 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6926 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6927 | cat >conftest.$ac_ext <<_ACEOF |
| 6928 | /* confdefs.h. */ |
| 6929 | _ACEOF |
| 6930 | cat confdefs.h >>conftest.$ac_ext |
| 6931 | cat >>conftest.$ac_ext <<_ACEOF |
| 6932 | /* end confdefs.h. */ |
| 6933 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6934 | typedef pid_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6935 | int |
| 6936 | main () |
| 6937 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6938 | if ((ac__type_new_ *) 0) |
| 6939 | return 0; |
| 6940 | if (sizeof (ac__type_new_)) |
| 6941 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6942 | ; |
| 6943 | return 0; |
| 6944 | } |
| 6945 | _ACEOF |
| 6946 | rm -f conftest.$ac_objext |
| 6947 | if { (ac_try="$ac_compile" |
| 6948 | case "(($ac_try" in |
| 6949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6950 | *) ac_try_echo=$ac_try;; |
| 6951 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6953 | (eval "$ac_compile") 2>conftest.er1 |
| 6954 | ac_status=$? |
| 6955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6956 | rm -f conftest.er1 |
| 6957 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6959 | (exit $ac_status); } && { |
| 6960 | test -z "$ac_c_werror_flag" || |
| 6961 | test ! -s conftest.err |
| 6962 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6963 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6964 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6965 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6967 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6968 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6969 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6970 | |
| 6971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6972 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6973 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6974 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 6975 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6976 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6978 | |
| 6979 | cat >>confdefs.h <<_ACEOF |
| 6980 | #define pid_t int |
| 6981 | _ACEOF |
| 6982 | |
| 6983 | fi |
| 6984 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6985 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6986 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6987 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6989 | else |
| 6990 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6991 | /* confdefs.h. */ |
| 6992 | _ACEOF |
| 6993 | cat confdefs.h >>conftest.$ac_ext |
| 6994 | cat >>conftest.$ac_ext <<_ACEOF |
| 6995 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6996 | #include <sys/types.h> |
| 6997 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6999 | int |
| 7000 | main () |
| 7001 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7002 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7003 | ; |
| 7004 | return 0; |
| 7005 | } |
| 7006 | _ACEOF |
| 7007 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7008 | if { (ac_try="$ac_compile" |
| 7009 | case "(($ac_try" in |
| 7010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7011 | *) ac_try_echo=$ac_try;; |
| 7012 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7014 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7015 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7017 | rm -f conftest.er1 |
| 7018 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7020 | (exit $ac_status); } && { |
| 7021 | test -z "$ac_c_werror_flag" || |
| 7022 | test ! -s conftest.err |
| 7023 | } && test -s conftest.$ac_objext; then |
| 7024 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7025 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7026 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7028 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7029 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7030 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7031 | |
| 7032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7033 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7034 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 7035 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7037 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7038 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7039 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7040 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7041 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7042 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 7043 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7044 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7046 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7047 | cat >conftest.$ac_ext <<_ACEOF |
| 7048 | /* confdefs.h. */ |
| 7049 | _ACEOF |
| 7050 | cat confdefs.h >>conftest.$ac_ext |
| 7051 | cat >>conftest.$ac_ext <<_ACEOF |
| 7052 | /* end confdefs.h. */ |
| 7053 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7054 | typedef size_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7055 | int |
| 7056 | main () |
| 7057 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7058 | if ((ac__type_new_ *) 0) |
| 7059 | return 0; |
| 7060 | if (sizeof (ac__type_new_)) |
| 7061 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7062 | ; |
| 7063 | return 0; |
| 7064 | } |
| 7065 | _ACEOF |
| 7066 | rm -f conftest.$ac_objext |
| 7067 | if { (ac_try="$ac_compile" |
| 7068 | case "(($ac_try" in |
| 7069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7070 | *) ac_try_echo=$ac_try;; |
| 7071 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7073 | (eval "$ac_compile") 2>conftest.er1 |
| 7074 | ac_status=$? |
| 7075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7076 | rm -f conftest.er1 |
| 7077 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7079 | (exit $ac_status); } && { |
| 7080 | test -z "$ac_c_werror_flag" || |
| 7081 | test ! -s conftest.err |
| 7082 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7083 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7084 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7085 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7087 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7088 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7089 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7090 | |
| 7091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7092 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7093 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7094 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 7095 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7096 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7097 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7098 | |
| 7099 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7100 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7101 | _ACEOF |
| 7102 | |
| 7103 | fi |
| 7104 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7105 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7106 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7107 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7109 | else |
| 7110 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7111 | /* confdefs.h. */ |
| 7112 | _ACEOF |
| 7113 | cat confdefs.h >>conftest.$ac_ext |
| 7114 | cat >>conftest.$ac_ext <<_ACEOF |
| 7115 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7116 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7117 | |
| 7118 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7119 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7120 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7121 | ac_cv_type_uid_t=yes |
| 7122 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7123 | ac_cv_type_uid_t=no |
| 7124 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7125 | rm -f -r conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7126 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7127 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7128 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7129 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7130 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7132 | cat >>confdefs.h <<\_ACEOF |
| 7133 | #define uid_t int |
| 7134 | _ACEOF |
| 7135 | |
| 7136 | |
| 7137 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7138 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7139 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7140 | |
| 7141 | fi |
| 7142 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7143 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7144 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7145 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7146 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7148 | else |
| 7149 | ac_cv_c_uint32_t=no |
| 7150 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7151 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7152 | cat >conftest.$ac_ext <<_ACEOF |
| 7153 | /* confdefs.h. */ |
| 7154 | _ACEOF |
| 7155 | cat confdefs.h >>conftest.$ac_ext |
| 7156 | cat >>conftest.$ac_ext <<_ACEOF |
| 7157 | /* end confdefs.h. */ |
| 7158 | $ac_includes_default |
| 7159 | int |
| 7160 | main () |
| 7161 | { |
| 7162 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7163 | test_array [0] = 0 |
| 7164 | |
| 7165 | ; |
| 7166 | return 0; |
| 7167 | } |
| 7168 | _ACEOF |
| 7169 | rm -f conftest.$ac_objext |
| 7170 | if { (ac_try="$ac_compile" |
| 7171 | case "(($ac_try" in |
| 7172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7173 | *) ac_try_echo=$ac_try;; |
| 7174 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7176 | (eval "$ac_compile") 2>conftest.er1 |
| 7177 | ac_status=$? |
| 7178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7179 | rm -f conftest.er1 |
| 7180 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7182 | (exit $ac_status); } && { |
| 7183 | test -z "$ac_c_werror_flag" || |
| 7184 | test ! -s conftest.err |
| 7185 | } && test -s conftest.$ac_objext; then |
| 7186 | case $ac_type in |
| 7187 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7188 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7189 | esac |
| 7190 | |
| 7191 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7192 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7194 | |
| 7195 | |
| 7196 | fi |
| 7197 | |
| 7198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7199 | test "$ac_cv_c_uint32_t" != no && break |
| 7200 | done |
| 7201 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7202 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7203 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7204 | case $ac_cv_c_uint32_t in #( |
| 7205 | no|yes) ;; #( |
| 7206 | *) |
| 7207 | |
| 7208 | cat >>confdefs.h <<\_ACEOF |
| 7209 | #define _UINT32_T 1 |
| 7210 | _ACEOF |
| 7211 | |
| 7212 | |
| 7213 | cat >>confdefs.h <<_ACEOF |
| 7214 | #define uint32_t $ac_cv_c_uint32_t |
| 7215 | _ACEOF |
| 7216 | ;; |
| 7217 | esac |
| 7218 | |
| 7219 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7220 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7221 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7222 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7224 | else |
| 7225 | ac_cv_c_uint64_t=no |
| 7226 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7227 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7228 | cat >conftest.$ac_ext <<_ACEOF |
| 7229 | /* confdefs.h. */ |
| 7230 | _ACEOF |
| 7231 | cat confdefs.h >>conftest.$ac_ext |
| 7232 | cat >>conftest.$ac_ext <<_ACEOF |
| 7233 | /* end confdefs.h. */ |
| 7234 | $ac_includes_default |
| 7235 | int |
| 7236 | main () |
| 7237 | { |
| 7238 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7239 | test_array [0] = 0 |
| 7240 | |
| 7241 | ; |
| 7242 | return 0; |
| 7243 | } |
| 7244 | _ACEOF |
| 7245 | rm -f conftest.$ac_objext |
| 7246 | if { (ac_try="$ac_compile" |
| 7247 | case "(($ac_try" in |
| 7248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7249 | *) ac_try_echo=$ac_try;; |
| 7250 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7252 | (eval "$ac_compile") 2>conftest.er1 |
| 7253 | ac_status=$? |
| 7254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7255 | rm -f conftest.er1 |
| 7256 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7258 | (exit $ac_status); } && { |
| 7259 | test -z "$ac_c_werror_flag" || |
| 7260 | test ! -s conftest.err |
| 7261 | } && test -s conftest.$ac_objext; then |
| 7262 | case $ac_type in |
| 7263 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7264 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7265 | esac |
| 7266 | |
| 7267 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7268 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7270 | |
| 7271 | |
| 7272 | fi |
| 7273 | |
| 7274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7275 | test "$ac_cv_c_uint64_t" != no && break |
| 7276 | done |
| 7277 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7278 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7279 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7280 | case $ac_cv_c_uint64_t in #( |
| 7281 | no|yes) ;; #( |
| 7282 | *) |
| 7283 | |
| 7284 | cat >>confdefs.h <<\_ACEOF |
| 7285 | #define _UINT64_T 1 |
| 7286 | _ACEOF |
| 7287 | |
| 7288 | |
| 7289 | cat >>confdefs.h <<_ACEOF |
| 7290 | #define uint64_t $ac_cv_c_uint64_t |
| 7291 | _ACEOF |
| 7292 | ;; |
| 7293 | esac |
| 7294 | |
| 7295 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7296 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7297 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7298 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7300 | else |
| 7301 | ac_cv_c_int32_t=no |
| 7302 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7303 | 'long long int' 'short int' 'signed char'; do |
| 7304 | cat >conftest.$ac_ext <<_ACEOF |
| 7305 | /* confdefs.h. */ |
| 7306 | _ACEOF |
| 7307 | cat confdefs.h >>conftest.$ac_ext |
| 7308 | cat >>conftest.$ac_ext <<_ACEOF |
| 7309 | /* end confdefs.h. */ |
| 7310 | $ac_includes_default |
| 7311 | int |
| 7312 | main () |
| 7313 | { |
| 7314 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7315 | test_array [0] = 0 |
| 7316 | |
| 7317 | ; |
| 7318 | return 0; |
| 7319 | } |
| 7320 | _ACEOF |
| 7321 | rm -f conftest.$ac_objext |
| 7322 | if { (ac_try="$ac_compile" |
| 7323 | case "(($ac_try" in |
| 7324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7325 | *) ac_try_echo=$ac_try;; |
| 7326 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7328 | (eval "$ac_compile") 2>conftest.er1 |
| 7329 | ac_status=$? |
| 7330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7331 | rm -f conftest.er1 |
| 7332 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7334 | (exit $ac_status); } && { |
| 7335 | test -z "$ac_c_werror_flag" || |
| 7336 | test ! -s conftest.err |
| 7337 | } && test -s conftest.$ac_objext; then |
| 7338 | cat >conftest.$ac_ext <<_ACEOF |
| 7339 | /* confdefs.h. */ |
| 7340 | _ACEOF |
| 7341 | cat confdefs.h >>conftest.$ac_ext |
| 7342 | cat >>conftest.$ac_ext <<_ACEOF |
| 7343 | /* end confdefs.h. */ |
| 7344 | $ac_includes_default |
| 7345 | int |
| 7346 | main () |
| 7347 | { |
| 7348 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7349 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7350 | test_array [0] = 0 |
| 7351 | |
| 7352 | ; |
| 7353 | return 0; |
| 7354 | } |
| 7355 | _ACEOF |
| 7356 | rm -f conftest.$ac_objext |
| 7357 | if { (ac_try="$ac_compile" |
| 7358 | case "(($ac_try" in |
| 7359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7360 | *) ac_try_echo=$ac_try;; |
| 7361 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7363 | (eval "$ac_compile") 2>conftest.er1 |
| 7364 | ac_status=$? |
| 7365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7366 | rm -f conftest.er1 |
| 7367 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7369 | (exit $ac_status); } && { |
| 7370 | test -z "$ac_c_werror_flag" || |
| 7371 | test ! -s conftest.err |
| 7372 | } && test -s conftest.$ac_objext; then |
| 7373 | : |
| 7374 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7375 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7377 | |
| 7378 | case $ac_type in |
| 7379 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7380 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7381 | esac |
| 7382 | |
| 7383 | fi |
| 7384 | |
| 7385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7386 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7387 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7389 | |
| 7390 | |
| 7391 | fi |
| 7392 | |
| 7393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7394 | test "$ac_cv_c_int32_t" != no && break |
| 7395 | done |
| 7396 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7397 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7398 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7399 | case $ac_cv_c_int32_t in #( |
| 7400 | no|yes) ;; #( |
| 7401 | *) |
| 7402 | |
| 7403 | cat >>confdefs.h <<_ACEOF |
| 7404 | #define int32_t $ac_cv_c_int32_t |
| 7405 | _ACEOF |
| 7406 | ;; |
| 7407 | esac |
| 7408 | |
| 7409 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7410 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7411 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7412 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7414 | else |
| 7415 | ac_cv_c_int64_t=no |
| 7416 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7417 | 'long long int' 'short int' 'signed char'; do |
| 7418 | cat >conftest.$ac_ext <<_ACEOF |
| 7419 | /* confdefs.h. */ |
| 7420 | _ACEOF |
| 7421 | cat confdefs.h >>conftest.$ac_ext |
| 7422 | cat >>conftest.$ac_ext <<_ACEOF |
| 7423 | /* end confdefs.h. */ |
| 7424 | $ac_includes_default |
| 7425 | int |
| 7426 | main () |
| 7427 | { |
| 7428 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7429 | test_array [0] = 0 |
| 7430 | |
| 7431 | ; |
| 7432 | return 0; |
| 7433 | } |
| 7434 | _ACEOF |
| 7435 | rm -f conftest.$ac_objext |
| 7436 | if { (ac_try="$ac_compile" |
| 7437 | case "(($ac_try" in |
| 7438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7439 | *) ac_try_echo=$ac_try;; |
| 7440 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7442 | (eval "$ac_compile") 2>conftest.er1 |
| 7443 | ac_status=$? |
| 7444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7445 | rm -f conftest.er1 |
| 7446 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7448 | (exit $ac_status); } && { |
| 7449 | test -z "$ac_c_werror_flag" || |
| 7450 | test ! -s conftest.err |
| 7451 | } && test -s conftest.$ac_objext; then |
| 7452 | cat >conftest.$ac_ext <<_ACEOF |
| 7453 | /* confdefs.h. */ |
| 7454 | _ACEOF |
| 7455 | cat confdefs.h >>conftest.$ac_ext |
| 7456 | cat >>conftest.$ac_ext <<_ACEOF |
| 7457 | /* end confdefs.h. */ |
| 7458 | $ac_includes_default |
| 7459 | int |
| 7460 | main () |
| 7461 | { |
| 7462 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7463 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7464 | test_array [0] = 0 |
| 7465 | |
| 7466 | ; |
| 7467 | return 0; |
| 7468 | } |
| 7469 | _ACEOF |
| 7470 | rm -f conftest.$ac_objext |
| 7471 | if { (ac_try="$ac_compile" |
| 7472 | case "(($ac_try" in |
| 7473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7474 | *) ac_try_echo=$ac_try;; |
| 7475 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7477 | (eval "$ac_compile") 2>conftest.er1 |
| 7478 | ac_status=$? |
| 7479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7480 | rm -f conftest.er1 |
| 7481 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7483 | (exit $ac_status); } && { |
| 7484 | test -z "$ac_c_werror_flag" || |
| 7485 | test ! -s conftest.err |
| 7486 | } && test -s conftest.$ac_objext; then |
| 7487 | : |
| 7488 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7489 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7491 | |
| 7492 | case $ac_type in |
| 7493 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7494 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7495 | esac |
| 7496 | |
| 7497 | fi |
| 7498 | |
| 7499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7500 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7501 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7503 | |
| 7504 | |
| 7505 | fi |
| 7506 | |
| 7507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7508 | test "$ac_cv_c_int64_t" != no && break |
| 7509 | done |
| 7510 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7511 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7512 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7513 | case $ac_cv_c_int64_t in #( |
| 7514 | no|yes) ;; #( |
| 7515 | *) |
| 7516 | |
| 7517 | cat >>confdefs.h <<_ACEOF |
| 7518 | #define int64_t $ac_cv_c_int64_t |
| 7519 | _ACEOF |
| 7520 | ;; |
| 7521 | esac |
| 7522 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7523 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7524 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7525 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7527 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7528 | cat >conftest.$ac_ext <<_ACEOF |
| 7529 | /* confdefs.h. */ |
| 7530 | _ACEOF |
| 7531 | cat confdefs.h >>conftest.$ac_ext |
| 7532 | cat >>conftest.$ac_ext <<_ACEOF |
| 7533 | /* end confdefs.h. */ |
| 7534 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7535 | typedef ssize_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7536 | int |
| 7537 | main () |
| 7538 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7539 | if ((ac__type_new_ *) 0) |
| 7540 | return 0; |
| 7541 | if (sizeof (ac__type_new_)) |
| 7542 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7543 | ; |
| 7544 | return 0; |
| 7545 | } |
| 7546 | _ACEOF |
| 7547 | rm -f conftest.$ac_objext |
| 7548 | if { (ac_try="$ac_compile" |
| 7549 | case "(($ac_try" in |
| 7550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7551 | *) ac_try_echo=$ac_try;; |
| 7552 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7554 | (eval "$ac_compile") 2>conftest.er1 |
| 7555 | ac_status=$? |
| 7556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7557 | rm -f conftest.er1 |
| 7558 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7560 | (exit $ac_status); } && { |
| 7561 | test -z "$ac_c_werror_flag" || |
| 7562 | test ! -s conftest.err |
| 7563 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7564 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7565 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7566 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7568 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7569 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7570 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7571 | |
| 7572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7573 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7574 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7575 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7576 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7577 | |
| 7578 | cat >>confdefs.h <<\_ACEOF |
| 7579 | #define HAVE_SSIZE_T 1 |
| 7580 | _ACEOF |
| 7581 | |
| 7582 | fi |
| 7583 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7584 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7585 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7586 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7587 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7588 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7589 | if test "${ac_cv_type_int+set}" = set; then |
| 7590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7591 | else |
| 7592 | cat >conftest.$ac_ext <<_ACEOF |
| 7593 | /* confdefs.h. */ |
| 7594 | _ACEOF |
| 7595 | cat confdefs.h >>conftest.$ac_ext |
| 7596 | cat >>conftest.$ac_ext <<_ACEOF |
| 7597 | /* end confdefs.h. */ |
| 7598 | $ac_includes_default |
| 7599 | typedef int ac__type_new_; |
| 7600 | int |
| 7601 | main () |
| 7602 | { |
| 7603 | if ((ac__type_new_ *) 0) |
| 7604 | return 0; |
| 7605 | if (sizeof (ac__type_new_)) |
| 7606 | return 0; |
| 7607 | ; |
| 7608 | return 0; |
| 7609 | } |
| 7610 | _ACEOF |
| 7611 | rm -f conftest.$ac_objext |
| 7612 | if { (ac_try="$ac_compile" |
| 7613 | case "(($ac_try" in |
| 7614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7615 | *) ac_try_echo=$ac_try;; |
| 7616 | esac |
| 7617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7618 | (eval "$ac_compile") 2>conftest.er1 |
| 7619 | ac_status=$? |
| 7620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7621 | rm -f conftest.er1 |
| 7622 | cat conftest.err >&5 |
| 7623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7624 | (exit $ac_status); } && { |
| 7625 | test -z "$ac_c_werror_flag" || |
| 7626 | test ! -s conftest.err |
| 7627 | } && test -s conftest.$ac_objext; then |
| 7628 | ac_cv_type_int=yes |
| 7629 | else |
| 7630 | echo "$as_me: failed program was:" >&5 |
| 7631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7632 | |
| 7633 | ac_cv_type_int=no |
| 7634 | fi |
| 7635 | |
| 7636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7637 | fi |
| 7638 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7639 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7640 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7641 | # The cast to long int works around a bug in the HP C Compiler |
| 7642 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7643 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7644 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7645 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7646 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7647 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7650 | if test "$cross_compiling" = yes; then |
| 7651 | # Depending upon the size, compute the lo and hi bounds. |
| 7652 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7653 | /* confdefs.h. */ |
| 7654 | _ACEOF |
| 7655 | cat confdefs.h >>conftest.$ac_ext |
| 7656 | cat >>conftest.$ac_ext <<_ACEOF |
| 7657 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7658 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7659 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7660 | int |
| 7661 | main () |
| 7662 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7663 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7664 | test_array [0] = 0 |
| 7665 | |
| 7666 | ; |
| 7667 | return 0; |
| 7668 | } |
| 7669 | _ACEOF |
| 7670 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7671 | if { (ac_try="$ac_compile" |
| 7672 | case "(($ac_try" in |
| 7673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7674 | *) ac_try_echo=$ac_try;; |
| 7675 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7677 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7678 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7680 | rm -f conftest.er1 |
| 7681 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7683 | (exit $ac_status); } && { |
| 7684 | test -z "$ac_c_werror_flag" || |
| 7685 | test ! -s conftest.err |
| 7686 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7687 | ac_lo=0 ac_mid=0 |
| 7688 | while :; do |
| 7689 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7690 | /* confdefs.h. */ |
| 7691 | _ACEOF |
| 7692 | cat confdefs.h >>conftest.$ac_ext |
| 7693 | cat >>conftest.$ac_ext <<_ACEOF |
| 7694 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7695 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7696 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7697 | int |
| 7698 | main () |
| 7699 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7700 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7701 | test_array [0] = 0 |
| 7702 | |
| 7703 | ; |
| 7704 | return 0; |
| 7705 | } |
| 7706 | _ACEOF |
| 7707 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7708 | if { (ac_try="$ac_compile" |
| 7709 | case "(($ac_try" in |
| 7710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7711 | *) ac_try_echo=$ac_try;; |
| 7712 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7714 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7715 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7717 | rm -f conftest.er1 |
| 7718 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7720 | (exit $ac_status); } && { |
| 7721 | test -z "$ac_c_werror_flag" || |
| 7722 | test ! -s conftest.err |
| 7723 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7724 | ac_hi=$ac_mid; break |
| 7725 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7726 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7728 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7729 | ac_lo=`expr $ac_mid + 1` |
| 7730 | if test $ac_lo -le $ac_mid; then |
| 7731 | ac_lo= ac_hi= |
| 7732 | break |
| 7733 | fi |
| 7734 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7735 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7736 | |
| 7737 | 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] | 7738 | done |
| 7739 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7740 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7742 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7743 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7744 | /* confdefs.h. */ |
| 7745 | _ACEOF |
| 7746 | cat confdefs.h >>conftest.$ac_ext |
| 7747 | cat >>conftest.$ac_ext <<_ACEOF |
| 7748 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7749 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7750 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7751 | int |
| 7752 | main () |
| 7753 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7754 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7755 | test_array [0] = 0 |
| 7756 | |
| 7757 | ; |
| 7758 | return 0; |
| 7759 | } |
| 7760 | _ACEOF |
| 7761 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7762 | if { (ac_try="$ac_compile" |
| 7763 | case "(($ac_try" in |
| 7764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7765 | *) ac_try_echo=$ac_try;; |
| 7766 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7768 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7769 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7771 | rm -f conftest.er1 |
| 7772 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7774 | (exit $ac_status); } && { |
| 7775 | test -z "$ac_c_werror_flag" || |
| 7776 | test ! -s conftest.err |
| 7777 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7778 | ac_hi=-1 ac_mid=-1 |
| 7779 | while :; do |
| 7780 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7781 | /* confdefs.h. */ |
| 7782 | _ACEOF |
| 7783 | cat confdefs.h >>conftest.$ac_ext |
| 7784 | cat >>conftest.$ac_ext <<_ACEOF |
| 7785 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7786 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7787 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7788 | int |
| 7789 | main () |
| 7790 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7791 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7792 | test_array [0] = 0 |
| 7793 | |
| 7794 | ; |
| 7795 | return 0; |
| 7796 | } |
| 7797 | _ACEOF |
| 7798 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7799 | if { (ac_try="$ac_compile" |
| 7800 | case "(($ac_try" in |
| 7801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7802 | *) ac_try_echo=$ac_try;; |
| 7803 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7805 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7806 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7808 | rm -f conftest.er1 |
| 7809 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7811 | (exit $ac_status); } && { |
| 7812 | test -z "$ac_c_werror_flag" || |
| 7813 | test ! -s conftest.err |
| 7814 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7815 | ac_lo=$ac_mid; break |
| 7816 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7817 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7819 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7820 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7821 | if test $ac_mid -le $ac_hi; then |
| 7822 | ac_lo= ac_hi= |
| 7823 | break |
| 7824 | fi |
| 7825 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7826 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7827 | |
| 7828 | 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] | 7829 | done |
| 7830 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7831 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7833 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7834 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7835 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7836 | |
| 7837 | 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] | 7838 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7839 | |
| 7840 | 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] | 7841 | # Binary search between lo and hi bounds. |
| 7842 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7843 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7844 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7845 | /* confdefs.h. */ |
| 7846 | _ACEOF |
| 7847 | cat confdefs.h >>conftest.$ac_ext |
| 7848 | cat >>conftest.$ac_ext <<_ACEOF |
| 7849 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7850 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7851 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7852 | int |
| 7853 | main () |
| 7854 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7855 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7856 | test_array [0] = 0 |
| 7857 | |
| 7858 | ; |
| 7859 | return 0; |
| 7860 | } |
| 7861 | _ACEOF |
| 7862 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7863 | if { (ac_try="$ac_compile" |
| 7864 | case "(($ac_try" in |
| 7865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7866 | *) ac_try_echo=$ac_try;; |
| 7867 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7869 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7870 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7872 | rm -f conftest.er1 |
| 7873 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7875 | (exit $ac_status); } && { |
| 7876 | test -z "$ac_c_werror_flag" || |
| 7877 | test ! -s conftest.err |
| 7878 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7879 | ac_hi=$ac_mid |
| 7880 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7881 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7883 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7884 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7885 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7886 | |
| 7887 | 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] | 7888 | done |
| 7889 | case $ac_lo in |
| 7890 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7891 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7892 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7893 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7894 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7895 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7896 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7897 | else |
| 7898 | ac_cv_sizeof_int=0 |
| 7899 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7900 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7902 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7903 | /* confdefs.h. */ |
| 7904 | _ACEOF |
| 7905 | cat confdefs.h >>conftest.$ac_ext |
| 7906 | cat >>conftest.$ac_ext <<_ACEOF |
| 7907 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7908 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7909 | typedef int ac__type_sizeof_; |
| 7910 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7911 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7912 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7913 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7914 | int |
| 7915 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7916 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7917 | |
| 7918 | FILE *f = fopen ("conftest.val", "w"); |
| 7919 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7920 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7921 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7922 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7923 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7924 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7925 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7926 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7927 | } |
| 7928 | else |
| 7929 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7930 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7931 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7932 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7933 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7934 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7935 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7936 | |
| 7937 | ; |
| 7938 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7939 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7940 | _ACEOF |
| 7941 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7942 | if { (ac_try="$ac_link" |
| 7943 | case "(($ac_try" in |
| 7944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7945 | *) ac_try_echo=$ac_try;; |
| 7946 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7948 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7949 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7951 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7952 | { (case "(($ac_try" in |
| 7953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7954 | *) ac_try_echo=$ac_try;; |
| 7955 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7957 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7958 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7960 | (exit $ac_status); }; }; then |
| 7961 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7962 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7963 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7967 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7968 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7969 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7970 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7971 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7972 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7973 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7974 | else |
| 7975 | ac_cv_sizeof_int=0 |
| 7976 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7977 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7978 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7979 | fi |
| 7980 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7981 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7982 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7983 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7984 | |
| 7985 | |
| 7986 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7988 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7989 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7990 | |
| 7991 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7992 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7993 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 7994 | if test "${ac_cv_type_long+set}" = set; then |
| 7995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7996 | else |
| 7997 | cat >conftest.$ac_ext <<_ACEOF |
| 7998 | /* confdefs.h. */ |
| 7999 | _ACEOF |
| 8000 | cat confdefs.h >>conftest.$ac_ext |
| 8001 | cat >>conftest.$ac_ext <<_ACEOF |
| 8002 | /* end confdefs.h. */ |
| 8003 | $ac_includes_default |
| 8004 | typedef long ac__type_new_; |
| 8005 | int |
| 8006 | main () |
| 8007 | { |
| 8008 | if ((ac__type_new_ *) 0) |
| 8009 | return 0; |
| 8010 | if (sizeof (ac__type_new_)) |
| 8011 | return 0; |
| 8012 | ; |
| 8013 | return 0; |
| 8014 | } |
| 8015 | _ACEOF |
| 8016 | rm -f conftest.$ac_objext |
| 8017 | if { (ac_try="$ac_compile" |
| 8018 | case "(($ac_try" in |
| 8019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8020 | *) ac_try_echo=$ac_try;; |
| 8021 | esac |
| 8022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8023 | (eval "$ac_compile") 2>conftest.er1 |
| 8024 | ac_status=$? |
| 8025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8026 | rm -f conftest.er1 |
| 8027 | cat conftest.err >&5 |
| 8028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8029 | (exit $ac_status); } && { |
| 8030 | test -z "$ac_c_werror_flag" || |
| 8031 | test ! -s conftest.err |
| 8032 | } && test -s conftest.$ac_objext; then |
| 8033 | ac_cv_type_long=yes |
| 8034 | else |
| 8035 | echo "$as_me: failed program was:" >&5 |
| 8036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8037 | |
| 8038 | ac_cv_type_long=no |
| 8039 | fi |
| 8040 | |
| 8041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8042 | fi |
| 8043 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 8044 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 8045 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8046 | # The cast to long int works around a bug in the HP C Compiler |
| 8047 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8048 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8049 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8050 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 8051 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8052 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8055 | if test "$cross_compiling" = yes; then |
| 8056 | # Depending upon the size, compute the lo and hi bounds. |
| 8057 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8058 | /* confdefs.h. */ |
| 8059 | _ACEOF |
| 8060 | cat confdefs.h >>conftest.$ac_ext |
| 8061 | cat >>conftest.$ac_ext <<_ACEOF |
| 8062 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8063 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8064 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | int |
| 8066 | main () |
| 8067 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8068 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8069 | test_array [0] = 0 |
| 8070 | |
| 8071 | ; |
| 8072 | return 0; |
| 8073 | } |
| 8074 | _ACEOF |
| 8075 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8076 | if { (ac_try="$ac_compile" |
| 8077 | case "(($ac_try" in |
| 8078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8079 | *) ac_try_echo=$ac_try;; |
| 8080 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8082 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8083 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8085 | rm -f conftest.er1 |
| 8086 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8088 | (exit $ac_status); } && { |
| 8089 | test -z "$ac_c_werror_flag" || |
| 8090 | test ! -s conftest.err |
| 8091 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 | ac_lo=0 ac_mid=0 |
| 8093 | while :; do |
| 8094 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8095 | /* confdefs.h. */ |
| 8096 | _ACEOF |
| 8097 | cat confdefs.h >>conftest.$ac_ext |
| 8098 | cat >>conftest.$ac_ext <<_ACEOF |
| 8099 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8101 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8102 | int |
| 8103 | main () |
| 8104 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8105 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8106 | test_array [0] = 0 |
| 8107 | |
| 8108 | ; |
| 8109 | return 0; |
| 8110 | } |
| 8111 | _ACEOF |
| 8112 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8113 | if { (ac_try="$ac_compile" |
| 8114 | case "(($ac_try" in |
| 8115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8116 | *) ac_try_echo=$ac_try;; |
| 8117 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8119 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8120 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8122 | rm -f conftest.er1 |
| 8123 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8125 | (exit $ac_status); } && { |
| 8126 | test -z "$ac_c_werror_flag" || |
| 8127 | test ! -s conftest.err |
| 8128 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | ac_hi=$ac_mid; break |
| 8130 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8131 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8133 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8134 | ac_lo=`expr $ac_mid + 1` |
| 8135 | if test $ac_lo -le $ac_mid; then |
| 8136 | ac_lo= ac_hi= |
| 8137 | break |
| 8138 | fi |
| 8139 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8140 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8141 | |
| 8142 | 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] | 8143 | done |
| 8144 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8145 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8147 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8148 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8149 | /* confdefs.h. */ |
| 8150 | _ACEOF |
| 8151 | cat confdefs.h >>conftest.$ac_ext |
| 8152 | cat >>conftest.$ac_ext <<_ACEOF |
| 8153 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8154 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8155 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8156 | int |
| 8157 | main () |
| 8158 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8159 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8160 | test_array [0] = 0 |
| 8161 | |
| 8162 | ; |
| 8163 | return 0; |
| 8164 | } |
| 8165 | _ACEOF |
| 8166 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8167 | if { (ac_try="$ac_compile" |
| 8168 | case "(($ac_try" in |
| 8169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8170 | *) ac_try_echo=$ac_try;; |
| 8171 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8173 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8174 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8176 | rm -f conftest.er1 |
| 8177 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8179 | (exit $ac_status); } && { |
| 8180 | test -z "$ac_c_werror_flag" || |
| 8181 | test ! -s conftest.err |
| 8182 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8183 | ac_hi=-1 ac_mid=-1 |
| 8184 | while :; do |
| 8185 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8186 | /* confdefs.h. */ |
| 8187 | _ACEOF |
| 8188 | cat confdefs.h >>conftest.$ac_ext |
| 8189 | cat >>conftest.$ac_ext <<_ACEOF |
| 8190 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8191 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8192 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8193 | int |
| 8194 | main () |
| 8195 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8196 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8197 | test_array [0] = 0 |
| 8198 | |
| 8199 | ; |
| 8200 | return 0; |
| 8201 | } |
| 8202 | _ACEOF |
| 8203 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8204 | if { (ac_try="$ac_compile" |
| 8205 | case "(($ac_try" in |
| 8206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8207 | *) ac_try_echo=$ac_try;; |
| 8208 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8210 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8211 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8213 | rm -f conftest.er1 |
| 8214 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8216 | (exit $ac_status); } && { |
| 8217 | test -z "$ac_c_werror_flag" || |
| 8218 | test ! -s conftest.err |
| 8219 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8220 | ac_lo=$ac_mid; break |
| 8221 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8222 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8224 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8225 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8226 | if test $ac_mid -le $ac_hi; then |
| 8227 | ac_lo= ac_hi= |
| 8228 | break |
| 8229 | fi |
| 8230 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8231 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8232 | |
| 8233 | 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] | 8234 | done |
| 8235 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8236 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8238 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8239 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8240 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8241 | |
| 8242 | 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] | 8243 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8244 | |
| 8245 | 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] | 8246 | # Binary search between lo and hi bounds. |
| 8247 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8248 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8249 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8250 | /* confdefs.h. */ |
| 8251 | _ACEOF |
| 8252 | cat confdefs.h >>conftest.$ac_ext |
| 8253 | cat >>conftest.$ac_ext <<_ACEOF |
| 8254 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8255 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8256 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8257 | int |
| 8258 | main () |
| 8259 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8260 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8261 | test_array [0] = 0 |
| 8262 | |
| 8263 | ; |
| 8264 | return 0; |
| 8265 | } |
| 8266 | _ACEOF |
| 8267 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8268 | if { (ac_try="$ac_compile" |
| 8269 | case "(($ac_try" in |
| 8270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8271 | *) ac_try_echo=$ac_try;; |
| 8272 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8274 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8275 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8277 | rm -f conftest.er1 |
| 8278 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8280 | (exit $ac_status); } && { |
| 8281 | test -z "$ac_c_werror_flag" || |
| 8282 | test ! -s conftest.err |
| 8283 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8284 | ac_hi=$ac_mid |
| 8285 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8286 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8288 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8289 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8290 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8291 | |
| 8292 | 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] | 8293 | done |
| 8294 | case $ac_lo in |
| 8295 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8296 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8297 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8298 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8299 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8300 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8301 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8302 | else |
| 8303 | ac_cv_sizeof_long=0 |
| 8304 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8305 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8307 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8308 | /* confdefs.h. */ |
| 8309 | _ACEOF |
| 8310 | cat confdefs.h >>conftest.$ac_ext |
| 8311 | cat >>conftest.$ac_ext <<_ACEOF |
| 8312 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8313 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8314 | typedef long ac__type_sizeof_; |
| 8315 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8316 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8317 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8318 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8319 | int |
| 8320 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8321 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8322 | |
| 8323 | FILE *f = fopen ("conftest.val", "w"); |
| 8324 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8325 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8326 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8327 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8328 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8329 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8330 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8331 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8332 | } |
| 8333 | else |
| 8334 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8335 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8336 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8337 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8338 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8339 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8340 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8341 | |
| 8342 | ; |
| 8343 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8344 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8345 | _ACEOF |
| 8346 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8347 | if { (ac_try="$ac_link" |
| 8348 | case "(($ac_try" in |
| 8349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8350 | *) ac_try_echo=$ac_try;; |
| 8351 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8353 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8354 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8356 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8357 | { (case "(($ac_try" in |
| 8358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8359 | *) ac_try_echo=$ac_try;; |
| 8360 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8362 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8363 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8365 | (exit $ac_status); }; }; then |
| 8366 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8367 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8368 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8369 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8372 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8373 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8374 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8375 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8376 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8377 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8378 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8379 | else |
| 8380 | ac_cv_sizeof_long=0 |
| 8381 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8382 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8383 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8384 | fi |
| 8385 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8386 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8387 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8388 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8389 | |
| 8390 | |
| 8391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8392 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8393 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8394 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8395 | |
| 8396 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8397 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8398 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8399 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8401 | else |
| 8402 | cat >conftest.$ac_ext <<_ACEOF |
| 8403 | /* confdefs.h. */ |
| 8404 | _ACEOF |
| 8405 | cat confdefs.h >>conftest.$ac_ext |
| 8406 | cat >>conftest.$ac_ext <<_ACEOF |
| 8407 | /* end confdefs.h. */ |
| 8408 | $ac_includes_default |
| 8409 | typedef void * ac__type_new_; |
| 8410 | int |
| 8411 | main () |
| 8412 | { |
| 8413 | if ((ac__type_new_ *) 0) |
| 8414 | return 0; |
| 8415 | if (sizeof (ac__type_new_)) |
| 8416 | return 0; |
| 8417 | ; |
| 8418 | return 0; |
| 8419 | } |
| 8420 | _ACEOF |
| 8421 | rm -f conftest.$ac_objext |
| 8422 | if { (ac_try="$ac_compile" |
| 8423 | case "(($ac_try" in |
| 8424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8425 | *) ac_try_echo=$ac_try;; |
| 8426 | esac |
| 8427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8428 | (eval "$ac_compile") 2>conftest.er1 |
| 8429 | ac_status=$? |
| 8430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8431 | rm -f conftest.er1 |
| 8432 | cat conftest.err >&5 |
| 8433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8434 | (exit $ac_status); } && { |
| 8435 | test -z "$ac_c_werror_flag" || |
| 8436 | test ! -s conftest.err |
| 8437 | } && test -s conftest.$ac_objext; then |
| 8438 | ac_cv_type_void_p=yes |
| 8439 | else |
| 8440 | echo "$as_me: failed program was:" >&5 |
| 8441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8442 | |
| 8443 | ac_cv_type_void_p=no |
| 8444 | fi |
| 8445 | |
| 8446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8447 | fi |
| 8448 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8449 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8450 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8451 | # The cast to long int works around a bug in the HP C Compiler |
| 8452 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8453 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8454 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8455 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8456 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8457 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8460 | if test "$cross_compiling" = yes; then |
| 8461 | # Depending upon the size, compute the lo and hi bounds. |
| 8462 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8463 | /* confdefs.h. */ |
| 8464 | _ACEOF |
| 8465 | cat confdefs.h >>conftest.$ac_ext |
| 8466 | cat >>conftest.$ac_ext <<_ACEOF |
| 8467 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8468 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8469 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8470 | int |
| 8471 | main () |
| 8472 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8473 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8474 | test_array [0] = 0 |
| 8475 | |
| 8476 | ; |
| 8477 | return 0; |
| 8478 | } |
| 8479 | _ACEOF |
| 8480 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8481 | if { (ac_try="$ac_compile" |
| 8482 | case "(($ac_try" in |
| 8483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8484 | *) ac_try_echo=$ac_try;; |
| 8485 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8487 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8488 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8490 | rm -f conftest.er1 |
| 8491 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8493 | (exit $ac_status); } && { |
| 8494 | test -z "$ac_c_werror_flag" || |
| 8495 | test ! -s conftest.err |
| 8496 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8497 | ac_lo=0 ac_mid=0 |
| 8498 | while :; do |
| 8499 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8500 | /* confdefs.h. */ |
| 8501 | _ACEOF |
| 8502 | cat confdefs.h >>conftest.$ac_ext |
| 8503 | cat >>conftest.$ac_ext <<_ACEOF |
| 8504 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8506 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | int |
| 8508 | main () |
| 8509 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8510 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8511 | test_array [0] = 0 |
| 8512 | |
| 8513 | ; |
| 8514 | return 0; |
| 8515 | } |
| 8516 | _ACEOF |
| 8517 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8518 | if { (ac_try="$ac_compile" |
| 8519 | case "(($ac_try" in |
| 8520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8521 | *) ac_try_echo=$ac_try;; |
| 8522 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8524 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8525 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8527 | rm -f conftest.er1 |
| 8528 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8530 | (exit $ac_status); } && { |
| 8531 | test -z "$ac_c_werror_flag" || |
| 8532 | test ! -s conftest.err |
| 8533 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | ac_hi=$ac_mid; break |
| 8535 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8538 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8539 | ac_lo=`expr $ac_mid + 1` |
| 8540 | if test $ac_lo -le $ac_mid; then |
| 8541 | ac_lo= ac_hi= |
| 8542 | break |
| 8543 | fi |
| 8544 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8545 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8546 | |
| 8547 | 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] | 8548 | done |
| 8549 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8550 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8552 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8553 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8554 | /* confdefs.h. */ |
| 8555 | _ACEOF |
| 8556 | cat confdefs.h >>conftest.$ac_ext |
| 8557 | cat >>conftest.$ac_ext <<_ACEOF |
| 8558 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8559 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8560 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | int |
| 8562 | main () |
| 8563 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8564 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8565 | test_array [0] = 0 |
| 8566 | |
| 8567 | ; |
| 8568 | return 0; |
| 8569 | } |
| 8570 | _ACEOF |
| 8571 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8572 | if { (ac_try="$ac_compile" |
| 8573 | case "(($ac_try" in |
| 8574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8575 | *) ac_try_echo=$ac_try;; |
| 8576 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8578 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8579 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8581 | rm -f conftest.er1 |
| 8582 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8584 | (exit $ac_status); } && { |
| 8585 | test -z "$ac_c_werror_flag" || |
| 8586 | test ! -s conftest.err |
| 8587 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8588 | ac_hi=-1 ac_mid=-1 |
| 8589 | while :; do |
| 8590 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8591 | /* confdefs.h. */ |
| 8592 | _ACEOF |
| 8593 | cat confdefs.h >>conftest.$ac_ext |
| 8594 | cat >>conftest.$ac_ext <<_ACEOF |
| 8595 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8596 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8597 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8598 | int |
| 8599 | main () |
| 8600 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8601 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8602 | test_array [0] = 0 |
| 8603 | |
| 8604 | ; |
| 8605 | return 0; |
| 8606 | } |
| 8607 | _ACEOF |
| 8608 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8609 | if { (ac_try="$ac_compile" |
| 8610 | case "(($ac_try" in |
| 8611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8612 | *) ac_try_echo=$ac_try;; |
| 8613 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8615 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8618 | rm -f conftest.er1 |
| 8619 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8621 | (exit $ac_status); } && { |
| 8622 | test -z "$ac_c_werror_flag" || |
| 8623 | test ! -s conftest.err |
| 8624 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8625 | ac_lo=$ac_mid; break |
| 8626 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8627 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8629 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8630 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8631 | if test $ac_mid -le $ac_hi; then |
| 8632 | ac_lo= ac_hi= |
| 8633 | break |
| 8634 | fi |
| 8635 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8636 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8637 | |
| 8638 | 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] | 8639 | done |
| 8640 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8641 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8643 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8644 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8646 | |
| 8647 | 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] | 8648 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8649 | |
| 8650 | 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] | 8651 | # Binary search between lo and hi bounds. |
| 8652 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8653 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8654 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8655 | /* confdefs.h. */ |
| 8656 | _ACEOF |
| 8657 | cat confdefs.h >>conftest.$ac_ext |
| 8658 | cat >>conftest.$ac_ext <<_ACEOF |
| 8659 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8660 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8661 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8662 | int |
| 8663 | main () |
| 8664 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8665 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8666 | test_array [0] = 0 |
| 8667 | |
| 8668 | ; |
| 8669 | return 0; |
| 8670 | } |
| 8671 | _ACEOF |
| 8672 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8673 | if { (ac_try="$ac_compile" |
| 8674 | case "(($ac_try" in |
| 8675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8676 | *) ac_try_echo=$ac_try;; |
| 8677 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8679 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8680 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8682 | rm -f conftest.er1 |
| 8683 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8685 | (exit $ac_status); } && { |
| 8686 | test -z "$ac_c_werror_flag" || |
| 8687 | test ! -s conftest.err |
| 8688 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | ac_hi=$ac_mid |
| 8690 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8691 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8693 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8694 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8695 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8696 | |
| 8697 | 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] | 8698 | done |
| 8699 | case $ac_lo in |
| 8700 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8701 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8702 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8703 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8704 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8705 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8706 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8707 | else |
| 8708 | ac_cv_sizeof_void_p=0 |
| 8709 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8712 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8713 | /* confdefs.h. */ |
| 8714 | _ACEOF |
| 8715 | cat confdefs.h >>conftest.$ac_ext |
| 8716 | cat >>conftest.$ac_ext <<_ACEOF |
| 8717 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8718 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8719 | typedef void * ac__type_sizeof_; |
| 8720 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8721 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8722 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8723 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8724 | int |
| 8725 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8726 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8727 | |
| 8728 | FILE *f = fopen ("conftest.val", "w"); |
| 8729 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8730 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8731 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8732 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8733 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8734 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8735 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8736 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8737 | } |
| 8738 | else |
| 8739 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8740 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8741 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8742 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8743 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8744 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8745 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8746 | |
| 8747 | ; |
| 8748 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8749 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8750 | _ACEOF |
| 8751 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8752 | if { (ac_try="$ac_link" |
| 8753 | case "(($ac_try" in |
| 8754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8755 | *) ac_try_echo=$ac_try;; |
| 8756 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8758 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8759 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8761 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8762 | { (case "(($ac_try" in |
| 8763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8764 | *) ac_try_echo=$ac_try;; |
| 8765 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8767 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8768 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8770 | (exit $ac_status); }; }; then |
| 8771 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8772 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8773 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8774 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8777 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8778 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8779 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8780 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8781 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8782 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8783 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8784 | else |
| 8785 | ac_cv_sizeof_void_p=0 |
| 8786 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8788 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8789 | fi |
| 8790 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8791 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8792 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8793 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8794 | |
| 8795 | |
| 8796 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8797 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8798 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8799 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8800 | |
| 8801 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8802 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8803 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8804 | if test "${ac_cv_type_short+set}" = set; then |
| 8805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8806 | else |
| 8807 | cat >conftest.$ac_ext <<_ACEOF |
| 8808 | /* confdefs.h. */ |
| 8809 | _ACEOF |
| 8810 | cat confdefs.h >>conftest.$ac_ext |
| 8811 | cat >>conftest.$ac_ext <<_ACEOF |
| 8812 | /* end confdefs.h. */ |
| 8813 | $ac_includes_default |
| 8814 | typedef short ac__type_new_; |
| 8815 | int |
| 8816 | main () |
| 8817 | { |
| 8818 | if ((ac__type_new_ *) 0) |
| 8819 | return 0; |
| 8820 | if (sizeof (ac__type_new_)) |
| 8821 | return 0; |
| 8822 | ; |
| 8823 | return 0; |
| 8824 | } |
| 8825 | _ACEOF |
| 8826 | rm -f conftest.$ac_objext |
| 8827 | if { (ac_try="$ac_compile" |
| 8828 | case "(($ac_try" in |
| 8829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8830 | *) ac_try_echo=$ac_try;; |
| 8831 | esac |
| 8832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8833 | (eval "$ac_compile") 2>conftest.er1 |
| 8834 | ac_status=$? |
| 8835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8836 | rm -f conftest.er1 |
| 8837 | cat conftest.err >&5 |
| 8838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8839 | (exit $ac_status); } && { |
| 8840 | test -z "$ac_c_werror_flag" || |
| 8841 | test ! -s conftest.err |
| 8842 | } && test -s conftest.$ac_objext; then |
| 8843 | ac_cv_type_short=yes |
| 8844 | else |
| 8845 | echo "$as_me: failed program was:" >&5 |
| 8846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8847 | |
| 8848 | ac_cv_type_short=no |
| 8849 | fi |
| 8850 | |
| 8851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8852 | fi |
| 8853 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8854 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8855 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8856 | # The cast to long int works around a bug in the HP C Compiler |
| 8857 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8858 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8859 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8860 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8861 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8862 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8864 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8865 | if test "$cross_compiling" = yes; then |
| 8866 | # Depending upon the size, compute the lo and hi bounds. |
| 8867 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8868 | /* confdefs.h. */ |
| 8869 | _ACEOF |
| 8870 | cat confdefs.h >>conftest.$ac_ext |
| 8871 | cat >>conftest.$ac_ext <<_ACEOF |
| 8872 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8873 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8874 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8875 | int |
| 8876 | main () |
| 8877 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8878 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8879 | test_array [0] = 0 |
| 8880 | |
| 8881 | ; |
| 8882 | return 0; |
| 8883 | } |
| 8884 | _ACEOF |
| 8885 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8886 | if { (ac_try="$ac_compile" |
| 8887 | case "(($ac_try" in |
| 8888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8889 | *) ac_try_echo=$ac_try;; |
| 8890 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8892 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8893 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8894 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8895 | rm -f conftest.er1 |
| 8896 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8898 | (exit $ac_status); } && { |
| 8899 | test -z "$ac_c_werror_flag" || |
| 8900 | test ! -s conftest.err |
| 8901 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8902 | ac_lo=0 ac_mid=0 |
| 8903 | while :; do |
| 8904 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8905 | /* confdefs.h. */ |
| 8906 | _ACEOF |
| 8907 | cat confdefs.h >>conftest.$ac_ext |
| 8908 | cat >>conftest.$ac_ext <<_ACEOF |
| 8909 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8910 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8911 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8912 | int |
| 8913 | main () |
| 8914 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8915 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8916 | test_array [0] = 0 |
| 8917 | |
| 8918 | ; |
| 8919 | return 0; |
| 8920 | } |
| 8921 | _ACEOF |
| 8922 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8923 | if { (ac_try="$ac_compile" |
| 8924 | case "(($ac_try" in |
| 8925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8926 | *) ac_try_echo=$ac_try;; |
| 8927 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8929 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8930 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8932 | rm -f conftest.er1 |
| 8933 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8935 | (exit $ac_status); } && { |
| 8936 | test -z "$ac_c_werror_flag" || |
| 8937 | test ! -s conftest.err |
| 8938 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8939 | ac_hi=$ac_mid; break |
| 8940 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8941 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8943 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8944 | ac_lo=`expr $ac_mid + 1` |
| 8945 | if test $ac_lo -le $ac_mid; then |
| 8946 | ac_lo= ac_hi= |
| 8947 | break |
| 8948 | fi |
| 8949 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8950 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8951 | |
| 8952 | 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] | 8953 | done |
| 8954 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8955 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8957 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8958 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8959 | /* confdefs.h. */ |
| 8960 | _ACEOF |
| 8961 | cat confdefs.h >>conftest.$ac_ext |
| 8962 | cat >>conftest.$ac_ext <<_ACEOF |
| 8963 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8965 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8966 | int |
| 8967 | main () |
| 8968 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8969 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8970 | test_array [0] = 0 |
| 8971 | |
| 8972 | ; |
| 8973 | return 0; |
| 8974 | } |
| 8975 | _ACEOF |
| 8976 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8977 | if { (ac_try="$ac_compile" |
| 8978 | case "(($ac_try" in |
| 8979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8980 | *) ac_try_echo=$ac_try;; |
| 8981 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8983 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8984 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8986 | rm -f conftest.er1 |
| 8987 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8989 | (exit $ac_status); } && { |
| 8990 | test -z "$ac_c_werror_flag" || |
| 8991 | test ! -s conftest.err |
| 8992 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8993 | ac_hi=-1 ac_mid=-1 |
| 8994 | while :; do |
| 8995 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8996 | /* confdefs.h. */ |
| 8997 | _ACEOF |
| 8998 | cat confdefs.h >>conftest.$ac_ext |
| 8999 | cat >>conftest.$ac_ext <<_ACEOF |
| 9000 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9001 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9002 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9003 | int |
| 9004 | main () |
| 9005 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9006 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9007 | test_array [0] = 0 |
| 9008 | |
| 9009 | ; |
| 9010 | return 0; |
| 9011 | } |
| 9012 | _ACEOF |
| 9013 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9014 | if { (ac_try="$ac_compile" |
| 9015 | case "(($ac_try" in |
| 9016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9017 | *) ac_try_echo=$ac_try;; |
| 9018 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9020 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9021 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9023 | rm -f conftest.er1 |
| 9024 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9026 | (exit $ac_status); } && { |
| 9027 | test -z "$ac_c_werror_flag" || |
| 9028 | test ! -s conftest.err |
| 9029 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 | ac_lo=$ac_mid; break |
| 9031 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9032 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9034 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9035 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9036 | if test $ac_mid -le $ac_hi; then |
| 9037 | ac_lo= ac_hi= |
| 9038 | break |
| 9039 | fi |
| 9040 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9041 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9042 | |
| 9043 | 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] | 9044 | done |
| 9045 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9046 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9048 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9049 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9050 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9051 | |
| 9052 | 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] | 9053 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9054 | |
| 9055 | 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] | 9056 | # Binary search between lo and hi bounds. |
| 9057 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9058 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9059 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9060 | /* confdefs.h. */ |
| 9061 | _ACEOF |
| 9062 | cat confdefs.h >>conftest.$ac_ext |
| 9063 | cat >>conftest.$ac_ext <<_ACEOF |
| 9064 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9065 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9066 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9067 | int |
| 9068 | main () |
| 9069 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9070 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9071 | test_array [0] = 0 |
| 9072 | |
| 9073 | ; |
| 9074 | return 0; |
| 9075 | } |
| 9076 | _ACEOF |
| 9077 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9078 | if { (ac_try="$ac_compile" |
| 9079 | case "(($ac_try" in |
| 9080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9081 | *) ac_try_echo=$ac_try;; |
| 9082 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9084 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9085 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9087 | rm -f conftest.er1 |
| 9088 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9090 | (exit $ac_status); } && { |
| 9091 | test -z "$ac_c_werror_flag" || |
| 9092 | test ! -s conftest.err |
| 9093 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | ac_hi=$ac_mid |
| 9095 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9096 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9098 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9099 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9100 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9101 | |
| 9102 | 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] | 9103 | done |
| 9104 | case $ac_lo in |
| 9105 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9106 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9107 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9108 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9109 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9110 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9111 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9112 | else |
| 9113 | ac_cv_sizeof_short=0 |
| 9114 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9115 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9116 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9117 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9118 | /* confdefs.h. */ |
| 9119 | _ACEOF |
| 9120 | cat confdefs.h >>conftest.$ac_ext |
| 9121 | cat >>conftest.$ac_ext <<_ACEOF |
| 9122 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9123 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9124 | typedef short ac__type_sizeof_; |
| 9125 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9126 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9127 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9128 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9129 | int |
| 9130 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9131 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9132 | |
| 9133 | FILE *f = fopen ("conftest.val", "w"); |
| 9134 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9135 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9136 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9137 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9138 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9139 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9140 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9141 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | } |
| 9143 | else |
| 9144 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9145 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9146 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9147 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9148 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9149 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9150 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 | |
| 9152 | ; |
| 9153 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9154 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9155 | _ACEOF |
| 9156 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9157 | if { (ac_try="$ac_link" |
| 9158 | case "(($ac_try" in |
| 9159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9160 | *) ac_try_echo=$ac_try;; |
| 9161 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9163 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9164 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9166 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9167 | { (case "(($ac_try" in |
| 9168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9169 | *) ac_try_echo=$ac_try;; |
| 9170 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9172 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9173 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9175 | (exit $ac_status); }; }; then |
| 9176 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9177 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9178 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9183 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9184 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9185 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9186 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9187 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9188 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9189 | else |
| 9190 | ac_cv_sizeof_short=0 |
| 9191 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9192 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9193 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9194 | fi |
| 9195 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9196 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9197 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9198 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9199 | |
| 9200 | |
| 9201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9202 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9203 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9205 | |
| 9206 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9207 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9208 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9209 | if test "${ac_cv_type_float+set}" = set; then |
| 9210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9211 | else |
| 9212 | cat >conftest.$ac_ext <<_ACEOF |
| 9213 | /* confdefs.h. */ |
| 9214 | _ACEOF |
| 9215 | cat confdefs.h >>conftest.$ac_ext |
| 9216 | cat >>conftest.$ac_ext <<_ACEOF |
| 9217 | /* end confdefs.h. */ |
| 9218 | $ac_includes_default |
| 9219 | typedef float ac__type_new_; |
| 9220 | int |
| 9221 | main () |
| 9222 | { |
| 9223 | if ((ac__type_new_ *) 0) |
| 9224 | return 0; |
| 9225 | if (sizeof (ac__type_new_)) |
| 9226 | return 0; |
| 9227 | ; |
| 9228 | return 0; |
| 9229 | } |
| 9230 | _ACEOF |
| 9231 | rm -f conftest.$ac_objext |
| 9232 | if { (ac_try="$ac_compile" |
| 9233 | case "(($ac_try" in |
| 9234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9235 | *) ac_try_echo=$ac_try;; |
| 9236 | esac |
| 9237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9238 | (eval "$ac_compile") 2>conftest.er1 |
| 9239 | ac_status=$? |
| 9240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9241 | rm -f conftest.er1 |
| 9242 | cat conftest.err >&5 |
| 9243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9244 | (exit $ac_status); } && { |
| 9245 | test -z "$ac_c_werror_flag" || |
| 9246 | test ! -s conftest.err |
| 9247 | } && test -s conftest.$ac_objext; then |
| 9248 | ac_cv_type_float=yes |
| 9249 | else |
| 9250 | echo "$as_me: failed program was:" >&5 |
| 9251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9252 | |
| 9253 | ac_cv_type_float=no |
| 9254 | fi |
| 9255 | |
| 9256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9257 | fi |
| 9258 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9259 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9260 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9261 | # The cast to long int works around a bug in the HP C Compiler |
| 9262 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9263 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9264 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9265 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9266 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9267 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9269 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9270 | if test "$cross_compiling" = yes; then |
| 9271 | # Depending upon the size, compute the lo and hi bounds. |
| 9272 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9273 | /* confdefs.h. */ |
| 9274 | _ACEOF |
| 9275 | cat confdefs.h >>conftest.$ac_ext |
| 9276 | cat >>conftest.$ac_ext <<_ACEOF |
| 9277 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9278 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9279 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9280 | int |
| 9281 | main () |
| 9282 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9283 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9284 | test_array [0] = 0 |
| 9285 | |
| 9286 | ; |
| 9287 | return 0; |
| 9288 | } |
| 9289 | _ACEOF |
| 9290 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9291 | if { (ac_try="$ac_compile" |
| 9292 | case "(($ac_try" in |
| 9293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9294 | *) ac_try_echo=$ac_try;; |
| 9295 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9297 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9298 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9300 | rm -f conftest.er1 |
| 9301 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9303 | (exit $ac_status); } && { |
| 9304 | test -z "$ac_c_werror_flag" || |
| 9305 | test ! -s conftest.err |
| 9306 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9307 | ac_lo=0 ac_mid=0 |
| 9308 | while :; do |
| 9309 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9310 | /* confdefs.h. */ |
| 9311 | _ACEOF |
| 9312 | cat confdefs.h >>conftest.$ac_ext |
| 9313 | cat >>conftest.$ac_ext <<_ACEOF |
| 9314 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9315 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9316 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9317 | int |
| 9318 | main () |
| 9319 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9320 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9321 | test_array [0] = 0 |
| 9322 | |
| 9323 | ; |
| 9324 | return 0; |
| 9325 | } |
| 9326 | _ACEOF |
| 9327 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9328 | if { (ac_try="$ac_compile" |
| 9329 | case "(($ac_try" in |
| 9330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9331 | *) ac_try_echo=$ac_try;; |
| 9332 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9334 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9335 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9337 | rm -f conftest.er1 |
| 9338 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9340 | (exit $ac_status); } && { |
| 9341 | test -z "$ac_c_werror_flag" || |
| 9342 | test ! -s conftest.err |
| 9343 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | ac_hi=$ac_mid; break |
| 9345 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9346 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9348 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9349 | ac_lo=`expr $ac_mid + 1` |
| 9350 | if test $ac_lo -le $ac_mid; then |
| 9351 | ac_lo= ac_hi= |
| 9352 | break |
| 9353 | fi |
| 9354 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9355 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9356 | |
| 9357 | 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] | 9358 | done |
| 9359 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9360 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9362 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9363 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9364 | /* confdefs.h. */ |
| 9365 | _ACEOF |
| 9366 | cat confdefs.h >>conftest.$ac_ext |
| 9367 | cat >>conftest.$ac_ext <<_ACEOF |
| 9368 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9369 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9370 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9371 | int |
| 9372 | main () |
| 9373 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9374 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9375 | test_array [0] = 0 |
| 9376 | |
| 9377 | ; |
| 9378 | return 0; |
| 9379 | } |
| 9380 | _ACEOF |
| 9381 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9382 | if { (ac_try="$ac_compile" |
| 9383 | case "(($ac_try" in |
| 9384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9385 | *) ac_try_echo=$ac_try;; |
| 9386 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9388 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9389 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9391 | rm -f conftest.er1 |
| 9392 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9394 | (exit $ac_status); } && { |
| 9395 | test -z "$ac_c_werror_flag" || |
| 9396 | test ! -s conftest.err |
| 9397 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9398 | ac_hi=-1 ac_mid=-1 |
| 9399 | while :; do |
| 9400 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9401 | /* confdefs.h. */ |
| 9402 | _ACEOF |
| 9403 | cat confdefs.h >>conftest.$ac_ext |
| 9404 | cat >>conftest.$ac_ext <<_ACEOF |
| 9405 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9406 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9407 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9408 | int |
| 9409 | main () |
| 9410 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9411 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9412 | test_array [0] = 0 |
| 9413 | |
| 9414 | ; |
| 9415 | return 0; |
| 9416 | } |
| 9417 | _ACEOF |
| 9418 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9419 | if { (ac_try="$ac_compile" |
| 9420 | case "(($ac_try" in |
| 9421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9422 | *) ac_try_echo=$ac_try;; |
| 9423 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9425 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9426 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9428 | rm -f conftest.er1 |
| 9429 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9431 | (exit $ac_status); } && { |
| 9432 | test -z "$ac_c_werror_flag" || |
| 9433 | test ! -s conftest.err |
| 9434 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 | ac_lo=$ac_mid; break |
| 9436 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9437 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9439 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9440 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9441 | if test $ac_mid -le $ac_hi; then |
| 9442 | ac_lo= ac_hi= |
| 9443 | break |
| 9444 | fi |
| 9445 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9446 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9447 | |
| 9448 | 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] | 9449 | done |
| 9450 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9453 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9454 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9455 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9456 | |
| 9457 | 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] | 9458 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9459 | |
| 9460 | 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] | 9461 | # Binary search between lo and hi bounds. |
| 9462 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9463 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9464 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9465 | /* confdefs.h. */ |
| 9466 | _ACEOF |
| 9467 | cat confdefs.h >>conftest.$ac_ext |
| 9468 | cat >>conftest.$ac_ext <<_ACEOF |
| 9469 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9470 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9471 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9472 | int |
| 9473 | main () |
| 9474 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9475 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | test_array [0] = 0 |
| 9477 | |
| 9478 | ; |
| 9479 | return 0; |
| 9480 | } |
| 9481 | _ACEOF |
| 9482 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9483 | if { (ac_try="$ac_compile" |
| 9484 | case "(($ac_try" in |
| 9485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9486 | *) ac_try_echo=$ac_try;; |
| 9487 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9489 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9490 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9492 | rm -f conftest.er1 |
| 9493 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9495 | (exit $ac_status); } && { |
| 9496 | test -z "$ac_c_werror_flag" || |
| 9497 | test ! -s conftest.err |
| 9498 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | ac_hi=$ac_mid |
| 9500 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9501 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9503 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9504 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9505 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9506 | |
| 9507 | 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] | 9508 | done |
| 9509 | case $ac_lo in |
| 9510 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9511 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9512 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9513 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9514 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9515 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9516 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9517 | else |
| 9518 | ac_cv_sizeof_float=0 |
| 9519 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9520 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9522 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9523 | /* confdefs.h. */ |
| 9524 | _ACEOF |
| 9525 | cat confdefs.h >>conftest.$ac_ext |
| 9526 | cat >>conftest.$ac_ext <<_ACEOF |
| 9527 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9528 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9529 | typedef float ac__type_sizeof_; |
| 9530 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9531 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9532 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9533 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9534 | int |
| 9535 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9536 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9537 | |
| 9538 | FILE *f = fopen ("conftest.val", "w"); |
| 9539 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9540 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9541 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9542 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9543 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9544 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9545 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9546 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 | } |
| 9548 | else |
| 9549 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9550 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9551 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9552 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9553 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9555 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9556 | |
| 9557 | ; |
| 9558 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9559 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9560 | _ACEOF |
| 9561 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9562 | if { (ac_try="$ac_link" |
| 9563 | case "(($ac_try" in |
| 9564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9565 | *) ac_try_echo=$ac_try;; |
| 9566 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9568 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9569 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9571 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9572 | { (case "(($ac_try" in |
| 9573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9574 | *) ac_try_echo=$ac_try;; |
| 9575 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9577 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9578 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9580 | (exit $ac_status); }; }; then |
| 9581 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9582 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9583 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9584 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9587 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9588 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9589 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9590 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9591 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9592 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9593 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9594 | else |
| 9595 | ac_cv_sizeof_float=0 |
| 9596 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9597 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9598 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9599 | fi |
| 9600 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9601 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9602 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9603 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9604 | |
| 9605 | |
| 9606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9608 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9609 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9610 | |
| 9611 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9612 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9613 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9614 | if test "${ac_cv_type_double+set}" = set; then |
| 9615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9616 | else |
| 9617 | cat >conftest.$ac_ext <<_ACEOF |
| 9618 | /* confdefs.h. */ |
| 9619 | _ACEOF |
| 9620 | cat confdefs.h >>conftest.$ac_ext |
| 9621 | cat >>conftest.$ac_ext <<_ACEOF |
| 9622 | /* end confdefs.h. */ |
| 9623 | $ac_includes_default |
| 9624 | typedef double ac__type_new_; |
| 9625 | int |
| 9626 | main () |
| 9627 | { |
| 9628 | if ((ac__type_new_ *) 0) |
| 9629 | return 0; |
| 9630 | if (sizeof (ac__type_new_)) |
| 9631 | return 0; |
| 9632 | ; |
| 9633 | return 0; |
| 9634 | } |
| 9635 | _ACEOF |
| 9636 | rm -f conftest.$ac_objext |
| 9637 | if { (ac_try="$ac_compile" |
| 9638 | case "(($ac_try" in |
| 9639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9640 | *) ac_try_echo=$ac_try;; |
| 9641 | esac |
| 9642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9643 | (eval "$ac_compile") 2>conftest.er1 |
| 9644 | ac_status=$? |
| 9645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9646 | rm -f conftest.er1 |
| 9647 | cat conftest.err >&5 |
| 9648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9649 | (exit $ac_status); } && { |
| 9650 | test -z "$ac_c_werror_flag" || |
| 9651 | test ! -s conftest.err |
| 9652 | } && test -s conftest.$ac_objext; then |
| 9653 | ac_cv_type_double=yes |
| 9654 | else |
| 9655 | echo "$as_me: failed program was:" >&5 |
| 9656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9657 | |
| 9658 | ac_cv_type_double=no |
| 9659 | fi |
| 9660 | |
| 9661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9662 | fi |
| 9663 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9664 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9665 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9666 | # The cast to long int works around a bug in the HP C Compiler |
| 9667 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9668 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9669 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9670 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9671 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9672 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9674 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9675 | if test "$cross_compiling" = yes; then |
| 9676 | # Depending upon the size, compute the lo and hi bounds. |
| 9677 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9678 | /* confdefs.h. */ |
| 9679 | _ACEOF |
| 9680 | cat confdefs.h >>conftest.$ac_ext |
| 9681 | cat >>conftest.$ac_ext <<_ACEOF |
| 9682 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9683 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9684 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9685 | int |
| 9686 | main () |
| 9687 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9688 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9689 | test_array [0] = 0 |
| 9690 | |
| 9691 | ; |
| 9692 | return 0; |
| 9693 | } |
| 9694 | _ACEOF |
| 9695 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9696 | if { (ac_try="$ac_compile" |
| 9697 | case "(($ac_try" in |
| 9698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9699 | *) ac_try_echo=$ac_try;; |
| 9700 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9702 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9703 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9705 | rm -f conftest.er1 |
| 9706 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9708 | (exit $ac_status); } && { |
| 9709 | test -z "$ac_c_werror_flag" || |
| 9710 | test ! -s conftest.err |
| 9711 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9712 | ac_lo=0 ac_mid=0 |
| 9713 | while :; do |
| 9714 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9715 | /* confdefs.h. */ |
| 9716 | _ACEOF |
| 9717 | cat confdefs.h >>conftest.$ac_ext |
| 9718 | cat >>conftest.$ac_ext <<_ACEOF |
| 9719 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9720 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9721 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9722 | int |
| 9723 | main () |
| 9724 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9725 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9726 | test_array [0] = 0 |
| 9727 | |
| 9728 | ; |
| 9729 | return 0; |
| 9730 | } |
| 9731 | _ACEOF |
| 9732 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9733 | if { (ac_try="$ac_compile" |
| 9734 | case "(($ac_try" in |
| 9735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9736 | *) ac_try_echo=$ac_try;; |
| 9737 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9739 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9740 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9742 | rm -f conftest.er1 |
| 9743 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9745 | (exit $ac_status); } && { |
| 9746 | test -z "$ac_c_werror_flag" || |
| 9747 | test ! -s conftest.err |
| 9748 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | ac_hi=$ac_mid; break |
| 9750 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9751 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9753 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9754 | ac_lo=`expr $ac_mid + 1` |
| 9755 | if test $ac_lo -le $ac_mid; then |
| 9756 | ac_lo= ac_hi= |
| 9757 | break |
| 9758 | fi |
| 9759 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9760 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9761 | |
| 9762 | 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] | 9763 | done |
| 9764 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9765 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9767 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9769 | /* confdefs.h. */ |
| 9770 | _ACEOF |
| 9771 | cat confdefs.h >>conftest.$ac_ext |
| 9772 | cat >>conftest.$ac_ext <<_ACEOF |
| 9773 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9774 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9775 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9776 | int |
| 9777 | main () |
| 9778 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9779 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9780 | test_array [0] = 0 |
| 9781 | |
| 9782 | ; |
| 9783 | return 0; |
| 9784 | } |
| 9785 | _ACEOF |
| 9786 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9787 | if { (ac_try="$ac_compile" |
| 9788 | case "(($ac_try" in |
| 9789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9790 | *) ac_try_echo=$ac_try;; |
| 9791 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9793 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9796 | rm -f conftest.er1 |
| 9797 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9799 | (exit $ac_status); } && { |
| 9800 | test -z "$ac_c_werror_flag" || |
| 9801 | test ! -s conftest.err |
| 9802 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9803 | ac_hi=-1 ac_mid=-1 |
| 9804 | while :; do |
| 9805 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9806 | /* confdefs.h. */ |
| 9807 | _ACEOF |
| 9808 | cat confdefs.h >>conftest.$ac_ext |
| 9809 | cat >>conftest.$ac_ext <<_ACEOF |
| 9810 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9811 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9812 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9813 | int |
| 9814 | main () |
| 9815 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9816 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9817 | test_array [0] = 0 |
| 9818 | |
| 9819 | ; |
| 9820 | return 0; |
| 9821 | } |
| 9822 | _ACEOF |
| 9823 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9824 | if { (ac_try="$ac_compile" |
| 9825 | case "(($ac_try" in |
| 9826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9827 | *) ac_try_echo=$ac_try;; |
| 9828 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9830 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9831 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9833 | rm -f conftest.er1 |
| 9834 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9836 | (exit $ac_status); } && { |
| 9837 | test -z "$ac_c_werror_flag" || |
| 9838 | test ! -s conftest.err |
| 9839 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9840 | ac_lo=$ac_mid; break |
| 9841 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9842 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9845 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9846 | if test $ac_mid -le $ac_hi; then |
| 9847 | ac_lo= ac_hi= |
| 9848 | break |
| 9849 | fi |
| 9850 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9851 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9852 | |
| 9853 | 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] | 9854 | done |
| 9855 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9856 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9858 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9859 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9860 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9861 | |
| 9862 | 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] | 9863 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9864 | |
| 9865 | 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] | 9866 | # Binary search between lo and hi bounds. |
| 9867 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9868 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9869 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9870 | /* confdefs.h. */ |
| 9871 | _ACEOF |
| 9872 | cat confdefs.h >>conftest.$ac_ext |
| 9873 | cat >>conftest.$ac_ext <<_ACEOF |
| 9874 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9875 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9876 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9877 | int |
| 9878 | main () |
| 9879 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9880 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9881 | test_array [0] = 0 |
| 9882 | |
| 9883 | ; |
| 9884 | return 0; |
| 9885 | } |
| 9886 | _ACEOF |
| 9887 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9888 | if { (ac_try="$ac_compile" |
| 9889 | case "(($ac_try" in |
| 9890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9891 | *) ac_try_echo=$ac_try;; |
| 9892 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9894 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9895 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9897 | rm -f conftest.er1 |
| 9898 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9900 | (exit $ac_status); } && { |
| 9901 | test -z "$ac_c_werror_flag" || |
| 9902 | test ! -s conftest.err |
| 9903 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9904 | ac_hi=$ac_mid |
| 9905 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9906 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9908 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9909 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9910 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9911 | |
| 9912 | 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] | 9913 | done |
| 9914 | case $ac_lo in |
| 9915 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9916 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9917 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9918 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9919 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9920 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9921 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9922 | else |
| 9923 | ac_cv_sizeof_double=0 |
| 9924 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9925 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9927 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9928 | /* confdefs.h. */ |
| 9929 | _ACEOF |
| 9930 | cat confdefs.h >>conftest.$ac_ext |
| 9931 | cat >>conftest.$ac_ext <<_ACEOF |
| 9932 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9933 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9934 | typedef double ac__type_sizeof_; |
| 9935 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9936 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9937 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9938 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9939 | int |
| 9940 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9941 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9942 | |
| 9943 | FILE *f = fopen ("conftest.val", "w"); |
| 9944 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9945 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9946 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9947 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9948 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9949 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9950 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9951 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | } |
| 9953 | else |
| 9954 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9955 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9956 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9957 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9958 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9959 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9960 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9961 | |
| 9962 | ; |
| 9963 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9964 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9965 | _ACEOF |
| 9966 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9967 | if { (ac_try="$ac_link" |
| 9968 | case "(($ac_try" in |
| 9969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9970 | *) ac_try_echo=$ac_try;; |
| 9971 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9973 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9974 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9976 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9977 | { (case "(($ac_try" in |
| 9978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9979 | *) ac_try_echo=$ac_try;; |
| 9980 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9982 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9983 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9985 | (exit $ac_status); }; }; then |
| 9986 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9987 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9988 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9989 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9991 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9992 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9993 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9994 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9995 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9996 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9997 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9998 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9999 | else |
| 10000 | ac_cv_sizeof_double=0 |
| 10001 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10002 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10003 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10004 | fi |
| 10005 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10006 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10007 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 10008 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10009 | |
| 10010 | |
| 10011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10012 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10013 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10014 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10015 | |
| 10016 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10017 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 10018 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 10019 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 10020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10021 | else |
| 10022 | cat >conftest.$ac_ext <<_ACEOF |
| 10023 | /* confdefs.h. */ |
| 10024 | _ACEOF |
| 10025 | cat confdefs.h >>conftest.$ac_ext |
| 10026 | cat >>conftest.$ac_ext <<_ACEOF |
| 10027 | /* end confdefs.h. */ |
| 10028 | $ac_includes_default |
| 10029 | typedef fpos_t ac__type_new_; |
| 10030 | int |
| 10031 | main () |
| 10032 | { |
| 10033 | if ((ac__type_new_ *) 0) |
| 10034 | return 0; |
| 10035 | if (sizeof (ac__type_new_)) |
| 10036 | return 0; |
| 10037 | ; |
| 10038 | return 0; |
| 10039 | } |
| 10040 | _ACEOF |
| 10041 | rm -f conftest.$ac_objext |
| 10042 | if { (ac_try="$ac_compile" |
| 10043 | case "(($ac_try" in |
| 10044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10045 | *) ac_try_echo=$ac_try;; |
| 10046 | esac |
| 10047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10048 | (eval "$ac_compile") 2>conftest.er1 |
| 10049 | ac_status=$? |
| 10050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10051 | rm -f conftest.er1 |
| 10052 | cat conftest.err >&5 |
| 10053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10054 | (exit $ac_status); } && { |
| 10055 | test -z "$ac_c_werror_flag" || |
| 10056 | test ! -s conftest.err |
| 10057 | } && test -s conftest.$ac_objext; then |
| 10058 | ac_cv_type_fpos_t=yes |
| 10059 | else |
| 10060 | echo "$as_me: failed program was:" >&5 |
| 10061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10062 | |
| 10063 | ac_cv_type_fpos_t=no |
| 10064 | fi |
| 10065 | |
| 10066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10067 | fi |
| 10068 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 10069 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 10070 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10071 | # The cast to long int works around a bug in the HP C Compiler |
| 10072 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10073 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10074 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10075 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 10076 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10077 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10080 | if test "$cross_compiling" = yes; then |
| 10081 | # Depending upon the size, compute the lo and hi bounds. |
| 10082 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10083 | /* confdefs.h. */ |
| 10084 | _ACEOF |
| 10085 | cat confdefs.h >>conftest.$ac_ext |
| 10086 | cat >>conftest.$ac_ext <<_ACEOF |
| 10087 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10088 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10089 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10090 | int |
| 10091 | main () |
| 10092 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10093 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10094 | test_array [0] = 0 |
| 10095 | |
| 10096 | ; |
| 10097 | return 0; |
| 10098 | } |
| 10099 | _ACEOF |
| 10100 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10101 | if { (ac_try="$ac_compile" |
| 10102 | case "(($ac_try" in |
| 10103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10104 | *) ac_try_echo=$ac_try;; |
| 10105 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10107 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10108 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10110 | rm -f conftest.er1 |
| 10111 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10113 | (exit $ac_status); } && { |
| 10114 | test -z "$ac_c_werror_flag" || |
| 10115 | test ! -s conftest.err |
| 10116 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10117 | ac_lo=0 ac_mid=0 |
| 10118 | while :; do |
| 10119 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10120 | /* confdefs.h. */ |
| 10121 | _ACEOF |
| 10122 | cat confdefs.h >>conftest.$ac_ext |
| 10123 | cat >>conftest.$ac_ext <<_ACEOF |
| 10124 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10125 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10126 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10127 | int |
| 10128 | main () |
| 10129 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10130 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10131 | test_array [0] = 0 |
| 10132 | |
| 10133 | ; |
| 10134 | return 0; |
| 10135 | } |
| 10136 | _ACEOF |
| 10137 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10138 | if { (ac_try="$ac_compile" |
| 10139 | case "(($ac_try" in |
| 10140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10141 | *) ac_try_echo=$ac_try;; |
| 10142 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10144 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10145 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10147 | rm -f conftest.er1 |
| 10148 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10150 | (exit $ac_status); } && { |
| 10151 | test -z "$ac_c_werror_flag" || |
| 10152 | test ! -s conftest.err |
| 10153 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10154 | ac_hi=$ac_mid; break |
| 10155 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10156 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10158 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10159 | ac_lo=`expr $ac_mid + 1` |
| 10160 | if test $ac_lo -le $ac_mid; then |
| 10161 | ac_lo= ac_hi= |
| 10162 | break |
| 10163 | fi |
| 10164 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10165 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10166 | |
| 10167 | 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] | 10168 | done |
| 10169 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10170 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10172 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10173 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10174 | /* confdefs.h. */ |
| 10175 | _ACEOF |
| 10176 | cat confdefs.h >>conftest.$ac_ext |
| 10177 | cat >>conftest.$ac_ext <<_ACEOF |
| 10178 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10179 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10180 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 | int |
| 10182 | main () |
| 10183 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10184 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10185 | test_array [0] = 0 |
| 10186 | |
| 10187 | ; |
| 10188 | return 0; |
| 10189 | } |
| 10190 | _ACEOF |
| 10191 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10192 | if { (ac_try="$ac_compile" |
| 10193 | case "(($ac_try" in |
| 10194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10195 | *) ac_try_echo=$ac_try;; |
| 10196 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10198 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10199 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10201 | rm -f conftest.er1 |
| 10202 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10204 | (exit $ac_status); } && { |
| 10205 | test -z "$ac_c_werror_flag" || |
| 10206 | test ! -s conftest.err |
| 10207 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10208 | ac_hi=-1 ac_mid=-1 |
| 10209 | while :; do |
| 10210 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10211 | /* confdefs.h. */ |
| 10212 | _ACEOF |
| 10213 | cat confdefs.h >>conftest.$ac_ext |
| 10214 | cat >>conftest.$ac_ext <<_ACEOF |
| 10215 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10217 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10218 | int |
| 10219 | main () |
| 10220 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10221 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10222 | test_array [0] = 0 |
| 10223 | |
| 10224 | ; |
| 10225 | return 0; |
| 10226 | } |
| 10227 | _ACEOF |
| 10228 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10229 | if { (ac_try="$ac_compile" |
| 10230 | case "(($ac_try" in |
| 10231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10232 | *) ac_try_echo=$ac_try;; |
| 10233 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10235 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10236 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10238 | rm -f conftest.er1 |
| 10239 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10241 | (exit $ac_status); } && { |
| 10242 | test -z "$ac_c_werror_flag" || |
| 10243 | test ! -s conftest.err |
| 10244 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10245 | ac_lo=$ac_mid; break |
| 10246 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10247 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10249 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10250 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10251 | if test $ac_mid -le $ac_hi; then |
| 10252 | ac_lo= ac_hi= |
| 10253 | break |
| 10254 | fi |
| 10255 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10256 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10257 | |
| 10258 | 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] | 10259 | done |
| 10260 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10261 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10263 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10264 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10265 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10266 | |
| 10267 | 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] | 10268 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10269 | |
| 10270 | 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] | 10271 | # Binary search between lo and hi bounds. |
| 10272 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10273 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10274 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10275 | /* confdefs.h. */ |
| 10276 | _ACEOF |
| 10277 | cat confdefs.h >>conftest.$ac_ext |
| 10278 | cat >>conftest.$ac_ext <<_ACEOF |
| 10279 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10280 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10281 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10282 | int |
| 10283 | main () |
| 10284 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10285 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10286 | test_array [0] = 0 |
| 10287 | |
| 10288 | ; |
| 10289 | return 0; |
| 10290 | } |
| 10291 | _ACEOF |
| 10292 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10293 | if { (ac_try="$ac_compile" |
| 10294 | case "(($ac_try" in |
| 10295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10296 | *) ac_try_echo=$ac_try;; |
| 10297 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10299 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10300 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10302 | rm -f conftest.er1 |
| 10303 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10305 | (exit $ac_status); } && { |
| 10306 | test -z "$ac_c_werror_flag" || |
| 10307 | test ! -s conftest.err |
| 10308 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10309 | ac_hi=$ac_mid |
| 10310 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10311 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10313 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10314 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10316 | |
| 10317 | 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] | 10318 | done |
| 10319 | case $ac_lo in |
| 10320 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10321 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10322 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10323 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10324 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10325 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10326 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10327 | else |
| 10328 | ac_cv_sizeof_fpos_t=0 |
| 10329 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10330 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10332 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10333 | /* confdefs.h. */ |
| 10334 | _ACEOF |
| 10335 | cat confdefs.h >>conftest.$ac_ext |
| 10336 | cat >>conftest.$ac_ext <<_ACEOF |
| 10337 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10338 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10339 | typedef fpos_t ac__type_sizeof_; |
| 10340 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10341 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10342 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10343 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10344 | int |
| 10345 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10346 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10347 | |
| 10348 | FILE *f = fopen ("conftest.val", "w"); |
| 10349 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10350 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10351 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10352 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10353 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10354 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10355 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10356 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10357 | } |
| 10358 | else |
| 10359 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10360 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10361 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10362 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10363 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10364 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10365 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10366 | |
| 10367 | ; |
| 10368 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10369 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10370 | _ACEOF |
| 10371 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10372 | if { (ac_try="$ac_link" |
| 10373 | case "(($ac_try" in |
| 10374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10375 | *) ac_try_echo=$ac_try;; |
| 10376 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10378 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10379 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10381 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10382 | { (case "(($ac_try" in |
| 10383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10384 | *) ac_try_echo=$ac_try;; |
| 10385 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10387 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10388 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10390 | (exit $ac_status); }; }; then |
| 10391 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10392 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10393 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10394 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10398 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10399 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10400 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10401 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10402 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10403 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10404 | else |
| 10405 | ac_cv_sizeof_fpos_t=0 |
| 10406 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10408 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10409 | fi |
| 10410 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10411 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10412 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10413 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10414 | |
| 10415 | |
| 10416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10417 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10418 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10419 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10420 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10421 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10422 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10423 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10424 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10426 | else |
| 10427 | cat >conftest.$ac_ext <<_ACEOF |
| 10428 | /* confdefs.h. */ |
| 10429 | _ACEOF |
| 10430 | cat confdefs.h >>conftest.$ac_ext |
| 10431 | cat >>conftest.$ac_ext <<_ACEOF |
| 10432 | /* end confdefs.h. */ |
| 10433 | $ac_includes_default |
| 10434 | typedef size_t ac__type_new_; |
| 10435 | int |
| 10436 | main () |
| 10437 | { |
| 10438 | if ((ac__type_new_ *) 0) |
| 10439 | return 0; |
| 10440 | if (sizeof (ac__type_new_)) |
| 10441 | return 0; |
| 10442 | ; |
| 10443 | return 0; |
| 10444 | } |
| 10445 | _ACEOF |
| 10446 | rm -f conftest.$ac_objext |
| 10447 | if { (ac_try="$ac_compile" |
| 10448 | case "(($ac_try" in |
| 10449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10450 | *) ac_try_echo=$ac_try;; |
| 10451 | esac |
| 10452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10453 | (eval "$ac_compile") 2>conftest.er1 |
| 10454 | ac_status=$? |
| 10455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10456 | rm -f conftest.er1 |
| 10457 | cat conftest.err >&5 |
| 10458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10459 | (exit $ac_status); } && { |
| 10460 | test -z "$ac_c_werror_flag" || |
| 10461 | test ! -s conftest.err |
| 10462 | } && test -s conftest.$ac_objext; then |
| 10463 | ac_cv_type_size_t=yes |
| 10464 | else |
| 10465 | echo "$as_me: failed program was:" >&5 |
| 10466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10467 | |
| 10468 | ac_cv_type_size_t=no |
| 10469 | fi |
| 10470 | |
| 10471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10472 | fi |
| 10473 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10474 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10475 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10476 | # The cast to long int works around a bug in the HP C Compiler |
| 10477 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10478 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10479 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10480 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10481 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10482 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10484 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10485 | if test "$cross_compiling" = yes; then |
| 10486 | # Depending upon the size, compute the lo and hi bounds. |
| 10487 | cat >conftest.$ac_ext <<_ACEOF |
| 10488 | /* confdefs.h. */ |
| 10489 | _ACEOF |
| 10490 | cat confdefs.h >>conftest.$ac_ext |
| 10491 | cat >>conftest.$ac_ext <<_ACEOF |
| 10492 | /* end confdefs.h. */ |
| 10493 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10494 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10495 | int |
| 10496 | main () |
| 10497 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10498 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10499 | test_array [0] = 0 |
| 10500 | |
| 10501 | ; |
| 10502 | return 0; |
| 10503 | } |
| 10504 | _ACEOF |
| 10505 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10506 | if { (ac_try="$ac_compile" |
| 10507 | case "(($ac_try" in |
| 10508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10509 | *) ac_try_echo=$ac_try;; |
| 10510 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10512 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10513 | ac_status=$? |
| 10514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10515 | rm -f conftest.er1 |
| 10516 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10518 | (exit $ac_status); } && { |
| 10519 | test -z "$ac_c_werror_flag" || |
| 10520 | test ! -s conftest.err |
| 10521 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10522 | ac_lo=0 ac_mid=0 |
| 10523 | while :; do |
| 10524 | cat >conftest.$ac_ext <<_ACEOF |
| 10525 | /* confdefs.h. */ |
| 10526 | _ACEOF |
| 10527 | cat confdefs.h >>conftest.$ac_ext |
| 10528 | cat >>conftest.$ac_ext <<_ACEOF |
| 10529 | /* end confdefs.h. */ |
| 10530 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10531 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10532 | int |
| 10533 | main () |
| 10534 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10535 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10536 | test_array [0] = 0 |
| 10537 | |
| 10538 | ; |
| 10539 | return 0; |
| 10540 | } |
| 10541 | _ACEOF |
| 10542 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10543 | if { (ac_try="$ac_compile" |
| 10544 | case "(($ac_try" in |
| 10545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10546 | *) ac_try_echo=$ac_try;; |
| 10547 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10549 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10550 | ac_status=$? |
| 10551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10552 | rm -f conftest.er1 |
| 10553 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10555 | (exit $ac_status); } && { |
| 10556 | test -z "$ac_c_werror_flag" || |
| 10557 | test ! -s conftest.err |
| 10558 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10559 | ac_hi=$ac_mid; break |
| 10560 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10561 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10563 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10564 | ac_lo=`expr $ac_mid + 1` |
| 10565 | if test $ac_lo -le $ac_mid; then |
| 10566 | ac_lo= ac_hi= |
| 10567 | break |
| 10568 | fi |
| 10569 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10570 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10571 | |
| 10572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10573 | done |
| 10574 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10575 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10577 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10578 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10579 | /* confdefs.h. */ |
| 10580 | _ACEOF |
| 10581 | cat confdefs.h >>conftest.$ac_ext |
| 10582 | cat >>conftest.$ac_ext <<_ACEOF |
| 10583 | /* end confdefs.h. */ |
| 10584 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10585 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10586 | int |
| 10587 | main () |
| 10588 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10589 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10590 | test_array [0] = 0 |
| 10591 | |
| 10592 | ; |
| 10593 | return 0; |
| 10594 | } |
| 10595 | _ACEOF |
| 10596 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10597 | if { (ac_try="$ac_compile" |
| 10598 | case "(($ac_try" in |
| 10599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10600 | *) ac_try_echo=$ac_try;; |
| 10601 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10603 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10604 | ac_status=$? |
| 10605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10606 | rm -f conftest.er1 |
| 10607 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10609 | (exit $ac_status); } && { |
| 10610 | test -z "$ac_c_werror_flag" || |
| 10611 | test ! -s conftest.err |
| 10612 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10613 | ac_hi=-1 ac_mid=-1 |
| 10614 | while :; do |
| 10615 | cat >conftest.$ac_ext <<_ACEOF |
| 10616 | /* confdefs.h. */ |
| 10617 | _ACEOF |
| 10618 | cat confdefs.h >>conftest.$ac_ext |
| 10619 | cat >>conftest.$ac_ext <<_ACEOF |
| 10620 | /* end confdefs.h. */ |
| 10621 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10622 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10623 | int |
| 10624 | main () |
| 10625 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10626 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10627 | test_array [0] = 0 |
| 10628 | |
| 10629 | ; |
| 10630 | return 0; |
| 10631 | } |
| 10632 | _ACEOF |
| 10633 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10634 | if { (ac_try="$ac_compile" |
| 10635 | case "(($ac_try" in |
| 10636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10637 | *) ac_try_echo=$ac_try;; |
| 10638 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10640 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10641 | ac_status=$? |
| 10642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10643 | rm -f conftest.er1 |
| 10644 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10646 | (exit $ac_status); } && { |
| 10647 | test -z "$ac_c_werror_flag" || |
| 10648 | test ! -s conftest.err |
| 10649 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10650 | ac_lo=$ac_mid; break |
| 10651 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10652 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10654 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10655 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10656 | if test $ac_mid -le $ac_hi; then |
| 10657 | ac_lo= ac_hi= |
| 10658 | break |
| 10659 | fi |
| 10660 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10661 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10662 | |
| 10663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10664 | done |
| 10665 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10666 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10668 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10669 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10670 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10671 | |
| 10672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10673 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10674 | |
| 10675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10676 | # Binary search between lo and hi bounds. |
| 10677 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10678 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10679 | cat >conftest.$ac_ext <<_ACEOF |
| 10680 | /* confdefs.h. */ |
| 10681 | _ACEOF |
| 10682 | cat confdefs.h >>conftest.$ac_ext |
| 10683 | cat >>conftest.$ac_ext <<_ACEOF |
| 10684 | /* end confdefs.h. */ |
| 10685 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10686 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10687 | int |
| 10688 | main () |
| 10689 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10690 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10691 | test_array [0] = 0 |
| 10692 | |
| 10693 | ; |
| 10694 | return 0; |
| 10695 | } |
| 10696 | _ACEOF |
| 10697 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10698 | if { (ac_try="$ac_compile" |
| 10699 | case "(($ac_try" in |
| 10700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10701 | *) ac_try_echo=$ac_try;; |
| 10702 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10704 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10705 | ac_status=$? |
| 10706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10707 | rm -f conftest.er1 |
| 10708 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10710 | (exit $ac_status); } && { |
| 10711 | test -z "$ac_c_werror_flag" || |
| 10712 | test ! -s conftest.err |
| 10713 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10714 | ac_hi=$ac_mid |
| 10715 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10716 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10718 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10719 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10720 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10721 | |
| 10722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10723 | done |
| 10724 | case $ac_lo in |
| 10725 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10726 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10727 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10728 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10729 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10730 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10731 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10732 | else |
| 10733 | ac_cv_sizeof_size_t=0 |
| 10734 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10735 | esac |
| 10736 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10737 | cat >conftest.$ac_ext <<_ACEOF |
| 10738 | /* confdefs.h. */ |
| 10739 | _ACEOF |
| 10740 | cat confdefs.h >>conftest.$ac_ext |
| 10741 | cat >>conftest.$ac_ext <<_ACEOF |
| 10742 | /* end confdefs.h. */ |
| 10743 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10744 | typedef size_t ac__type_sizeof_; |
| 10745 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10746 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10747 | #include <stdio.h> |
| 10748 | #include <stdlib.h> |
| 10749 | int |
| 10750 | main () |
| 10751 | { |
| 10752 | |
| 10753 | FILE *f = fopen ("conftest.val", "w"); |
| 10754 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10755 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10756 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10757 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10758 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10759 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10760 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10761 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10762 | } |
| 10763 | else |
| 10764 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10765 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10766 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10767 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10768 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10769 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10770 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10771 | |
| 10772 | ; |
| 10773 | return 0; |
| 10774 | } |
| 10775 | _ACEOF |
| 10776 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10777 | if { (ac_try="$ac_link" |
| 10778 | case "(($ac_try" in |
| 10779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10780 | *) ac_try_echo=$ac_try;; |
| 10781 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10783 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10784 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10787 | { (case "(($ac_try" in |
| 10788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10789 | *) ac_try_echo=$ac_try;; |
| 10790 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10792 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10793 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10795 | (exit $ac_status); }; }; then |
| 10796 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10797 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10798 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10799 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10801 | |
| 10802 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10803 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10804 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10805 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10806 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10807 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10808 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10809 | else |
| 10810 | ac_cv_sizeof_size_t=0 |
| 10811 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10812 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10813 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10814 | fi |
| 10815 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10816 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10817 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10818 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10819 | |
| 10820 | |
| 10821 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10822 | cat >>confdefs.h <<_ACEOF |
| 10823 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10824 | _ACEOF |
| 10825 | |
| 10826 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10827 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10828 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10829 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10831 | else |
| 10832 | cat >conftest.$ac_ext <<_ACEOF |
| 10833 | /* confdefs.h. */ |
| 10834 | _ACEOF |
| 10835 | cat confdefs.h >>conftest.$ac_ext |
| 10836 | cat >>conftest.$ac_ext <<_ACEOF |
| 10837 | /* end confdefs.h. */ |
| 10838 | $ac_includes_default |
| 10839 | typedef pid_t ac__type_new_; |
| 10840 | int |
| 10841 | main () |
| 10842 | { |
| 10843 | if ((ac__type_new_ *) 0) |
| 10844 | return 0; |
| 10845 | if (sizeof (ac__type_new_)) |
| 10846 | return 0; |
| 10847 | ; |
| 10848 | return 0; |
| 10849 | } |
| 10850 | _ACEOF |
| 10851 | rm -f conftest.$ac_objext |
| 10852 | if { (ac_try="$ac_compile" |
| 10853 | case "(($ac_try" in |
| 10854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10855 | *) ac_try_echo=$ac_try;; |
| 10856 | esac |
| 10857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10858 | (eval "$ac_compile") 2>conftest.er1 |
| 10859 | ac_status=$? |
| 10860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10861 | rm -f conftest.er1 |
| 10862 | cat conftest.err >&5 |
| 10863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10864 | (exit $ac_status); } && { |
| 10865 | test -z "$ac_c_werror_flag" || |
| 10866 | test ! -s conftest.err |
| 10867 | } && test -s conftest.$ac_objext; then |
| 10868 | ac_cv_type_pid_t=yes |
| 10869 | else |
| 10870 | echo "$as_me: failed program was:" >&5 |
| 10871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10872 | |
| 10873 | ac_cv_type_pid_t=no |
| 10874 | fi |
| 10875 | |
| 10876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10877 | fi |
| 10878 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10879 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10880 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10881 | # The cast to long int works around a bug in the HP C Compiler |
| 10882 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10883 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10884 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10885 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10886 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10887 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10889 | else |
| 10890 | if test "$cross_compiling" = yes; then |
| 10891 | # Depending upon the size, compute the lo and hi bounds. |
| 10892 | cat >conftest.$ac_ext <<_ACEOF |
| 10893 | /* confdefs.h. */ |
| 10894 | _ACEOF |
| 10895 | cat confdefs.h >>conftest.$ac_ext |
| 10896 | cat >>conftest.$ac_ext <<_ACEOF |
| 10897 | /* end confdefs.h. */ |
| 10898 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10899 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10900 | int |
| 10901 | main () |
| 10902 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10903 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10904 | test_array [0] = 0 |
| 10905 | |
| 10906 | ; |
| 10907 | return 0; |
| 10908 | } |
| 10909 | _ACEOF |
| 10910 | rm -f conftest.$ac_objext |
| 10911 | if { (ac_try="$ac_compile" |
| 10912 | case "(($ac_try" in |
| 10913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10914 | *) ac_try_echo=$ac_try;; |
| 10915 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10917 | (eval "$ac_compile") 2>conftest.er1 |
| 10918 | ac_status=$? |
| 10919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10920 | rm -f conftest.er1 |
| 10921 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10923 | (exit $ac_status); } && { |
| 10924 | test -z "$ac_c_werror_flag" || |
| 10925 | test ! -s conftest.err |
| 10926 | } && test -s conftest.$ac_objext; then |
| 10927 | ac_lo=0 ac_mid=0 |
| 10928 | while :; do |
| 10929 | cat >conftest.$ac_ext <<_ACEOF |
| 10930 | /* confdefs.h. */ |
| 10931 | _ACEOF |
| 10932 | cat confdefs.h >>conftest.$ac_ext |
| 10933 | cat >>conftest.$ac_ext <<_ACEOF |
| 10934 | /* end confdefs.h. */ |
| 10935 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10936 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10937 | int |
| 10938 | main () |
| 10939 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10940 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10941 | test_array [0] = 0 |
| 10942 | |
| 10943 | ; |
| 10944 | return 0; |
| 10945 | } |
| 10946 | _ACEOF |
| 10947 | rm -f conftest.$ac_objext |
| 10948 | if { (ac_try="$ac_compile" |
| 10949 | case "(($ac_try" in |
| 10950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10951 | *) ac_try_echo=$ac_try;; |
| 10952 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10954 | (eval "$ac_compile") 2>conftest.er1 |
| 10955 | ac_status=$? |
| 10956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10957 | rm -f conftest.er1 |
| 10958 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10960 | (exit $ac_status); } && { |
| 10961 | test -z "$ac_c_werror_flag" || |
| 10962 | test ! -s conftest.err |
| 10963 | } && test -s conftest.$ac_objext; then |
| 10964 | ac_hi=$ac_mid; break |
| 10965 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10966 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10968 | |
| 10969 | ac_lo=`expr $ac_mid + 1` |
| 10970 | if test $ac_lo -le $ac_mid; then |
| 10971 | ac_lo= ac_hi= |
| 10972 | break |
| 10973 | fi |
| 10974 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10975 | fi |
| 10976 | |
| 10977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10978 | done |
| 10979 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10980 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10982 | |
| 10983 | cat >conftest.$ac_ext <<_ACEOF |
| 10984 | /* confdefs.h. */ |
| 10985 | _ACEOF |
| 10986 | cat confdefs.h >>conftest.$ac_ext |
| 10987 | cat >>conftest.$ac_ext <<_ACEOF |
| 10988 | /* end confdefs.h. */ |
| 10989 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10990 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10991 | int |
| 10992 | main () |
| 10993 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10994 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10995 | test_array [0] = 0 |
| 10996 | |
| 10997 | ; |
| 10998 | return 0; |
| 10999 | } |
| 11000 | _ACEOF |
| 11001 | rm -f conftest.$ac_objext |
| 11002 | if { (ac_try="$ac_compile" |
| 11003 | case "(($ac_try" in |
| 11004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11005 | *) ac_try_echo=$ac_try;; |
| 11006 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11008 | (eval "$ac_compile") 2>conftest.er1 |
| 11009 | ac_status=$? |
| 11010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11011 | rm -f conftest.er1 |
| 11012 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11014 | (exit $ac_status); } && { |
| 11015 | test -z "$ac_c_werror_flag" || |
| 11016 | test ! -s conftest.err |
| 11017 | } && test -s conftest.$ac_objext; then |
| 11018 | ac_hi=-1 ac_mid=-1 |
| 11019 | while :; do |
| 11020 | cat >conftest.$ac_ext <<_ACEOF |
| 11021 | /* confdefs.h. */ |
| 11022 | _ACEOF |
| 11023 | cat confdefs.h >>conftest.$ac_ext |
| 11024 | cat >>conftest.$ac_ext <<_ACEOF |
| 11025 | /* end confdefs.h. */ |
| 11026 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11027 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11028 | int |
| 11029 | main () |
| 11030 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11031 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11032 | test_array [0] = 0 |
| 11033 | |
| 11034 | ; |
| 11035 | return 0; |
| 11036 | } |
| 11037 | _ACEOF |
| 11038 | rm -f conftest.$ac_objext |
| 11039 | if { (ac_try="$ac_compile" |
| 11040 | case "(($ac_try" in |
| 11041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11042 | *) ac_try_echo=$ac_try;; |
| 11043 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11045 | (eval "$ac_compile") 2>conftest.er1 |
| 11046 | ac_status=$? |
| 11047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11048 | rm -f conftest.er1 |
| 11049 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11051 | (exit $ac_status); } && { |
| 11052 | test -z "$ac_c_werror_flag" || |
| 11053 | test ! -s conftest.err |
| 11054 | } && test -s conftest.$ac_objext; then |
| 11055 | ac_lo=$ac_mid; break |
| 11056 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11057 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11059 | |
| 11060 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11061 | if test $ac_mid -le $ac_hi; then |
| 11062 | ac_lo= ac_hi= |
| 11063 | break |
| 11064 | fi |
| 11065 | ac_mid=`expr 2 '*' $ac_mid` |
| 11066 | fi |
| 11067 | |
| 11068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11069 | done |
| 11070 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11071 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11073 | |
| 11074 | ac_lo= ac_hi= |
| 11075 | fi |
| 11076 | |
| 11077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11078 | fi |
| 11079 | |
| 11080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11081 | # Binary search between lo and hi bounds. |
| 11082 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11083 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11084 | cat >conftest.$ac_ext <<_ACEOF |
| 11085 | /* confdefs.h. */ |
| 11086 | _ACEOF |
| 11087 | cat confdefs.h >>conftest.$ac_ext |
| 11088 | cat >>conftest.$ac_ext <<_ACEOF |
| 11089 | /* end confdefs.h. */ |
| 11090 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11091 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11092 | int |
| 11093 | main () |
| 11094 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11095 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11096 | test_array [0] = 0 |
| 11097 | |
| 11098 | ; |
| 11099 | return 0; |
| 11100 | } |
| 11101 | _ACEOF |
| 11102 | rm -f conftest.$ac_objext |
| 11103 | if { (ac_try="$ac_compile" |
| 11104 | case "(($ac_try" in |
| 11105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11106 | *) ac_try_echo=$ac_try;; |
| 11107 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11109 | (eval "$ac_compile") 2>conftest.er1 |
| 11110 | ac_status=$? |
| 11111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11112 | rm -f conftest.er1 |
| 11113 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11115 | (exit $ac_status); } && { |
| 11116 | test -z "$ac_c_werror_flag" || |
| 11117 | test ! -s conftest.err |
| 11118 | } && test -s conftest.$ac_objext; then |
| 11119 | ac_hi=$ac_mid |
| 11120 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11121 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11123 | |
| 11124 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11125 | fi |
| 11126 | |
| 11127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11128 | done |
| 11129 | case $ac_lo in |
| 11130 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11131 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11132 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11133 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11134 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11135 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11136 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11137 | else |
| 11138 | ac_cv_sizeof_pid_t=0 |
| 11139 | fi ;; |
| 11140 | esac |
| 11141 | else |
| 11142 | cat >conftest.$ac_ext <<_ACEOF |
| 11143 | /* confdefs.h. */ |
| 11144 | _ACEOF |
| 11145 | cat confdefs.h >>conftest.$ac_ext |
| 11146 | cat >>conftest.$ac_ext <<_ACEOF |
| 11147 | /* end confdefs.h. */ |
| 11148 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11149 | typedef pid_t ac__type_sizeof_; |
| 11150 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11151 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11152 | #include <stdio.h> |
| 11153 | #include <stdlib.h> |
| 11154 | int |
| 11155 | main () |
| 11156 | { |
| 11157 | |
| 11158 | FILE *f = fopen ("conftest.val", "w"); |
| 11159 | if (! f) |
| 11160 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11161 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11162 | { |
| 11163 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11164 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11165 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11166 | fprintf (f, "%ld\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11167 | } |
| 11168 | else |
| 11169 | { |
| 11170 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11171 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11172 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11173 | fprintf (f, "%lu\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11174 | } |
| 11175 | return ferror (f) || fclose (f) != 0; |
| 11176 | |
| 11177 | ; |
| 11178 | return 0; |
| 11179 | } |
| 11180 | _ACEOF |
| 11181 | rm -f conftest$ac_exeext |
| 11182 | if { (ac_try="$ac_link" |
| 11183 | case "(($ac_try" in |
| 11184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11185 | *) ac_try_echo=$ac_try;; |
| 11186 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11188 | (eval "$ac_link") 2>&5 |
| 11189 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11191 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11192 | { (case "(($ac_try" in |
| 11193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11194 | *) ac_try_echo=$ac_try;; |
| 11195 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11197 | (eval "$ac_try") 2>&5 |
| 11198 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11200 | (exit $ac_status); }; }; then |
| 11201 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11202 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11203 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11204 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11206 | |
| 11207 | ( exit $ac_status ) |
| 11208 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11209 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11210 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11211 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11212 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11213 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11214 | else |
| 11215 | ac_cv_sizeof_pid_t=0 |
| 11216 | fi |
| 11217 | fi |
| 11218 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11219 | fi |
| 11220 | rm -f conftest.val |
| 11221 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11222 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11223 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11224 | |
| 11225 | |
| 11226 | |
| 11227 | cat >>confdefs.h <<_ACEOF |
| 11228 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11229 | _ACEOF |
| 11230 | |
| 11231 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11232 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11233 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11234 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11235 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11236 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11237 | /* confdefs.h. */ |
| 11238 | _ACEOF |
| 11239 | cat confdefs.h >>conftest.$ac_ext |
| 11240 | cat >>conftest.$ac_ext <<_ACEOF |
| 11241 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11242 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11243 | int |
| 11244 | main () |
| 11245 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11246 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11247 | ; |
| 11248 | return 0; |
| 11249 | } |
| 11250 | _ACEOF |
| 11251 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11252 | if { (ac_try="$ac_compile" |
| 11253 | case "(($ac_try" in |
| 11254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11255 | *) ac_try_echo=$ac_try;; |
| 11256 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11258 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11261 | rm -f conftest.er1 |
| 11262 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11264 | (exit $ac_status); } && { |
| 11265 | test -z "$ac_c_werror_flag" || |
| 11266 | test ! -s conftest.err |
| 11267 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11268 | |
| 11269 | |
| 11270 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11271 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11272 | _ACEOF |
| 11273 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11274 | have_long_long=yes |
| 11275 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11276 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11277 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11279 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11280 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11281 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11282 | |
| 11283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11284 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11285 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11286 | if test "$have_long_long" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11287 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11288 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11289 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11291 | else |
| 11292 | cat >conftest.$ac_ext <<_ACEOF |
| 11293 | /* confdefs.h. */ |
| 11294 | _ACEOF |
| 11295 | cat confdefs.h >>conftest.$ac_ext |
| 11296 | cat >>conftest.$ac_ext <<_ACEOF |
| 11297 | /* end confdefs.h. */ |
| 11298 | $ac_includes_default |
| 11299 | typedef long long ac__type_new_; |
| 11300 | int |
| 11301 | main () |
| 11302 | { |
| 11303 | if ((ac__type_new_ *) 0) |
| 11304 | return 0; |
| 11305 | if (sizeof (ac__type_new_)) |
| 11306 | return 0; |
| 11307 | ; |
| 11308 | return 0; |
| 11309 | } |
| 11310 | _ACEOF |
| 11311 | rm -f conftest.$ac_objext |
| 11312 | if { (ac_try="$ac_compile" |
| 11313 | case "(($ac_try" in |
| 11314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11315 | *) ac_try_echo=$ac_try;; |
| 11316 | esac |
| 11317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11318 | (eval "$ac_compile") 2>conftest.er1 |
| 11319 | ac_status=$? |
| 11320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11321 | rm -f conftest.er1 |
| 11322 | cat conftest.err >&5 |
| 11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11324 | (exit $ac_status); } && { |
| 11325 | test -z "$ac_c_werror_flag" || |
| 11326 | test ! -s conftest.err |
| 11327 | } && test -s conftest.$ac_objext; then |
| 11328 | ac_cv_type_long_long=yes |
| 11329 | else |
| 11330 | echo "$as_me: failed program was:" >&5 |
| 11331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11332 | |
| 11333 | ac_cv_type_long_long=no |
| 11334 | fi |
| 11335 | |
| 11336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11337 | fi |
| 11338 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11339 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11340 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11341 | # The cast to long int works around a bug in the HP C Compiler |
| 11342 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11343 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11344 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11345 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11346 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11347 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11350 | if test "$cross_compiling" = yes; then |
| 11351 | # Depending upon the size, compute the lo and hi bounds. |
| 11352 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11353 | /* confdefs.h. */ |
| 11354 | _ACEOF |
| 11355 | cat confdefs.h >>conftest.$ac_ext |
| 11356 | cat >>conftest.$ac_ext <<_ACEOF |
| 11357 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11358 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11359 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11360 | int |
| 11361 | main () |
| 11362 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11363 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | test_array [0] = 0 |
| 11365 | |
| 11366 | ; |
| 11367 | return 0; |
| 11368 | } |
| 11369 | _ACEOF |
| 11370 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11371 | if { (ac_try="$ac_compile" |
| 11372 | case "(($ac_try" in |
| 11373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11374 | *) ac_try_echo=$ac_try;; |
| 11375 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11377 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11378 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11380 | rm -f conftest.er1 |
| 11381 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11383 | (exit $ac_status); } && { |
| 11384 | test -z "$ac_c_werror_flag" || |
| 11385 | test ! -s conftest.err |
| 11386 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11387 | ac_lo=0 ac_mid=0 |
| 11388 | while :; do |
| 11389 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11390 | /* confdefs.h. */ |
| 11391 | _ACEOF |
| 11392 | cat confdefs.h >>conftest.$ac_ext |
| 11393 | cat >>conftest.$ac_ext <<_ACEOF |
| 11394 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11395 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11396 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11397 | int |
| 11398 | main () |
| 11399 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11400 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11401 | test_array [0] = 0 |
| 11402 | |
| 11403 | ; |
| 11404 | return 0; |
| 11405 | } |
| 11406 | _ACEOF |
| 11407 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11408 | if { (ac_try="$ac_compile" |
| 11409 | case "(($ac_try" in |
| 11410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11411 | *) ac_try_echo=$ac_try;; |
| 11412 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11414 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11415 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11417 | rm -f conftest.er1 |
| 11418 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11420 | (exit $ac_status); } && { |
| 11421 | test -z "$ac_c_werror_flag" || |
| 11422 | test ! -s conftest.err |
| 11423 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11424 | ac_hi=$ac_mid; break |
| 11425 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11426 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11428 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11429 | ac_lo=`expr $ac_mid + 1` |
| 11430 | if test $ac_lo -le $ac_mid; then |
| 11431 | ac_lo= ac_hi= |
| 11432 | break |
| 11433 | fi |
| 11434 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11435 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11436 | |
| 11437 | 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] | 11438 | done |
| 11439 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11440 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11442 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11443 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11444 | /* confdefs.h. */ |
| 11445 | _ACEOF |
| 11446 | cat confdefs.h >>conftest.$ac_ext |
| 11447 | cat >>conftest.$ac_ext <<_ACEOF |
| 11448 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11449 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11450 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11451 | int |
| 11452 | main () |
| 11453 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11454 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11455 | test_array [0] = 0 |
| 11456 | |
| 11457 | ; |
| 11458 | return 0; |
| 11459 | } |
| 11460 | _ACEOF |
| 11461 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11462 | if { (ac_try="$ac_compile" |
| 11463 | case "(($ac_try" in |
| 11464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11465 | *) ac_try_echo=$ac_try;; |
| 11466 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11468 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11469 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11471 | rm -f conftest.er1 |
| 11472 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11474 | (exit $ac_status); } && { |
| 11475 | test -z "$ac_c_werror_flag" || |
| 11476 | test ! -s conftest.err |
| 11477 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11478 | ac_hi=-1 ac_mid=-1 |
| 11479 | while :; do |
| 11480 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11481 | /* confdefs.h. */ |
| 11482 | _ACEOF |
| 11483 | cat confdefs.h >>conftest.$ac_ext |
| 11484 | cat >>conftest.$ac_ext <<_ACEOF |
| 11485 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11486 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11487 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11488 | int |
| 11489 | main () |
| 11490 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11491 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11492 | test_array [0] = 0 |
| 11493 | |
| 11494 | ; |
| 11495 | return 0; |
| 11496 | } |
| 11497 | _ACEOF |
| 11498 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11499 | if { (ac_try="$ac_compile" |
| 11500 | case "(($ac_try" in |
| 11501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11502 | *) ac_try_echo=$ac_try;; |
| 11503 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11505 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11506 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11508 | rm -f conftest.er1 |
| 11509 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11511 | (exit $ac_status); } && { |
| 11512 | test -z "$ac_c_werror_flag" || |
| 11513 | test ! -s conftest.err |
| 11514 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11515 | ac_lo=$ac_mid; break |
| 11516 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11517 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11519 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11520 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11521 | if test $ac_mid -le $ac_hi; then |
| 11522 | ac_lo= ac_hi= |
| 11523 | break |
| 11524 | fi |
| 11525 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11526 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11527 | |
| 11528 | 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] | 11529 | done |
| 11530 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11533 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11534 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11535 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11536 | |
| 11537 | 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] | 11538 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11539 | |
| 11540 | 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] | 11541 | # Binary search between lo and hi bounds. |
| 11542 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11543 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11544 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11545 | /* confdefs.h. */ |
| 11546 | _ACEOF |
| 11547 | cat confdefs.h >>conftest.$ac_ext |
| 11548 | cat >>conftest.$ac_ext <<_ACEOF |
| 11549 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11550 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11551 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11552 | int |
| 11553 | main () |
| 11554 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11555 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11556 | test_array [0] = 0 |
| 11557 | |
| 11558 | ; |
| 11559 | return 0; |
| 11560 | } |
| 11561 | _ACEOF |
| 11562 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11563 | if { (ac_try="$ac_compile" |
| 11564 | case "(($ac_try" in |
| 11565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11566 | *) ac_try_echo=$ac_try;; |
| 11567 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11569 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11570 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11572 | rm -f conftest.er1 |
| 11573 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11575 | (exit $ac_status); } && { |
| 11576 | test -z "$ac_c_werror_flag" || |
| 11577 | test ! -s conftest.err |
| 11578 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11579 | ac_hi=$ac_mid |
| 11580 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11581 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11583 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11584 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11585 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11586 | |
| 11587 | 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] | 11588 | done |
| 11589 | case $ac_lo in |
| 11590 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11591 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11592 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11593 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11594 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11595 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11596 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11597 | else |
| 11598 | ac_cv_sizeof_long_long=0 |
| 11599 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11600 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11602 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11603 | /* confdefs.h. */ |
| 11604 | _ACEOF |
| 11605 | cat confdefs.h >>conftest.$ac_ext |
| 11606 | cat >>conftest.$ac_ext <<_ACEOF |
| 11607 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11608 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11609 | typedef long long ac__type_sizeof_; |
| 11610 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11611 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11612 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11613 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11614 | int |
| 11615 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11616 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11617 | |
| 11618 | FILE *f = fopen ("conftest.val", "w"); |
| 11619 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11620 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11621 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11622 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11623 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11624 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11625 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11626 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11627 | } |
| 11628 | else |
| 11629 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11630 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11631 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11632 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11633 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11634 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11635 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11636 | |
| 11637 | ; |
| 11638 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11639 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 | _ACEOF |
| 11641 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11642 | if { (ac_try="$ac_link" |
| 11643 | case "(($ac_try" in |
| 11644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11645 | *) ac_try_echo=$ac_try;; |
| 11646 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11648 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11649 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11652 | { (case "(($ac_try" in |
| 11653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11654 | *) ac_try_echo=$ac_try;; |
| 11655 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11657 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11658 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11660 | (exit $ac_status); }; }; then |
| 11661 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11662 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11663 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11664 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11667 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11668 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11669 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11670 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11671 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11672 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11673 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11674 | else |
| 11675 | ac_cv_sizeof_long_long=0 |
| 11676 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11677 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11678 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11679 | fi |
| 11680 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11681 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11682 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11683 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11684 | |
| 11685 | |
| 11686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11687 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11688 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11689 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11690 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11691 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11692 | fi |
| 11693 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11694 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11695 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11696 | have_long_double=no |
| 11697 | cat >conftest.$ac_ext <<_ACEOF |
| 11698 | /* confdefs.h. */ |
| 11699 | _ACEOF |
| 11700 | cat confdefs.h >>conftest.$ac_ext |
| 11701 | cat >>conftest.$ac_ext <<_ACEOF |
| 11702 | /* end confdefs.h. */ |
| 11703 | |
| 11704 | int |
| 11705 | main () |
| 11706 | { |
| 11707 | long double x; x = (long double)0.; |
| 11708 | ; |
| 11709 | return 0; |
| 11710 | } |
| 11711 | _ACEOF |
| 11712 | rm -f conftest.$ac_objext |
| 11713 | if { (ac_try="$ac_compile" |
| 11714 | case "(($ac_try" in |
| 11715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11716 | *) ac_try_echo=$ac_try;; |
| 11717 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11719 | (eval "$ac_compile") 2>conftest.er1 |
| 11720 | ac_status=$? |
| 11721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11722 | rm -f conftest.er1 |
| 11723 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11725 | (exit $ac_status); } && { |
| 11726 | test -z "$ac_c_werror_flag" || |
| 11727 | test ! -s conftest.err |
| 11728 | } && test -s conftest.$ac_objext; then |
| 11729 | |
| 11730 | |
| 11731 | cat >>confdefs.h <<\_ACEOF |
| 11732 | #define HAVE_LONG_DOUBLE 1 |
| 11733 | _ACEOF |
| 11734 | |
| 11735 | have_long_double=yes |
| 11736 | |
| 11737 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11738 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11740 | |
| 11741 | |
| 11742 | fi |
| 11743 | |
| 11744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11745 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11746 | echo "${ECHO_T}$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11747 | if test "$have_long_double" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11748 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11749 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11750 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11752 | else |
| 11753 | cat >conftest.$ac_ext <<_ACEOF |
| 11754 | /* confdefs.h. */ |
| 11755 | _ACEOF |
| 11756 | cat confdefs.h >>conftest.$ac_ext |
| 11757 | cat >>conftest.$ac_ext <<_ACEOF |
| 11758 | /* end confdefs.h. */ |
| 11759 | $ac_includes_default |
| 11760 | typedef long double ac__type_new_; |
| 11761 | int |
| 11762 | main () |
| 11763 | { |
| 11764 | if ((ac__type_new_ *) 0) |
| 11765 | return 0; |
| 11766 | if (sizeof (ac__type_new_)) |
| 11767 | return 0; |
| 11768 | ; |
| 11769 | return 0; |
| 11770 | } |
| 11771 | _ACEOF |
| 11772 | rm -f conftest.$ac_objext |
| 11773 | if { (ac_try="$ac_compile" |
| 11774 | case "(($ac_try" in |
| 11775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11776 | *) ac_try_echo=$ac_try;; |
| 11777 | esac |
| 11778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11779 | (eval "$ac_compile") 2>conftest.er1 |
| 11780 | ac_status=$? |
| 11781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11782 | rm -f conftest.er1 |
| 11783 | cat conftest.err >&5 |
| 11784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11785 | (exit $ac_status); } && { |
| 11786 | test -z "$ac_c_werror_flag" || |
| 11787 | test ! -s conftest.err |
| 11788 | } && test -s conftest.$ac_objext; then |
| 11789 | ac_cv_type_long_double=yes |
| 11790 | else |
| 11791 | echo "$as_me: failed program was:" >&5 |
| 11792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11793 | |
| 11794 | ac_cv_type_long_double=no |
| 11795 | fi |
| 11796 | |
| 11797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11798 | fi |
| 11799 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11800 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11801 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11802 | # The cast to long int works around a bug in the HP C Compiler |
| 11803 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11804 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11805 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11806 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11807 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11808 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11810 | else |
| 11811 | if test "$cross_compiling" = yes; then |
| 11812 | # Depending upon the size, compute the lo and hi bounds. |
| 11813 | cat >conftest.$ac_ext <<_ACEOF |
| 11814 | /* confdefs.h. */ |
| 11815 | _ACEOF |
| 11816 | cat confdefs.h >>conftest.$ac_ext |
| 11817 | cat >>conftest.$ac_ext <<_ACEOF |
| 11818 | /* end confdefs.h. */ |
| 11819 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11820 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11821 | int |
| 11822 | main () |
| 11823 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11824 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11825 | test_array [0] = 0 |
| 11826 | |
| 11827 | ; |
| 11828 | return 0; |
| 11829 | } |
| 11830 | _ACEOF |
| 11831 | rm -f conftest.$ac_objext |
| 11832 | if { (ac_try="$ac_compile" |
| 11833 | case "(($ac_try" in |
| 11834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11835 | *) ac_try_echo=$ac_try;; |
| 11836 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11838 | (eval "$ac_compile") 2>conftest.er1 |
| 11839 | ac_status=$? |
| 11840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11841 | rm -f conftest.er1 |
| 11842 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11844 | (exit $ac_status); } && { |
| 11845 | test -z "$ac_c_werror_flag" || |
| 11846 | test ! -s conftest.err |
| 11847 | } && test -s conftest.$ac_objext; then |
| 11848 | ac_lo=0 ac_mid=0 |
| 11849 | while :; do |
| 11850 | cat >conftest.$ac_ext <<_ACEOF |
| 11851 | /* confdefs.h. */ |
| 11852 | _ACEOF |
| 11853 | cat confdefs.h >>conftest.$ac_ext |
| 11854 | cat >>conftest.$ac_ext <<_ACEOF |
| 11855 | /* end confdefs.h. */ |
| 11856 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11857 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11858 | int |
| 11859 | main () |
| 11860 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11861 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11862 | test_array [0] = 0 |
| 11863 | |
| 11864 | ; |
| 11865 | return 0; |
| 11866 | } |
| 11867 | _ACEOF |
| 11868 | rm -f conftest.$ac_objext |
| 11869 | if { (ac_try="$ac_compile" |
| 11870 | case "(($ac_try" in |
| 11871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11872 | *) ac_try_echo=$ac_try;; |
| 11873 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11875 | (eval "$ac_compile") 2>conftest.er1 |
| 11876 | ac_status=$? |
| 11877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11878 | rm -f conftest.er1 |
| 11879 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11881 | (exit $ac_status); } && { |
| 11882 | test -z "$ac_c_werror_flag" || |
| 11883 | test ! -s conftest.err |
| 11884 | } && test -s conftest.$ac_objext; then |
| 11885 | ac_hi=$ac_mid; break |
| 11886 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11887 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11889 | |
| 11890 | ac_lo=`expr $ac_mid + 1` |
| 11891 | if test $ac_lo -le $ac_mid; then |
| 11892 | ac_lo= ac_hi= |
| 11893 | break |
| 11894 | fi |
| 11895 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11896 | fi |
| 11897 | |
| 11898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11899 | done |
| 11900 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11901 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11903 | |
| 11904 | cat >conftest.$ac_ext <<_ACEOF |
| 11905 | /* confdefs.h. */ |
| 11906 | _ACEOF |
| 11907 | cat confdefs.h >>conftest.$ac_ext |
| 11908 | cat >>conftest.$ac_ext <<_ACEOF |
| 11909 | /* end confdefs.h. */ |
| 11910 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11911 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11912 | int |
| 11913 | main () |
| 11914 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11915 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11916 | test_array [0] = 0 |
| 11917 | |
| 11918 | ; |
| 11919 | return 0; |
| 11920 | } |
| 11921 | _ACEOF |
| 11922 | rm -f conftest.$ac_objext |
| 11923 | if { (ac_try="$ac_compile" |
| 11924 | case "(($ac_try" in |
| 11925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11926 | *) ac_try_echo=$ac_try;; |
| 11927 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11929 | (eval "$ac_compile") 2>conftest.er1 |
| 11930 | ac_status=$? |
| 11931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11932 | rm -f conftest.er1 |
| 11933 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11935 | (exit $ac_status); } && { |
| 11936 | test -z "$ac_c_werror_flag" || |
| 11937 | test ! -s conftest.err |
| 11938 | } && test -s conftest.$ac_objext; then |
| 11939 | ac_hi=-1 ac_mid=-1 |
| 11940 | while :; do |
| 11941 | cat >conftest.$ac_ext <<_ACEOF |
| 11942 | /* confdefs.h. */ |
| 11943 | _ACEOF |
| 11944 | cat confdefs.h >>conftest.$ac_ext |
| 11945 | cat >>conftest.$ac_ext <<_ACEOF |
| 11946 | /* end confdefs.h. */ |
| 11947 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11948 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11949 | int |
| 11950 | main () |
| 11951 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11952 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11953 | test_array [0] = 0 |
| 11954 | |
| 11955 | ; |
| 11956 | return 0; |
| 11957 | } |
| 11958 | _ACEOF |
| 11959 | rm -f conftest.$ac_objext |
| 11960 | if { (ac_try="$ac_compile" |
| 11961 | case "(($ac_try" in |
| 11962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11963 | *) ac_try_echo=$ac_try;; |
| 11964 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11966 | (eval "$ac_compile") 2>conftest.er1 |
| 11967 | ac_status=$? |
| 11968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11969 | rm -f conftest.er1 |
| 11970 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11972 | (exit $ac_status); } && { |
| 11973 | test -z "$ac_c_werror_flag" || |
| 11974 | test ! -s conftest.err |
| 11975 | } && test -s conftest.$ac_objext; then |
| 11976 | ac_lo=$ac_mid; break |
| 11977 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11978 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11980 | |
| 11981 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11982 | if test $ac_mid -le $ac_hi; then |
| 11983 | ac_lo= ac_hi= |
| 11984 | break |
| 11985 | fi |
| 11986 | ac_mid=`expr 2 '*' $ac_mid` |
| 11987 | fi |
| 11988 | |
| 11989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11990 | done |
| 11991 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11992 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11994 | |
| 11995 | ac_lo= ac_hi= |
| 11996 | fi |
| 11997 | |
| 11998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11999 | fi |
| 12000 | |
| 12001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12002 | # Binary search between lo and hi bounds. |
| 12003 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12004 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12005 | cat >conftest.$ac_ext <<_ACEOF |
| 12006 | /* confdefs.h. */ |
| 12007 | _ACEOF |
| 12008 | cat confdefs.h >>conftest.$ac_ext |
| 12009 | cat >>conftest.$ac_ext <<_ACEOF |
| 12010 | /* end confdefs.h. */ |
| 12011 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12012 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12013 | int |
| 12014 | main () |
| 12015 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12016 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12017 | test_array [0] = 0 |
| 12018 | |
| 12019 | ; |
| 12020 | return 0; |
| 12021 | } |
| 12022 | _ACEOF |
| 12023 | rm -f conftest.$ac_objext |
| 12024 | if { (ac_try="$ac_compile" |
| 12025 | case "(($ac_try" in |
| 12026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12027 | *) ac_try_echo=$ac_try;; |
| 12028 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12030 | (eval "$ac_compile") 2>conftest.er1 |
| 12031 | ac_status=$? |
| 12032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12033 | rm -f conftest.er1 |
| 12034 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12036 | (exit $ac_status); } && { |
| 12037 | test -z "$ac_c_werror_flag" || |
| 12038 | test ! -s conftest.err |
| 12039 | } && test -s conftest.$ac_objext; then |
| 12040 | ac_hi=$ac_mid |
| 12041 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12042 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12044 | |
| 12045 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12046 | fi |
| 12047 | |
| 12048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12049 | done |
| 12050 | case $ac_lo in |
| 12051 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 12052 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12053 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12054 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12055 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12056 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12057 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12058 | else |
| 12059 | ac_cv_sizeof_long_double=0 |
| 12060 | fi ;; |
| 12061 | esac |
| 12062 | else |
| 12063 | cat >conftest.$ac_ext <<_ACEOF |
| 12064 | /* confdefs.h. */ |
| 12065 | _ACEOF |
| 12066 | cat confdefs.h >>conftest.$ac_ext |
| 12067 | cat >>conftest.$ac_ext <<_ACEOF |
| 12068 | /* end confdefs.h. */ |
| 12069 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12070 | typedef long double ac__type_sizeof_; |
| 12071 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12072 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12073 | #include <stdio.h> |
| 12074 | #include <stdlib.h> |
| 12075 | int |
| 12076 | main () |
| 12077 | { |
| 12078 | |
| 12079 | FILE *f = fopen ("conftest.val", "w"); |
| 12080 | if (! f) |
| 12081 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12082 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12083 | { |
| 12084 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12085 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12086 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12087 | fprintf (f, "%ld\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12088 | } |
| 12089 | else |
| 12090 | { |
| 12091 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12092 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12093 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12094 | fprintf (f, "%lu\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12095 | } |
| 12096 | return ferror (f) || fclose (f) != 0; |
| 12097 | |
| 12098 | ; |
| 12099 | return 0; |
| 12100 | } |
| 12101 | _ACEOF |
| 12102 | rm -f conftest$ac_exeext |
| 12103 | if { (ac_try="$ac_link" |
| 12104 | case "(($ac_try" in |
| 12105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12106 | *) ac_try_echo=$ac_try;; |
| 12107 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12109 | (eval "$ac_link") 2>&5 |
| 12110 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12112 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12113 | { (case "(($ac_try" in |
| 12114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12115 | *) ac_try_echo=$ac_try;; |
| 12116 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12118 | (eval "$ac_try") 2>&5 |
| 12119 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12121 | (exit $ac_status); }; }; then |
| 12122 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12123 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12124 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12125 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12127 | |
| 12128 | ( exit $ac_status ) |
| 12129 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12130 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12131 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12132 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12133 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12134 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12135 | else |
| 12136 | ac_cv_sizeof_long_double=0 |
| 12137 | fi |
| 12138 | fi |
| 12139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12140 | fi |
| 12141 | rm -f conftest.val |
| 12142 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12143 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12144 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12145 | |
| 12146 | |
| 12147 | |
| 12148 | cat >>confdefs.h <<_ACEOF |
| 12149 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12150 | _ACEOF |
| 12151 | |
| 12152 | |
| 12153 | fi |
| 12154 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12155 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12156 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12157 | have_c99_bool=no |
| 12158 | cat >conftest.$ac_ext <<_ACEOF |
| 12159 | /* confdefs.h. */ |
| 12160 | _ACEOF |
| 12161 | cat confdefs.h >>conftest.$ac_ext |
| 12162 | cat >>conftest.$ac_ext <<_ACEOF |
| 12163 | /* end confdefs.h. */ |
| 12164 | |
| 12165 | int |
| 12166 | main () |
| 12167 | { |
| 12168 | _Bool x; x = (_Bool)0; |
| 12169 | ; |
| 12170 | return 0; |
| 12171 | } |
| 12172 | _ACEOF |
| 12173 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12174 | if { (ac_try="$ac_compile" |
| 12175 | case "(($ac_try" in |
| 12176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12177 | *) ac_try_echo=$ac_try;; |
| 12178 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12180 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12181 | ac_status=$? |
| 12182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12183 | rm -f conftest.er1 |
| 12184 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12186 | (exit $ac_status); } && { |
| 12187 | test -z "$ac_c_werror_flag" || |
| 12188 | test ! -s conftest.err |
| 12189 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12190 | |
| 12191 | |
| 12192 | cat >>confdefs.h <<\_ACEOF |
| 12193 | #define HAVE_C99_BOOL 1 |
| 12194 | _ACEOF |
| 12195 | |
| 12196 | have_c99_bool=yes |
| 12197 | |
| 12198 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12199 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12201 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12202 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12203 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12204 | |
| 12205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12206 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12207 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12208 | if test "$have_c99_bool" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12209 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12210 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12211 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12213 | else |
| 12214 | cat >conftest.$ac_ext <<_ACEOF |
| 12215 | /* confdefs.h. */ |
| 12216 | _ACEOF |
| 12217 | cat confdefs.h >>conftest.$ac_ext |
| 12218 | cat >>conftest.$ac_ext <<_ACEOF |
| 12219 | /* end confdefs.h. */ |
| 12220 | $ac_includes_default |
| 12221 | typedef _Bool ac__type_new_; |
| 12222 | int |
| 12223 | main () |
| 12224 | { |
| 12225 | if ((ac__type_new_ *) 0) |
| 12226 | return 0; |
| 12227 | if (sizeof (ac__type_new_)) |
| 12228 | return 0; |
| 12229 | ; |
| 12230 | return 0; |
| 12231 | } |
| 12232 | _ACEOF |
| 12233 | rm -f conftest.$ac_objext |
| 12234 | if { (ac_try="$ac_compile" |
| 12235 | case "(($ac_try" in |
| 12236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12237 | *) ac_try_echo=$ac_try;; |
| 12238 | esac |
| 12239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12240 | (eval "$ac_compile") 2>conftest.er1 |
| 12241 | ac_status=$? |
| 12242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12243 | rm -f conftest.er1 |
| 12244 | cat conftest.err >&5 |
| 12245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12246 | (exit $ac_status); } && { |
| 12247 | test -z "$ac_c_werror_flag" || |
| 12248 | test ! -s conftest.err |
| 12249 | } && test -s conftest.$ac_objext; then |
| 12250 | ac_cv_type__Bool=yes |
| 12251 | else |
| 12252 | echo "$as_me: failed program was:" >&5 |
| 12253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12254 | |
| 12255 | ac_cv_type__Bool=no |
| 12256 | fi |
| 12257 | |
| 12258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12259 | fi |
| 12260 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12261 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12262 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12263 | # The cast to long int works around a bug in the HP C Compiler |
| 12264 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12265 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12266 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12267 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12268 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12269 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12271 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12272 | if test "$cross_compiling" = yes; then |
| 12273 | # Depending upon the size, compute the lo and hi bounds. |
| 12274 | cat >conftest.$ac_ext <<_ACEOF |
| 12275 | /* confdefs.h. */ |
| 12276 | _ACEOF |
| 12277 | cat confdefs.h >>conftest.$ac_ext |
| 12278 | cat >>conftest.$ac_ext <<_ACEOF |
| 12279 | /* end confdefs.h. */ |
| 12280 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12281 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12282 | int |
| 12283 | main () |
| 12284 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12285 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12286 | test_array [0] = 0 |
| 12287 | |
| 12288 | ; |
| 12289 | return 0; |
| 12290 | } |
| 12291 | _ACEOF |
| 12292 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12293 | if { (ac_try="$ac_compile" |
| 12294 | case "(($ac_try" in |
| 12295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12296 | *) ac_try_echo=$ac_try;; |
| 12297 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12299 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12300 | ac_status=$? |
| 12301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12302 | rm -f conftest.er1 |
| 12303 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12305 | (exit $ac_status); } && { |
| 12306 | test -z "$ac_c_werror_flag" || |
| 12307 | test ! -s conftest.err |
| 12308 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12309 | ac_lo=0 ac_mid=0 |
| 12310 | while :; do |
| 12311 | cat >conftest.$ac_ext <<_ACEOF |
| 12312 | /* confdefs.h. */ |
| 12313 | _ACEOF |
| 12314 | cat confdefs.h >>conftest.$ac_ext |
| 12315 | cat >>conftest.$ac_ext <<_ACEOF |
| 12316 | /* end confdefs.h. */ |
| 12317 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12318 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12319 | int |
| 12320 | main () |
| 12321 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12322 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12323 | test_array [0] = 0 |
| 12324 | |
| 12325 | ; |
| 12326 | return 0; |
| 12327 | } |
| 12328 | _ACEOF |
| 12329 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12330 | if { (ac_try="$ac_compile" |
| 12331 | case "(($ac_try" in |
| 12332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12333 | *) ac_try_echo=$ac_try;; |
| 12334 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12336 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12337 | ac_status=$? |
| 12338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12339 | rm -f conftest.er1 |
| 12340 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12342 | (exit $ac_status); } && { |
| 12343 | test -z "$ac_c_werror_flag" || |
| 12344 | test ! -s conftest.err |
| 12345 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12346 | ac_hi=$ac_mid; break |
| 12347 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12348 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12350 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12351 | ac_lo=`expr $ac_mid + 1` |
| 12352 | if test $ac_lo -le $ac_mid; then |
| 12353 | ac_lo= ac_hi= |
| 12354 | break |
| 12355 | fi |
| 12356 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12357 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12358 | |
| 12359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12360 | done |
| 12361 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12362 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12365 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12366 | /* confdefs.h. */ |
| 12367 | _ACEOF |
| 12368 | cat confdefs.h >>conftest.$ac_ext |
| 12369 | cat >>conftest.$ac_ext <<_ACEOF |
| 12370 | /* end confdefs.h. */ |
| 12371 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12372 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12373 | int |
| 12374 | main () |
| 12375 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12376 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12377 | test_array [0] = 0 |
| 12378 | |
| 12379 | ; |
| 12380 | return 0; |
| 12381 | } |
| 12382 | _ACEOF |
| 12383 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12384 | if { (ac_try="$ac_compile" |
| 12385 | case "(($ac_try" in |
| 12386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12387 | *) ac_try_echo=$ac_try;; |
| 12388 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12390 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12391 | ac_status=$? |
| 12392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12393 | rm -f conftest.er1 |
| 12394 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12396 | (exit $ac_status); } && { |
| 12397 | test -z "$ac_c_werror_flag" || |
| 12398 | test ! -s conftest.err |
| 12399 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12400 | ac_hi=-1 ac_mid=-1 |
| 12401 | while :; do |
| 12402 | cat >conftest.$ac_ext <<_ACEOF |
| 12403 | /* confdefs.h. */ |
| 12404 | _ACEOF |
| 12405 | cat confdefs.h >>conftest.$ac_ext |
| 12406 | cat >>conftest.$ac_ext <<_ACEOF |
| 12407 | /* end confdefs.h. */ |
| 12408 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12409 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12410 | int |
| 12411 | main () |
| 12412 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12413 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12414 | test_array [0] = 0 |
| 12415 | |
| 12416 | ; |
| 12417 | return 0; |
| 12418 | } |
| 12419 | _ACEOF |
| 12420 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12421 | if { (ac_try="$ac_compile" |
| 12422 | case "(($ac_try" in |
| 12423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12424 | *) ac_try_echo=$ac_try;; |
| 12425 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12427 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12428 | ac_status=$? |
| 12429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12430 | rm -f conftest.er1 |
| 12431 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12433 | (exit $ac_status); } && { |
| 12434 | test -z "$ac_c_werror_flag" || |
| 12435 | test ! -s conftest.err |
| 12436 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12437 | ac_lo=$ac_mid; break |
| 12438 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12439 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12441 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12442 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12443 | if test $ac_mid -le $ac_hi; then |
| 12444 | ac_lo= ac_hi= |
| 12445 | break |
| 12446 | fi |
| 12447 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12448 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12449 | |
| 12450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12451 | done |
| 12452 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12453 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12455 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12456 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12457 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12458 | |
| 12459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12460 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12461 | |
| 12462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12463 | # Binary search between lo and hi bounds. |
| 12464 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12465 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12466 | cat >conftest.$ac_ext <<_ACEOF |
| 12467 | /* confdefs.h. */ |
| 12468 | _ACEOF |
| 12469 | cat confdefs.h >>conftest.$ac_ext |
| 12470 | cat >>conftest.$ac_ext <<_ACEOF |
| 12471 | /* end confdefs.h. */ |
| 12472 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12473 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12474 | int |
| 12475 | main () |
| 12476 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12477 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12478 | test_array [0] = 0 |
| 12479 | |
| 12480 | ; |
| 12481 | return 0; |
| 12482 | } |
| 12483 | _ACEOF |
| 12484 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12485 | if { (ac_try="$ac_compile" |
| 12486 | case "(($ac_try" in |
| 12487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12488 | *) ac_try_echo=$ac_try;; |
| 12489 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12491 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12492 | ac_status=$? |
| 12493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12494 | rm -f conftest.er1 |
| 12495 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12497 | (exit $ac_status); } && { |
| 12498 | test -z "$ac_c_werror_flag" || |
| 12499 | test ! -s conftest.err |
| 12500 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12501 | ac_hi=$ac_mid |
| 12502 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12503 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12505 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12506 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12507 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12508 | |
| 12509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12510 | done |
| 12511 | case $ac_lo in |
| 12512 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12513 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12514 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12515 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12516 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12517 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12518 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12519 | else |
| 12520 | ac_cv_sizeof__Bool=0 |
| 12521 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12522 | esac |
| 12523 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12524 | cat >conftest.$ac_ext <<_ACEOF |
| 12525 | /* confdefs.h. */ |
| 12526 | _ACEOF |
| 12527 | cat confdefs.h >>conftest.$ac_ext |
| 12528 | cat >>conftest.$ac_ext <<_ACEOF |
| 12529 | /* end confdefs.h. */ |
| 12530 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12531 | typedef _Bool ac__type_sizeof_; |
| 12532 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12533 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12534 | #include <stdio.h> |
| 12535 | #include <stdlib.h> |
| 12536 | int |
| 12537 | main () |
| 12538 | { |
| 12539 | |
| 12540 | FILE *f = fopen ("conftest.val", "w"); |
| 12541 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12542 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12543 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12544 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12545 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12546 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12547 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12548 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12549 | } |
| 12550 | else |
| 12551 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12552 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12553 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12554 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12555 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12556 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12557 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12558 | |
| 12559 | ; |
| 12560 | return 0; |
| 12561 | } |
| 12562 | _ACEOF |
| 12563 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12564 | if { (ac_try="$ac_link" |
| 12565 | case "(($ac_try" in |
| 12566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12567 | *) ac_try_echo=$ac_try;; |
| 12568 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12570 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12571 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12573 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12574 | { (case "(($ac_try" in |
| 12575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12576 | *) ac_try_echo=$ac_try;; |
| 12577 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12579 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12580 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12582 | (exit $ac_status); }; }; then |
| 12583 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12584 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12585 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12586 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12588 | |
| 12589 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12590 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12591 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12592 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12593 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12594 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12595 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12596 | else |
| 12597 | ac_cv_sizeof__Bool=0 |
| 12598 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12599 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12600 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12601 | fi |
| 12602 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12603 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12604 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12605 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12606 | |
| 12607 | |
| 12608 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12609 | cat >>confdefs.h <<_ACEOF |
| 12610 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12611 | _ACEOF |
| 12612 | |
| 12613 | |
| 12614 | fi |
| 12615 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12616 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12617 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12618 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12620 | else |
| 12621 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12622 | /* confdefs.h. */ |
| 12623 | _ACEOF |
| 12624 | cat confdefs.h >>conftest.$ac_ext |
| 12625 | cat >>conftest.$ac_ext <<_ACEOF |
| 12626 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12627 | #ifdef HAVE_STDINT_H |
| 12628 | #include <stdint.h> |
| 12629 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12630 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12631 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12632 | int |
| 12633 | main () |
| 12634 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12635 | if ((ac__type_new_ *) 0) |
| 12636 | return 0; |
| 12637 | if (sizeof (ac__type_new_)) |
| 12638 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12639 | ; |
| 12640 | return 0; |
| 12641 | } |
| 12642 | _ACEOF |
| 12643 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12644 | if { (ac_try="$ac_compile" |
| 12645 | case "(($ac_try" in |
| 12646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12647 | *) ac_try_echo=$ac_try;; |
| 12648 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12650 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12651 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12653 | rm -f conftest.er1 |
| 12654 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12656 | (exit $ac_status); } && { |
| 12657 | test -z "$ac_c_werror_flag" || |
| 12658 | test ! -s conftest.err |
| 12659 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12660 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12661 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12662 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12664 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12665 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12666 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12667 | |
| 12668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12669 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12670 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12671 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12672 | if test $ac_cv_type_uintptr_t = yes; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12673 | |
| 12674 | cat >>confdefs.h <<_ACEOF |
| 12675 | #define HAVE_UINTPTR_T 1 |
| 12676 | _ACEOF |
| 12677 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12678 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12679 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12680 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12682 | else |
| 12683 | cat >conftest.$ac_ext <<_ACEOF |
| 12684 | /* confdefs.h. */ |
| 12685 | _ACEOF |
| 12686 | cat confdefs.h >>conftest.$ac_ext |
| 12687 | cat >>conftest.$ac_ext <<_ACEOF |
| 12688 | /* end confdefs.h. */ |
| 12689 | $ac_includes_default |
| 12690 | typedef uintptr_t ac__type_new_; |
| 12691 | int |
| 12692 | main () |
| 12693 | { |
| 12694 | if ((ac__type_new_ *) 0) |
| 12695 | return 0; |
| 12696 | if (sizeof (ac__type_new_)) |
| 12697 | return 0; |
| 12698 | ; |
| 12699 | return 0; |
| 12700 | } |
| 12701 | _ACEOF |
| 12702 | rm -f conftest.$ac_objext |
| 12703 | if { (ac_try="$ac_compile" |
| 12704 | case "(($ac_try" in |
| 12705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12706 | *) ac_try_echo=$ac_try;; |
| 12707 | esac |
| 12708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12709 | (eval "$ac_compile") 2>conftest.er1 |
| 12710 | ac_status=$? |
| 12711 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12712 | rm -f conftest.er1 |
| 12713 | cat conftest.err >&5 |
| 12714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12715 | (exit $ac_status); } && { |
| 12716 | test -z "$ac_c_werror_flag" || |
| 12717 | test ! -s conftest.err |
| 12718 | } && test -s conftest.$ac_objext; then |
| 12719 | ac_cv_type_uintptr_t=yes |
| 12720 | else |
| 12721 | echo "$as_me: failed program was:" >&5 |
| 12722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12723 | |
| 12724 | ac_cv_type_uintptr_t=no |
| 12725 | fi |
| 12726 | |
| 12727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12728 | fi |
| 12729 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12730 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12731 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12732 | # The cast to long int works around a bug in the HP C Compiler |
| 12733 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12734 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12735 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12736 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12737 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12738 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12741 | if test "$cross_compiling" = yes; then |
| 12742 | # Depending upon the size, compute the lo and hi bounds. |
| 12743 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12744 | /* confdefs.h. */ |
| 12745 | _ACEOF |
| 12746 | cat confdefs.h >>conftest.$ac_ext |
| 12747 | cat >>conftest.$ac_ext <<_ACEOF |
| 12748 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12749 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12750 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12751 | int |
| 12752 | main () |
| 12753 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12754 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12755 | test_array [0] = 0 |
| 12756 | |
| 12757 | ; |
| 12758 | return 0; |
| 12759 | } |
| 12760 | _ACEOF |
| 12761 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12762 | if { (ac_try="$ac_compile" |
| 12763 | case "(($ac_try" in |
| 12764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12765 | *) ac_try_echo=$ac_try;; |
| 12766 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12768 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12769 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12771 | rm -f conftest.er1 |
| 12772 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12774 | (exit $ac_status); } && { |
| 12775 | test -z "$ac_c_werror_flag" || |
| 12776 | test ! -s conftest.err |
| 12777 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12778 | ac_lo=0 ac_mid=0 |
| 12779 | while :; do |
| 12780 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12781 | /* confdefs.h. */ |
| 12782 | _ACEOF |
| 12783 | cat confdefs.h >>conftest.$ac_ext |
| 12784 | cat >>conftest.$ac_ext <<_ACEOF |
| 12785 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12786 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12787 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12788 | int |
| 12789 | main () |
| 12790 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12791 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12792 | test_array [0] = 0 |
| 12793 | |
| 12794 | ; |
| 12795 | return 0; |
| 12796 | } |
| 12797 | _ACEOF |
| 12798 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12799 | if { (ac_try="$ac_compile" |
| 12800 | case "(($ac_try" in |
| 12801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12802 | *) ac_try_echo=$ac_try;; |
| 12803 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12805 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12806 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12808 | rm -f conftest.er1 |
| 12809 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12811 | (exit $ac_status); } && { |
| 12812 | test -z "$ac_c_werror_flag" || |
| 12813 | test ! -s conftest.err |
| 12814 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12815 | ac_hi=$ac_mid; break |
| 12816 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12817 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12819 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12820 | ac_lo=`expr $ac_mid + 1` |
| 12821 | if test $ac_lo -le $ac_mid; then |
| 12822 | ac_lo= ac_hi= |
| 12823 | break |
| 12824 | fi |
| 12825 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12826 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12827 | |
| 12828 | 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] | 12829 | done |
| 12830 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12831 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12833 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12834 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12835 | /* confdefs.h. */ |
| 12836 | _ACEOF |
| 12837 | cat confdefs.h >>conftest.$ac_ext |
| 12838 | cat >>conftest.$ac_ext <<_ACEOF |
| 12839 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12840 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12841 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12842 | int |
| 12843 | main () |
| 12844 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12845 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 | test_array [0] = 0 |
| 12847 | |
| 12848 | ; |
| 12849 | return 0; |
| 12850 | } |
| 12851 | _ACEOF |
| 12852 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12853 | if { (ac_try="$ac_compile" |
| 12854 | case "(($ac_try" in |
| 12855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12856 | *) ac_try_echo=$ac_try;; |
| 12857 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12859 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12860 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12862 | rm -f conftest.er1 |
| 12863 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12865 | (exit $ac_status); } && { |
| 12866 | test -z "$ac_c_werror_flag" || |
| 12867 | test ! -s conftest.err |
| 12868 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12869 | ac_hi=-1 ac_mid=-1 |
| 12870 | while :; do |
| 12871 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12872 | /* confdefs.h. */ |
| 12873 | _ACEOF |
| 12874 | cat confdefs.h >>conftest.$ac_ext |
| 12875 | cat >>conftest.$ac_ext <<_ACEOF |
| 12876 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12877 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12878 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12879 | int |
| 12880 | main () |
| 12881 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12882 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12883 | test_array [0] = 0 |
| 12884 | |
| 12885 | ; |
| 12886 | return 0; |
| 12887 | } |
| 12888 | _ACEOF |
| 12889 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12890 | if { (ac_try="$ac_compile" |
| 12891 | case "(($ac_try" in |
| 12892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12893 | *) ac_try_echo=$ac_try;; |
| 12894 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12896 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12897 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12899 | rm -f conftest.er1 |
| 12900 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12902 | (exit $ac_status); } && { |
| 12903 | test -z "$ac_c_werror_flag" || |
| 12904 | test ! -s conftest.err |
| 12905 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12906 | ac_lo=$ac_mid; break |
| 12907 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12908 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12910 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12911 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12912 | if test $ac_mid -le $ac_hi; then |
| 12913 | ac_lo= ac_hi= |
| 12914 | break |
| 12915 | fi |
| 12916 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12917 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12918 | |
| 12919 | 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] | 12920 | done |
| 12921 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12922 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12924 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12925 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12926 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12927 | |
| 12928 | 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] | 12929 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12930 | |
| 12931 | 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] | 12932 | # Binary search between lo and hi bounds. |
| 12933 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12934 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12935 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12936 | /* confdefs.h. */ |
| 12937 | _ACEOF |
| 12938 | cat confdefs.h >>conftest.$ac_ext |
| 12939 | cat >>conftest.$ac_ext <<_ACEOF |
| 12940 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12941 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12942 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12943 | int |
| 12944 | main () |
| 12945 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12946 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | test_array [0] = 0 |
| 12948 | |
| 12949 | ; |
| 12950 | return 0; |
| 12951 | } |
| 12952 | _ACEOF |
| 12953 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12954 | if { (ac_try="$ac_compile" |
| 12955 | case "(($ac_try" in |
| 12956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12957 | *) ac_try_echo=$ac_try;; |
| 12958 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12960 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12961 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12963 | rm -f conftest.er1 |
| 12964 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12966 | (exit $ac_status); } && { |
| 12967 | test -z "$ac_c_werror_flag" || |
| 12968 | test ! -s conftest.err |
| 12969 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | ac_hi=$ac_mid |
| 12971 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12972 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12974 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12975 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12976 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12977 | |
| 12978 | 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] | 12979 | done |
| 12980 | case $ac_lo in |
| 12981 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12982 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12983 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12984 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12985 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12986 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12987 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12988 | else |
| 12989 | ac_cv_sizeof_uintptr_t=0 |
| 12990 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12991 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12993 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12994 | /* confdefs.h. */ |
| 12995 | _ACEOF |
| 12996 | cat confdefs.h >>conftest.$ac_ext |
| 12997 | cat >>conftest.$ac_ext <<_ACEOF |
| 12998 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13000 | typedef uintptr_t ac__type_sizeof_; |
| 13001 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13002 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13003 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13004 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | int |
| 13006 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13007 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13008 | |
| 13009 | FILE *f = fopen ("conftest.val", "w"); |
| 13010 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13011 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13012 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13013 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13014 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13015 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13016 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13017 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13018 | } |
| 13019 | else |
| 13020 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13021 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13022 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13023 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13024 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13026 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 | |
| 13028 | ; |
| 13029 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13030 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13031 | _ACEOF |
| 13032 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13033 | if { (ac_try="$ac_link" |
| 13034 | case "(($ac_try" in |
| 13035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13036 | *) ac_try_echo=$ac_try;; |
| 13037 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13039 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13040 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13042 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13043 | { (case "(($ac_try" in |
| 13044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13045 | *) ac_try_echo=$ac_try;; |
| 13046 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13048 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13049 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13051 | (exit $ac_status); }; }; then |
| 13052 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13053 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13054 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13055 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13058 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13059 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13060 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13061 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13062 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13063 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13064 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13065 | else |
| 13066 | ac_cv_sizeof_uintptr_t=0 |
| 13067 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13068 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13069 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13070 | fi |
| 13071 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13072 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13073 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 13074 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13075 | |
| 13076 | |
| 13077 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13078 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13079 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13080 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13081 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13082 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13083 | fi |
| 13084 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 13085 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13086 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 13087 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
| 13088 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13091 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13092 | /* confdefs.h. */ |
| 13093 | _ACEOF |
| 13094 | cat confdefs.h >>conftest.$ac_ext |
| 13095 | cat >>conftest.$ac_ext <<_ACEOF |
| 13096 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13097 | |
| 13098 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13099 | #include <sys/types.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13100 | #endif |
| 13101 | |
| 13102 | |
| 13103 | typedef off_t ac__type_new_; |
| 13104 | int |
| 13105 | main () |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13106 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13107 | if ((ac__type_new_ *) 0) |
| 13108 | return 0; |
| 13109 | if (sizeof (ac__type_new_)) |
| 13110 | return 0; |
| 13111 | ; |
| 13112 | return 0; |
| 13113 | } |
| 13114 | _ACEOF |
| 13115 | rm -f conftest.$ac_objext |
| 13116 | if { (ac_try="$ac_compile" |
| 13117 | case "(($ac_try" in |
| 13118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13119 | *) ac_try_echo=$ac_try;; |
| 13120 | esac |
| 13121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13122 | (eval "$ac_compile") 2>conftest.er1 |
| 13123 | ac_status=$? |
| 13124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13125 | rm -f conftest.er1 |
| 13126 | cat conftest.err >&5 |
| 13127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13128 | (exit $ac_status); } && { |
| 13129 | test -z "$ac_c_werror_flag" || |
| 13130 | test ! -s conftest.err |
| 13131 | } && test -s conftest.$ac_objext; then |
| 13132 | ac_cv_type_off_t=yes |
| 13133 | else |
| 13134 | echo "$as_me: failed program was:" >&5 |
| 13135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13136 | |
| 13137 | ac_cv_type_off_t=no |
| 13138 | fi |
| 13139 | |
| 13140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13141 | fi |
| 13142 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 13143 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 13144 | |
| 13145 | # The cast to long int works around a bug in the HP C Compiler |
| 13146 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13147 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13148 | # This bug is HP SR number 8606223364. |
| 13149 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13150 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
| 13151 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 13152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13153 | else |
| 13154 | if test "$cross_compiling" = yes; then |
| 13155 | # Depending upon the size, compute the lo and hi bounds. |
| 13156 | cat >conftest.$ac_ext <<_ACEOF |
| 13157 | /* confdefs.h. */ |
| 13158 | _ACEOF |
| 13159 | cat confdefs.h >>conftest.$ac_ext |
| 13160 | cat >>conftest.$ac_ext <<_ACEOF |
| 13161 | /* end confdefs.h. */ |
| 13162 | |
| 13163 | #ifdef HAVE_SYS_TYPES_H |
| 13164 | #include <sys/types.h> |
| 13165 | #endif |
| 13166 | |
| 13167 | |
| 13168 | typedef off_t ac__type_sizeof_; |
| 13169 | int |
| 13170 | main () |
| 13171 | { |
| 13172 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13173 | test_array [0] = 0 |
| 13174 | |
| 13175 | ; |
| 13176 | return 0; |
| 13177 | } |
| 13178 | _ACEOF |
| 13179 | rm -f conftest.$ac_objext |
| 13180 | if { (ac_try="$ac_compile" |
| 13181 | case "(($ac_try" in |
| 13182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13183 | *) ac_try_echo=$ac_try;; |
| 13184 | esac |
| 13185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13186 | (eval "$ac_compile") 2>conftest.er1 |
| 13187 | ac_status=$? |
| 13188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13189 | rm -f conftest.er1 |
| 13190 | cat conftest.err >&5 |
| 13191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13192 | (exit $ac_status); } && { |
| 13193 | test -z "$ac_c_werror_flag" || |
| 13194 | test ! -s conftest.err |
| 13195 | } && test -s conftest.$ac_objext; then |
| 13196 | ac_lo=0 ac_mid=0 |
| 13197 | while :; do |
| 13198 | cat >conftest.$ac_ext <<_ACEOF |
| 13199 | /* confdefs.h. */ |
| 13200 | _ACEOF |
| 13201 | cat confdefs.h >>conftest.$ac_ext |
| 13202 | cat >>conftest.$ac_ext <<_ACEOF |
| 13203 | /* end confdefs.h. */ |
| 13204 | |
| 13205 | #ifdef HAVE_SYS_TYPES_H |
| 13206 | #include <sys/types.h> |
| 13207 | #endif |
| 13208 | |
| 13209 | |
| 13210 | typedef off_t ac__type_sizeof_; |
| 13211 | int |
| 13212 | main () |
| 13213 | { |
| 13214 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13215 | test_array [0] = 0 |
| 13216 | |
| 13217 | ; |
| 13218 | return 0; |
| 13219 | } |
| 13220 | _ACEOF |
| 13221 | rm -f conftest.$ac_objext |
| 13222 | if { (ac_try="$ac_compile" |
| 13223 | case "(($ac_try" in |
| 13224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13225 | *) ac_try_echo=$ac_try;; |
| 13226 | esac |
| 13227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13228 | (eval "$ac_compile") 2>conftest.er1 |
| 13229 | ac_status=$? |
| 13230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13231 | rm -f conftest.er1 |
| 13232 | cat conftest.err >&5 |
| 13233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13234 | (exit $ac_status); } && { |
| 13235 | test -z "$ac_c_werror_flag" || |
| 13236 | test ! -s conftest.err |
| 13237 | } && test -s conftest.$ac_objext; then |
| 13238 | ac_hi=$ac_mid; break |
| 13239 | else |
| 13240 | echo "$as_me: failed program was:" >&5 |
| 13241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13242 | |
| 13243 | ac_lo=`expr $ac_mid + 1` |
| 13244 | if test $ac_lo -le $ac_mid; then |
| 13245 | ac_lo= ac_hi= |
| 13246 | break |
| 13247 | fi |
| 13248 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13249 | fi |
| 13250 | |
| 13251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13252 | done |
| 13253 | else |
| 13254 | echo "$as_me: failed program was:" >&5 |
| 13255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13256 | |
| 13257 | cat >conftest.$ac_ext <<_ACEOF |
| 13258 | /* confdefs.h. */ |
| 13259 | _ACEOF |
| 13260 | cat confdefs.h >>conftest.$ac_ext |
| 13261 | cat >>conftest.$ac_ext <<_ACEOF |
| 13262 | /* end confdefs.h. */ |
| 13263 | |
| 13264 | #ifdef HAVE_SYS_TYPES_H |
| 13265 | #include <sys/types.h> |
| 13266 | #endif |
| 13267 | |
| 13268 | |
| 13269 | typedef off_t ac__type_sizeof_; |
| 13270 | int |
| 13271 | main () |
| 13272 | { |
| 13273 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13274 | test_array [0] = 0 |
| 13275 | |
| 13276 | ; |
| 13277 | return 0; |
| 13278 | } |
| 13279 | _ACEOF |
| 13280 | rm -f conftest.$ac_objext |
| 13281 | if { (ac_try="$ac_compile" |
| 13282 | case "(($ac_try" in |
| 13283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13284 | *) ac_try_echo=$ac_try;; |
| 13285 | esac |
| 13286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13287 | (eval "$ac_compile") 2>conftest.er1 |
| 13288 | ac_status=$? |
| 13289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13290 | rm -f conftest.er1 |
| 13291 | cat conftest.err >&5 |
| 13292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13293 | (exit $ac_status); } && { |
| 13294 | test -z "$ac_c_werror_flag" || |
| 13295 | test ! -s conftest.err |
| 13296 | } && test -s conftest.$ac_objext; then |
| 13297 | ac_hi=-1 ac_mid=-1 |
| 13298 | while :; do |
| 13299 | cat >conftest.$ac_ext <<_ACEOF |
| 13300 | /* confdefs.h. */ |
| 13301 | _ACEOF |
| 13302 | cat confdefs.h >>conftest.$ac_ext |
| 13303 | cat >>conftest.$ac_ext <<_ACEOF |
| 13304 | /* end confdefs.h. */ |
| 13305 | |
| 13306 | #ifdef HAVE_SYS_TYPES_H |
| 13307 | #include <sys/types.h> |
| 13308 | #endif |
| 13309 | |
| 13310 | |
| 13311 | typedef off_t ac__type_sizeof_; |
| 13312 | int |
| 13313 | main () |
| 13314 | { |
| 13315 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13316 | test_array [0] = 0 |
| 13317 | |
| 13318 | ; |
| 13319 | return 0; |
| 13320 | } |
| 13321 | _ACEOF |
| 13322 | rm -f conftest.$ac_objext |
| 13323 | if { (ac_try="$ac_compile" |
| 13324 | case "(($ac_try" in |
| 13325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13326 | *) ac_try_echo=$ac_try;; |
| 13327 | esac |
| 13328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13329 | (eval "$ac_compile") 2>conftest.er1 |
| 13330 | ac_status=$? |
| 13331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13332 | rm -f conftest.er1 |
| 13333 | cat conftest.err >&5 |
| 13334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13335 | (exit $ac_status); } && { |
| 13336 | test -z "$ac_c_werror_flag" || |
| 13337 | test ! -s conftest.err |
| 13338 | } && test -s conftest.$ac_objext; then |
| 13339 | ac_lo=$ac_mid; break |
| 13340 | else |
| 13341 | echo "$as_me: failed program was:" >&5 |
| 13342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13343 | |
| 13344 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13345 | if test $ac_mid -le $ac_hi; then |
| 13346 | ac_lo= ac_hi= |
| 13347 | break |
| 13348 | fi |
| 13349 | ac_mid=`expr 2 '*' $ac_mid` |
| 13350 | fi |
| 13351 | |
| 13352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13353 | done |
| 13354 | else |
| 13355 | echo "$as_me: failed program was:" >&5 |
| 13356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13357 | |
| 13358 | ac_lo= ac_hi= |
| 13359 | fi |
| 13360 | |
| 13361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13362 | fi |
| 13363 | |
| 13364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13365 | # Binary search between lo and hi bounds. |
| 13366 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13367 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13368 | cat >conftest.$ac_ext <<_ACEOF |
| 13369 | /* confdefs.h. */ |
| 13370 | _ACEOF |
| 13371 | cat confdefs.h >>conftest.$ac_ext |
| 13372 | cat >>conftest.$ac_ext <<_ACEOF |
| 13373 | /* end confdefs.h. */ |
| 13374 | |
| 13375 | #ifdef HAVE_SYS_TYPES_H |
| 13376 | #include <sys/types.h> |
| 13377 | #endif |
| 13378 | |
| 13379 | |
| 13380 | typedef off_t ac__type_sizeof_; |
| 13381 | int |
| 13382 | main () |
| 13383 | { |
| 13384 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13385 | test_array [0] = 0 |
| 13386 | |
| 13387 | ; |
| 13388 | return 0; |
| 13389 | } |
| 13390 | _ACEOF |
| 13391 | rm -f conftest.$ac_objext |
| 13392 | if { (ac_try="$ac_compile" |
| 13393 | case "(($ac_try" in |
| 13394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13395 | *) ac_try_echo=$ac_try;; |
| 13396 | esac |
| 13397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13398 | (eval "$ac_compile") 2>conftest.er1 |
| 13399 | ac_status=$? |
| 13400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13401 | rm -f conftest.er1 |
| 13402 | cat conftest.err >&5 |
| 13403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13404 | (exit $ac_status); } && { |
| 13405 | test -z "$ac_c_werror_flag" || |
| 13406 | test ! -s conftest.err |
| 13407 | } && test -s conftest.$ac_objext; then |
| 13408 | ac_hi=$ac_mid |
| 13409 | else |
| 13410 | echo "$as_me: failed program was:" >&5 |
| 13411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13412 | |
| 13413 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13414 | fi |
| 13415 | |
| 13416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13417 | done |
| 13418 | case $ac_lo in |
| 13419 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 13420 | '') if test "$ac_cv_type_off_t" = yes; then |
| 13421 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13422 | See \`config.log' for more details." >&5 |
| 13423 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13424 | See \`config.log' for more details." >&2;} |
| 13425 | { (exit 77); exit 77; }; } |
| 13426 | else |
| 13427 | ac_cv_sizeof_off_t=0 |
| 13428 | fi ;; |
| 13429 | esac |
| 13430 | else |
| 13431 | cat >conftest.$ac_ext <<_ACEOF |
| 13432 | /* confdefs.h. */ |
| 13433 | _ACEOF |
| 13434 | cat confdefs.h >>conftest.$ac_ext |
| 13435 | cat >>conftest.$ac_ext <<_ACEOF |
| 13436 | /* end confdefs.h. */ |
| 13437 | |
| 13438 | #ifdef HAVE_SYS_TYPES_H |
| 13439 | #include <sys/types.h> |
| 13440 | #endif |
| 13441 | |
| 13442 | |
| 13443 | typedef off_t ac__type_sizeof_; |
| 13444 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13445 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13446 | #include <stdio.h> |
| 13447 | #include <stdlib.h> |
| 13448 | int |
| 13449 | main () |
| 13450 | { |
| 13451 | |
| 13452 | FILE *f = fopen ("conftest.val", "w"); |
| 13453 | if (! f) |
| 13454 | return 1; |
| 13455 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13456 | { |
| 13457 | long int i = longval (); |
| 13458 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13459 | return 1; |
| 13460 | fprintf (f, "%ld\n", i); |
| 13461 | } |
| 13462 | else |
| 13463 | { |
| 13464 | unsigned long int i = ulongval (); |
| 13465 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13466 | return 1; |
| 13467 | fprintf (f, "%lu\n", i); |
| 13468 | } |
| 13469 | return ferror (f) || fclose (f) != 0; |
| 13470 | |
| 13471 | ; |
| 13472 | return 0; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13473 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13474 | _ACEOF |
| 13475 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13476 | if { (ac_try="$ac_link" |
| 13477 | case "(($ac_try" in |
| 13478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13479 | *) ac_try_echo=$ac_try;; |
| 13480 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13482 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13483 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13485 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13486 | { (case "(($ac_try" in |
| 13487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13488 | *) ac_try_echo=$ac_try;; |
| 13489 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13491 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13492 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13494 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13495 | ac_cv_sizeof_off_t=`cat conftest.val` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13496 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13497 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13498 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13501 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13502 | if test "$ac_cv_type_off_t" = yes; then |
| 13503 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13504 | See \`config.log' for more details." >&5 |
| 13505 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13506 | See \`config.log' for more details." >&2;} |
| 13507 | { (exit 77); exit 77; }; } |
| 13508 | else |
| 13509 | ac_cv_sizeof_off_t=0 |
| 13510 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13511 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13512 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13513 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13514 | rm -f conftest.val |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13515 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13516 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13517 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13518 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13519 | |
| 13520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13521 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13522 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13523 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13524 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13525 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13526 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13527 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13528 | echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; } |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 13529 | if test "$have_long_long" = yes |
| 13530 | then |
| 13531 | 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] | 13532 | "$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] | 13533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13534 | cat >>confdefs.h <<\_ACEOF |
| 13535 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13536 | _ACEOF |
| 13537 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13538 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13539 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13540 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13541 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13542 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13543 | fi |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 13544 | else |
| 13545 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13546 | echo "${ECHO_T}no" >&6; } |
| 13547 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13548 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13549 | { echo "$as_me:$LINENO: checking for time_t" >&5 |
| 13550 | echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } |
| 13551 | if test "${ac_cv_type_time_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13554 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13555 | /* confdefs.h. */ |
| 13556 | _ACEOF |
| 13557 | cat confdefs.h >>conftest.$ac_ext |
| 13558 | cat >>conftest.$ac_ext <<_ACEOF |
| 13559 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13560 | |
| 13561 | #ifdef HAVE_SYS_TYPES_H |
| 13562 | #include <sys/types.h> |
| 13563 | #endif |
| 13564 | #ifdef HAVE_TIME_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13565 | #include <time.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13566 | #endif |
| 13567 | |
| 13568 | |
| 13569 | typedef time_t ac__type_new_; |
| 13570 | int |
| 13571 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13572 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13573 | if ((ac__type_new_ *) 0) |
| 13574 | return 0; |
| 13575 | if (sizeof (ac__type_new_)) |
| 13576 | return 0; |
| 13577 | ; |
| 13578 | return 0; |
| 13579 | } |
| 13580 | _ACEOF |
| 13581 | rm -f conftest.$ac_objext |
| 13582 | if { (ac_try="$ac_compile" |
| 13583 | case "(($ac_try" in |
| 13584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13585 | *) ac_try_echo=$ac_try;; |
| 13586 | esac |
| 13587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13588 | (eval "$ac_compile") 2>conftest.er1 |
| 13589 | ac_status=$? |
| 13590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13591 | rm -f conftest.er1 |
| 13592 | cat conftest.err >&5 |
| 13593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13594 | (exit $ac_status); } && { |
| 13595 | test -z "$ac_c_werror_flag" || |
| 13596 | test ! -s conftest.err |
| 13597 | } && test -s conftest.$ac_objext; then |
| 13598 | ac_cv_type_time_t=yes |
| 13599 | else |
| 13600 | echo "$as_me: failed program was:" >&5 |
| 13601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13602 | |
| 13603 | ac_cv_type_time_t=no |
| 13604 | fi |
| 13605 | |
| 13606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13607 | fi |
| 13608 | { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
| 13609 | echo "${ECHO_T}$ac_cv_type_time_t" >&6; } |
| 13610 | |
| 13611 | # The cast to long int works around a bug in the HP C Compiler |
| 13612 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13613 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13614 | # This bug is HP SR number 8606223364. |
| 13615 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13616 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
| 13617 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 13618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13619 | else |
| 13620 | if test "$cross_compiling" = yes; then |
| 13621 | # Depending upon the size, compute the lo and hi bounds. |
| 13622 | cat >conftest.$ac_ext <<_ACEOF |
| 13623 | /* confdefs.h. */ |
| 13624 | _ACEOF |
| 13625 | cat confdefs.h >>conftest.$ac_ext |
| 13626 | cat >>conftest.$ac_ext <<_ACEOF |
| 13627 | /* end confdefs.h. */ |
| 13628 | |
| 13629 | #ifdef HAVE_SYS_TYPES_H |
| 13630 | #include <sys/types.h> |
| 13631 | #endif |
| 13632 | #ifdef HAVE_TIME_H |
| 13633 | #include <time.h> |
| 13634 | #endif |
| 13635 | |
| 13636 | |
| 13637 | typedef time_t ac__type_sizeof_; |
| 13638 | int |
| 13639 | main () |
| 13640 | { |
| 13641 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13642 | test_array [0] = 0 |
| 13643 | |
| 13644 | ; |
| 13645 | return 0; |
| 13646 | } |
| 13647 | _ACEOF |
| 13648 | rm -f conftest.$ac_objext |
| 13649 | if { (ac_try="$ac_compile" |
| 13650 | case "(($ac_try" in |
| 13651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13652 | *) ac_try_echo=$ac_try;; |
| 13653 | esac |
| 13654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13655 | (eval "$ac_compile") 2>conftest.er1 |
| 13656 | ac_status=$? |
| 13657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13658 | rm -f conftest.er1 |
| 13659 | cat conftest.err >&5 |
| 13660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13661 | (exit $ac_status); } && { |
| 13662 | test -z "$ac_c_werror_flag" || |
| 13663 | test ! -s conftest.err |
| 13664 | } && test -s conftest.$ac_objext; then |
| 13665 | ac_lo=0 ac_mid=0 |
| 13666 | while :; do |
| 13667 | cat >conftest.$ac_ext <<_ACEOF |
| 13668 | /* confdefs.h. */ |
| 13669 | _ACEOF |
| 13670 | cat confdefs.h >>conftest.$ac_ext |
| 13671 | cat >>conftest.$ac_ext <<_ACEOF |
| 13672 | /* end confdefs.h. */ |
| 13673 | |
| 13674 | #ifdef HAVE_SYS_TYPES_H |
| 13675 | #include <sys/types.h> |
| 13676 | #endif |
| 13677 | #ifdef HAVE_TIME_H |
| 13678 | #include <time.h> |
| 13679 | #endif |
| 13680 | |
| 13681 | |
| 13682 | typedef time_t ac__type_sizeof_; |
| 13683 | int |
| 13684 | main () |
| 13685 | { |
| 13686 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13687 | test_array [0] = 0 |
| 13688 | |
| 13689 | ; |
| 13690 | return 0; |
| 13691 | } |
| 13692 | _ACEOF |
| 13693 | rm -f conftest.$ac_objext |
| 13694 | if { (ac_try="$ac_compile" |
| 13695 | case "(($ac_try" in |
| 13696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13697 | *) ac_try_echo=$ac_try;; |
| 13698 | esac |
| 13699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13700 | (eval "$ac_compile") 2>conftest.er1 |
| 13701 | ac_status=$? |
| 13702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13703 | rm -f conftest.er1 |
| 13704 | cat conftest.err >&5 |
| 13705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13706 | (exit $ac_status); } && { |
| 13707 | test -z "$ac_c_werror_flag" || |
| 13708 | test ! -s conftest.err |
| 13709 | } && test -s conftest.$ac_objext; then |
| 13710 | ac_hi=$ac_mid; break |
| 13711 | else |
| 13712 | echo "$as_me: failed program was:" >&5 |
| 13713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13714 | |
| 13715 | ac_lo=`expr $ac_mid + 1` |
| 13716 | if test $ac_lo -le $ac_mid; then |
| 13717 | ac_lo= ac_hi= |
| 13718 | break |
| 13719 | fi |
| 13720 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13721 | fi |
| 13722 | |
| 13723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13724 | done |
| 13725 | else |
| 13726 | echo "$as_me: failed program was:" >&5 |
| 13727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13728 | |
| 13729 | cat >conftest.$ac_ext <<_ACEOF |
| 13730 | /* confdefs.h. */ |
| 13731 | _ACEOF |
| 13732 | cat confdefs.h >>conftest.$ac_ext |
| 13733 | cat >>conftest.$ac_ext <<_ACEOF |
| 13734 | /* end confdefs.h. */ |
| 13735 | |
| 13736 | #ifdef HAVE_SYS_TYPES_H |
| 13737 | #include <sys/types.h> |
| 13738 | #endif |
| 13739 | #ifdef HAVE_TIME_H |
| 13740 | #include <time.h> |
| 13741 | #endif |
| 13742 | |
| 13743 | |
| 13744 | typedef time_t ac__type_sizeof_; |
| 13745 | int |
| 13746 | main () |
| 13747 | { |
| 13748 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13749 | test_array [0] = 0 |
| 13750 | |
| 13751 | ; |
| 13752 | return 0; |
| 13753 | } |
| 13754 | _ACEOF |
| 13755 | rm -f conftest.$ac_objext |
| 13756 | if { (ac_try="$ac_compile" |
| 13757 | case "(($ac_try" in |
| 13758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13759 | *) ac_try_echo=$ac_try;; |
| 13760 | esac |
| 13761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13762 | (eval "$ac_compile") 2>conftest.er1 |
| 13763 | ac_status=$? |
| 13764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13765 | rm -f conftest.er1 |
| 13766 | cat conftest.err >&5 |
| 13767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13768 | (exit $ac_status); } && { |
| 13769 | test -z "$ac_c_werror_flag" || |
| 13770 | test ! -s conftest.err |
| 13771 | } && test -s conftest.$ac_objext; then |
| 13772 | ac_hi=-1 ac_mid=-1 |
| 13773 | while :; do |
| 13774 | cat >conftest.$ac_ext <<_ACEOF |
| 13775 | /* confdefs.h. */ |
| 13776 | _ACEOF |
| 13777 | cat confdefs.h >>conftest.$ac_ext |
| 13778 | cat >>conftest.$ac_ext <<_ACEOF |
| 13779 | /* end confdefs.h. */ |
| 13780 | |
| 13781 | #ifdef HAVE_SYS_TYPES_H |
| 13782 | #include <sys/types.h> |
| 13783 | #endif |
| 13784 | #ifdef HAVE_TIME_H |
| 13785 | #include <time.h> |
| 13786 | #endif |
| 13787 | |
| 13788 | |
| 13789 | typedef time_t ac__type_sizeof_; |
| 13790 | int |
| 13791 | main () |
| 13792 | { |
| 13793 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13794 | test_array [0] = 0 |
| 13795 | |
| 13796 | ; |
| 13797 | return 0; |
| 13798 | } |
| 13799 | _ACEOF |
| 13800 | rm -f conftest.$ac_objext |
| 13801 | if { (ac_try="$ac_compile" |
| 13802 | case "(($ac_try" in |
| 13803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13804 | *) ac_try_echo=$ac_try;; |
| 13805 | esac |
| 13806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13807 | (eval "$ac_compile") 2>conftest.er1 |
| 13808 | ac_status=$? |
| 13809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13810 | rm -f conftest.er1 |
| 13811 | cat conftest.err >&5 |
| 13812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13813 | (exit $ac_status); } && { |
| 13814 | test -z "$ac_c_werror_flag" || |
| 13815 | test ! -s conftest.err |
| 13816 | } && test -s conftest.$ac_objext; then |
| 13817 | ac_lo=$ac_mid; break |
| 13818 | else |
| 13819 | echo "$as_me: failed program was:" >&5 |
| 13820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13821 | |
| 13822 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13823 | if test $ac_mid -le $ac_hi; then |
| 13824 | ac_lo= ac_hi= |
| 13825 | break |
| 13826 | fi |
| 13827 | ac_mid=`expr 2 '*' $ac_mid` |
| 13828 | fi |
| 13829 | |
| 13830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13831 | done |
| 13832 | else |
| 13833 | echo "$as_me: failed program was:" >&5 |
| 13834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13835 | |
| 13836 | ac_lo= ac_hi= |
| 13837 | fi |
| 13838 | |
| 13839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13840 | fi |
| 13841 | |
| 13842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13843 | # Binary search between lo and hi bounds. |
| 13844 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13845 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13846 | cat >conftest.$ac_ext <<_ACEOF |
| 13847 | /* confdefs.h. */ |
| 13848 | _ACEOF |
| 13849 | cat confdefs.h >>conftest.$ac_ext |
| 13850 | cat >>conftest.$ac_ext <<_ACEOF |
| 13851 | /* end confdefs.h. */ |
| 13852 | |
| 13853 | #ifdef HAVE_SYS_TYPES_H |
| 13854 | #include <sys/types.h> |
| 13855 | #endif |
| 13856 | #ifdef HAVE_TIME_H |
| 13857 | #include <time.h> |
| 13858 | #endif |
| 13859 | |
| 13860 | |
| 13861 | typedef time_t ac__type_sizeof_; |
| 13862 | int |
| 13863 | main () |
| 13864 | { |
| 13865 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13866 | test_array [0] = 0 |
| 13867 | |
| 13868 | ; |
| 13869 | return 0; |
| 13870 | } |
| 13871 | _ACEOF |
| 13872 | rm -f conftest.$ac_objext |
| 13873 | if { (ac_try="$ac_compile" |
| 13874 | case "(($ac_try" in |
| 13875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13876 | *) ac_try_echo=$ac_try;; |
| 13877 | esac |
| 13878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13879 | (eval "$ac_compile") 2>conftest.er1 |
| 13880 | ac_status=$? |
| 13881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13882 | rm -f conftest.er1 |
| 13883 | cat conftest.err >&5 |
| 13884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13885 | (exit $ac_status); } && { |
| 13886 | test -z "$ac_c_werror_flag" || |
| 13887 | test ! -s conftest.err |
| 13888 | } && test -s conftest.$ac_objext; then |
| 13889 | ac_hi=$ac_mid |
| 13890 | else |
| 13891 | echo "$as_me: failed program was:" >&5 |
| 13892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13893 | |
| 13894 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13895 | fi |
| 13896 | |
| 13897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13898 | done |
| 13899 | case $ac_lo in |
| 13900 | ?*) ac_cv_sizeof_time_t=$ac_lo;; |
| 13901 | '') if test "$ac_cv_type_time_t" = yes; then |
| 13902 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13903 | See \`config.log' for more details." >&5 |
| 13904 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13905 | See \`config.log' for more details." >&2;} |
| 13906 | { (exit 77); exit 77; }; } |
| 13907 | else |
| 13908 | ac_cv_sizeof_time_t=0 |
| 13909 | fi ;; |
| 13910 | esac |
| 13911 | else |
| 13912 | cat >conftest.$ac_ext <<_ACEOF |
| 13913 | /* confdefs.h. */ |
| 13914 | _ACEOF |
| 13915 | cat confdefs.h >>conftest.$ac_ext |
| 13916 | cat >>conftest.$ac_ext <<_ACEOF |
| 13917 | /* end confdefs.h. */ |
| 13918 | |
| 13919 | #ifdef HAVE_SYS_TYPES_H |
| 13920 | #include <sys/types.h> |
| 13921 | #endif |
| 13922 | #ifdef HAVE_TIME_H |
| 13923 | #include <time.h> |
| 13924 | #endif |
| 13925 | |
| 13926 | |
| 13927 | typedef time_t ac__type_sizeof_; |
| 13928 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13929 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13930 | #include <stdio.h> |
| 13931 | #include <stdlib.h> |
| 13932 | int |
| 13933 | main () |
| 13934 | { |
| 13935 | |
| 13936 | FILE *f = fopen ("conftest.val", "w"); |
| 13937 | if (! f) |
| 13938 | return 1; |
| 13939 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13940 | { |
| 13941 | long int i = longval (); |
| 13942 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13943 | return 1; |
| 13944 | fprintf (f, "%ld\n", i); |
| 13945 | } |
| 13946 | else |
| 13947 | { |
| 13948 | unsigned long int i = ulongval (); |
| 13949 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13950 | return 1; |
| 13951 | fprintf (f, "%lu\n", i); |
| 13952 | } |
| 13953 | return ferror (f) || fclose (f) != 0; |
| 13954 | |
| 13955 | ; |
| 13956 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13957 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13958 | _ACEOF |
| 13959 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13960 | if { (ac_try="$ac_link" |
| 13961 | case "(($ac_try" in |
| 13962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13963 | *) ac_try_echo=$ac_try;; |
| 13964 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13966 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13967 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13969 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13970 | { (case "(($ac_try" in |
| 13971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13972 | *) ac_try_echo=$ac_try;; |
| 13973 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13975 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13976 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13978 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13979 | ac_cv_sizeof_time_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13980 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13981 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13982 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13984 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13985 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13986 | if test "$ac_cv_type_time_t" = yes; then |
| 13987 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13988 | See \`config.log' for more details." >&5 |
| 13989 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13990 | See \`config.log' for more details." >&2;} |
| 13991 | { (exit 77); exit 77; }; } |
| 13992 | else |
| 13993 | ac_cv_sizeof_time_t=0 |
| 13994 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13995 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13996 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13997 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13998 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13999 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14000 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 14001 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14002 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14003 | |
| 14004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14005 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14006 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14007 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14008 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14009 | |
| 14010 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14011 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14012 | ac_save_cc="$CC" |
| 14013 | if test "$ac_cv_kpthread" = "yes" |
| 14014 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14015 | elif test "$ac_cv_kthread" = "yes" |
| 14016 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14017 | elif test "$ac_cv_pthread" = "yes" |
| 14018 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14019 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14020 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14021 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14022 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14023 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14024 | /* confdefs.h. */ |
| 14025 | _ACEOF |
| 14026 | cat confdefs.h >>conftest.$ac_ext |
| 14027 | cat >>conftest.$ac_ext <<_ACEOF |
| 14028 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14029 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14030 | int |
| 14031 | main () |
| 14032 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 14033 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14034 | ; |
| 14035 | return 0; |
| 14036 | } |
| 14037 | _ACEOF |
| 14038 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14039 | if { (ac_try="$ac_compile" |
| 14040 | case "(($ac_try" in |
| 14041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14042 | *) ac_try_echo=$ac_try;; |
| 14043 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14045 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14046 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14048 | rm -f conftest.er1 |
| 14049 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14051 | (exit $ac_status); } && { |
| 14052 | test -z "$ac_c_werror_flag" || |
| 14053 | test ! -s conftest.err |
| 14054 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14055 | have_pthread_t=yes |
| 14056 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14057 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14059 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14060 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14061 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14062 | |
| 14063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14064 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 14065 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14066 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14067 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14068 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
| 14069 | if test "${ac_cv_type_pthread_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14071 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14072 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14073 | /* confdefs.h. */ |
| 14074 | _ACEOF |
| 14075 | cat confdefs.h >>conftest.$ac_ext |
| 14076 | cat >>conftest.$ac_ext <<_ACEOF |
| 14077 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14078 | |
| 14079 | #ifdef HAVE_PTHREAD_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14080 | #include <pthread.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14081 | #endif |
| 14082 | |
| 14083 | |
| 14084 | typedef pthread_t ac__type_new_; |
| 14085 | int |
| 14086 | main () |
| 14087 | { |
| 14088 | if ((ac__type_new_ *) 0) |
| 14089 | return 0; |
| 14090 | if (sizeof (ac__type_new_)) |
| 14091 | return 0; |
| 14092 | ; |
| 14093 | return 0; |
| 14094 | } |
| 14095 | _ACEOF |
| 14096 | rm -f conftest.$ac_objext |
| 14097 | if { (ac_try="$ac_compile" |
| 14098 | case "(($ac_try" in |
| 14099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14100 | *) ac_try_echo=$ac_try;; |
| 14101 | esac |
| 14102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14103 | (eval "$ac_compile") 2>conftest.er1 |
| 14104 | ac_status=$? |
| 14105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14106 | rm -f conftest.er1 |
| 14107 | cat conftest.err >&5 |
| 14108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14109 | (exit $ac_status); } && { |
| 14110 | test -z "$ac_c_werror_flag" || |
| 14111 | test ! -s conftest.err |
| 14112 | } && test -s conftest.$ac_objext; then |
| 14113 | ac_cv_type_pthread_t=yes |
| 14114 | else |
| 14115 | echo "$as_me: failed program was:" >&5 |
| 14116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14117 | |
| 14118 | ac_cv_type_pthread_t=no |
| 14119 | fi |
| 14120 | |
| 14121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14122 | fi |
| 14123 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5 |
| 14124 | echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; } |
| 14125 | |
| 14126 | # The cast to long int works around a bug in the HP C Compiler |
| 14127 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14128 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14129 | # This bug is HP SR number 8606223364. |
| 14130 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 14131 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
| 14132 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 14133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14134 | else |
| 14135 | if test "$cross_compiling" = yes; then |
| 14136 | # Depending upon the size, compute the lo and hi bounds. |
| 14137 | cat >conftest.$ac_ext <<_ACEOF |
| 14138 | /* confdefs.h. */ |
| 14139 | _ACEOF |
| 14140 | cat confdefs.h >>conftest.$ac_ext |
| 14141 | cat >>conftest.$ac_ext <<_ACEOF |
| 14142 | /* end confdefs.h. */ |
| 14143 | |
| 14144 | #ifdef HAVE_PTHREAD_H |
| 14145 | #include <pthread.h> |
| 14146 | #endif |
| 14147 | |
| 14148 | |
| 14149 | typedef pthread_t ac__type_sizeof_; |
| 14150 | int |
| 14151 | main () |
| 14152 | { |
| 14153 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 14154 | test_array [0] = 0 |
| 14155 | |
| 14156 | ; |
| 14157 | return 0; |
| 14158 | } |
| 14159 | _ACEOF |
| 14160 | rm -f conftest.$ac_objext |
| 14161 | if { (ac_try="$ac_compile" |
| 14162 | case "(($ac_try" in |
| 14163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14164 | *) ac_try_echo=$ac_try;; |
| 14165 | esac |
| 14166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14167 | (eval "$ac_compile") 2>conftest.er1 |
| 14168 | ac_status=$? |
| 14169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14170 | rm -f conftest.er1 |
| 14171 | cat conftest.err >&5 |
| 14172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14173 | (exit $ac_status); } && { |
| 14174 | test -z "$ac_c_werror_flag" || |
| 14175 | test ! -s conftest.err |
| 14176 | } && test -s conftest.$ac_objext; then |
| 14177 | ac_lo=0 ac_mid=0 |
| 14178 | while :; do |
| 14179 | cat >conftest.$ac_ext <<_ACEOF |
| 14180 | /* confdefs.h. */ |
| 14181 | _ACEOF |
| 14182 | cat confdefs.h >>conftest.$ac_ext |
| 14183 | cat >>conftest.$ac_ext <<_ACEOF |
| 14184 | /* end confdefs.h. */ |
| 14185 | |
| 14186 | #ifdef HAVE_PTHREAD_H |
| 14187 | #include <pthread.h> |
| 14188 | #endif |
| 14189 | |
| 14190 | |
| 14191 | typedef pthread_t ac__type_sizeof_; |
| 14192 | int |
| 14193 | main () |
| 14194 | { |
| 14195 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14196 | test_array [0] = 0 |
| 14197 | |
| 14198 | ; |
| 14199 | return 0; |
| 14200 | } |
| 14201 | _ACEOF |
| 14202 | rm -f conftest.$ac_objext |
| 14203 | if { (ac_try="$ac_compile" |
| 14204 | case "(($ac_try" in |
| 14205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14206 | *) ac_try_echo=$ac_try;; |
| 14207 | esac |
| 14208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14209 | (eval "$ac_compile") 2>conftest.er1 |
| 14210 | ac_status=$? |
| 14211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14212 | rm -f conftest.er1 |
| 14213 | cat conftest.err >&5 |
| 14214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14215 | (exit $ac_status); } && { |
| 14216 | test -z "$ac_c_werror_flag" || |
| 14217 | test ! -s conftest.err |
| 14218 | } && test -s conftest.$ac_objext; then |
| 14219 | ac_hi=$ac_mid; break |
| 14220 | else |
| 14221 | echo "$as_me: failed program was:" >&5 |
| 14222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14223 | |
| 14224 | ac_lo=`expr $ac_mid + 1` |
| 14225 | if test $ac_lo -le $ac_mid; then |
| 14226 | ac_lo= ac_hi= |
| 14227 | break |
| 14228 | fi |
| 14229 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14230 | fi |
| 14231 | |
| 14232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14233 | done |
| 14234 | else |
| 14235 | echo "$as_me: failed program was:" >&5 |
| 14236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14237 | |
| 14238 | cat >conftest.$ac_ext <<_ACEOF |
| 14239 | /* confdefs.h. */ |
| 14240 | _ACEOF |
| 14241 | cat confdefs.h >>conftest.$ac_ext |
| 14242 | cat >>conftest.$ac_ext <<_ACEOF |
| 14243 | /* end confdefs.h. */ |
| 14244 | |
| 14245 | #ifdef HAVE_PTHREAD_H |
| 14246 | #include <pthread.h> |
| 14247 | #endif |
| 14248 | |
| 14249 | |
| 14250 | typedef pthread_t ac__type_sizeof_; |
| 14251 | int |
| 14252 | main () |
| 14253 | { |
| 14254 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 14255 | test_array [0] = 0 |
| 14256 | |
| 14257 | ; |
| 14258 | return 0; |
| 14259 | } |
| 14260 | _ACEOF |
| 14261 | rm -f conftest.$ac_objext |
| 14262 | if { (ac_try="$ac_compile" |
| 14263 | case "(($ac_try" in |
| 14264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14265 | *) ac_try_echo=$ac_try;; |
| 14266 | esac |
| 14267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14268 | (eval "$ac_compile") 2>conftest.er1 |
| 14269 | ac_status=$? |
| 14270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14271 | rm -f conftest.er1 |
| 14272 | cat conftest.err >&5 |
| 14273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14274 | (exit $ac_status); } && { |
| 14275 | test -z "$ac_c_werror_flag" || |
| 14276 | test ! -s conftest.err |
| 14277 | } && test -s conftest.$ac_objext; then |
| 14278 | ac_hi=-1 ac_mid=-1 |
| 14279 | while :; do |
| 14280 | cat >conftest.$ac_ext <<_ACEOF |
| 14281 | /* confdefs.h. */ |
| 14282 | _ACEOF |
| 14283 | cat confdefs.h >>conftest.$ac_ext |
| 14284 | cat >>conftest.$ac_ext <<_ACEOF |
| 14285 | /* end confdefs.h. */ |
| 14286 | |
| 14287 | #ifdef HAVE_PTHREAD_H |
| 14288 | #include <pthread.h> |
| 14289 | #endif |
| 14290 | |
| 14291 | |
| 14292 | typedef pthread_t ac__type_sizeof_; |
| 14293 | int |
| 14294 | main () |
| 14295 | { |
| 14296 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 14297 | test_array [0] = 0 |
| 14298 | |
| 14299 | ; |
| 14300 | return 0; |
| 14301 | } |
| 14302 | _ACEOF |
| 14303 | rm -f conftest.$ac_objext |
| 14304 | if { (ac_try="$ac_compile" |
| 14305 | case "(($ac_try" in |
| 14306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14307 | *) ac_try_echo=$ac_try;; |
| 14308 | esac |
| 14309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14310 | (eval "$ac_compile") 2>conftest.er1 |
| 14311 | ac_status=$? |
| 14312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14313 | rm -f conftest.er1 |
| 14314 | cat conftest.err >&5 |
| 14315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14316 | (exit $ac_status); } && { |
| 14317 | test -z "$ac_c_werror_flag" || |
| 14318 | test ! -s conftest.err |
| 14319 | } && test -s conftest.$ac_objext; then |
| 14320 | ac_lo=$ac_mid; break |
| 14321 | else |
| 14322 | echo "$as_me: failed program was:" >&5 |
| 14323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14324 | |
| 14325 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14326 | if test $ac_mid -le $ac_hi; then |
| 14327 | ac_lo= ac_hi= |
| 14328 | break |
| 14329 | fi |
| 14330 | ac_mid=`expr 2 '*' $ac_mid` |
| 14331 | fi |
| 14332 | |
| 14333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14334 | done |
| 14335 | else |
| 14336 | echo "$as_me: failed program was:" >&5 |
| 14337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14338 | |
| 14339 | ac_lo= ac_hi= |
| 14340 | fi |
| 14341 | |
| 14342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14343 | fi |
| 14344 | |
| 14345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14346 | # Binary search between lo and hi bounds. |
| 14347 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14348 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14349 | cat >conftest.$ac_ext <<_ACEOF |
| 14350 | /* confdefs.h. */ |
| 14351 | _ACEOF |
| 14352 | cat confdefs.h >>conftest.$ac_ext |
| 14353 | cat >>conftest.$ac_ext <<_ACEOF |
| 14354 | /* end confdefs.h. */ |
| 14355 | |
| 14356 | #ifdef HAVE_PTHREAD_H |
| 14357 | #include <pthread.h> |
| 14358 | #endif |
| 14359 | |
| 14360 | |
| 14361 | typedef pthread_t ac__type_sizeof_; |
| 14362 | int |
| 14363 | main () |
| 14364 | { |
| 14365 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14366 | test_array [0] = 0 |
| 14367 | |
| 14368 | ; |
| 14369 | return 0; |
| 14370 | } |
| 14371 | _ACEOF |
| 14372 | rm -f conftest.$ac_objext |
| 14373 | if { (ac_try="$ac_compile" |
| 14374 | case "(($ac_try" in |
| 14375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14376 | *) ac_try_echo=$ac_try;; |
| 14377 | esac |
| 14378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14379 | (eval "$ac_compile") 2>conftest.er1 |
| 14380 | ac_status=$? |
| 14381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14382 | rm -f conftest.er1 |
| 14383 | cat conftest.err >&5 |
| 14384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14385 | (exit $ac_status); } && { |
| 14386 | test -z "$ac_c_werror_flag" || |
| 14387 | test ! -s conftest.err |
| 14388 | } && test -s conftest.$ac_objext; then |
| 14389 | ac_hi=$ac_mid |
| 14390 | else |
| 14391 | echo "$as_me: failed program was:" >&5 |
| 14392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14393 | |
| 14394 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14395 | fi |
| 14396 | |
| 14397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14398 | done |
| 14399 | case $ac_lo in |
| 14400 | ?*) ac_cv_sizeof_pthread_t=$ac_lo;; |
| 14401 | '') if test "$ac_cv_type_pthread_t" = yes; then |
| 14402 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14403 | See \`config.log' for more details." >&5 |
| 14404 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14405 | See \`config.log' for more details." >&2;} |
| 14406 | { (exit 77); exit 77; }; } |
| 14407 | else |
| 14408 | ac_cv_sizeof_pthread_t=0 |
| 14409 | fi ;; |
| 14410 | esac |
| 14411 | else |
| 14412 | cat >conftest.$ac_ext <<_ACEOF |
| 14413 | /* confdefs.h. */ |
| 14414 | _ACEOF |
| 14415 | cat confdefs.h >>conftest.$ac_ext |
| 14416 | cat >>conftest.$ac_ext <<_ACEOF |
| 14417 | /* end confdefs.h. */ |
| 14418 | |
| 14419 | #ifdef HAVE_PTHREAD_H |
| 14420 | #include <pthread.h> |
| 14421 | #endif |
| 14422 | |
| 14423 | |
| 14424 | typedef pthread_t ac__type_sizeof_; |
| 14425 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14426 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14427 | #include <stdio.h> |
| 14428 | #include <stdlib.h> |
| 14429 | int |
| 14430 | main () |
| 14431 | { |
| 14432 | |
| 14433 | FILE *f = fopen ("conftest.val", "w"); |
| 14434 | if (! f) |
| 14435 | return 1; |
| 14436 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 14437 | { |
| 14438 | long int i = longval (); |
| 14439 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14440 | return 1; |
| 14441 | fprintf (f, "%ld\n", i); |
| 14442 | } |
| 14443 | else |
| 14444 | { |
| 14445 | unsigned long int i = ulongval (); |
| 14446 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14447 | return 1; |
| 14448 | fprintf (f, "%lu\n", i); |
| 14449 | } |
| 14450 | return ferror (f) || fclose (f) != 0; |
| 14451 | |
| 14452 | ; |
| 14453 | return 0; |
| 14454 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14455 | _ACEOF |
| 14456 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14457 | if { (ac_try="$ac_link" |
| 14458 | case "(($ac_try" in |
| 14459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14460 | *) ac_try_echo=$ac_try;; |
| 14461 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14463 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14464 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14466 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14467 | { (case "(($ac_try" in |
| 14468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14469 | *) ac_try_echo=$ac_try;; |
| 14470 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14472 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14473 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14475 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14476 | ac_cv_sizeof_pthread_t=`cat conftest.val` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14477 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14478 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14479 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14482 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14483 | if test "$ac_cv_type_pthread_t" = yes; then |
| 14484 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14485 | See \`config.log' for more details." >&5 |
| 14486 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14487 | See \`config.log' for more details." >&2;} |
| 14488 | { (exit 77); exit 77; }; } |
| 14489 | else |
| 14490 | ac_cv_sizeof_pthread_t=0 |
| 14491 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14492 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14493 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14494 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14495 | rm -f conftest.val |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14496 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14497 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14498 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14499 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14500 | |
| 14501 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14503 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14504 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14505 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14506 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14507 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14508 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14509 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14510 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 14511 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14512 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14513 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14514 | enableval=$enable_toolbox_glue; |
| 14515 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14516 | |
| 14517 | |
| 14518 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14519 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14520 | case $ac_sys_system/$ac_sys_release in |
| 14521 | Darwin/*) |
| 14522 | enable_toolbox_glue="yes";; |
| 14523 | *) |
| 14524 | enable_toolbox_glue="no";; |
| 14525 | esac |
| 14526 | fi |
| 14527 | case "$enable_toolbox_glue" in |
| 14528 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14529 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14530 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14531 | |
| 14532 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14533 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14534 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14535 | |
| 14536 | ;; |
| 14537 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14538 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 14539 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14540 | ;; |
| 14541 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14542 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 14543 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14544 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14545 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14546 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14547 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14548 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14549 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 14550 | ;; |
| 14551 | Darwin/*) |
| 14552 | OTHER_LIBTOOL_OPT="" |
| 14553 | ;; |
| 14554 | esac |
| 14555 | |
| 14556 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14557 | ARCH_RUN_32BIT="" |
| 14558 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14559 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14560 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14561 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 14562 | if test "${enable_universalsdk}"; then |
| 14563 | : |
| 14564 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14565 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14566 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14567 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14568 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 14569 | Darwin/*) |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 14570 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14571 | if test ${gcc_version} '<' 4.0 |
| 14572 | then |
| 14573 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 14574 | else |
| 14575 | LIBTOOL_CRUFT="" |
| 14576 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14577 | if test "$cross_compiling" = yes; then |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14578 | ac_osx_32bit=yes |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14579 | else |
| 14580 | cat >conftest.$ac_ext <<_ACEOF |
| 14581 | /* confdefs.h. */ |
| 14582 | _ACEOF |
| 14583 | cat confdefs.h >>conftest.$ac_ext |
| 14584 | cat >>conftest.$ac_ext <<_ACEOF |
| 14585 | /* end confdefs.h. */ |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14586 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14587 | #include <unistd.h> |
| 14588 | int main(int argc, char*argv[]) |
| 14589 | { |
| 14590 | if (sizeof(long) == 4) { |
| 14591 | return 0; |
| 14592 | } else { |
| 14593 | return 1; |
| 14594 | } |
Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 14595 | } |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14596 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14597 | _ACEOF |
| 14598 | rm -f conftest$ac_exeext |
| 14599 | if { (ac_try="$ac_link" |
| 14600 | case "(($ac_try" in |
| 14601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14602 | *) ac_try_echo=$ac_try;; |
| 14603 | esac |
| 14604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14605 | (eval "$ac_link") 2>&5 |
| 14606 | ac_status=$? |
| 14607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14608 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14609 | { (case "(($ac_try" in |
| 14610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14611 | *) ac_try_echo=$ac_try;; |
| 14612 | esac |
| 14613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14614 | (eval "$ac_try") 2>&5 |
| 14615 | ac_status=$? |
| 14616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14617 | (exit $ac_status); }; }; then |
| 14618 | ac_osx_32bit=yes |
| 14619 | else |
| 14620 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14621 | echo "$as_me: failed program was:" >&5 |
| 14622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14623 | |
| 14624 | ( exit $ac_status ) |
| 14625 | ac_osx_32bit=no |
| 14626 | fi |
| 14627 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14628 | fi |
| 14629 | |
| 14630 | |
| 14631 | |
| 14632 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14633 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14634 | i386) |
| 14635 | MACOSX_DEFAULT_ARCH="i386" |
| 14636 | ;; |
| 14637 | ppc) |
| 14638 | MACOSX_DEFAULT_ARCH="ppc" |
| 14639 | ;; |
| 14640 | *) |
| 14641 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14642 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14643 | { (exit 1); exit 1; }; } |
| 14644 | ;; |
| 14645 | esac |
| 14646 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14647 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14648 | i386) |
| 14649 | MACOSX_DEFAULT_ARCH="x86_64" |
| 14650 | ;; |
| 14651 | ppc) |
| 14652 | MACOSX_DEFAULT_ARCH="ppc64" |
| 14653 | ;; |
| 14654 | *) |
| 14655 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14656 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14657 | { (exit 1); exit 1; }; } |
| 14658 | ;; |
| 14659 | esac |
| 14660 | |
| 14661 | #ARCH_RUN_32BIT="true" |
| 14662 | fi |
| 14663 | |
| 14664 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14665 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14666 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14667 | esac |
| 14668 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14669 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 14670 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14671 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14672 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14673 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14674 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14675 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14677 | cat >>confdefs.h <<\_ACEOF |
| 14678 | #define WITH_NEXT_FRAMEWORK 1 |
| 14679 | _ACEOF |
| 14680 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14681 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14682 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14683 | if test $enable_shared = "yes" |
| 14684 | then |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 14685 | { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5 |
| 14686 | echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;} |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14687 | { (exit 1); exit 1; }; } |
| 14688 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14689 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14690 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14691 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14692 | fi |
| 14693 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14694 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 14695 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14696 | case $ac_sys_system/$ac_sys_release in |
| 14697 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14699 | cat >>confdefs.h <<\_ACEOF |
| 14700 | #define WITH_DYLD 1 |
| 14701 | _ACEOF |
| 14702 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14703 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 14704 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14705 | ;; |
| 14706 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14707 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14708 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14709 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14710 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14711 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14712 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14713 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14714 | |
| 14715 | |
| 14716 | |
| 14717 | |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14718 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14719 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14720 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14721 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 14722 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14723 | if test -z "$SO" |
| 14724 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14725 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14726 | hp*|HP*) |
| 14727 | case `uname -m` in |
| 14728 | ia64) SO=.so;; |
| 14729 | *) SO=.sl;; |
| 14730 | esac |
| 14731 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14732 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14733 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14734 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 14735 | else |
| 14736 | # this might also be a termcap variable, see #610332 |
| 14737 | echo |
| 14738 | echo '=====================================================================' |
| 14739 | echo '+ +' |
| 14740 | echo '+ WARNING: You have set SO in your environment. +' |
| 14741 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 14742 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 14743 | echo '+ +' |
| 14744 | echo '=====================================================================' |
| 14745 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14746 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14747 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 14748 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14749 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 14750 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14751 | cat >>confdefs.h <<_ACEOF |
| 14752 | #define SHLIB_EXT "$SO" |
| 14753 | _ACEOF |
| 14754 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14755 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 14756 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14757 | # (Shared libraries in this instance are shared modules to be loaded into |
| 14758 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14759 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 14760 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14761 | if test -z "$LDSHARED" |
| 14762 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14763 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14764 | AIX*) |
| 14765 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14766 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14767 | ;; |
| 14768 | BeOS*) |
| 14769 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14770 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14771 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14772 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 14773 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14774 | SunOS/5*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14775 | if test "$GCC" = "yes" ; then |
| 14776 | LDSHARED='$(CC) -shared' |
| 14777 | LDCXXSHARED='$(CXX) -shared' |
| 14778 | else |
| 14779 | LDSHARED='$(CC) -G' |
| 14780 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14781 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14782 | hp*|HP*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14783 | if test "$GCC" = "yes" ; then |
| 14784 | LDSHARED='$(CC) -shared' |
| 14785 | LDCXXSHARED='$(CXX) -shared' |
| 14786 | else |
| 14787 | LDSHARED='ld -b' |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14788 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14789 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14790 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14791 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14792 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14793 | if test "$enable_framework" ; then |
| 14794 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14795 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14796 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14797 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14798 | else |
| 14799 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14800 | LDSHARED="$LDSHARED -undefined suppress" |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14801 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14802 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14803 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14804 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14805 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14806 | if test "$enable_framework" ; then |
| 14807 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14808 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14809 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14810 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14811 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 14812 | # No framework, use the Python app as bundle-loader |
| 14813 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 14814 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14815 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14816 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14817 | Darwin/*) |
| 14818 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 14819 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 14820 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14821 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14822 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14823 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14824 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14825 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14826 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14827 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14828 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14829 | else |
| 14830 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14831 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14832 | if test "$enable_framework" ; then |
| 14833 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14834 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14835 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14836 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14837 | else |
| 14838 | # No framework, use the Python app as bundle-loader |
| 14839 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 14840 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14841 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14842 | fi |
| 14843 | fi |
| 14844 | ;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14845 | Linux*|GNU*|QNX*) |
| 14846 | LDSHARED='$(CC) -shared' |
| 14847 | LDCXXSHARED='$(CXX) -shared';; |
| 14848 | BSD/OS*/4*) |
| 14849 | LDSHARED="gcc -shared" |
| 14850 | LDCXXSHARED="g++ -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14851 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 14852 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14853 | then |
Benjamin Peterson | 3b2abe9 | 2010-03-14 15:06:14 +0000 | [diff] [blame] | 14854 | LDSHARED='$(CC) -shared ${LDFLAGS}' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14855 | LDCXXSHARED='$(CXX) -shared ${LDFLAGS}' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14856 | else |
| 14857 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14858 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14859 | OpenBSD*) |
| 14860 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14861 | then |
| 14862 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14863 | LDCXXSHARED='$(CXX) -shared $(CCSHARED) ${LDFLAGS}' |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14864 | else |
| 14865 | case `uname -r` in |
| 14866 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 14867 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14868 | ;; |
| 14869 | *) |
| 14870 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14871 | LDCXXSHARED='$(CXX) -shared $(CCSHARED) ${LDFLAGS}' |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14872 | ;; |
| 14873 | esac |
| 14874 | fi;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14875 | NetBSD*|DragonFly*) |
| 14876 | LDSHARED="cc -shared ${LDFLAGS}" |
| 14877 | LDCXXSHARED="c++ -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14878 | OpenUNIX*|UnixWare*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14879 | if test "$GCC" = "yes" ; then |
| 14880 | LDSHARED='$(CC) -shared' |
| 14881 | LDCXXSHARED='$(CXX) -shared' |
| 14882 | else |
| 14883 | LDSHARED='$(CC) -G' |
| 14884 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14885 | fi;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14886 | SCO_SV*) |
| 14887 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 14888 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 14889 | CYGWIN*) |
| 14890 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 14891 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
| 14892 | atheos*) |
| 14893 | LDSHARED="gcc -shared" |
| 14894 | LDCXXSHARED="g++ -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14895 | *) LDSHARED="ld";; |
| 14896 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14897 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14898 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 14899 | echo "${ECHO_T}$LDSHARED" >&6; } |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14900 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14901 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14902 | # 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] | 14903 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14904 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 14905 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14906 | if test -z "$CCSHARED" |
| 14907 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14908 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14909 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 14910 | then CCSHARED="-fPIC"; |
| 14911 | elif test `uname -p` = sparc; |
| 14912 | then CCSHARED="-xcode=pic32"; |
| 14913 | else CCSHARED="-Kpic"; |
| 14914 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14915 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 14916 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14917 | else CCSHARED="+z"; |
| 14918 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14919 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14920 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14921 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14922 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14923 | if test "$GCC" = "yes" |
| 14924 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14925 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14926 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14927 | SCO_SV*) |
| 14928 | if test "$GCC" = "yes" |
| 14929 | then CCSHARED="-fPIC" |
| 14930 | else CCSHARED="-Kpic -belf" |
| 14931 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14932 | IRIX*/6*) case $CC in |
| 14933 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 14934 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14935 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14936 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14937 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14938 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14939 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 14940 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14941 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14942 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14943 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 14944 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14945 | if test -z "$LINKFORSHARED" |
| 14946 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14947 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14948 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 14949 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14950 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 14951 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14952 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14953 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14954 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14955 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14956 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 14957 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14958 | # not used by the core itself but which needs to be in the core so |
| 14959 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 14960 | # -prebind is no longer used, because it actually seems to give a |
| 14961 | # slowdown in stead of a speedup, maybe due to the large number of |
| 14962 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14963 | |
| 14964 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14965 | if test "$enable_framework" |
| 14966 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14967 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14968 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14969 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14970 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14971 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 14972 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14973 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 14974 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14975 | then |
| 14976 | LINKFORSHARED="-Wl,--export-dynamic" |
| 14977 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14978 | SunOS/5*) case $CC in |
| 14979 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 14980 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 14981 | then |
| 14982 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14983 | fi;; |
| 14984 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 14985 | CYGWIN*) |
| 14986 | if test $enable_shared = "no" |
| 14987 | then |
| 14988 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 14989 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14990 | QNX*) |
| 14991 | # -Wl,-E causes the symbols to be added to the dynamic |
| 14992 | # symbol table so that they can be found when a module |
| 14993 | # is loaded. -N 2048K causes the stack size to be set |
| 14994 | # to 2048 kilobytes so that the stack doesn't overflow |
| 14995 | # when running test_compile.py. |
| 14996 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14997 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14998 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14999 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 15000 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15001 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15002 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 15003 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15004 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 15005 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15006 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 15007 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 15008 | case $ac_sys_system in |
| 15009 | CYGWIN*) |
| 15010 | # Cygwin needs CCSHARED when building extension DLLs |
| 15011 | # but not when building the interpreter DLL. |
| 15012 | CFLAGSFORSHARED='';; |
| 15013 | *) |
| 15014 | CFLAGSFORSHARED='$(CCSHARED)' |
| 15015 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15016 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15017 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 15018 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15019 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15020 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 15021 | # library (with --enable-shared). |
| 15022 | # 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] | 15023 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 15024 | # if it is not required, since it creates a dependency of the shared library |
| 15025 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 15026 | # don't need to link LIBS explicitly. The default should be only changed |
| 15027 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15028 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15029 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 15030 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15031 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15032 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 15033 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15034 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15035 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 15036 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15037 | |
| 15038 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15039 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15040 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15041 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15042 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15043 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15045 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15046 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15047 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15048 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15049 | /* confdefs.h. */ |
| 15050 | _ACEOF |
| 15051 | cat confdefs.h >>conftest.$ac_ext |
| 15052 | cat >>conftest.$ac_ext <<_ACEOF |
| 15053 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15054 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15055 | /* Override any GCC internal prototype to avoid an error. |
| 15056 | Use char because int might match the return type of a GCC |
| 15057 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15058 | #ifdef __cplusplus |
| 15059 | extern "C" |
| 15060 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15061 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15062 | int |
| 15063 | main () |
| 15064 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15065 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15066 | ; |
| 15067 | return 0; |
| 15068 | } |
| 15069 | _ACEOF |
| 15070 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15071 | if { (ac_try="$ac_link" |
| 15072 | case "(($ac_try" in |
| 15073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15074 | *) ac_try_echo=$ac_try;; |
| 15075 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15077 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15078 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15080 | rm -f conftest.er1 |
| 15081 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15083 | (exit $ac_status); } && { |
| 15084 | test -z "$ac_c_werror_flag" || |
| 15085 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15086 | } && test -s conftest$ac_exeext && |
| 15087 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15088 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15089 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15090 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15092 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15093 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15094 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15095 | |
| 15096 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15097 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15098 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15099 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15100 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15101 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 15102 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15103 | cat >>confdefs.h <<_ACEOF |
| 15104 | #define HAVE_LIBDL 1 |
| 15105 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15106 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15107 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15108 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15109 | fi |
| 15110 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15111 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15112 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 15113 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15114 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15116 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15117 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15118 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15120 | /* confdefs.h. */ |
| 15121 | _ACEOF |
| 15122 | cat confdefs.h >>conftest.$ac_ext |
| 15123 | cat >>conftest.$ac_ext <<_ACEOF |
| 15124 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15125 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15126 | /* Override any GCC internal prototype to avoid an error. |
| 15127 | Use char because int might match the return type of a GCC |
| 15128 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | #ifdef __cplusplus |
| 15130 | extern "C" |
| 15131 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15132 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15133 | int |
| 15134 | main () |
| 15135 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15136 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15137 | ; |
| 15138 | return 0; |
| 15139 | } |
| 15140 | _ACEOF |
| 15141 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15142 | if { (ac_try="$ac_link" |
| 15143 | case "(($ac_try" in |
| 15144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15145 | *) ac_try_echo=$ac_try;; |
| 15146 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15148 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15151 | rm -f conftest.er1 |
| 15152 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15154 | (exit $ac_status); } && { |
| 15155 | test -z "$ac_c_werror_flag" || |
| 15156 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15157 | } && test -s conftest$ac_exeext && |
| 15158 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15159 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15160 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15161 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15163 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15164 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15165 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15166 | |
| 15167 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15168 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15170 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15171 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15172 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 15173 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15174 | cat >>confdefs.h <<_ACEOF |
| 15175 | #define HAVE_LIBDLD 1 |
| 15176 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15177 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15178 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15179 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15180 | fi |
| 15181 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15182 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 15183 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15184 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15185 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 15186 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; } |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15187 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15189 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15190 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15191 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15192 | /* confdefs.h. */ |
| 15193 | _ACEOF |
| 15194 | cat confdefs.h >>conftest.$ac_ext |
| 15195 | cat >>conftest.$ac_ext <<_ACEOF |
| 15196 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15197 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15198 | /* Override any GCC internal prototype to avoid an error. |
| 15199 | Use char because int might match the return type of a GCC |
| 15200 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15201 | #ifdef __cplusplus |
| 15202 | extern "C" |
| 15203 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15204 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15205 | int |
| 15206 | main () |
| 15207 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15208 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15209 | ; |
| 15210 | return 0; |
| 15211 | } |
| 15212 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15213 | for ac_lib in '' pthread rt posix4; do |
| 15214 | if test -z "$ac_lib"; then |
| 15215 | ac_res="none required" |
| 15216 | else |
| 15217 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15218 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15219 | fi |
| 15220 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15221 | if { (ac_try="$ac_link" |
| 15222 | case "(($ac_try" in |
| 15223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15224 | *) ac_try_echo=$ac_try;; |
| 15225 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15227 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15228 | ac_status=$? |
| 15229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15230 | rm -f conftest.er1 |
| 15231 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15233 | (exit $ac_status); } && { |
| 15234 | test -z "$ac_c_werror_flag" || |
| 15235 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15236 | } && test -s conftest$ac_exeext && |
| 15237 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15238 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15239 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15240 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15242 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15243 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15244 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15245 | |
| 15246 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15247 | conftest$ac_exeext |
| 15248 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15249 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15250 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15251 | done |
| 15252 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15253 | : |
| 15254 | else |
| 15255 | ac_cv_search_sem_init=no |
| 15256 | fi |
| 15257 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15258 | LIBS=$ac_func_search_save_LIBS |
| 15259 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15260 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 15261 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15262 | ac_res=$ac_cv_search_sem_init |
| 15263 | if test "$ac_res" != no; then |
| 15264 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15265 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15266 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 15267 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15268 | # posix4 on Solaris 2.6 |
| 15269 | # pthread (first!) on Linux |
| 15270 | fi |
| 15271 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15272 | # check if we need libintl for locale functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15273 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 15274 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; } |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15275 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15277 | else |
| 15278 | ac_check_lib_save_LIBS=$LIBS |
| 15279 | LIBS="-lintl $LIBS" |
| 15280 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15281 | /* confdefs.h. */ |
| 15282 | _ACEOF |
| 15283 | cat confdefs.h >>conftest.$ac_ext |
| 15284 | cat >>conftest.$ac_ext <<_ACEOF |
| 15285 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15286 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15287 | /* Override any GCC internal prototype to avoid an error. |
| 15288 | Use char because int might match the return type of a GCC |
| 15289 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15290 | #ifdef __cplusplus |
| 15291 | extern "C" |
| 15292 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15293 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15294 | int |
| 15295 | main () |
| 15296 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15297 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15298 | ; |
| 15299 | return 0; |
| 15300 | } |
| 15301 | _ACEOF |
| 15302 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15303 | if { (ac_try="$ac_link" |
| 15304 | case "(($ac_try" in |
| 15305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15306 | *) ac_try_echo=$ac_try;; |
| 15307 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15309 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15310 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15312 | rm -f conftest.er1 |
| 15313 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15315 | (exit $ac_status); } && { |
| 15316 | test -z "$ac_c_werror_flag" || |
| 15317 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15318 | } && test -s conftest$ac_exeext && |
| 15319 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15320 | ac_cv_lib_intl_textdomain=yes |
| 15321 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15322 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15324 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15325 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15326 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15327 | |
| 15328 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15329 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15330 | LIBS=$ac_check_lib_save_LIBS |
| 15331 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15332 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 15333 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 15334 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15335 | |
| 15336 | cat >>confdefs.h <<\_ACEOF |
| 15337 | #define WITH_LIBINTL 1 |
| 15338 | _ACEOF |
| 15339 | |
| 15340 | fi |
| 15341 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15342 | |
| 15343 | # checks for system dependent C++ extensions support |
| 15344 | case "$ac_sys_system" in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15345 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 15346 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15347 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15348 | /* confdefs.h. */ |
| 15349 | _ACEOF |
| 15350 | cat confdefs.h >>conftest.$ac_ext |
| 15351 | cat >>conftest.$ac_ext <<_ACEOF |
| 15352 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15353 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15354 | int |
| 15355 | main () |
| 15356 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15357 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15358 | ; |
| 15359 | return 0; |
| 15360 | } |
| 15361 | _ACEOF |
| 15362 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15363 | if { (ac_try="$ac_link" |
| 15364 | case "(($ac_try" in |
| 15365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15366 | *) ac_try_echo=$ac_try;; |
| 15367 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15369 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15370 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15372 | rm -f conftest.er1 |
| 15373 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15375 | (exit $ac_status); } && { |
| 15376 | test -z "$ac_c_werror_flag" || |
| 15377 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15378 | } && test -s conftest$ac_exeext && |
| 15379 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15381 | cat >>confdefs.h <<\_ACEOF |
| 15382 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 15383 | _ACEOF |
| 15384 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15385 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15386 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15387 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15388 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15390 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15391 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15392 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15393 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15394 | |
| 15395 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15396 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15397 | *) ;; |
| 15398 | esac |
| 15399 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15400 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15401 | # BeOS' sockets are stashed in libnet. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15402 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 15403 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15404 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15407 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15408 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15409 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15410 | /* confdefs.h. */ |
| 15411 | _ACEOF |
| 15412 | cat confdefs.h >>conftest.$ac_ext |
| 15413 | cat >>conftest.$ac_ext <<_ACEOF |
| 15414 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15415 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15416 | /* Override any GCC internal prototype to avoid an error. |
| 15417 | Use char because int might match the return type of a GCC |
| 15418 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15419 | #ifdef __cplusplus |
| 15420 | extern "C" |
| 15421 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15422 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15423 | int |
| 15424 | main () |
| 15425 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15426 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15427 | ; |
| 15428 | return 0; |
| 15429 | } |
| 15430 | _ACEOF |
| 15431 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15432 | if { (ac_try="$ac_link" |
| 15433 | case "(($ac_try" in |
| 15434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15435 | *) ac_try_echo=$ac_try;; |
| 15436 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15438 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15439 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15441 | rm -f conftest.er1 |
| 15442 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15444 | (exit $ac_status); } && { |
| 15445 | test -z "$ac_c_werror_flag" || |
| 15446 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15447 | } && test -s conftest$ac_exeext && |
| 15448 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15449 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15450 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15453 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15454 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15455 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15456 | |
| 15457 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15458 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15459 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15460 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15461 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 15462 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 15463 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15464 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15465 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 15466 | # SVR4 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15467 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15468 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15469 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15472 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15473 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15474 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15475 | /* confdefs.h. */ |
| 15476 | _ACEOF |
| 15477 | cat confdefs.h >>conftest.$ac_ext |
| 15478 | cat >>conftest.$ac_ext <<_ACEOF |
| 15479 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15480 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15481 | /* Override any GCC internal prototype to avoid an error. |
| 15482 | Use char because int might match the return type of a GCC |
| 15483 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15484 | #ifdef __cplusplus |
| 15485 | extern "C" |
| 15486 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15487 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15488 | int |
| 15489 | main () |
| 15490 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15491 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15492 | ; |
| 15493 | return 0; |
| 15494 | } |
| 15495 | _ACEOF |
| 15496 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15497 | if { (ac_try="$ac_link" |
| 15498 | case "(($ac_try" in |
| 15499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15500 | *) ac_try_echo=$ac_try;; |
| 15501 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15503 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15504 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15506 | rm -f conftest.er1 |
| 15507 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15509 | (exit $ac_status); } && { |
| 15510 | test -z "$ac_c_werror_flag" || |
| 15511 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15512 | } && test -s conftest$ac_exeext && |
| 15513 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15514 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15515 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15516 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15518 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15519 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15520 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15521 | |
| 15522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15523 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15524 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15525 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15526 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15527 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 15528 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15529 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15530 | fi |
| 15531 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 15532 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 15533 | case "$ac_sys_system" in |
| 15534 | BeOS*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15535 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 15536 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15537 | if test "${ac_cv_lib_net_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15540 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15541 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15542 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15543 | /* confdefs.h. */ |
| 15544 | _ACEOF |
| 15545 | cat confdefs.h >>conftest.$ac_ext |
| 15546 | cat >>conftest.$ac_ext <<_ACEOF |
| 15547 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15548 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15549 | /* Override any GCC internal prototype to avoid an error. |
| 15550 | Use char because int might match the return type of a GCC |
| 15551 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15552 | #ifdef __cplusplus |
| 15553 | extern "C" |
| 15554 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15555 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15556 | int |
| 15557 | main () |
| 15558 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15559 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15560 | ; |
| 15561 | return 0; |
| 15562 | } |
| 15563 | _ACEOF |
| 15564 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15565 | if { (ac_try="$ac_link" |
| 15566 | case "(($ac_try" in |
| 15567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15568 | *) ac_try_echo=$ac_try;; |
| 15569 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15571 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15572 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15574 | rm -f conftest.er1 |
| 15575 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15577 | (exit $ac_status); } && { |
| 15578 | test -z "$ac_c_werror_flag" || |
| 15579 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15580 | } && test -s conftest$ac_exeext && |
| 15581 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15582 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15583 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15584 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15586 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15587 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15588 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15589 | |
| 15590 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15591 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15592 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15593 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15594 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 15595 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
| 15596 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15597 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15598 | fi |
| 15599 | # BeOS |
| 15600 | ;; |
| 15601 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15602 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15603 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 15604 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15605 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15606 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15607 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15608 | withval=$with_libs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15609 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15610 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15611 | LIBS="$withval $LIBS" |
| 15612 | |
| 15613 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15614 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15615 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15616 | fi |
| 15617 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15618 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 15619 | if test -n "$ac_tool_prefix"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 15620 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 15621 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 15622 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 15624 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 15625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15626 | else |
| 15627 | case $PKG_CONFIG in |
| 15628 | [\\/]* | ?:[\\/]*) |
| 15629 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 15630 | ;; |
| 15631 | *) |
| 15632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15633 | for as_dir in $PATH |
| 15634 | do |
| 15635 | IFS=$as_save_IFS |
| 15636 | test -z "$as_dir" && as_dir=. |
| 15637 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15639 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15641 | break 2 |
| 15642 | fi |
| 15643 | done |
| 15644 | done |
| 15645 | IFS=$as_save_IFS |
| 15646 | |
| 15647 | ;; |
| 15648 | esac |
| 15649 | fi |
| 15650 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 15651 | if test -n "$PKG_CONFIG"; then |
| 15652 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 15653 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 15654 | else |
| 15655 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15656 | echo "${ECHO_T}no" >&6; } |
| 15657 | fi |
| 15658 | |
| 15659 | |
| 15660 | fi |
| 15661 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 15662 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 15663 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 15664 | set dummy pkg-config; ac_word=$2 |
| 15665 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 15667 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 15668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15669 | else |
| 15670 | case $ac_pt_PKG_CONFIG in |
| 15671 | [\\/]* | ?:[\\/]*) |
| 15672 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 15673 | ;; |
| 15674 | *) |
| 15675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15676 | for as_dir in $PATH |
| 15677 | do |
| 15678 | IFS=$as_save_IFS |
| 15679 | test -z "$as_dir" && as_dir=. |
| 15680 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15682 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15683 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15684 | break 2 |
| 15685 | fi |
| 15686 | done |
| 15687 | done |
| 15688 | IFS=$as_save_IFS |
| 15689 | |
| 15690 | ;; |
| 15691 | esac |
| 15692 | fi |
| 15693 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 15694 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 15695 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 15696 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 15697 | else |
| 15698 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15699 | echo "${ECHO_T}no" >&6; } |
| 15700 | fi |
| 15701 | |
| 15702 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 15703 | PKG_CONFIG="" |
| 15704 | else |
| 15705 | case $cross_compiling:$ac_tool_warned in |
| 15706 | yes:) |
| 15707 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 15708 | whose name does not start with the host triplet. If you think this |
| 15709 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 15710 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 15711 | whose name does not start with the host triplet. If you think this |
| 15712 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 15713 | ac_tool_warned=yes ;; |
| 15714 | esac |
| 15715 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 15716 | fi |
| 15717 | else |
| 15718 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 15719 | fi |
| 15720 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 15721 | |
| 15722 | # Check for use of the system expat library |
| 15723 | { echo "$as_me:$LINENO: checking for --with-system-expat" >&5 |
| 15724 | echo $ECHO_N "checking for --with-system-expat... $ECHO_C" >&6; } |
| 15725 | |
| 15726 | # Check whether --with-system_expat was given. |
| 15727 | if test "${with_system_expat+set}" = set; then |
| 15728 | withval=$with_system_expat; |
| 15729 | fi |
| 15730 | |
| 15731 | |
| 15732 | { echo "$as_me:$LINENO: result: $with_system_expat" >&5 |
| 15733 | echo "${ECHO_T}$with_system_expat" >&6; } |
| 15734 | |
| 15735 | # Check for use of the system libffi library |
| 15736 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 15737 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
| 15738 | |
| 15739 | # Check whether --with-system_ffi was given. |
| 15740 | if test "${with_system_ffi+set}" = set; then |
| 15741 | withval=$with_system_ffi; |
| 15742 | fi |
| 15743 | |
| 15744 | |
| 15745 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 15746 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 15747 | else |
| 15748 | LIBFFI_INCLUDEDIR="" |
| 15749 | fi |
| 15750 | |
| 15751 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15752 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 15753 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15754 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15755 | # Check for --with-dbmliborder |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15756 | { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 15757 | echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15758 | |
| 15759 | # Check whether --with-dbmliborder was given. |
| 15760 | if test "${with_dbmliborder+set}" = set; then |
| 15761 | withval=$with_dbmliborder; |
| 15762 | if test x$with_dbmliborder = xyes |
| 15763 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15764 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15765 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15766 | { (exit 1); exit 1; }; } |
| 15767 | else |
| 15768 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 15769 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 15770 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15771 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15772 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15773 | { (exit 1); exit 1; }; } |
| 15774 | fi |
| 15775 | done |
| 15776 | fi |
| 15777 | fi |
| 15778 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15779 | { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 15780 | echo "${ECHO_T}$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15781 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15782 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15783 | |
| 15784 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15785 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 15786 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15787 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15788 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15789 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15790 | withval=$with_signal_module; |
| 15791 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15792 | |
| 15793 | |
| 15794 | if test -z "$with_signal_module" |
| 15795 | then with_signal_module="yes" |
| 15796 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15797 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 15798 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15799 | |
| 15800 | if test "${with_signal_module}" = "yes"; then |
| 15801 | USE_SIGNAL_MODULE="" |
| 15802 | SIGNAL_OBJS="" |
| 15803 | else |
| 15804 | USE_SIGNAL_MODULE="#" |
| 15805 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 15806 | fi |
| 15807 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 15808 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15809 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15810 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15811 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15812 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 15813 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15814 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15816 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15817 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15818 | withval=$with_dec_threads; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15819 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15820 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15821 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15822 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15823 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15824 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15825 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15826 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15827 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15828 | fi |
| 15829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15830 | |
| 15831 | # Templates for things AC_DEFINEd more than once. |
| 15832 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15833 | |
| 15834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15835 | |
| 15836 | |
| 15837 | |
| 15838 | |
| 15839 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15840 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 15841 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15842 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15843 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15844 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15845 | withval=$with_threads; |
| 15846 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15847 | |
| 15848 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15849 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15850 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15851 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15852 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15853 | withval=$with_thread; with_threads=$with_thread |
| 15854 | fi |
| 15855 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15856 | |
| 15857 | if test -z "$with_threads" |
| 15858 | then with_threads="yes" |
| 15859 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15860 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 15861 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15862 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15863 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15864 | if test "$with_threads" = "no" |
| 15865 | then |
| 15866 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15867 | elif test "$ac_cv_pthread_is_default" = yes |
| 15868 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15869 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15870 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15871 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15872 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15873 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15874 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15875 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15876 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15877 | |
| 15878 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15880 | elif test "$ac_cv_kpthread" = "yes" |
| 15881 | then |
| 15882 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15883 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15884 | CXX="$CXX -Kpthread" |
| 15885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15886 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15887 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15888 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15889 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15890 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15891 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15892 | elif test "$ac_cv_kthread" = "yes" |
| 15893 | then |
| 15894 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15895 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15896 | CXX="$CXX -Kthread" |
| 15897 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15898 | cat >>confdefs.h <<\_ACEOF |
| 15899 | #define WITH_THREAD 1 |
| 15900 | _ACEOF |
| 15901 | |
| 15902 | posix_threads=yes |
| 15903 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15904 | elif test "$ac_cv_pthread" = "yes" |
| 15905 | then |
| 15906 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15907 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15908 | CXX="$CXX -pthread" |
| 15909 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15910 | cat >>confdefs.h <<\_ACEOF |
| 15911 | #define WITH_THREAD 1 |
| 15912 | _ACEOF |
| 15913 | |
| 15914 | posix_threads=yes |
| 15915 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15916 | else |
| 15917 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 15918 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 15919 | fi |
| 15920 | if test ! -z "$withval" -a -d "$withval" |
| 15921 | then LDFLAGS="$LDFLAGS -L$withval" |
| 15922 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15923 | |
| 15924 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 15925 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 15926 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15927 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 15928 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15929 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15930 | /* confdefs.h. */ |
| 15931 | _ACEOF |
| 15932 | cat confdefs.h >>conftest.$ac_ext |
| 15933 | cat >>conftest.$ac_ext <<_ACEOF |
| 15934 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15935 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15936 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15937 | #ifdef _POSIX_THREADS |
| 15938 | yes |
| 15939 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15940 | |
| 15941 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15942 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15943 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15944 | unistd_defines_pthreads=yes |
| 15945 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15946 | unistd_defines_pthreads=no |
| 15947 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 15948 | rm -f -r conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15949 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15950 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 15951 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15953 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15954 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15955 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15957 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15958 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15959 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15960 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15962 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15963 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15964 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15966 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15967 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 15968 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15969 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15970 | /* confdefs.h. */ |
| 15971 | _ACEOF |
| 15972 | cat confdefs.h >>conftest.$ac_ext |
| 15973 | cat >>conftest.$ac_ext <<_ACEOF |
| 15974 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15975 | $ac_includes_default |
| 15976 | #include <cthreads.h> |
| 15977 | _ACEOF |
| 15978 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15979 | if { (ac_try="$ac_compile" |
| 15980 | case "(($ac_try" in |
| 15981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15982 | *) ac_try_echo=$ac_try;; |
| 15983 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15985 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15986 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15988 | rm -f conftest.er1 |
| 15989 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15991 | (exit $ac_status); } && { |
| 15992 | test -z "$ac_c_werror_flag" || |
| 15993 | test ! -s conftest.err |
| 15994 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15995 | ac_header_compiler=yes |
| 15996 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15997 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15999 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16000 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16001 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16002 | |
| 16003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16004 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16005 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16006 | |
| 16007 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16008 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 16009 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16010 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16011 | /* confdefs.h. */ |
| 16012 | _ACEOF |
| 16013 | cat confdefs.h >>conftest.$ac_ext |
| 16014 | cat >>conftest.$ac_ext <<_ACEOF |
| 16015 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16016 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16017 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16018 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16019 | case "(($ac_try" in |
| 16020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16021 | *) ac_try_echo=$ac_try;; |
| 16022 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16024 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16025 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16026 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16027 | rm -f conftest.er1 |
| 16028 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16030 | (exit $ac_status); } >/dev/null && { |
| 16031 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16032 | test ! -s conftest.err |
| 16033 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16034 | ac_header_preproc=yes |
| 16035 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16039 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16040 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16041 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16042 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16043 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16044 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16045 | |
| 16046 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16047 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16048 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16049 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16050 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16051 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 16052 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16053 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16054 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16055 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16056 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 16057 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 16058 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 16059 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16060 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 16061 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 16062 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16063 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16064 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16065 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16066 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16067 | echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16068 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16069 | ## -------------------------------------- ## |
| 16070 | ## Report this to http://bugs.python.org/ ## |
| 16071 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16072 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16073 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16074 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16075 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16076 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 16077 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16078 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16080 | else |
| 16081 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16082 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16083 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 16084 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16085 | |
| 16086 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16087 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16088 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16089 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16090 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16092 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16093 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16094 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16096 | |
| 16097 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16098 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16099 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16100 | |
| 16101 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16102 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16103 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16105 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16106 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16107 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16108 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16110 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16111 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16112 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16115 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 16116 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16117 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16118 | /* confdefs.h. */ |
| 16119 | _ACEOF |
| 16120 | cat confdefs.h >>conftest.$ac_ext |
| 16121 | cat >>conftest.$ac_ext <<_ACEOF |
| 16122 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16123 | $ac_includes_default |
| 16124 | #include <mach/cthreads.h> |
| 16125 | _ACEOF |
| 16126 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16127 | if { (ac_try="$ac_compile" |
| 16128 | case "(($ac_try" in |
| 16129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16130 | *) ac_try_echo=$ac_try;; |
| 16131 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16133 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16134 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16136 | rm -f conftest.er1 |
| 16137 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16139 | (exit $ac_status); } && { |
| 16140 | test -z "$ac_c_werror_flag" || |
| 16141 | test ! -s conftest.err |
| 16142 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16143 | ac_header_compiler=yes |
| 16144 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16145 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16147 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16148 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16149 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16150 | |
| 16151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16152 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16153 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16154 | |
| 16155 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16156 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 16157 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16158 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16159 | /* confdefs.h. */ |
| 16160 | _ACEOF |
| 16161 | cat confdefs.h >>conftest.$ac_ext |
| 16162 | cat >>conftest.$ac_ext <<_ACEOF |
| 16163 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16164 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16165 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16166 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16167 | case "(($ac_try" in |
| 16168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16169 | *) ac_try_echo=$ac_try;; |
| 16170 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16172 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16173 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16174 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16175 | rm -f conftest.er1 |
| 16176 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16178 | (exit $ac_status); } >/dev/null && { |
| 16179 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16180 | test ! -s conftest.err |
| 16181 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16182 | ac_header_preproc=yes |
| 16183 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16184 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16187 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16188 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16190 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16191 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16192 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16193 | |
| 16194 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16195 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16196 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16197 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16198 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16199 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 16200 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16201 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16202 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16203 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16204 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 16205 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 16206 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 16207 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16208 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 16209 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 16210 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16211 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16212 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16213 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16214 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16215 | echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16216 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16217 | ## -------------------------------------- ## |
| 16218 | ## Report this to http://bugs.python.org/ ## |
| 16219 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16220 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16221 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16222 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16223 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16224 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16225 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16226 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16228 | else |
| 16229 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16230 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16231 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16232 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16233 | |
| 16234 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16235 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16236 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16237 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16238 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16240 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16241 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16242 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16244 | |
| 16245 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16246 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16247 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16248 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16249 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16250 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16251 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16252 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 16253 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16254 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16255 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16256 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16257 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 16258 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16259 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16260 | #define WITH_THREAD 1 |
| 16261 | _ACEOF |
| 16262 | |
| 16263 | |
| 16264 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16265 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16266 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16267 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16268 | LIBS="-lpth $LIBS" |
| 16269 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16270 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16271 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16272 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16273 | |
| 16274 | # Just looking for pthread_create in libpthread is not enough: |
| 16275 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 16276 | # So we really have to include pthread.h, and then link. |
| 16277 | _libs=$LIBS |
| 16278 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16279 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 16280 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16281 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16282 | /* confdefs.h. */ |
| 16283 | _ACEOF |
| 16284 | cat confdefs.h >>conftest.$ac_ext |
| 16285 | cat >>conftest.$ac_ext <<_ACEOF |
| 16286 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16287 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16288 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16289 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16290 | int |
| 16291 | main () |
| 16292 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16293 | |
| 16294 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16295 | ; |
| 16296 | return 0; |
| 16297 | } |
| 16298 | _ACEOF |
| 16299 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16300 | if { (ac_try="$ac_link" |
| 16301 | case "(($ac_try" in |
| 16302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16303 | *) ac_try_echo=$ac_try;; |
| 16304 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16306 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16307 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16309 | rm -f conftest.er1 |
| 16310 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16312 | (exit $ac_status); } && { |
| 16313 | test -z "$ac_c_werror_flag" || |
| 16314 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16315 | } && test -s conftest$ac_exeext && |
| 16316 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16317 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16318 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16319 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16320 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16321 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16322 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16323 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16324 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16325 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16326 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16327 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16329 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16330 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16331 | LIBS=$_libs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16332 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 16333 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16334 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16336 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16337 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16338 | /* confdefs.h. */ |
| 16339 | _ACEOF |
| 16340 | cat confdefs.h >>conftest.$ac_ext |
| 16341 | cat >>conftest.$ac_ext <<_ACEOF |
| 16342 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16343 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 16344 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16345 | #define pthread_detach innocuous_pthread_detach |
| 16346 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16347 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16348 | which can conflict with char pthread_detach (); below. |
| 16349 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16350 | <limits.h> exists even on freestanding compilers. */ |
| 16351 | |
| 16352 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16353 | # include <limits.h> |
| 16354 | #else |
| 16355 | # include <assert.h> |
| 16356 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16357 | |
| 16358 | #undef pthread_detach |
| 16359 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16360 | /* Override any GCC internal prototype to avoid an error. |
| 16361 | Use char because int might match the return type of a GCC |
| 16362 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16363 | #ifdef __cplusplus |
| 16364 | extern "C" |
| 16365 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16366 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16367 | /* The GNU C library defines this for functions which it implements |
| 16368 | to always fail with ENOSYS. Some functions are actually named |
| 16369 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16370 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16371 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16372 | #endif |
| 16373 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16374 | int |
| 16375 | main () |
| 16376 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16377 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16378 | ; |
| 16379 | return 0; |
| 16380 | } |
| 16381 | _ACEOF |
| 16382 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16383 | if { (ac_try="$ac_link" |
| 16384 | case "(($ac_try" in |
| 16385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16386 | *) ac_try_echo=$ac_try;; |
| 16387 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16389 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16390 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16392 | rm -f conftest.er1 |
| 16393 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16395 | (exit $ac_status); } && { |
| 16396 | test -z "$ac_c_werror_flag" || |
| 16397 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16398 | } && test -s conftest$ac_exeext && |
| 16399 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16400 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16401 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16402 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16404 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16405 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16406 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16407 | |
| 16408 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16409 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16410 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16411 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 16412 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 16413 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16414 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16415 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16416 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16417 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16418 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16419 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16420 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16421 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16422 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16423 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16424 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16425 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16427 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16428 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16429 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16430 | else |
| 16431 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16432 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 16433 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16434 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16435 | /* confdefs.h. */ |
| 16436 | _ACEOF |
| 16437 | cat confdefs.h >>conftest.$ac_ext |
| 16438 | cat >>conftest.$ac_ext <<_ACEOF |
| 16439 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16440 | $ac_includes_default |
| 16441 | #include <atheos/threads.h> |
| 16442 | _ACEOF |
| 16443 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16444 | if { (ac_try="$ac_compile" |
| 16445 | case "(($ac_try" in |
| 16446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16447 | *) ac_try_echo=$ac_try;; |
| 16448 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16450 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16451 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16453 | rm -f conftest.er1 |
| 16454 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16456 | (exit $ac_status); } && { |
| 16457 | test -z "$ac_c_werror_flag" || |
| 16458 | test ! -s conftest.err |
| 16459 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16460 | ac_header_compiler=yes |
| 16461 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16462 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16464 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16465 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16466 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16467 | |
| 16468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16469 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16470 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16471 | |
| 16472 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16473 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 16474 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16475 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16476 | /* confdefs.h. */ |
| 16477 | _ACEOF |
| 16478 | cat confdefs.h >>conftest.$ac_ext |
| 16479 | cat >>conftest.$ac_ext <<_ACEOF |
| 16480 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16481 | #include <atheos/threads.h> |
| 16482 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16483 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16484 | case "(($ac_try" in |
| 16485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16486 | *) ac_try_echo=$ac_try;; |
| 16487 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16489 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16490 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16491 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16492 | rm -f conftest.er1 |
| 16493 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16495 | (exit $ac_status); } >/dev/null && { |
| 16496 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16497 | test ! -s conftest.err |
| 16498 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16499 | ac_header_preproc=yes |
| 16500 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16501 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16503 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16504 | ac_header_preproc=no |
| 16505 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16506 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16507 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16508 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16509 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16510 | |
| 16511 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16512 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16513 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16514 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16515 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16516 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 16517 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16518 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16519 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16520 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16521 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 16522 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 16523 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 16524 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 16525 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 16526 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 16527 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16528 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16529 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 16530 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 16531 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 16532 | echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16533 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16534 | ## -------------------------------------- ## |
| 16535 | ## Report this to http://bugs.python.org/ ## |
| 16536 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16537 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16538 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16539 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16540 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16541 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16542 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16543 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16545 | else |
| 16546 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 16547 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16548 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16549 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16550 | |
| 16551 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16552 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16553 | cat >>confdefs.h <<\_ACEOF |
| 16554 | #define WITH_THREAD 1 |
| 16555 | _ACEOF |
| 16556 | |
| 16557 | |
| 16558 | cat >>confdefs.h <<\_ACEOF |
| 16559 | #define ATHEOS_THREADS 1 |
| 16560 | _ACEOF |
| 16561 | |
| 16562 | THREADOBJ="Python/thread.o" |
| 16563 | else |
| 16564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16565 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16566 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16567 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16568 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16570 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16571 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16572 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16573 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16575 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 16576 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16577 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16578 | /* confdefs.h. */ |
| 16579 | _ACEOF |
| 16580 | cat confdefs.h >>conftest.$ac_ext |
| 16581 | cat >>conftest.$ac_ext <<_ACEOF |
| 16582 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16583 | $ac_includes_default |
| 16584 | #include <kernel/OS.h> |
| 16585 | _ACEOF |
| 16586 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16587 | if { (ac_try="$ac_compile" |
| 16588 | case "(($ac_try" in |
| 16589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16590 | *) ac_try_echo=$ac_try;; |
| 16591 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16593 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16594 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16596 | rm -f conftest.er1 |
| 16597 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16599 | (exit $ac_status); } && { |
| 16600 | test -z "$ac_c_werror_flag" || |
| 16601 | test ! -s conftest.err |
| 16602 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16603 | ac_header_compiler=yes |
| 16604 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16605 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16607 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16608 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16609 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16610 | |
| 16611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16612 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16613 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16614 | |
| 16615 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16616 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 16617 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16618 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16619 | /* confdefs.h. */ |
| 16620 | _ACEOF |
| 16621 | cat confdefs.h >>conftest.$ac_ext |
| 16622 | cat >>conftest.$ac_ext <<_ACEOF |
| 16623 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16624 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16625 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16626 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16627 | case "(($ac_try" in |
| 16628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16629 | *) ac_try_echo=$ac_try;; |
| 16630 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16632 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16633 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16634 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16635 | rm -f conftest.er1 |
| 16636 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16638 | (exit $ac_status); } >/dev/null && { |
| 16639 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16640 | test ! -s conftest.err |
| 16641 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16642 | ac_header_preproc=yes |
| 16643 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16644 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16647 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16648 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16650 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16651 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16652 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16654 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16655 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16656 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16657 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16658 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16659 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 16660 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16661 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16662 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16663 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16664 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 16665 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 16666 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 16667 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 16668 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 16669 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 16670 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16671 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16672 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 16673 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 16674 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 16675 | echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16676 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16677 | ## -------------------------------------- ## |
| 16678 | ## Report this to http://bugs.python.org/ ## |
| 16679 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16680 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16681 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16682 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16683 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16684 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16685 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16686 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16688 | else |
| 16689 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 16690 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16691 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16692 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16693 | |
| 16694 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16695 | if test $ac_cv_header_kernel_OS_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16696 | cat >>confdefs.h <<\_ACEOF |
| 16697 | #define WITH_THREAD 1 |
| 16698 | _ACEOF |
| 16699 | |
| 16700 | |
| 16701 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16702 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16703 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16704 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16705 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16706 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16707 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16708 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 16709 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16710 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16712 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16713 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16714 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16715 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16716 | /* confdefs.h. */ |
| 16717 | _ACEOF |
| 16718 | cat confdefs.h >>conftest.$ac_ext |
| 16719 | cat >>conftest.$ac_ext <<_ACEOF |
| 16720 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16721 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16722 | /* Override any GCC internal prototype to avoid an error. |
| 16723 | Use char because int might match the return type of a GCC |
| 16724 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16725 | #ifdef __cplusplus |
| 16726 | extern "C" |
| 16727 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16728 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16729 | int |
| 16730 | main () |
| 16731 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16732 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16733 | ; |
| 16734 | return 0; |
| 16735 | } |
| 16736 | _ACEOF |
| 16737 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16738 | if { (ac_try="$ac_link" |
| 16739 | case "(($ac_try" in |
| 16740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16741 | *) ac_try_echo=$ac_try;; |
| 16742 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16744 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16745 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16747 | rm -f conftest.er1 |
| 16748 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16750 | (exit $ac_status); } && { |
| 16751 | test -z "$ac_c_werror_flag" || |
| 16752 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16753 | } && test -s conftest$ac_exeext && |
| 16754 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16755 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16756 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16757 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16759 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16760 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16761 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16762 | |
| 16763 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16764 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16765 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16766 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16767 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 16768 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 16769 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16770 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16771 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16772 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16773 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16774 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16775 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16776 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16777 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16778 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16779 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 16780 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16781 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16784 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16785 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16786 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16787 | /* confdefs.h. */ |
| 16788 | _ACEOF |
| 16789 | cat confdefs.h >>conftest.$ac_ext |
| 16790 | cat >>conftest.$ac_ext <<_ACEOF |
| 16791 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16792 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16793 | /* Override any GCC internal prototype to avoid an error. |
| 16794 | Use char because int might match the return type of a GCC |
| 16795 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16796 | #ifdef __cplusplus |
| 16797 | extern "C" |
| 16798 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16799 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16800 | int |
| 16801 | main () |
| 16802 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16803 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16804 | ; |
| 16805 | return 0; |
| 16806 | } |
| 16807 | _ACEOF |
| 16808 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16809 | if { (ac_try="$ac_link" |
| 16810 | case "(($ac_try" in |
| 16811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16812 | *) ac_try_echo=$ac_try;; |
| 16813 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16815 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16816 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16818 | rm -f conftest.er1 |
| 16819 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16821 | (exit $ac_status); } && { |
| 16822 | test -z "$ac_c_werror_flag" || |
| 16823 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16824 | } && test -s conftest$ac_exeext && |
| 16825 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16826 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16827 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16828 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16830 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16831 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16832 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16833 | |
| 16834 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16835 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16836 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16837 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16838 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 16839 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 16840 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16841 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16842 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16843 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16844 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16845 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16846 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16847 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16848 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16849 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16850 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 16851 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16852 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16855 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16856 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16857 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16858 | /* confdefs.h. */ |
| 16859 | _ACEOF |
| 16860 | cat confdefs.h >>conftest.$ac_ext |
| 16861 | cat >>conftest.$ac_ext <<_ACEOF |
| 16862 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16863 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16864 | /* Override any GCC internal prototype to avoid an error. |
| 16865 | Use char because int might match the return type of a GCC |
| 16866 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16867 | #ifdef __cplusplus |
| 16868 | extern "C" |
| 16869 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16870 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16871 | int |
| 16872 | main () |
| 16873 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16874 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16875 | ; |
| 16876 | return 0; |
| 16877 | } |
| 16878 | _ACEOF |
| 16879 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16880 | if { (ac_try="$ac_link" |
| 16881 | case "(($ac_try" in |
| 16882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16883 | *) ac_try_echo=$ac_try;; |
| 16884 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16886 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16887 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16889 | rm -f conftest.er1 |
| 16890 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16892 | (exit $ac_status); } && { |
| 16893 | test -z "$ac_c_werror_flag" || |
| 16894 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16895 | } && test -s conftest$ac_exeext && |
| 16896 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16897 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16898 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16899 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16901 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16902 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16903 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16904 | |
| 16905 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16906 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16907 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16908 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16909 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 16910 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 16911 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16912 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16913 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16914 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16915 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16916 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16917 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16918 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16919 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16920 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16921 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 16922 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16923 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16925 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16926 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16927 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16928 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16929 | /* confdefs.h. */ |
| 16930 | _ACEOF |
| 16931 | cat confdefs.h >>conftest.$ac_ext |
| 16932 | cat >>conftest.$ac_ext <<_ACEOF |
| 16933 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16934 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16935 | /* Override any GCC internal prototype to avoid an error. |
| 16936 | Use char because int might match the return type of a GCC |
| 16937 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16938 | #ifdef __cplusplus |
| 16939 | extern "C" |
| 16940 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16941 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16942 | int |
| 16943 | main () |
| 16944 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16945 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16946 | ; |
| 16947 | return 0; |
| 16948 | } |
| 16949 | _ACEOF |
| 16950 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16951 | if { (ac_try="$ac_link" |
| 16952 | case "(($ac_try" in |
| 16953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16954 | *) ac_try_echo=$ac_try;; |
| 16955 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16957 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16958 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16960 | rm -f conftest.er1 |
| 16961 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16963 | (exit $ac_status); } && { |
| 16964 | test -z "$ac_c_werror_flag" || |
| 16965 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16966 | } && test -s conftest$ac_exeext && |
| 16967 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16968 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16969 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16972 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16973 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16974 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16975 | |
| 16976 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16977 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16978 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16979 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16980 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 16981 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 16982 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16983 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16984 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16985 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16986 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16987 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16988 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16989 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16990 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 16991 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16992 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 16993 | fi |
| 16994 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16995 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16996 | fi |
| 16997 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 16998 | fi |
| 16999 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 17000 | fi |
| 17001 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17002 | fi |
| 17003 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 17004 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17005 | fi |
| 17006 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17007 | |
| 17008 | fi |
| 17009 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 17010 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17011 | |
| 17012 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17013 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17014 | fi |
| 17015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17016 | fi |
| 17017 | |
| 17018 | |
| 17019 | fi |
| 17020 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 17021 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17022 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17023 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 17024 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17025 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17028 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17029 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17030 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17031 | /* confdefs.h. */ |
| 17032 | _ACEOF |
| 17033 | cat confdefs.h >>conftest.$ac_ext |
| 17034 | cat >>conftest.$ac_ext <<_ACEOF |
| 17035 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17036 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17037 | /* Override any GCC internal prototype to avoid an error. |
| 17038 | Use char because int might match the return type of a GCC |
| 17039 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17040 | #ifdef __cplusplus |
| 17041 | extern "C" |
| 17042 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17043 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17044 | int |
| 17045 | main () |
| 17046 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17047 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17048 | ; |
| 17049 | return 0; |
| 17050 | } |
| 17051 | _ACEOF |
| 17052 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17053 | if { (ac_try="$ac_link" |
| 17054 | case "(($ac_try" in |
| 17055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17056 | *) ac_try_echo=$ac_try;; |
| 17057 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17059 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17060 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17062 | rm -f conftest.er1 |
| 17063 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17065 | (exit $ac_status); } && { |
| 17066 | test -z "$ac_c_werror_flag" || |
| 17067 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17068 | } && test -s conftest$ac_exeext && |
| 17069 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17070 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17071 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17072 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17074 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17075 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17076 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17077 | |
| 17078 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17079 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17080 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17081 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17082 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 17083 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 17084 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17085 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17086 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17087 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17088 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17089 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17090 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17091 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17092 | fi |
| 17093 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17094 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 17095 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17096 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 17097 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17098 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17101 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17102 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17103 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17104 | /* confdefs.h. */ |
| 17105 | _ACEOF |
| 17106 | cat confdefs.h >>conftest.$ac_ext |
| 17107 | cat >>conftest.$ac_ext <<_ACEOF |
| 17108 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17109 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17110 | /* Override any GCC internal prototype to avoid an error. |
| 17111 | Use char because int might match the return type of a GCC |
| 17112 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17113 | #ifdef __cplusplus |
| 17114 | extern "C" |
| 17115 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17116 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17117 | int |
| 17118 | main () |
| 17119 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17120 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17121 | ; |
| 17122 | return 0; |
| 17123 | } |
| 17124 | _ACEOF |
| 17125 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17126 | if { (ac_try="$ac_link" |
| 17127 | case "(($ac_try" in |
| 17128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17129 | *) ac_try_echo=$ac_try;; |
| 17130 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17132 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17133 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17135 | rm -f conftest.er1 |
| 17136 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17138 | (exit $ac_status); } && { |
| 17139 | test -z "$ac_c_werror_flag" || |
| 17140 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17141 | } && test -s conftest$ac_exeext && |
| 17142 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17143 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17144 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17145 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17147 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17148 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17149 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17150 | |
| 17151 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17152 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17153 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17154 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17155 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 17156 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 17157 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17158 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17159 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17160 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17161 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17162 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17163 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17164 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17165 | fi |
| 17166 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17167 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17168 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17169 | if test "$USE_THREAD_MODULE" != "#" |
| 17170 | then |
| 17171 | # If the above checks didn't disable threads, (at least) OSF1 |
| 17172 | # needs this '-threads' argument during linking. |
| 17173 | case $ac_sys_system in |
| 17174 | OSF1) LDLAST=-threads;; |
| 17175 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 17176 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17177 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17178 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17179 | if test "$posix_threads" = "yes"; then |
| 17180 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17181 | |
| 17182 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17183 | #define _POSIX_THREADS 1 |
| 17184 | _ACEOF |
| 17185 | |
| 17186 | fi |
| 17187 | |
| 17188 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 17189 | case $ac_sys_system/$ac_sys_release in |
| 17190 | SunOS/5.6) |
| 17191 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17192 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 17193 | _ACEOF |
| 17194 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17195 | ;; |
| 17196 | SunOS/5.8) |
| 17197 | cat >>confdefs.h <<\_ACEOF |
| 17198 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17199 | _ACEOF |
| 17200 | |
| 17201 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 17202 | AIX/5) |
| 17203 | cat >>confdefs.h <<\_ACEOF |
| 17204 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17205 | _ACEOF |
| 17206 | |
| 17207 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17208 | esac |
| 17209 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17210 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 17211 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17212 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17214 | else |
| 17215 | if test "$cross_compiling" = yes; then |
| 17216 | ac_cv_pthread_system_supported=no |
| 17217 | else |
| 17218 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17219 | /* confdefs.h. */ |
| 17220 | _ACEOF |
| 17221 | cat confdefs.h >>conftest.$ac_ext |
| 17222 | cat >>conftest.$ac_ext <<_ACEOF |
| 17223 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17224 | #include <pthread.h> |
| 17225 | void *foo(void *parm) { |
| 17226 | return NULL; |
| 17227 | } |
| 17228 | main() { |
| 17229 | pthread_attr_t attr; |
| 17230 | pthread_t id; |
| 17231 | if (pthread_attr_init(&attr)) exit(-1); |
| 17232 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 17233 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 17234 | exit(0); |
| 17235 | } |
| 17236 | _ACEOF |
| 17237 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17238 | if { (ac_try="$ac_link" |
| 17239 | case "(($ac_try" in |
| 17240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17241 | *) ac_try_echo=$ac_try;; |
| 17242 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17244 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17245 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17248 | { (case "(($ac_try" in |
| 17249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17250 | *) ac_try_echo=$ac_try;; |
| 17251 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17253 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17254 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17256 | (exit $ac_status); }; }; then |
| 17257 | ac_cv_pthread_system_supported=yes |
| 17258 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17259 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17260 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17262 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17263 | ( exit $ac_status ) |
| 17264 | ac_cv_pthread_system_supported=no |
| 17265 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17266 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17267 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17268 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17269 | |
| 17270 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17271 | fi |
| 17272 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17273 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 17274 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17275 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 17276 | |
| 17277 | cat >>confdefs.h <<\_ACEOF |
| 17278 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 17279 | _ACEOF |
| 17280 | |
| 17281 | fi |
| 17282 | |
| 17283 | for ac_func in pthread_sigmask |
| 17284 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17285 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17286 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17287 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17288 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17290 | else |
| 17291 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17292 | /* confdefs.h. */ |
| 17293 | _ACEOF |
| 17294 | cat confdefs.h >>conftest.$ac_ext |
| 17295 | cat >>conftest.$ac_ext <<_ACEOF |
| 17296 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17297 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17298 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17299 | #define $ac_func innocuous_$ac_func |
| 17300 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17301 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17302 | which can conflict with char $ac_func (); below. |
| 17303 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17304 | <limits.h> exists even on freestanding compilers. */ |
| 17305 | |
| 17306 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17307 | # include <limits.h> |
| 17308 | #else |
| 17309 | # include <assert.h> |
| 17310 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17311 | |
| 17312 | #undef $ac_func |
| 17313 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17314 | /* Override any GCC internal prototype to avoid an error. |
| 17315 | Use char because int might match the return type of a GCC |
| 17316 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17317 | #ifdef __cplusplus |
| 17318 | extern "C" |
| 17319 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17320 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17321 | /* The GNU C library defines this for functions which it implements |
| 17322 | to always fail with ENOSYS. Some functions are actually named |
| 17323 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17324 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17325 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17326 | #endif |
| 17327 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17328 | int |
| 17329 | main () |
| 17330 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17331 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17332 | ; |
| 17333 | return 0; |
| 17334 | } |
| 17335 | _ACEOF |
| 17336 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17337 | if { (ac_try="$ac_link" |
| 17338 | case "(($ac_try" in |
| 17339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17340 | *) ac_try_echo=$ac_try;; |
| 17341 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17343 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17344 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17346 | rm -f conftest.er1 |
| 17347 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17349 | (exit $ac_status); } && { |
| 17350 | test -z "$ac_c_werror_flag" || |
| 17351 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17352 | } && test -s conftest$ac_exeext && |
| 17353 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17354 | eval "$as_ac_var=yes" |
| 17355 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17356 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17358 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17359 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17360 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17361 | |
| 17362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17363 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17364 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17365 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17366 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17367 | echo "${ECHO_T}$ac_res" >&6; } |
| 17368 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17369 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17370 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17371 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17372 | case $ac_sys_system in |
| 17373 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17374 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17375 | cat >>confdefs.h <<\_ACEOF |
| 17376 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 17377 | _ACEOF |
| 17378 | |
| 17379 | ;; |
| 17380 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17381 | fi |
| 17382 | done |
| 17383 | |
| 17384 | fi |
| 17385 | |
| 17386 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17387 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17388 | |
| 17389 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17390 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 17391 | echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17392 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17393 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17394 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17395 | no) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17396 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17397 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17398 | ipv6=no |
| 17399 | ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17400 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 17401 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17402 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17403 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17404 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17405 | |
| 17406 | ipv6=yes |
| 17407 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17408 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17409 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17410 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17411 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17412 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17413 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17414 | ipv6=no |
| 17415 | |
| 17416 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17417 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17418 | /* confdefs.h. */ |
| 17419 | _ACEOF |
| 17420 | cat confdefs.h >>conftest.$ac_ext |
| 17421 | cat >>conftest.$ac_ext <<_ACEOF |
| 17422 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17423 | /* AF_INET6 available check */ |
| 17424 | #include <sys/types.h> |
| 17425 | #include <sys/socket.h> |
| 17426 | main() |
| 17427 | { |
| 17428 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 17429 | exit(1); |
| 17430 | else |
| 17431 | exit(0); |
| 17432 | } |
| 17433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17434 | _ACEOF |
| 17435 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17436 | if { (ac_try="$ac_link" |
| 17437 | case "(($ac_try" in |
| 17438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17439 | *) ac_try_echo=$ac_try;; |
| 17440 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17442 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17443 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17445 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17446 | { (case "(($ac_try" in |
| 17447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17448 | *) ac_try_echo=$ac_try;; |
| 17449 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17451 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17452 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17454 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17455 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17456 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17457 | ipv6=yes |
| 17458 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17459 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17460 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17462 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17463 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17464 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17465 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17466 | ipv6=no |
| 17467 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17468 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17469 | fi |
| 17470 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17471 | |
| 17472 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17473 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17474 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 17475 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17477 | /* confdefs.h. */ |
| 17478 | _ACEOF |
| 17479 | cat confdefs.h >>conftest.$ac_ext |
| 17480 | cat >>conftest.$ac_ext <<_ACEOF |
| 17481 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17482 | #include <sys/types.h> |
| 17483 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17484 | int |
| 17485 | main () |
| 17486 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17487 | struct sockaddr_in6 x; |
| 17488 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17489 | ; |
| 17490 | return 0; |
| 17491 | } |
| 17492 | _ACEOF |
| 17493 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17494 | if { (ac_try="$ac_compile" |
| 17495 | case "(($ac_try" in |
| 17496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17497 | *) ac_try_echo=$ac_try;; |
| 17498 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17500 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17501 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17503 | rm -f conftest.er1 |
| 17504 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17506 | (exit $ac_status); } && { |
| 17507 | test -z "$ac_c_werror_flag" || |
| 17508 | test ! -s conftest.err |
| 17509 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17510 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17511 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17512 | ipv6=yes |
| 17513 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17514 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17516 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17517 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17518 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17519 | ipv6=no |
| 17520 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17521 | |
| 17522 | 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] | 17523 | fi |
| 17524 | |
| 17525 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17526 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17527 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17528 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17529 | |
| 17530 | fi |
| 17531 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17532 | fi |
| 17533 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17534 | |
| 17535 | ipv6type=unknown |
| 17536 | ipv6lib=none |
| 17537 | ipv6trylibc=no |
| 17538 | |
| 17539 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17540 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 17541 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 17542 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 17543 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17544 | case $i in |
| 17545 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17546 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17547 | /* confdefs.h. */ |
| 17548 | _ACEOF |
| 17549 | cat confdefs.h >>conftest.$ac_ext |
| 17550 | cat >>conftest.$ac_ext <<_ACEOF |
| 17551 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17552 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17553 | #include <netinet/in.h> |
| 17554 | #ifdef IPV6_INRIA_VERSION |
| 17555 | yes |
| 17556 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17557 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17558 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17559 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17560 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17561 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 17562 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17563 | |
| 17564 | ;; |
| 17565 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17566 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17567 | /* confdefs.h. */ |
| 17568 | _ACEOF |
| 17569 | cat confdefs.h >>conftest.$ac_ext |
| 17570 | cat >>conftest.$ac_ext <<_ACEOF |
| 17571 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17572 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17573 | #include <netinet/in.h> |
| 17574 | #ifdef __KAME__ |
| 17575 | yes |
| 17576 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17577 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17578 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17579 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17580 | ipv6type=$i; |
| 17581 | ipv6lib=inet6 |
| 17582 | ipv6libdir=/usr/local/v6/lib |
| 17583 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17584 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 17585 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17586 | |
| 17587 | ;; |
| 17588 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17589 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17590 | /* confdefs.h. */ |
| 17591 | _ACEOF |
| 17592 | cat confdefs.h >>conftest.$ac_ext |
| 17593 | cat >>conftest.$ac_ext <<_ACEOF |
| 17594 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17595 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17596 | #include <features.h> |
| 17597 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 17598 | yes |
| 17599 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17600 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17602 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17603 | ipv6type=$i; |
| 17604 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17605 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 17606 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17607 | |
| 17608 | ;; |
| 17609 | linux-inet6) |
| 17610 | if test -d /usr/inet6; then |
| 17611 | ipv6type=$i |
| 17612 | ipv6lib=inet6 |
| 17613 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17614 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17615 | fi |
| 17616 | ;; |
| 17617 | solaris) |
| 17618 | if test -f /etc/netconfig; then |
| 17619 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 17620 | ipv6type=$i |
| 17621 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17622 | fi |
| 17623 | fi |
| 17624 | ;; |
| 17625 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17626 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17627 | /* confdefs.h. */ |
| 17628 | _ACEOF |
| 17629 | cat confdefs.h >>conftest.$ac_ext |
| 17630 | cat >>conftest.$ac_ext <<_ACEOF |
| 17631 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17632 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17633 | #include <sys/param.h> |
| 17634 | #ifdef _TOSHIBA_INET6 |
| 17635 | yes |
| 17636 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17637 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17638 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17639 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17640 | ipv6type=$i; |
| 17641 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17642 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17643 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 17644 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17645 | |
| 17646 | ;; |
| 17647 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17648 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17649 | /* confdefs.h. */ |
| 17650 | _ACEOF |
| 17651 | cat confdefs.h >>conftest.$ac_ext |
| 17652 | cat >>conftest.$ac_ext <<_ACEOF |
| 17653 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17654 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17655 | #include </usr/local/v6/include/sys/v6config.h> |
| 17656 | #ifdef __V6D__ |
| 17657 | yes |
| 17658 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17659 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17660 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17661 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17662 | ipv6type=$i; |
| 17663 | ipv6lib=v6; |
| 17664 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17665 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17666 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 17667 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17668 | |
| 17669 | ;; |
| 17670 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17671 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17672 | /* confdefs.h. */ |
| 17673 | _ACEOF |
| 17674 | cat confdefs.h >>conftest.$ac_ext |
| 17675 | cat >>conftest.$ac_ext <<_ACEOF |
| 17676 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17677 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17678 | #include <sys/param.h> |
| 17679 | #ifdef _ZETA_MINAMI_INET6 |
| 17680 | yes |
| 17681 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17682 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17683 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17684 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17685 | ipv6type=$i; |
| 17686 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17687 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17688 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 17689 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17690 | |
| 17691 | ;; |
| 17692 | esac |
| 17693 | if test "$ipv6type" != "unknown"; then |
| 17694 | break |
| 17695 | fi |
| 17696 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17697 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 17698 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17699 | fi |
| 17700 | |
| 17701 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 17702 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 17703 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 17704 | echo "using lib$ipv6lib" |
| 17705 | else |
| 17706 | if test $ipv6trylibc = "yes"; then |
| 17707 | echo "using libc" |
| 17708 | else |
| 17709 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 17710 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 17711 | echo 'ipv6 kit and compile beforehand.' |
| 17712 | exit 1 |
| 17713 | fi |
| 17714 | fi |
| 17715 | fi |
| 17716 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17717 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 17718 | echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17719 | cat >conftest.$ac_ext <<_ACEOF |
| 17720 | /* confdefs.h. */ |
| 17721 | _ACEOF |
| 17722 | cat confdefs.h >>conftest.$ac_ext |
| 17723 | cat >>conftest.$ac_ext <<_ACEOF |
| 17724 | /* end confdefs.h. */ |
| 17725 | #include <Carbon/Carbon.h> |
| 17726 | int |
| 17727 | main () |
| 17728 | { |
| 17729 | FSIORefNum fRef = 0 |
| 17730 | ; |
| 17731 | return 0; |
| 17732 | } |
| 17733 | _ACEOF |
| 17734 | rm -f conftest.$ac_objext |
| 17735 | if { (ac_try="$ac_compile" |
| 17736 | case "(($ac_try" in |
| 17737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17738 | *) ac_try_echo=$ac_try;; |
| 17739 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17741 | (eval "$ac_compile") 2>conftest.er1 |
| 17742 | ac_status=$? |
| 17743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17744 | rm -f conftest.er1 |
| 17745 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17747 | (exit $ac_status); } && { |
| 17748 | test -z "$ac_c_werror_flag" || |
| 17749 | test ! -s conftest.err |
| 17750 | } && test -s conftest.$ac_objext; then |
| 17751 | |
| 17752 | cat >>confdefs.h <<\_ACEOF |
| 17753 | #define HAVE_OSX105_SDK 1 |
| 17754 | _ACEOF |
| 17755 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17756 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17757 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17758 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17759 | echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17761 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17762 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17763 | echo "${ECHO_T}no" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17764 | |
| 17765 | fi |
| 17766 | |
| 17767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17768 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17769 | # Check for --with-doc-strings |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17770 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 17771 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17772 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17773 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17774 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17775 | withval=$with_doc_strings; |
| 17776 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17777 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17778 | |
| 17779 | if test -z "$with_doc_strings" |
| 17780 | then with_doc_strings="yes" |
| 17781 | fi |
| 17782 | if test "$with_doc_strings" != "no" |
| 17783 | then |
| 17784 | |
| 17785 | cat >>confdefs.h <<\_ACEOF |
| 17786 | #define WITH_DOC_STRINGS 1 |
| 17787 | _ACEOF |
| 17788 | |
| 17789 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17790 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 17791 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17792 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17793 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17794 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 17795 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17796 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17797 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17798 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17799 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17800 | if test "$withval" != no |
| 17801 | then |
| 17802 | |
| 17803 | cat >>confdefs.h <<\_ACEOF |
| 17804 | #define WITH_TSC 1 |
| 17805 | _ACEOF |
| 17806 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17807 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17808 | echo "${ECHO_T}yes" >&6; } |
| 17809 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17810 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17811 | fi |
| 17812 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17813 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17814 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17815 | fi |
| 17816 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17817 | |
| 17818 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17819 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 17820 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17821 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17822 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17823 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17824 | withval=$with_pymalloc; |
| 17825 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17826 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17827 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17828 | if test -z "$with_pymalloc" |
| 17829 | then with_pymalloc="yes" |
| 17830 | fi |
| 17831 | if test "$with_pymalloc" != "no" |
| 17832 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17833 | |
| 17834 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17835 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17836 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17837 | |
| 17838 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17839 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 17840 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17841 | |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 17842 | # Check for Valgrind support |
| 17843 | { echo "$as_me:$LINENO: checking for --with-valgrind" >&5 |
| 17844 | echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; } |
| 17845 | |
| 17846 | # Check whether --with-valgrind was given. |
| 17847 | if test "${with_valgrind+set}" = set; then |
| 17848 | withval=$with_valgrind; |
| 17849 | else |
| 17850 | with_valgrind=no |
| 17851 | fi |
| 17852 | |
| 17853 | { echo "$as_me:$LINENO: result: $with_valgrind" >&5 |
| 17854 | echo "${ECHO_T}$with_valgrind" >&6; } |
| 17855 | if test "$with_valgrind" != no; then |
| 17856 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17857 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17858 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17859 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17861 | fi |
| 17862 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17863 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17864 | else |
| 17865 | # Is the header compilable? |
| 17866 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5 |
| 17867 | echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; } |
| 17868 | cat >conftest.$ac_ext <<_ACEOF |
| 17869 | /* confdefs.h. */ |
| 17870 | _ACEOF |
| 17871 | cat confdefs.h >>conftest.$ac_ext |
| 17872 | cat >>conftest.$ac_ext <<_ACEOF |
| 17873 | /* end confdefs.h. */ |
| 17874 | $ac_includes_default |
| 17875 | #include <valgrind/valgrind.h> |
| 17876 | _ACEOF |
| 17877 | rm -f conftest.$ac_objext |
| 17878 | if { (ac_try="$ac_compile" |
| 17879 | case "(($ac_try" in |
| 17880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17881 | *) ac_try_echo=$ac_try;; |
| 17882 | esac |
| 17883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17884 | (eval "$ac_compile") 2>conftest.er1 |
| 17885 | ac_status=$? |
| 17886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17887 | rm -f conftest.er1 |
| 17888 | cat conftest.err >&5 |
| 17889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17890 | (exit $ac_status); } && { |
| 17891 | test -z "$ac_c_werror_flag" || |
| 17892 | test ! -s conftest.err |
| 17893 | } && test -s conftest.$ac_objext; then |
| 17894 | ac_header_compiler=yes |
| 17895 | else |
| 17896 | echo "$as_me: failed program was:" >&5 |
| 17897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17898 | |
| 17899 | ac_header_compiler=no |
| 17900 | fi |
| 17901 | |
| 17902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17903 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17904 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17905 | |
| 17906 | # Is the header present? |
| 17907 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5 |
| 17908 | echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; } |
| 17909 | cat >conftest.$ac_ext <<_ACEOF |
| 17910 | /* confdefs.h. */ |
| 17911 | _ACEOF |
| 17912 | cat confdefs.h >>conftest.$ac_ext |
| 17913 | cat >>conftest.$ac_ext <<_ACEOF |
| 17914 | /* end confdefs.h. */ |
| 17915 | #include <valgrind/valgrind.h> |
| 17916 | _ACEOF |
| 17917 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17918 | case "(($ac_try" in |
| 17919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17920 | *) ac_try_echo=$ac_try;; |
| 17921 | esac |
| 17922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17923 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17924 | ac_status=$? |
| 17925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17926 | rm -f conftest.er1 |
| 17927 | cat conftest.err >&5 |
| 17928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17929 | (exit $ac_status); } >/dev/null && { |
| 17930 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17931 | test ! -s conftest.err |
| 17932 | }; then |
| 17933 | ac_header_preproc=yes |
| 17934 | else |
| 17935 | echo "$as_me: failed program was:" >&5 |
| 17936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17937 | |
| 17938 | ac_header_preproc=no |
| 17939 | fi |
| 17940 | |
| 17941 | rm -f conftest.err conftest.$ac_ext |
| 17942 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17943 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17944 | |
| 17945 | # So? What about this header? |
| 17946 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17947 | yes:no: ) |
| 17948 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17949 | echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17950 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5 |
| 17951 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;} |
| 17952 | ac_header_preproc=yes |
| 17953 | ;; |
| 17954 | no:yes:* ) |
| 17955 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5 |
| 17956 | echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;} |
| 17957 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5 |
| 17958 | echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;} |
| 17959 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5 |
| 17960 | echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;} |
| 17961 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 17962 | echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17963 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5 |
| 17964 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;} |
| 17965 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5 |
| 17966 | echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;} |
| 17967 | ( cat <<\_ASBOX |
| 17968 | ## -------------------------------------- ## |
| 17969 | ## Report this to http://bugs.python.org/ ## |
| 17970 | ## -------------------------------------- ## |
| 17971 | _ASBOX |
| 17972 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17973 | ;; |
| 17974 | esac |
| 17975 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17976 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17977 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17979 | else |
| 17980 | ac_cv_header_valgrind_valgrind_h=$ac_header_preproc |
| 17981 | fi |
| 17982 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17983 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17984 | |
| 17985 | fi |
| 17986 | if test $ac_cv_header_valgrind_valgrind_h = yes; then |
| 17987 | |
| 17988 | cat >>confdefs.h <<\_ACEOF |
| 17989 | #define WITH_VALGRIND 1 |
| 17990 | _ACEOF |
| 17991 | |
| 17992 | else |
| 17993 | { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5 |
| 17994 | echo "$as_me: error: Valgrind support requested but headers not available" >&2;} |
| 17995 | { (exit 1); exit 1; }; } |
| 17996 | |
| 17997 | fi |
| 17998 | |
| 17999 | |
| 18000 | fi |
| 18001 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18002 | # Check for --with-wctype-functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18003 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 18004 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18005 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18006 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18007 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18008 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18009 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18010 | then |
| 18011 | |
| 18012 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18013 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18014 | _ACEOF |
| 18015 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18016 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18017 | echo "${ECHO_T}yes" >&6; } |
| 18018 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 18019 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18020 | fi |
| 18021 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18022 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18023 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18024 | fi |
| 18025 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18026 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18027 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18028 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 18029 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18030 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18031 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 18032 | # platforms, such as AIX, have dlopen(), but don't want to use it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18033 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18034 | for ac_func in dlopen |
| 18035 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18036 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18037 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18038 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18039 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18041 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18043 | /* confdefs.h. */ |
| 18044 | _ACEOF |
| 18045 | cat confdefs.h >>conftest.$ac_ext |
| 18046 | cat >>conftest.$ac_ext <<_ACEOF |
| 18047 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18048 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18049 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18050 | #define $ac_func innocuous_$ac_func |
| 18051 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18052 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18053 | which can conflict with char $ac_func (); below. |
| 18054 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18055 | <limits.h> exists even on freestanding compilers. */ |
| 18056 | |
| 18057 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18058 | # include <limits.h> |
| 18059 | #else |
| 18060 | # include <assert.h> |
| 18061 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18062 | |
| 18063 | #undef $ac_func |
| 18064 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18065 | /* Override any GCC internal prototype to avoid an error. |
| 18066 | Use char because int might match the return type of a GCC |
| 18067 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18068 | #ifdef __cplusplus |
| 18069 | extern "C" |
| 18070 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18071 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18072 | /* The GNU C library defines this for functions which it implements |
| 18073 | to always fail with ENOSYS. Some functions are actually named |
| 18074 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18075 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18076 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18077 | #endif |
| 18078 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18079 | int |
| 18080 | main () |
| 18081 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18082 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18083 | ; |
| 18084 | return 0; |
| 18085 | } |
| 18086 | _ACEOF |
| 18087 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18088 | if { (ac_try="$ac_link" |
| 18089 | case "(($ac_try" in |
| 18090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18091 | *) ac_try_echo=$ac_try;; |
| 18092 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18094 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18095 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18097 | rm -f conftest.er1 |
| 18098 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18100 | (exit $ac_status); } && { |
| 18101 | test -z "$ac_c_werror_flag" || |
| 18102 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18103 | } && test -s conftest$ac_exeext && |
| 18104 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18105 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18106 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18109 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18110 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18111 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18112 | |
| 18113 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18114 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18115 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18116 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18117 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18118 | echo "${ECHO_T}$ac_res" >&6; } |
| 18119 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18120 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18121 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18122 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18123 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18124 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18125 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18126 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18127 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18128 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 18129 | # loading of modules. |
| 18130 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18131 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 18132 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18133 | if test -z "$DYNLOADFILE" |
| 18134 | then |
| 18135 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 18136 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 18137 | if test "$ac_cv_func_dlopen" = yes |
| 18138 | then DYNLOADFILE="dynload_shlib.o" |
| 18139 | else DYNLOADFILE="dynload_aix.o" |
| 18140 | fi |
| 18141 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18142 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 18143 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 18144 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 18145 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 18146 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18147 | *) |
| 18148 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 18149 | # out any dynamic loading |
| 18150 | if test "$ac_cv_func_dlopen" = yes |
| 18151 | then DYNLOADFILE="dynload_shlib.o" |
| 18152 | else DYNLOADFILE="dynload_stub.o" |
| 18153 | fi |
| 18154 | ;; |
| 18155 | esac |
| 18156 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18157 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 18158 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18159 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 18160 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18161 | |
| 18162 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18163 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18164 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18165 | |
| 18166 | fi |
| 18167 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18168 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 18169 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18170 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18171 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 18172 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18173 | if test -z "$MACHDEP_OBJS" |
| 18174 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 18175 | MACHDEP_OBJS=$extra_machdep_objs |
| 18176 | else |
| 18177 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18178 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18179 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 18180 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18181 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18182 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18183 | |
| 18184 | |
| 18185 | |
| 18186 | |
| 18187 | |
| 18188 | |
| 18189 | |
| 18190 | |
| 18191 | |
| 18192 | |
| 18193 | |
| 18194 | |
| 18195 | |
| 18196 | |
| 18197 | |
| 18198 | |
| 18199 | |
| 18200 | |
| 18201 | |
| 18202 | |
| 18203 | |
| 18204 | |
| 18205 | |
| 18206 | |
| 18207 | |
| 18208 | |
| 18209 | |
| 18210 | |
| 18211 | |
| 18212 | |
| 18213 | |
| 18214 | |
| 18215 | |
| 18216 | |
| 18217 | |
| 18218 | |
| 18219 | |
| 18220 | |
| 18221 | |
| 18222 | |
| 18223 | |
| 18224 | |
| 18225 | |
| 18226 | |
| 18227 | |
| 18228 | |
| 18229 | |
| 18230 | |
| 18231 | |
| 18232 | |
| 18233 | |
| 18234 | |
| 18235 | |
| 18236 | |
| 18237 | |
| 18238 | |
| 18239 | |
| 18240 | |
| 18241 | |
| 18242 | |
| 18243 | |
| 18244 | |
| 18245 | |
| 18246 | |
| 18247 | |
| 18248 | |
| 18249 | |
| 18250 | |
| 18251 | |
| 18252 | |
| 18253 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18254 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 18255 | |
| 18256 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18257 | |
| 18258 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 18259 | |
| 18260 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 18261 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18262 | |
| 18263 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18264 | |
| 18265 | |
| 18266 | |
| 18267 | |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18268 | |
| 18269 | |
| 18270 | |
| 18271 | |
| 18272 | |
| 18273 | |
| 18274 | |
| 18275 | |
| 18276 | |
| 18277 | |
| 18278 | |
| 18279 | |
| 18280 | |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18281 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18282 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 18283 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 18284 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18285 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18286 | initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 18287 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 18288 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18289 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 18290 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 18291 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18292 | setlocale setregid setreuid setresuid setresgid \ |
| 18293 | setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 18294 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 18295 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18296 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18297 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18298 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18299 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18300 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18301 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18305 | /* confdefs.h. */ |
| 18306 | _ACEOF |
| 18307 | cat confdefs.h >>conftest.$ac_ext |
| 18308 | cat >>conftest.$ac_ext <<_ACEOF |
| 18309 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18310 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18311 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18312 | #define $ac_func innocuous_$ac_func |
| 18313 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18314 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18315 | which can conflict with char $ac_func (); below. |
| 18316 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18317 | <limits.h> exists even on freestanding compilers. */ |
| 18318 | |
| 18319 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18320 | # include <limits.h> |
| 18321 | #else |
| 18322 | # include <assert.h> |
| 18323 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18324 | |
| 18325 | #undef $ac_func |
| 18326 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18327 | /* Override any GCC internal prototype to avoid an error. |
| 18328 | Use char because int might match the return type of a GCC |
| 18329 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18330 | #ifdef __cplusplus |
| 18331 | extern "C" |
| 18332 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18333 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18334 | /* The GNU C library defines this for functions which it implements |
| 18335 | to always fail with ENOSYS. Some functions are actually named |
| 18336 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18337 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18338 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18339 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18340 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18341 | int |
| 18342 | main () |
| 18343 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18344 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18345 | ; |
| 18346 | return 0; |
| 18347 | } |
| 18348 | _ACEOF |
| 18349 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18350 | if { (ac_try="$ac_link" |
| 18351 | case "(($ac_try" in |
| 18352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18353 | *) ac_try_echo=$ac_try;; |
| 18354 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18356 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18357 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18359 | rm -f conftest.er1 |
| 18360 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18362 | (exit $ac_status); } && { |
| 18363 | test -z "$ac_c_werror_flag" || |
| 18364 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18365 | } && test -s conftest$ac_exeext && |
| 18366 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18367 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18368 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18369 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18371 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18372 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18373 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18374 | |
| 18375 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18376 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18377 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18378 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18379 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18380 | echo "${ECHO_T}$ac_res" >&6; } |
| 18381 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18382 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18383 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18384 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18385 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18386 | fi |
| 18387 | done |
| 18388 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18389 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18390 | # For some functions, having a definition is not sufficient, since |
| 18391 | # we want to take their address. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18392 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 18393 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18394 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18395 | /* confdefs.h. */ |
| 18396 | _ACEOF |
| 18397 | cat confdefs.h >>conftest.$ac_ext |
| 18398 | cat >>conftest.$ac_ext <<_ACEOF |
| 18399 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18400 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18401 | int |
| 18402 | main () |
| 18403 | { |
| 18404 | void *x=chroot |
| 18405 | ; |
| 18406 | return 0; |
| 18407 | } |
| 18408 | _ACEOF |
| 18409 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18410 | if { (ac_try="$ac_compile" |
| 18411 | case "(($ac_try" in |
| 18412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18413 | *) ac_try_echo=$ac_try;; |
| 18414 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18416 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18417 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18419 | rm -f conftest.er1 |
| 18420 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18422 | (exit $ac_status); } && { |
| 18423 | test -z "$ac_c_werror_flag" || |
| 18424 | test ! -s conftest.err |
| 18425 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18426 | |
| 18427 | cat >>confdefs.h <<\_ACEOF |
| 18428 | #define HAVE_CHROOT 1 |
| 18429 | _ACEOF |
| 18430 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18431 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18432 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18433 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18434 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18436 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18437 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18438 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18439 | |
| 18440 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18441 | |
| 18442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18443 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 18444 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18445 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18446 | /* confdefs.h. */ |
| 18447 | _ACEOF |
| 18448 | cat confdefs.h >>conftest.$ac_ext |
| 18449 | cat >>conftest.$ac_ext <<_ACEOF |
| 18450 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18451 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18452 | int |
| 18453 | main () |
| 18454 | { |
| 18455 | void *x=link |
| 18456 | ; |
| 18457 | return 0; |
| 18458 | } |
| 18459 | _ACEOF |
| 18460 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18461 | if { (ac_try="$ac_compile" |
| 18462 | case "(($ac_try" in |
| 18463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18464 | *) ac_try_echo=$ac_try;; |
| 18465 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18467 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18468 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18470 | rm -f conftest.er1 |
| 18471 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18473 | (exit $ac_status); } && { |
| 18474 | test -z "$ac_c_werror_flag" || |
| 18475 | test ! -s conftest.err |
| 18476 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18477 | |
| 18478 | cat >>confdefs.h <<\_ACEOF |
| 18479 | #define HAVE_LINK 1 |
| 18480 | _ACEOF |
| 18481 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18482 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18483 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18484 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18485 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18487 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18488 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18489 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18490 | |
| 18491 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18492 | |
| 18493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18494 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 18495 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18496 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18497 | /* confdefs.h. */ |
| 18498 | _ACEOF |
| 18499 | cat confdefs.h >>conftest.$ac_ext |
| 18500 | cat >>conftest.$ac_ext <<_ACEOF |
| 18501 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18502 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18503 | int |
| 18504 | main () |
| 18505 | { |
| 18506 | void *x=symlink |
| 18507 | ; |
| 18508 | return 0; |
| 18509 | } |
| 18510 | _ACEOF |
| 18511 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18512 | if { (ac_try="$ac_compile" |
| 18513 | case "(($ac_try" in |
| 18514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18515 | *) ac_try_echo=$ac_try;; |
| 18516 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18518 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18519 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18521 | rm -f conftest.er1 |
| 18522 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18524 | (exit $ac_status); } && { |
| 18525 | test -z "$ac_c_werror_flag" || |
| 18526 | test ! -s conftest.err |
| 18527 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18528 | |
| 18529 | cat >>confdefs.h <<\_ACEOF |
| 18530 | #define HAVE_SYMLINK 1 |
| 18531 | _ACEOF |
| 18532 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18533 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18534 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18535 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18538 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18539 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18540 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18541 | |
| 18542 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18543 | |
| 18544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18545 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 18546 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18547 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18548 | /* confdefs.h. */ |
| 18549 | _ACEOF |
| 18550 | cat confdefs.h >>conftest.$ac_ext |
| 18551 | cat >>conftest.$ac_ext <<_ACEOF |
| 18552 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18553 | #include <unistd.h> |
| 18554 | int |
| 18555 | main () |
| 18556 | { |
| 18557 | void *x=fchdir |
| 18558 | ; |
| 18559 | return 0; |
| 18560 | } |
| 18561 | _ACEOF |
| 18562 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18563 | if { (ac_try="$ac_compile" |
| 18564 | case "(($ac_try" in |
| 18565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18566 | *) ac_try_echo=$ac_try;; |
| 18567 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18569 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18570 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18572 | rm -f conftest.er1 |
| 18573 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18575 | (exit $ac_status); } && { |
| 18576 | test -z "$ac_c_werror_flag" || |
| 18577 | test ! -s conftest.err |
| 18578 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18579 | |
| 18580 | cat >>confdefs.h <<\_ACEOF |
| 18581 | #define HAVE_FCHDIR 1 |
| 18582 | _ACEOF |
| 18583 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18584 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18585 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18586 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18589 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18590 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18591 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18592 | |
| 18593 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18594 | |
| 18595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18596 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 18597 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18598 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18599 | /* confdefs.h. */ |
| 18600 | _ACEOF |
| 18601 | cat confdefs.h >>conftest.$ac_ext |
| 18602 | cat >>conftest.$ac_ext <<_ACEOF |
| 18603 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18604 | #include <unistd.h> |
| 18605 | int |
| 18606 | main () |
| 18607 | { |
| 18608 | void *x=fsync |
| 18609 | ; |
| 18610 | return 0; |
| 18611 | } |
| 18612 | _ACEOF |
| 18613 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18614 | if { (ac_try="$ac_compile" |
| 18615 | case "(($ac_try" in |
| 18616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18617 | *) ac_try_echo=$ac_try;; |
| 18618 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18620 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18621 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18623 | rm -f conftest.er1 |
| 18624 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18626 | (exit $ac_status); } && { |
| 18627 | test -z "$ac_c_werror_flag" || |
| 18628 | test ! -s conftest.err |
| 18629 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18630 | |
| 18631 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18632 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18633 | _ACEOF |
| 18634 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18635 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18636 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18637 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18638 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18640 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18641 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18642 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18643 | |
| 18644 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18645 | |
| 18646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18647 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 18648 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18649 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18650 | /* confdefs.h. */ |
| 18651 | _ACEOF |
| 18652 | cat confdefs.h >>conftest.$ac_ext |
| 18653 | cat >>conftest.$ac_ext <<_ACEOF |
| 18654 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18655 | #include <unistd.h> |
| 18656 | int |
| 18657 | main () |
| 18658 | { |
| 18659 | void *x=fdatasync |
| 18660 | ; |
| 18661 | return 0; |
| 18662 | } |
| 18663 | _ACEOF |
| 18664 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18665 | if { (ac_try="$ac_compile" |
| 18666 | case "(($ac_try" in |
| 18667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18668 | *) ac_try_echo=$ac_try;; |
| 18669 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18671 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18672 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18674 | rm -f conftest.er1 |
| 18675 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18677 | (exit $ac_status); } && { |
| 18678 | test -z "$ac_c_werror_flag" || |
| 18679 | test ! -s conftest.err |
| 18680 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18681 | |
| 18682 | cat >>confdefs.h <<\_ACEOF |
| 18683 | #define HAVE_FDATASYNC 1 |
| 18684 | _ACEOF |
| 18685 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18686 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18687 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18688 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18689 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18691 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18692 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18693 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18694 | |
| 18695 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18696 | |
| 18697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18698 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 18699 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18700 | cat >conftest.$ac_ext <<_ACEOF |
| 18701 | /* confdefs.h. */ |
| 18702 | _ACEOF |
| 18703 | cat confdefs.h >>conftest.$ac_ext |
| 18704 | cat >>conftest.$ac_ext <<_ACEOF |
| 18705 | /* end confdefs.h. */ |
| 18706 | #include <sys/epoll.h> |
| 18707 | int |
| 18708 | main () |
| 18709 | { |
| 18710 | void *x=epoll_create |
| 18711 | ; |
| 18712 | return 0; |
| 18713 | } |
| 18714 | _ACEOF |
| 18715 | rm -f conftest.$ac_objext |
| 18716 | if { (ac_try="$ac_compile" |
| 18717 | case "(($ac_try" in |
| 18718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18719 | *) ac_try_echo=$ac_try;; |
| 18720 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18722 | (eval "$ac_compile") 2>conftest.er1 |
| 18723 | ac_status=$? |
| 18724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18725 | rm -f conftest.er1 |
| 18726 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18728 | (exit $ac_status); } && { |
| 18729 | test -z "$ac_c_werror_flag" || |
| 18730 | test ! -s conftest.err |
| 18731 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18732 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18733 | cat >>confdefs.h <<\_ACEOF |
| 18734 | #define HAVE_EPOLL 1 |
| 18735 | _ACEOF |
| 18736 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18737 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18738 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18739 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18740 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18742 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18743 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18744 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18745 | |
| 18746 | fi |
| 18747 | |
| 18748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18749 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 18750 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18751 | cat >conftest.$ac_ext <<_ACEOF |
| 18752 | /* confdefs.h. */ |
| 18753 | _ACEOF |
| 18754 | cat confdefs.h >>conftest.$ac_ext |
| 18755 | cat >>conftest.$ac_ext <<_ACEOF |
| 18756 | /* end confdefs.h. */ |
| 18757 | |
| 18758 | #include <sys/types.h> |
| 18759 | #include <sys/event.h> |
| 18760 | |
| 18761 | int |
| 18762 | main () |
| 18763 | { |
| 18764 | int x=kqueue() |
| 18765 | ; |
| 18766 | return 0; |
| 18767 | } |
| 18768 | _ACEOF |
| 18769 | rm -f conftest.$ac_objext |
| 18770 | if { (ac_try="$ac_compile" |
| 18771 | case "(($ac_try" in |
| 18772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18773 | *) ac_try_echo=$ac_try;; |
| 18774 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18776 | (eval "$ac_compile") 2>conftest.er1 |
| 18777 | ac_status=$? |
| 18778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18779 | rm -f conftest.er1 |
| 18780 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18782 | (exit $ac_status); } && { |
| 18783 | test -z "$ac_c_werror_flag" || |
| 18784 | test ! -s conftest.err |
| 18785 | } && test -s conftest.$ac_objext; then |
| 18786 | |
| 18787 | cat >>confdefs.h <<\_ACEOF |
| 18788 | #define HAVE_KQUEUE 1 |
| 18789 | _ACEOF |
| 18790 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18791 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18792 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18793 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18794 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18796 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18797 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18798 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18799 | |
| 18800 | fi |
| 18801 | |
| 18802 | 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] | 18803 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 18804 | # functions ctermid_r, setgroups in the library, but no prototype |
| 18805 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 18806 | # address to avoid compiler warnings and potential miscompilations |
| 18807 | # because of the missing prototypes. |
| 18808 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18809 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 18810 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18811 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18812 | /* confdefs.h. */ |
| 18813 | _ACEOF |
| 18814 | cat confdefs.h >>conftest.$ac_ext |
| 18815 | cat >>conftest.$ac_ext <<_ACEOF |
| 18816 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18817 | |
| 18818 | #include "confdefs.h" |
| 18819 | #include <stdio.h> |
| 18820 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18821 | int |
| 18822 | main () |
| 18823 | { |
| 18824 | void* p = ctermid_r |
| 18825 | ; |
| 18826 | return 0; |
| 18827 | } |
| 18828 | _ACEOF |
| 18829 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18830 | if { (ac_try="$ac_compile" |
| 18831 | case "(($ac_try" in |
| 18832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18833 | *) ac_try_echo=$ac_try;; |
| 18834 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18836 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18837 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18839 | rm -f conftest.er1 |
| 18840 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18842 | (exit $ac_status); } && { |
| 18843 | test -z "$ac_c_werror_flag" || |
| 18844 | test ! -s conftest.err |
| 18845 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18846 | |
| 18847 | cat >>confdefs.h <<\_ACEOF |
| 18848 | #define HAVE_CTERMID_R 1 |
| 18849 | _ACEOF |
| 18850 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18851 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18852 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18853 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18854 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18856 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18857 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18858 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18859 | |
| 18860 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18861 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18863 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18864 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 18865 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18866 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18867 | /* confdefs.h. */ |
| 18868 | _ACEOF |
| 18869 | cat confdefs.h >>conftest.$ac_ext |
| 18870 | cat >>conftest.$ac_ext <<_ACEOF |
| 18871 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18872 | |
| 18873 | #include "confdefs.h" |
| 18874 | #include <sys/file.h> |
| 18875 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18876 | int |
| 18877 | main () |
| 18878 | { |
| 18879 | void* p = flock |
| 18880 | ; |
| 18881 | return 0; |
| 18882 | } |
| 18883 | _ACEOF |
| 18884 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18885 | if { (ac_try="$ac_compile" |
| 18886 | case "(($ac_try" in |
| 18887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18888 | *) ac_try_echo=$ac_try;; |
| 18889 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18891 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18892 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18894 | rm -f conftest.er1 |
| 18895 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18897 | (exit $ac_status); } && { |
| 18898 | test -z "$ac_c_werror_flag" || |
| 18899 | test ! -s conftest.err |
| 18900 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18901 | |
| 18902 | cat >>confdefs.h <<\_ACEOF |
| 18903 | #define HAVE_FLOCK 1 |
| 18904 | _ACEOF |
| 18905 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18906 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18907 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18908 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18909 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18911 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18912 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18913 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18914 | |
| 18915 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18916 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18918 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18919 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 18920 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18921 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18922 | /* confdefs.h. */ |
| 18923 | _ACEOF |
| 18924 | cat confdefs.h >>conftest.$ac_ext |
| 18925 | cat >>conftest.$ac_ext <<_ACEOF |
| 18926 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18927 | |
| 18928 | #include "confdefs.h" |
| 18929 | #include <unistd.h> |
| 18930 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18931 | int |
| 18932 | main () |
| 18933 | { |
| 18934 | void* p = getpagesize |
| 18935 | ; |
| 18936 | return 0; |
| 18937 | } |
| 18938 | _ACEOF |
| 18939 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18940 | if { (ac_try="$ac_compile" |
| 18941 | case "(($ac_try" in |
| 18942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18943 | *) ac_try_echo=$ac_try;; |
| 18944 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18946 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18947 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18949 | rm -f conftest.er1 |
| 18950 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18952 | (exit $ac_status); } && { |
| 18953 | test -z "$ac_c_werror_flag" || |
| 18954 | test ! -s conftest.err |
| 18955 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18956 | |
| 18957 | cat >>confdefs.h <<\_ACEOF |
| 18958 | #define HAVE_GETPAGESIZE 1 |
| 18959 | _ACEOF |
| 18960 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18961 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18962 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18963 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18966 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18967 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18968 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18969 | |
| 18970 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18971 | |
| 18972 | 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] | 18973 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18974 | for ac_prog in true |
| 18975 | do |
| 18976 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18977 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18978 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18980 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18982 | else |
| 18983 | if test -n "$TRUE"; then |
| 18984 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 18985 | else |
| 18986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18987 | for as_dir in $PATH |
| 18988 | do |
| 18989 | IFS=$as_save_IFS |
| 18990 | test -z "$as_dir" && as_dir=. |
| 18991 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18993 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18995 | break 2 |
| 18996 | fi |
| 18997 | done |
| 18998 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18999 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19000 | |
| 19001 | fi |
| 19002 | fi |
| 19003 | TRUE=$ac_cv_prog_TRUE |
| 19004 | if test -n "$TRUE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19005 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 19006 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19007 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19008 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19009 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19010 | fi |
| 19011 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19012 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19013 | test -n "$TRUE" && break |
| 19014 | done |
| 19015 | test -n "$TRUE" || TRUE="/bin/true" |
| 19016 | |
| 19017 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19018 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 19019 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19020 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19022 | else |
| 19023 | ac_check_lib_save_LIBS=$LIBS |
| 19024 | LIBS="-lc $LIBS" |
| 19025 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19026 | /* confdefs.h. */ |
| 19027 | _ACEOF |
| 19028 | cat confdefs.h >>conftest.$ac_ext |
| 19029 | cat >>conftest.$ac_ext <<_ACEOF |
| 19030 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19031 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19032 | /* Override any GCC internal prototype to avoid an error. |
| 19033 | Use char because int might match the return type of a GCC |
| 19034 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19035 | #ifdef __cplusplus |
| 19036 | extern "C" |
| 19037 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19038 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19039 | int |
| 19040 | main () |
| 19041 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19042 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19043 | ; |
| 19044 | return 0; |
| 19045 | } |
| 19046 | _ACEOF |
| 19047 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19048 | if { (ac_try="$ac_link" |
| 19049 | case "(($ac_try" in |
| 19050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19051 | *) ac_try_echo=$ac_try;; |
| 19052 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19054 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19055 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19057 | rm -f conftest.er1 |
| 19058 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19060 | (exit $ac_status); } && { |
| 19061 | test -z "$ac_c_werror_flag" || |
| 19062 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19063 | } && test -s conftest$ac_exeext && |
| 19064 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19065 | ac_cv_lib_c_inet_aton=yes |
| 19066 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19067 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19069 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19070 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19071 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19072 | |
| 19073 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19074 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19075 | LIBS=$ac_check_lib_save_LIBS |
| 19076 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19077 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 19078 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 19079 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19080 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19081 | else |
| 19082 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19083 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 19084 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19085 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19087 | else |
| 19088 | ac_check_lib_save_LIBS=$LIBS |
| 19089 | LIBS="-lresolv $LIBS" |
| 19090 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19091 | /* confdefs.h. */ |
| 19092 | _ACEOF |
| 19093 | cat confdefs.h >>conftest.$ac_ext |
| 19094 | cat >>conftest.$ac_ext <<_ACEOF |
| 19095 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19096 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19097 | /* Override any GCC internal prototype to avoid an error. |
| 19098 | Use char because int might match the return type of a GCC |
| 19099 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19100 | #ifdef __cplusplus |
| 19101 | extern "C" |
| 19102 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19103 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19104 | int |
| 19105 | main () |
| 19106 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19107 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19108 | ; |
| 19109 | return 0; |
| 19110 | } |
| 19111 | _ACEOF |
| 19112 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19113 | if { (ac_try="$ac_link" |
| 19114 | case "(($ac_try" in |
| 19115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19116 | *) ac_try_echo=$ac_try;; |
| 19117 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19119 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19120 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19122 | rm -f conftest.er1 |
| 19123 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19125 | (exit $ac_status); } && { |
| 19126 | test -z "$ac_c_werror_flag" || |
| 19127 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19128 | } && test -s conftest$ac_exeext && |
| 19129 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19130 | ac_cv_lib_resolv_inet_aton=yes |
| 19131 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19132 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19134 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19135 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19136 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19137 | |
| 19138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19139 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19140 | LIBS=$ac_check_lib_save_LIBS |
| 19141 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19142 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 19143 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 19144 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19145 | cat >>confdefs.h <<_ACEOF |
| 19146 | #define HAVE_LIBRESOLV 1 |
| 19147 | _ACEOF |
| 19148 | |
| 19149 | LIBS="-lresolv $LIBS" |
| 19150 | |
| 19151 | fi |
| 19152 | |
| 19153 | |
| 19154 | fi |
| 19155 | |
| 19156 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19157 | # On Tru64, chflags seems to be present, but calling it will |
| 19158 | # exit Python |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19159 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19160 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19161 | if test "${ac_cv_have_chflags+set}" = set; then |
| 19162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19163 | else |
| 19164 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19165 | ac_cv_have_chflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19166 | else |
| 19167 | cat >conftest.$ac_ext <<_ACEOF |
| 19168 | /* confdefs.h. */ |
| 19169 | _ACEOF |
| 19170 | cat confdefs.h >>conftest.$ac_ext |
| 19171 | cat >>conftest.$ac_ext <<_ACEOF |
| 19172 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19173 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19174 | #include <sys/stat.h> |
| 19175 | #include <unistd.h> |
| 19176 | int main(int argc, char*argv[]) |
| 19177 | { |
| 19178 | if(chflags(argv[0], 0) != 0) |
| 19179 | return 1; |
| 19180 | return 0; |
| 19181 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19182 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19183 | _ACEOF |
| 19184 | rm -f conftest$ac_exeext |
| 19185 | if { (ac_try="$ac_link" |
| 19186 | case "(($ac_try" in |
| 19187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19188 | *) ac_try_echo=$ac_try;; |
| 19189 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19191 | (eval "$ac_link") 2>&5 |
| 19192 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19194 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19195 | { (case "(($ac_try" in |
| 19196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19197 | *) ac_try_echo=$ac_try;; |
| 19198 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19200 | (eval "$ac_try") 2>&5 |
| 19201 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19203 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19204 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19205 | else |
| 19206 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19207 | echo "$as_me: failed program was:" >&5 |
| 19208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19209 | |
| 19210 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19211 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19212 | fi |
| 19213 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 19214 | fi |
| 19215 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19216 | |
| 19217 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19218 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19219 | { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5 |
| 19220 | echo "${ECHO_T}$ac_cv_have_chflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19221 | if test "$ac_cv_have_chflags" = cross ; then |
| 19222 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19223 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
| 19224 | if test "${ac_cv_func_chflags+set}" = set; then |
| 19225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19226 | else |
| 19227 | cat >conftest.$ac_ext <<_ACEOF |
| 19228 | /* confdefs.h. */ |
| 19229 | _ACEOF |
| 19230 | cat confdefs.h >>conftest.$ac_ext |
| 19231 | cat >>conftest.$ac_ext <<_ACEOF |
| 19232 | /* end confdefs.h. */ |
| 19233 | /* Define chflags to an innocuous variant, in case <limits.h> declares chflags. |
| 19234 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19235 | #define chflags innocuous_chflags |
| 19236 | |
| 19237 | /* System header to define __stub macros and hopefully few prototypes, |
| 19238 | which can conflict with char chflags (); below. |
| 19239 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19240 | <limits.h> exists even on freestanding compilers. */ |
| 19241 | |
| 19242 | #ifdef __STDC__ |
| 19243 | # include <limits.h> |
| 19244 | #else |
| 19245 | # include <assert.h> |
| 19246 | #endif |
| 19247 | |
| 19248 | #undef chflags |
| 19249 | |
| 19250 | /* Override any GCC internal prototype to avoid an error. |
| 19251 | Use char because int might match the return type of a GCC |
| 19252 | builtin and then its argument prototype would still apply. */ |
| 19253 | #ifdef __cplusplus |
| 19254 | extern "C" |
| 19255 | #endif |
| 19256 | char chflags (); |
| 19257 | /* The GNU C library defines this for functions which it implements |
| 19258 | to always fail with ENOSYS. Some functions are actually named |
| 19259 | something starting with __ and the normal name is an alias. */ |
| 19260 | #if defined __stub_chflags || defined __stub___chflags |
| 19261 | choke me |
| 19262 | #endif |
| 19263 | |
| 19264 | int |
| 19265 | main () |
| 19266 | { |
| 19267 | return chflags (); |
| 19268 | ; |
| 19269 | return 0; |
| 19270 | } |
| 19271 | _ACEOF |
| 19272 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19273 | if { (ac_try="$ac_link" |
| 19274 | case "(($ac_try" in |
| 19275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19276 | *) ac_try_echo=$ac_try;; |
| 19277 | esac |
| 19278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19279 | (eval "$ac_link") 2>conftest.er1 |
| 19280 | ac_status=$? |
| 19281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19282 | rm -f conftest.er1 |
| 19283 | cat conftest.err >&5 |
| 19284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19285 | (exit $ac_status); } && { |
| 19286 | test -z "$ac_c_werror_flag" || |
| 19287 | test ! -s conftest.err |
| 19288 | } && test -s conftest$ac_exeext && |
| 19289 | $as_test_x conftest$ac_exeext; then |
| 19290 | ac_cv_func_chflags=yes |
| 19291 | else |
| 19292 | echo "$as_me: failed program was:" >&5 |
| 19293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19294 | |
| 19295 | ac_cv_func_chflags=no |
| 19296 | fi |
| 19297 | |
| 19298 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19299 | conftest$ac_exeext conftest.$ac_ext |
| 19300 | fi |
| 19301 | { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5 |
| 19302 | echo "${ECHO_T}$ac_cv_func_chflags" >&6; } |
| 19303 | if test $ac_cv_func_chflags = yes; then |
| 19304 | ac_cv_have_chflags="yes" |
| 19305 | else |
| 19306 | ac_cv_have_chflags="no" |
| 19307 | fi |
| 19308 | |
| 19309 | fi |
| 19310 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19311 | |
| 19312 | cat >>confdefs.h <<\_ACEOF |
| 19313 | #define HAVE_CHFLAGS 1 |
| 19314 | _ACEOF |
| 19315 | |
| 19316 | fi |
| 19317 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19318 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19319 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19320 | if test "${ac_cv_have_lchflags+set}" = set; then |
| 19321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19322 | else |
| 19323 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19324 | ac_cv_have_lchflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19325 | else |
| 19326 | cat >conftest.$ac_ext <<_ACEOF |
| 19327 | /* confdefs.h. */ |
| 19328 | _ACEOF |
| 19329 | cat confdefs.h >>conftest.$ac_ext |
| 19330 | cat >>conftest.$ac_ext <<_ACEOF |
| 19331 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19332 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19333 | #include <sys/stat.h> |
| 19334 | #include <unistd.h> |
| 19335 | int main(int argc, char*argv[]) |
| 19336 | { |
| 19337 | if(lchflags(argv[0], 0) != 0) |
| 19338 | return 1; |
| 19339 | return 0; |
| 19340 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19341 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19342 | _ACEOF |
| 19343 | rm -f conftest$ac_exeext |
| 19344 | if { (ac_try="$ac_link" |
| 19345 | case "(($ac_try" in |
| 19346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19347 | *) ac_try_echo=$ac_try;; |
| 19348 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19350 | (eval "$ac_link") 2>&5 |
| 19351 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19353 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19354 | { (case "(($ac_try" in |
| 19355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19356 | *) ac_try_echo=$ac_try;; |
| 19357 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19359 | (eval "$ac_try") 2>&5 |
| 19360 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19362 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19363 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19364 | else |
| 19365 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19366 | echo "$as_me: failed program was:" >&5 |
| 19367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19368 | |
| 19369 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19370 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19371 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19372 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19373 | fi |
| 19374 | |
| 19375 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19376 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19377 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19378 | { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5 |
| 19379 | echo "${ECHO_T}$ac_cv_have_lchflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19380 | if test "$ac_cv_have_lchflags" = cross ; then |
| 19381 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19382 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
| 19383 | if test "${ac_cv_func_lchflags+set}" = set; then |
| 19384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19385 | else |
| 19386 | cat >conftest.$ac_ext <<_ACEOF |
| 19387 | /* confdefs.h. */ |
| 19388 | _ACEOF |
| 19389 | cat confdefs.h >>conftest.$ac_ext |
| 19390 | cat >>conftest.$ac_ext <<_ACEOF |
| 19391 | /* end confdefs.h. */ |
| 19392 | /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags. |
| 19393 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19394 | #define lchflags innocuous_lchflags |
| 19395 | |
| 19396 | /* System header to define __stub macros and hopefully few prototypes, |
| 19397 | which can conflict with char lchflags (); below. |
| 19398 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19399 | <limits.h> exists even on freestanding compilers. */ |
| 19400 | |
| 19401 | #ifdef __STDC__ |
| 19402 | # include <limits.h> |
| 19403 | #else |
| 19404 | # include <assert.h> |
| 19405 | #endif |
| 19406 | |
| 19407 | #undef lchflags |
| 19408 | |
| 19409 | /* Override any GCC internal prototype to avoid an error. |
| 19410 | Use char because int might match the return type of a GCC |
| 19411 | builtin and then its argument prototype would still apply. */ |
| 19412 | #ifdef __cplusplus |
| 19413 | extern "C" |
| 19414 | #endif |
| 19415 | char lchflags (); |
| 19416 | /* The GNU C library defines this for functions which it implements |
| 19417 | to always fail with ENOSYS. Some functions are actually named |
| 19418 | something starting with __ and the normal name is an alias. */ |
| 19419 | #if defined __stub_lchflags || defined __stub___lchflags |
| 19420 | choke me |
| 19421 | #endif |
| 19422 | |
| 19423 | int |
| 19424 | main () |
| 19425 | { |
| 19426 | return lchflags (); |
| 19427 | ; |
| 19428 | return 0; |
| 19429 | } |
| 19430 | _ACEOF |
| 19431 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19432 | if { (ac_try="$ac_link" |
| 19433 | case "(($ac_try" in |
| 19434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19435 | *) ac_try_echo=$ac_try;; |
| 19436 | esac |
| 19437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19438 | (eval "$ac_link") 2>conftest.er1 |
| 19439 | ac_status=$? |
| 19440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19441 | rm -f conftest.er1 |
| 19442 | cat conftest.err >&5 |
| 19443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19444 | (exit $ac_status); } && { |
| 19445 | test -z "$ac_c_werror_flag" || |
| 19446 | test ! -s conftest.err |
| 19447 | } && test -s conftest$ac_exeext && |
| 19448 | $as_test_x conftest$ac_exeext; then |
| 19449 | ac_cv_func_lchflags=yes |
| 19450 | else |
| 19451 | echo "$as_me: failed program was:" >&5 |
| 19452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19453 | |
| 19454 | ac_cv_func_lchflags=no |
| 19455 | fi |
| 19456 | |
| 19457 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19458 | conftest$ac_exeext conftest.$ac_ext |
| 19459 | fi |
| 19460 | { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5 |
| 19461 | echo "${ECHO_T}$ac_cv_func_lchflags" >&6; } |
| 19462 | if test $ac_cv_func_lchflags = yes; then |
| 19463 | ac_cv_have_lchflags="yes" |
| 19464 | else |
| 19465 | ac_cv_have_lchflags="no" |
| 19466 | fi |
| 19467 | |
| 19468 | fi |
| 19469 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19470 | |
| 19471 | cat >>confdefs.h <<\_ACEOF |
| 19472 | #define HAVE_LCHFLAGS 1 |
| 19473 | _ACEOF |
| 19474 | |
| 19475 | fi |
| 19476 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19477 | case $ac_sys_system/$ac_sys_release in |
| 19478 | Darwin/*) |
| 19479 | _CUR_CFLAGS="${CFLAGS}" |
| 19480 | _CUR_LDFLAGS="${LDFLAGS}" |
| 19481 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 19482 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 19483 | ;; |
| 19484 | esac |
| 19485 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19486 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 19487 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19488 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19490 | else |
| 19491 | ac_check_lib_save_LIBS=$LIBS |
| 19492 | LIBS="-lz $LIBS" |
| 19493 | cat >conftest.$ac_ext <<_ACEOF |
| 19494 | /* confdefs.h. */ |
| 19495 | _ACEOF |
| 19496 | cat confdefs.h >>conftest.$ac_ext |
| 19497 | cat >>conftest.$ac_ext <<_ACEOF |
| 19498 | /* end confdefs.h. */ |
| 19499 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19500 | /* Override any GCC internal prototype to avoid an error. |
| 19501 | Use char because int might match the return type of a GCC |
| 19502 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19503 | #ifdef __cplusplus |
| 19504 | extern "C" |
| 19505 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19506 | char inflateCopy (); |
| 19507 | int |
| 19508 | main () |
| 19509 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19510 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19511 | ; |
| 19512 | return 0; |
| 19513 | } |
| 19514 | _ACEOF |
| 19515 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19516 | if { (ac_try="$ac_link" |
| 19517 | case "(($ac_try" in |
| 19518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19519 | *) ac_try_echo=$ac_try;; |
| 19520 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19522 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19523 | ac_status=$? |
| 19524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19525 | rm -f conftest.er1 |
| 19526 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19528 | (exit $ac_status); } && { |
| 19529 | test -z "$ac_c_werror_flag" || |
| 19530 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19531 | } && test -s conftest$ac_exeext && |
| 19532 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19533 | ac_cv_lib_z_inflateCopy=yes |
| 19534 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19535 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19537 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19538 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19539 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19540 | |
| 19541 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19542 | conftest$ac_exeext conftest.$ac_ext |
| 19543 | LIBS=$ac_check_lib_save_LIBS |
| 19544 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19545 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 19546 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 19547 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19548 | |
| 19549 | cat >>confdefs.h <<\_ACEOF |
| 19550 | #define HAVE_ZLIB_COPY 1 |
| 19551 | _ACEOF |
| 19552 | |
| 19553 | fi |
| 19554 | |
| 19555 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19556 | case $ac_sys_system/$ac_sys_release in |
| 19557 | Darwin/*) |
| 19558 | CFLAGS="${_CUR_CFLAGS}" |
| 19559 | LDFLAGS="${_CUR_LDFLAGS}" |
| 19560 | ;; |
| 19561 | esac |
| 19562 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19563 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 19564 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19565 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19566 | /* confdefs.h. */ |
| 19567 | _ACEOF |
| 19568 | cat confdefs.h >>conftest.$ac_ext |
| 19569 | cat >>conftest.$ac_ext <<_ACEOF |
| 19570 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19571 | |
| 19572 | #include "confdefs.h" |
| 19573 | #include <netdb.h> |
| 19574 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19575 | int |
| 19576 | main () |
| 19577 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19578 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19579 | ; |
| 19580 | return 0; |
| 19581 | } |
| 19582 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19583 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19584 | if { (ac_try="$ac_link" |
| 19585 | case "(($ac_try" in |
| 19586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19587 | *) ac_try_echo=$ac_try;; |
| 19588 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19590 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19591 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19593 | rm -f conftest.er1 |
| 19594 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19596 | (exit $ac_status); } && { |
| 19597 | test -z "$ac_c_werror_flag" || |
| 19598 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19599 | } && test -s conftest$ac_exeext && |
| 19600 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19601 | |
| 19602 | cat >>confdefs.h <<\_ACEOF |
| 19603 | #define HAVE_HSTRERROR 1 |
| 19604 | _ACEOF |
| 19605 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19606 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19607 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19608 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19609 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19611 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19612 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19613 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19614 | |
| 19615 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19616 | |
| 19617 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19618 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19619 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19620 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 19621 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19622 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19623 | /* confdefs.h. */ |
| 19624 | _ACEOF |
| 19625 | cat confdefs.h >>conftest.$ac_ext |
| 19626 | cat >>conftest.$ac_ext <<_ACEOF |
| 19627 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19628 | |
| 19629 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 19630 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19631 | #include <sys/socket.h> |
| 19632 | #include <netinet/in.h> |
| 19633 | #include <arpa/inet.h> |
| 19634 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19635 | int |
| 19636 | main () |
| 19637 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19638 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19639 | ; |
| 19640 | return 0; |
| 19641 | } |
| 19642 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19643 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19644 | if { (ac_try="$ac_link" |
| 19645 | case "(($ac_try" in |
| 19646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19647 | *) ac_try_echo=$ac_try;; |
| 19648 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19650 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19651 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19653 | rm -f conftest.er1 |
| 19654 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19656 | (exit $ac_status); } && { |
| 19657 | test -z "$ac_c_werror_flag" || |
| 19658 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19659 | } && test -s conftest$ac_exeext && |
| 19660 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19661 | |
| 19662 | cat >>confdefs.h <<\_ACEOF |
| 19663 | #define HAVE_INET_ATON 1 |
| 19664 | _ACEOF |
| 19665 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19666 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19667 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19668 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19669 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19671 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19672 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19673 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19674 | |
| 19675 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19676 | |
| 19677 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19678 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19679 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19680 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 19681 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19682 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19683 | /* confdefs.h. */ |
| 19684 | _ACEOF |
| 19685 | cat confdefs.h >>conftest.$ac_ext |
| 19686 | cat >>conftest.$ac_ext <<_ACEOF |
| 19687 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19688 | |
| 19689 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19690 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19691 | #include <sys/socket.h> |
| 19692 | #include <netinet/in.h> |
| 19693 | #include <arpa/inet.h> |
| 19694 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19695 | int |
| 19696 | main () |
| 19697 | { |
| 19698 | void* p = inet_pton |
| 19699 | ; |
| 19700 | return 0; |
| 19701 | } |
| 19702 | _ACEOF |
| 19703 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19704 | if { (ac_try="$ac_compile" |
| 19705 | case "(($ac_try" in |
| 19706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19707 | *) ac_try_echo=$ac_try;; |
| 19708 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19710 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19711 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19713 | rm -f conftest.er1 |
| 19714 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19716 | (exit $ac_status); } && { |
| 19717 | test -z "$ac_c_werror_flag" || |
| 19718 | test ! -s conftest.err |
| 19719 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19720 | |
| 19721 | cat >>confdefs.h <<\_ACEOF |
| 19722 | #define HAVE_INET_PTON 1 |
| 19723 | _ACEOF |
| 19724 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19725 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19726 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19727 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19728 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19730 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19731 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19732 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19733 | |
| 19734 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19735 | |
| 19736 | 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] | 19737 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19738 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19739 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 19740 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19741 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19742 | /* confdefs.h. */ |
| 19743 | _ACEOF |
| 19744 | cat confdefs.h >>conftest.$ac_ext |
| 19745 | cat >>conftest.$ac_ext <<_ACEOF |
| 19746 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19747 | |
| 19748 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19749 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19750 | #ifdef HAVE_GRP_H |
| 19751 | #include <grp.h> |
| 19752 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19753 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19754 | int |
| 19755 | main () |
| 19756 | { |
| 19757 | void* p = setgroups |
| 19758 | ; |
| 19759 | return 0; |
| 19760 | } |
| 19761 | _ACEOF |
| 19762 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19763 | if { (ac_try="$ac_compile" |
| 19764 | case "(($ac_try" in |
| 19765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19766 | *) ac_try_echo=$ac_try;; |
| 19767 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19769 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19770 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19772 | rm -f conftest.er1 |
| 19773 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19775 | (exit $ac_status); } && { |
| 19776 | test -z "$ac_c_werror_flag" || |
| 19777 | test ! -s conftest.err |
| 19778 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19779 | |
| 19780 | cat >>confdefs.h <<\_ACEOF |
| 19781 | #define HAVE_SETGROUPS 1 |
| 19782 | _ACEOF |
| 19783 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19784 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19785 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19786 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19787 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19789 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19790 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19791 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19792 | |
| 19793 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19794 | |
| 19795 | 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] | 19796 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19797 | # check for openpty and forkpty |
| 19798 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19799 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19800 | for ac_func in openpty |
| 19801 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19802 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19803 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19804 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19805 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19807 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19808 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19809 | /* confdefs.h. */ |
| 19810 | _ACEOF |
| 19811 | cat confdefs.h >>conftest.$ac_ext |
| 19812 | cat >>conftest.$ac_ext <<_ACEOF |
| 19813 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19814 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19815 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19816 | #define $ac_func innocuous_$ac_func |
| 19817 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19818 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19819 | which can conflict with char $ac_func (); below. |
| 19820 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19821 | <limits.h> exists even on freestanding compilers. */ |
| 19822 | |
| 19823 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19824 | # include <limits.h> |
| 19825 | #else |
| 19826 | # include <assert.h> |
| 19827 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19828 | |
| 19829 | #undef $ac_func |
| 19830 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19831 | /* Override any GCC internal prototype to avoid an error. |
| 19832 | Use char because int might match the return type of a GCC |
| 19833 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19834 | #ifdef __cplusplus |
| 19835 | extern "C" |
| 19836 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19837 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19838 | /* The GNU C library defines this for functions which it implements |
| 19839 | to always fail with ENOSYS. Some functions are actually named |
| 19840 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19841 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19842 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19843 | #endif |
| 19844 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19845 | int |
| 19846 | main () |
| 19847 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19848 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19849 | ; |
| 19850 | return 0; |
| 19851 | } |
| 19852 | _ACEOF |
| 19853 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19854 | if { (ac_try="$ac_link" |
| 19855 | case "(($ac_try" in |
| 19856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19857 | *) ac_try_echo=$ac_try;; |
| 19858 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19860 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19861 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19863 | rm -f conftest.er1 |
| 19864 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19866 | (exit $ac_status); } && { |
| 19867 | test -z "$ac_c_werror_flag" || |
| 19868 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19869 | } && test -s conftest$ac_exeext && |
| 19870 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19871 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19872 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19873 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19875 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19876 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19877 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19878 | |
| 19879 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19880 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19881 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19882 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19883 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19884 | echo "${ECHO_T}$ac_res" >&6; } |
| 19885 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19886 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19887 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19888 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19889 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19890 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19891 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 19892 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19893 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19895 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19896 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19897 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19898 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19899 | /* confdefs.h. */ |
| 19900 | _ACEOF |
| 19901 | cat confdefs.h >>conftest.$ac_ext |
| 19902 | cat >>conftest.$ac_ext <<_ACEOF |
| 19903 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19904 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19905 | /* Override any GCC internal prototype to avoid an error. |
| 19906 | Use char because int might match the return type of a GCC |
| 19907 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19908 | #ifdef __cplusplus |
| 19909 | extern "C" |
| 19910 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19911 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19912 | int |
| 19913 | main () |
| 19914 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19915 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19916 | ; |
| 19917 | return 0; |
| 19918 | } |
| 19919 | _ACEOF |
| 19920 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19921 | if { (ac_try="$ac_link" |
| 19922 | case "(($ac_try" in |
| 19923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19924 | *) ac_try_echo=$ac_try;; |
| 19925 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19927 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19928 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19930 | rm -f conftest.er1 |
| 19931 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19933 | (exit $ac_status); } && { |
| 19934 | test -z "$ac_c_werror_flag" || |
| 19935 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19936 | } && test -s conftest$ac_exeext && |
| 19937 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19938 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19939 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19940 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19942 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19943 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19944 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19945 | |
| 19946 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19947 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19948 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19949 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19950 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 19951 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 19952 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19953 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19954 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19955 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19956 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19957 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19958 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 19959 | echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19960 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19962 | else |
| 19963 | ac_check_lib_save_LIBS=$LIBS |
| 19964 | LIBS="-lbsd $LIBS" |
| 19965 | cat >conftest.$ac_ext <<_ACEOF |
| 19966 | /* confdefs.h. */ |
| 19967 | _ACEOF |
| 19968 | cat confdefs.h >>conftest.$ac_ext |
| 19969 | cat >>conftest.$ac_ext <<_ACEOF |
| 19970 | /* end confdefs.h. */ |
| 19971 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19972 | /* Override any GCC internal prototype to avoid an error. |
| 19973 | Use char because int might match the return type of a GCC |
| 19974 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19975 | #ifdef __cplusplus |
| 19976 | extern "C" |
| 19977 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19978 | char openpty (); |
| 19979 | int |
| 19980 | main () |
| 19981 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19982 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19983 | ; |
| 19984 | return 0; |
| 19985 | } |
| 19986 | _ACEOF |
| 19987 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19988 | if { (ac_try="$ac_link" |
| 19989 | case "(($ac_try" in |
| 19990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19991 | *) ac_try_echo=$ac_try;; |
| 19992 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19994 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19995 | ac_status=$? |
| 19996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19997 | rm -f conftest.er1 |
| 19998 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20000 | (exit $ac_status); } && { |
| 20001 | test -z "$ac_c_werror_flag" || |
| 20002 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20003 | } && test -s conftest$ac_exeext && |
| 20004 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20005 | ac_cv_lib_bsd_openpty=yes |
| 20006 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20007 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20009 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20010 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20011 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20012 | |
| 20013 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20014 | conftest$ac_exeext conftest.$ac_ext |
| 20015 | LIBS=$ac_check_lib_save_LIBS |
| 20016 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20017 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 20018 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 20019 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20020 | cat >>confdefs.h <<\_ACEOF |
| 20021 | #define HAVE_OPENPTY 1 |
| 20022 | _ACEOF |
| 20023 | LIBS="$LIBS -lbsd" |
| 20024 | fi |
| 20025 | |
| 20026 | |
| 20027 | fi |
| 20028 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20029 | |
| 20030 | fi |
| 20031 | done |
| 20032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20033 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20034 | for ac_func in forkpty |
| 20035 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20036 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20037 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20038 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20039 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20041 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20043 | /* confdefs.h. */ |
| 20044 | _ACEOF |
| 20045 | cat confdefs.h >>conftest.$ac_ext |
| 20046 | cat >>conftest.$ac_ext <<_ACEOF |
| 20047 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20048 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20049 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20050 | #define $ac_func innocuous_$ac_func |
| 20051 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20052 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20053 | which can conflict with char $ac_func (); below. |
| 20054 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20055 | <limits.h> exists even on freestanding compilers. */ |
| 20056 | |
| 20057 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20058 | # include <limits.h> |
| 20059 | #else |
| 20060 | # include <assert.h> |
| 20061 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20062 | |
| 20063 | #undef $ac_func |
| 20064 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20065 | /* Override any GCC internal prototype to avoid an error. |
| 20066 | Use char because int might match the return type of a GCC |
| 20067 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20068 | #ifdef __cplusplus |
| 20069 | extern "C" |
| 20070 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20071 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20072 | /* The GNU C library defines this for functions which it implements |
| 20073 | to always fail with ENOSYS. Some functions are actually named |
| 20074 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20075 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20076 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20077 | #endif |
| 20078 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20079 | int |
| 20080 | main () |
| 20081 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20082 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20083 | ; |
| 20084 | return 0; |
| 20085 | } |
| 20086 | _ACEOF |
| 20087 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20088 | if { (ac_try="$ac_link" |
| 20089 | case "(($ac_try" in |
| 20090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20091 | *) ac_try_echo=$ac_try;; |
| 20092 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20094 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20095 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20097 | rm -f conftest.er1 |
| 20098 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20100 | (exit $ac_status); } && { |
| 20101 | test -z "$ac_c_werror_flag" || |
| 20102 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20103 | } && test -s conftest$ac_exeext && |
| 20104 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20105 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20106 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20109 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20110 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20111 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20112 | |
| 20113 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20114 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20115 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20116 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20117 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20118 | echo "${ECHO_T}$ac_res" >&6; } |
| 20119 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20120 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20121 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20122 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20123 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20124 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20125 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 20126 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20127 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20129 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20130 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20131 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20132 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20133 | /* confdefs.h. */ |
| 20134 | _ACEOF |
| 20135 | cat confdefs.h >>conftest.$ac_ext |
| 20136 | cat >>conftest.$ac_ext <<_ACEOF |
| 20137 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20138 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20139 | /* Override any GCC internal prototype to avoid an error. |
| 20140 | Use char because int might match the return type of a GCC |
| 20141 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20142 | #ifdef __cplusplus |
| 20143 | extern "C" |
| 20144 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20145 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20146 | int |
| 20147 | main () |
| 20148 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20149 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20150 | ; |
| 20151 | return 0; |
| 20152 | } |
| 20153 | _ACEOF |
| 20154 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20155 | if { (ac_try="$ac_link" |
| 20156 | case "(($ac_try" in |
| 20157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20158 | *) ac_try_echo=$ac_try;; |
| 20159 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20161 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20162 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20164 | rm -f conftest.er1 |
| 20165 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20167 | (exit $ac_status); } && { |
| 20168 | test -z "$ac_c_werror_flag" || |
| 20169 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20170 | } && test -s conftest$ac_exeext && |
| 20171 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20172 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20173 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20174 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20176 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20177 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20178 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20179 | |
| 20180 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20181 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20182 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20183 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20184 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 20185 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 20186 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20187 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20188 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20189 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20190 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20191 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20192 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 20193 | echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20194 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20196 | else |
| 20197 | ac_check_lib_save_LIBS=$LIBS |
| 20198 | LIBS="-lbsd $LIBS" |
| 20199 | cat >conftest.$ac_ext <<_ACEOF |
| 20200 | /* confdefs.h. */ |
| 20201 | _ACEOF |
| 20202 | cat confdefs.h >>conftest.$ac_ext |
| 20203 | cat >>conftest.$ac_ext <<_ACEOF |
| 20204 | /* end confdefs.h. */ |
| 20205 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20206 | /* Override any GCC internal prototype to avoid an error. |
| 20207 | Use char because int might match the return type of a GCC |
| 20208 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20209 | #ifdef __cplusplus |
| 20210 | extern "C" |
| 20211 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20212 | char forkpty (); |
| 20213 | int |
| 20214 | main () |
| 20215 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20216 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20217 | ; |
| 20218 | return 0; |
| 20219 | } |
| 20220 | _ACEOF |
| 20221 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20222 | if { (ac_try="$ac_link" |
| 20223 | case "(($ac_try" in |
| 20224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20225 | *) ac_try_echo=$ac_try;; |
| 20226 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20228 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20229 | ac_status=$? |
| 20230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20231 | rm -f conftest.er1 |
| 20232 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20234 | (exit $ac_status); } && { |
| 20235 | test -z "$ac_c_werror_flag" || |
| 20236 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20237 | } && test -s conftest$ac_exeext && |
| 20238 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20239 | ac_cv_lib_bsd_forkpty=yes |
| 20240 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20241 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20243 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20244 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20245 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20246 | |
| 20247 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20248 | conftest$ac_exeext conftest.$ac_ext |
| 20249 | LIBS=$ac_check_lib_save_LIBS |
| 20250 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20251 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 20252 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 20253 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20254 | cat >>confdefs.h <<\_ACEOF |
| 20255 | #define HAVE_FORKPTY 1 |
| 20256 | _ACEOF |
| 20257 | LIBS="$LIBS -lbsd" |
| 20258 | fi |
| 20259 | |
| 20260 | |
| 20261 | fi |
| 20262 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20263 | |
| 20264 | fi |
| 20265 | done |
| 20266 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20267 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20268 | # Stuff for expat. |
| 20269 | |
| 20270 | for ac_func in memmove |
| 20271 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20272 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20273 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20274 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20275 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20277 | else |
| 20278 | cat >conftest.$ac_ext <<_ACEOF |
| 20279 | /* confdefs.h. */ |
| 20280 | _ACEOF |
| 20281 | cat confdefs.h >>conftest.$ac_ext |
| 20282 | cat >>conftest.$ac_ext <<_ACEOF |
| 20283 | /* end confdefs.h. */ |
| 20284 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20285 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20286 | #define $ac_func innocuous_$ac_func |
| 20287 | |
| 20288 | /* System header to define __stub macros and hopefully few prototypes, |
| 20289 | which can conflict with char $ac_func (); below. |
| 20290 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20291 | <limits.h> exists even on freestanding compilers. */ |
| 20292 | |
| 20293 | #ifdef __STDC__ |
| 20294 | # include <limits.h> |
| 20295 | #else |
| 20296 | # include <assert.h> |
| 20297 | #endif |
| 20298 | |
| 20299 | #undef $ac_func |
| 20300 | |
| 20301 | /* Override any GCC internal prototype to avoid an error. |
| 20302 | Use char because int might match the return type of a GCC |
| 20303 | builtin and then its argument prototype would still apply. */ |
| 20304 | #ifdef __cplusplus |
| 20305 | extern "C" |
| 20306 | #endif |
| 20307 | char $ac_func (); |
| 20308 | /* The GNU C library defines this for functions which it implements |
| 20309 | to always fail with ENOSYS. Some functions are actually named |
| 20310 | something starting with __ and the normal name is an alias. */ |
| 20311 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20312 | choke me |
| 20313 | #endif |
| 20314 | |
| 20315 | int |
| 20316 | main () |
| 20317 | { |
| 20318 | return $ac_func (); |
| 20319 | ; |
| 20320 | return 0; |
| 20321 | } |
| 20322 | _ACEOF |
| 20323 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20324 | if { (ac_try="$ac_link" |
| 20325 | case "(($ac_try" in |
| 20326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20327 | *) ac_try_echo=$ac_try;; |
| 20328 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20330 | (eval "$ac_link") 2>conftest.er1 |
| 20331 | ac_status=$? |
| 20332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20333 | rm -f conftest.er1 |
| 20334 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20336 | (exit $ac_status); } && { |
| 20337 | test -z "$ac_c_werror_flag" || |
| 20338 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20339 | } && test -s conftest$ac_exeext && |
| 20340 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20341 | eval "$as_ac_var=yes" |
| 20342 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20343 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20345 | |
| 20346 | eval "$as_ac_var=no" |
| 20347 | fi |
| 20348 | |
| 20349 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20350 | conftest$ac_exeext conftest.$ac_ext |
| 20351 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20352 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20353 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20354 | echo "${ECHO_T}$ac_res" >&6; } |
| 20355 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20356 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20357 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20358 | _ACEOF |
| 20359 | |
| 20360 | fi |
| 20361 | done |
| 20362 | |
| 20363 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20364 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20365 | |
| 20366 | |
| 20367 | |
| 20368 | |
| 20369 | |
| 20370 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20371 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 20372 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20373 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20374 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20375 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20376 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20378 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20379 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20380 | /* confdefs.h. */ |
| 20381 | _ACEOF |
| 20382 | cat confdefs.h >>conftest.$ac_ext |
| 20383 | cat >>conftest.$ac_ext <<_ACEOF |
| 20384 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20385 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20386 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20387 | #define $ac_func innocuous_$ac_func |
| 20388 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20389 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20390 | which can conflict with char $ac_func (); below. |
| 20391 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20392 | <limits.h> exists even on freestanding compilers. */ |
| 20393 | |
| 20394 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20395 | # include <limits.h> |
| 20396 | #else |
| 20397 | # include <assert.h> |
| 20398 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20399 | |
| 20400 | #undef $ac_func |
| 20401 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20402 | /* Override any GCC internal prototype to avoid an error. |
| 20403 | Use char because int might match the return type of a GCC |
| 20404 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20405 | #ifdef __cplusplus |
| 20406 | extern "C" |
| 20407 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20408 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20409 | /* The GNU C library defines this for functions which it implements |
| 20410 | to always fail with ENOSYS. Some functions are actually named |
| 20411 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20412 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20413 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20414 | #endif |
| 20415 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20416 | int |
| 20417 | main () |
| 20418 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20419 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20420 | ; |
| 20421 | return 0; |
| 20422 | } |
| 20423 | _ACEOF |
| 20424 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20425 | if { (ac_try="$ac_link" |
| 20426 | case "(($ac_try" in |
| 20427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20428 | *) ac_try_echo=$ac_try;; |
| 20429 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20431 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20432 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20434 | rm -f conftest.er1 |
| 20435 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20437 | (exit $ac_status); } && { |
| 20438 | test -z "$ac_c_werror_flag" || |
| 20439 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20440 | } && test -s conftest$ac_exeext && |
| 20441 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20442 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20443 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20444 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20447 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20448 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20449 | |
| 20450 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20451 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20452 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20453 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20454 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20455 | echo "${ECHO_T}$ac_res" >&6; } |
| 20456 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20457 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20458 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20459 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20460 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20461 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20462 | done |
| 20463 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20465 | |
| 20466 | |
| 20467 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20468 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20469 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20470 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20471 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20472 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20473 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20477 | /* confdefs.h. */ |
| 20478 | _ACEOF |
| 20479 | cat confdefs.h >>conftest.$ac_ext |
| 20480 | cat >>conftest.$ac_ext <<_ACEOF |
| 20481 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20482 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20483 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20484 | #define $ac_func innocuous_$ac_func |
| 20485 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20486 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20487 | which can conflict with char $ac_func (); below. |
| 20488 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20489 | <limits.h> exists even on freestanding compilers. */ |
| 20490 | |
| 20491 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20492 | # include <limits.h> |
| 20493 | #else |
| 20494 | # include <assert.h> |
| 20495 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20496 | |
| 20497 | #undef $ac_func |
| 20498 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20499 | /* Override any GCC internal prototype to avoid an error. |
| 20500 | Use char because int might match the return type of a GCC |
| 20501 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20502 | #ifdef __cplusplus |
| 20503 | extern "C" |
| 20504 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20505 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20506 | /* The GNU C library defines this for functions which it implements |
| 20507 | to always fail with ENOSYS. Some functions are actually named |
| 20508 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20509 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20510 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20511 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20512 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20513 | int |
| 20514 | main () |
| 20515 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20516 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20517 | ; |
| 20518 | return 0; |
| 20519 | } |
| 20520 | _ACEOF |
| 20521 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20522 | if { (ac_try="$ac_link" |
| 20523 | case "(($ac_try" in |
| 20524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20525 | *) ac_try_echo=$ac_try;; |
| 20526 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20528 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20529 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20531 | rm -f conftest.er1 |
| 20532 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20534 | (exit $ac_status); } && { |
| 20535 | test -z "$ac_c_werror_flag" || |
| 20536 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20537 | } && test -s conftest$ac_exeext && |
| 20538 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20539 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20540 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20541 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20543 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20544 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20545 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20546 | |
| 20547 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20548 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20549 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20550 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20551 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20552 | echo "${ECHO_T}$ac_res" >&6; } |
| 20553 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20554 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20555 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20556 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20557 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20558 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20559 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20560 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20561 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 20562 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20563 | esac |
| 20564 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20565 | fi |
| 20566 | done |
| 20567 | |
| 20568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20569 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20570 | for ac_func in getpgrp |
| 20571 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20572 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20573 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20574 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20575 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20579 | /* confdefs.h. */ |
| 20580 | _ACEOF |
| 20581 | cat confdefs.h >>conftest.$ac_ext |
| 20582 | cat >>conftest.$ac_ext <<_ACEOF |
| 20583 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20584 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20585 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20586 | #define $ac_func innocuous_$ac_func |
| 20587 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20588 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20589 | which can conflict with char $ac_func (); below. |
| 20590 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20591 | <limits.h> exists even on freestanding compilers. */ |
| 20592 | |
| 20593 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20594 | # include <limits.h> |
| 20595 | #else |
| 20596 | # include <assert.h> |
| 20597 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20598 | |
| 20599 | #undef $ac_func |
| 20600 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20601 | /* Override any GCC internal prototype to avoid an error. |
| 20602 | Use char because int might match the return type of a GCC |
| 20603 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20604 | #ifdef __cplusplus |
| 20605 | extern "C" |
| 20606 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20607 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20608 | /* The GNU C library defines this for functions which it implements |
| 20609 | to always fail with ENOSYS. Some functions are actually named |
| 20610 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20611 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20612 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20613 | #endif |
| 20614 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20615 | int |
| 20616 | main () |
| 20617 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20618 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20619 | ; |
| 20620 | return 0; |
| 20621 | } |
| 20622 | _ACEOF |
| 20623 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20624 | if { (ac_try="$ac_link" |
| 20625 | case "(($ac_try" in |
| 20626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20627 | *) ac_try_echo=$ac_try;; |
| 20628 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20630 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20631 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20633 | rm -f conftest.er1 |
| 20634 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20636 | (exit $ac_status); } && { |
| 20637 | test -z "$ac_c_werror_flag" || |
| 20638 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20639 | } && test -s conftest$ac_exeext && |
| 20640 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20641 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20642 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20643 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20645 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20646 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20647 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20648 | |
| 20649 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20650 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20651 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20652 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20653 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20654 | echo "${ECHO_T}$ac_res" >&6; } |
| 20655 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20656 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20657 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20658 | _ACEOF |
| 20659 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20660 | /* confdefs.h. */ |
| 20661 | _ACEOF |
| 20662 | cat confdefs.h >>conftest.$ac_ext |
| 20663 | cat >>conftest.$ac_ext <<_ACEOF |
| 20664 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20665 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20666 | int |
| 20667 | main () |
| 20668 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20669 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20670 | ; |
| 20671 | return 0; |
| 20672 | } |
| 20673 | _ACEOF |
| 20674 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20675 | if { (ac_try="$ac_compile" |
| 20676 | case "(($ac_try" in |
| 20677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20678 | *) ac_try_echo=$ac_try;; |
| 20679 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20681 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20682 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20684 | rm -f conftest.er1 |
| 20685 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20687 | (exit $ac_status); } && { |
| 20688 | test -z "$ac_c_werror_flag" || |
| 20689 | test ! -s conftest.err |
| 20690 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20691 | |
| 20692 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20693 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20694 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20696 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20697 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20698 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20700 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20701 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20702 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20703 | |
| 20704 | 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] | 20705 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20706 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20707 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20708 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20709 | |
| 20710 | for ac_func in setpgrp |
| 20711 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20712 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20713 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20714 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20715 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20717 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20718 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20719 | /* confdefs.h. */ |
| 20720 | _ACEOF |
| 20721 | cat confdefs.h >>conftest.$ac_ext |
| 20722 | cat >>conftest.$ac_ext <<_ACEOF |
| 20723 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20724 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20725 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20726 | #define $ac_func innocuous_$ac_func |
| 20727 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20728 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20729 | which can conflict with char $ac_func (); below. |
| 20730 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20731 | <limits.h> exists even on freestanding compilers. */ |
| 20732 | |
| 20733 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20734 | # include <limits.h> |
| 20735 | #else |
| 20736 | # include <assert.h> |
| 20737 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20738 | |
| 20739 | #undef $ac_func |
| 20740 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20741 | /* Override any GCC internal prototype to avoid an error. |
| 20742 | Use char because int might match the return type of a GCC |
| 20743 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20744 | #ifdef __cplusplus |
| 20745 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20746 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20747 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20748 | /* The GNU C library defines this for functions which it implements |
| 20749 | to always fail with ENOSYS. Some functions are actually named |
| 20750 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20751 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20752 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20753 | #endif |
| 20754 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20755 | int |
| 20756 | main () |
| 20757 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20758 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20759 | ; |
| 20760 | return 0; |
| 20761 | } |
| 20762 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20763 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20764 | if { (ac_try="$ac_link" |
| 20765 | case "(($ac_try" in |
| 20766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20767 | *) ac_try_echo=$ac_try;; |
| 20768 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20770 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20771 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20773 | rm -f conftest.er1 |
| 20774 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20776 | (exit $ac_status); } && { |
| 20777 | test -z "$ac_c_werror_flag" || |
| 20778 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20779 | } && test -s conftest$ac_exeext && |
| 20780 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20781 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20782 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20783 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20785 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20786 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20787 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20788 | |
| 20789 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20790 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20791 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20792 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20793 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20794 | echo "${ECHO_T}$ac_res" >&6; } |
| 20795 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20796 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20797 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20798 | _ACEOF |
| 20799 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20800 | /* confdefs.h. */ |
| 20801 | _ACEOF |
| 20802 | cat confdefs.h >>conftest.$ac_ext |
| 20803 | cat >>conftest.$ac_ext <<_ACEOF |
| 20804 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20805 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20806 | int |
| 20807 | main () |
| 20808 | { |
| 20809 | setpgrp(0,0); |
| 20810 | ; |
| 20811 | return 0; |
| 20812 | } |
| 20813 | _ACEOF |
| 20814 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20815 | if { (ac_try="$ac_compile" |
| 20816 | case "(($ac_try" in |
| 20817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20818 | *) ac_try_echo=$ac_try;; |
| 20819 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20821 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20822 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20824 | rm -f conftest.er1 |
| 20825 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20827 | (exit $ac_status); } && { |
| 20828 | test -z "$ac_c_werror_flag" || |
| 20829 | test ! -s conftest.err |
| 20830 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20831 | |
| 20832 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20833 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20834 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20835 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20836 | |
| 20837 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20838 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20840 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20841 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20842 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20843 | |
| 20844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20845 | |
| 20846 | fi |
| 20847 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20849 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20850 | for ac_func in gettimeofday |
| 20851 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20852 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20853 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20854 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20855 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20858 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20859 | /* confdefs.h. */ |
| 20860 | _ACEOF |
| 20861 | cat confdefs.h >>conftest.$ac_ext |
| 20862 | cat >>conftest.$ac_ext <<_ACEOF |
| 20863 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20864 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20865 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20866 | #define $ac_func innocuous_$ac_func |
| 20867 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20868 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20869 | which can conflict with char $ac_func (); below. |
| 20870 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20871 | <limits.h> exists even on freestanding compilers. */ |
| 20872 | |
| 20873 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20874 | # include <limits.h> |
| 20875 | #else |
| 20876 | # include <assert.h> |
| 20877 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20878 | |
| 20879 | #undef $ac_func |
| 20880 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20881 | /* Override any GCC internal prototype to avoid an error. |
| 20882 | Use char because int might match the return type of a GCC |
| 20883 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20884 | #ifdef __cplusplus |
| 20885 | extern "C" |
| 20886 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20887 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20888 | /* The GNU C library defines this for functions which it implements |
| 20889 | to always fail with ENOSYS. Some functions are actually named |
| 20890 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20891 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20892 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20893 | #endif |
| 20894 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20895 | int |
| 20896 | main () |
| 20897 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20898 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20899 | ; |
| 20900 | return 0; |
| 20901 | } |
| 20902 | _ACEOF |
| 20903 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20904 | if { (ac_try="$ac_link" |
| 20905 | case "(($ac_try" in |
| 20906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20907 | *) ac_try_echo=$ac_try;; |
| 20908 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20910 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20911 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20913 | rm -f conftest.er1 |
| 20914 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20916 | (exit $ac_status); } && { |
| 20917 | test -z "$ac_c_werror_flag" || |
| 20918 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20919 | } && test -s conftest$ac_exeext && |
| 20920 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20921 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20922 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20923 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20925 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20926 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20927 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20928 | |
| 20929 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20930 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20931 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20932 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20933 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20934 | echo "${ECHO_T}$ac_res" >&6; } |
| 20935 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20936 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20937 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20938 | _ACEOF |
| 20939 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20940 | /* confdefs.h. */ |
| 20941 | _ACEOF |
| 20942 | cat confdefs.h >>conftest.$ac_ext |
| 20943 | cat >>conftest.$ac_ext <<_ACEOF |
| 20944 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20945 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20946 | int |
| 20947 | main () |
| 20948 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20949 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20950 | ; |
| 20951 | return 0; |
| 20952 | } |
| 20953 | _ACEOF |
| 20954 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20955 | if { (ac_try="$ac_compile" |
| 20956 | case "(($ac_try" in |
| 20957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20958 | *) ac_try_echo=$ac_try;; |
| 20959 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20961 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20962 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20964 | rm -f conftest.er1 |
| 20965 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20967 | (exit $ac_status); } && { |
| 20968 | test -z "$ac_c_werror_flag" || |
| 20969 | test ! -s conftest.err |
| 20970 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20971 | : |
| 20972 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20973 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20976 | |
| 20977 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20978 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20979 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20981 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20982 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20983 | |
| 20984 | 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] | 20985 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20986 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20987 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20988 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20989 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20990 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 20991 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20992 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20993 | /* confdefs.h. */ |
| 20994 | _ACEOF |
| 20995 | cat confdefs.h >>conftest.$ac_ext |
| 20996 | cat >>conftest.$ac_ext <<_ACEOF |
| 20997 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20998 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 20999 | #if defined(MAJOR_IN_MKDEV) |
| 21000 | #include <sys/mkdev.h> |
| 21001 | #elif defined(MAJOR_IN_SYSMACROS) |
| 21002 | #include <sys/sysmacros.h> |
| 21003 | #else |
| 21004 | #include <sys/types.h> |
| 21005 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21006 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21007 | int |
| 21008 | main () |
| 21009 | { |
| 21010 | |
| 21011 | makedev(major(0),minor(0)); |
| 21012 | |
| 21013 | ; |
| 21014 | return 0; |
| 21015 | } |
| 21016 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 21017 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21018 | if { (ac_try="$ac_link" |
| 21019 | case "(($ac_try" in |
| 21020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21021 | *) ac_try_echo=$ac_try;; |
| 21022 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21024 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21025 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21026 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21027 | rm -f conftest.er1 |
| 21028 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21030 | (exit $ac_status); } && { |
| 21031 | test -z "$ac_c_werror_flag" || |
| 21032 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21033 | } && test -s conftest$ac_exeext && |
| 21034 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21035 | |
| 21036 | |
| 21037 | cat >>confdefs.h <<\_ACEOF |
| 21038 | #define HAVE_DEVICE_MACROS 1 |
| 21039 | _ACEOF |
| 21040 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21041 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21042 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21043 | |
| 21044 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21045 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21047 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21048 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21049 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21050 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21051 | |
| 21052 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21053 | |
| 21054 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21055 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21056 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21057 | # 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] | 21058 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21059 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 21060 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21061 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21062 | /* confdefs.h. */ |
| 21063 | _ACEOF |
| 21064 | cat confdefs.h >>conftest.$ac_ext |
| 21065 | cat >>conftest.$ac_ext <<_ACEOF |
| 21066 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21067 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 21068 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21069 | #include <sys/socket.h> |
| 21070 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 21071 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21073 | int |
| 21074 | main () |
| 21075 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21076 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21077 | ; |
| 21078 | return 0; |
| 21079 | } |
| 21080 | _ACEOF |
| 21081 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21082 | if { (ac_try="$ac_link" |
| 21083 | case "(($ac_try" in |
| 21084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21085 | *) ac_try_echo=$ac_try;; |
| 21086 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21088 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21089 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21091 | rm -f conftest.er1 |
| 21092 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21094 | (exit $ac_status); } && { |
| 21095 | test -z "$ac_c_werror_flag" || |
| 21096 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21097 | } && test -s conftest$ac_exeext && |
| 21098 | $as_test_x conftest$ac_exeext; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21099 | have_getaddrinfo=yes |
| 21100 | else |
| 21101 | echo "$as_me: failed program was:" >&5 |
| 21102 | sed 's/^/| /' conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21103 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21104 | have_getaddrinfo=no |
| 21105 | fi |
| 21106 | |
| 21107 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21108 | conftest$ac_exeext conftest.$ac_ext |
| 21109 | { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5 |
| 21110 | echo "${ECHO_T}$have_getaddrinfo" >&6; } |
| 21111 | if test $have_getaddrinfo = yes |
| 21112 | then |
| 21113 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21114 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21115 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then |
| 21116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21117 | else |
| 21118 | if test "$cross_compiling" = yes; then |
| 21119 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21120 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21121 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21122 | /* confdefs.h. */ |
| 21123 | _ACEOF |
| 21124 | cat confdefs.h >>conftest.$ac_ext |
| 21125 | cat >>conftest.$ac_ext <<_ACEOF |
| 21126 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21127 | |
| 21128 | #include <sys/types.h> |
| 21129 | #include <netdb.h> |
| 21130 | #include <string.h> |
| 21131 | #include <sys/socket.h> |
| 21132 | #include <netinet/in.h> |
| 21133 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21134 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21135 | { |
| 21136 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 21137 | struct addrinfo hints, *ai, *aitop; |
| 21138 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 21139 | |
| 21140 | for (passive = 0; passive <= 1; passive++) { |
| 21141 | memset(&hints, 0, sizeof(hints)); |
| 21142 | hints.ai_family = AF_UNSPEC; |
| 21143 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 21144 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 21145 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21146 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 21147 | (void)gai_strerror(gaierr); |
| 21148 | goto bad; |
| 21149 | } |
| 21150 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 21151 | if (ai->ai_addr == NULL || |
| 21152 | ai->ai_addrlen == 0 || |
| 21153 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 21154 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 21155 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 21156 | goto bad; |
| 21157 | } |
| 21158 | switch (ai->ai_family) { |
| 21159 | case AF_INET: |
| 21160 | if (strcmp(strport, "54321") != 0) { |
| 21161 | goto bad; |
| 21162 | } |
| 21163 | if (passive) { |
| 21164 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 21165 | goto bad; |
| 21166 | } |
| 21167 | } else { |
| 21168 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 21169 | goto bad; |
| 21170 | } |
| 21171 | } |
| 21172 | inet4++; |
| 21173 | break; |
| 21174 | case AF_INET6: |
| 21175 | if (strcmp(strport, "54321") != 0) { |
| 21176 | goto bad; |
| 21177 | } |
| 21178 | if (passive) { |
| 21179 | if (strcmp(straddr, "::") != 0) { |
| 21180 | goto bad; |
| 21181 | } |
| 21182 | } else { |
| 21183 | if (strcmp(straddr, "::1") != 0) { |
| 21184 | goto bad; |
| 21185 | } |
| 21186 | } |
| 21187 | inet6++; |
| 21188 | break; |
| 21189 | case AF_UNSPEC: |
| 21190 | goto bad; |
| 21191 | break; |
| 21192 | default: |
| 21193 | /* another family support? */ |
| 21194 | break; |
| 21195 | } |
| 21196 | } |
| 21197 | } |
| 21198 | |
| 21199 | if (!(inet4 == 0 || inet4 == 2)) |
| 21200 | goto bad; |
| 21201 | if (!(inet6 == 0 || inet6 == 2)) |
| 21202 | goto bad; |
| 21203 | |
| 21204 | if (aitop) |
| 21205 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21206 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21207 | |
| 21208 | bad: |
| 21209 | if (aitop) |
| 21210 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21211 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21212 | } |
| 21213 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21214 | _ACEOF |
| 21215 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21216 | if { (ac_try="$ac_link" |
| 21217 | case "(($ac_try" in |
| 21218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21219 | *) ac_try_echo=$ac_try;; |
| 21220 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21222 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21223 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21225 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21226 | { (case "(($ac_try" in |
| 21227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21228 | *) ac_try_echo=$ac_try;; |
| 21229 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21231 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21232 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21234 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21235 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21236 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21237 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21238 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21241 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21242 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21243 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21244 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21245 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21246 | |
| 21247 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21248 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21249 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21250 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21251 | |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 21252 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21253 | then |
| 21254 | if test $ipv6 = yes |
| 21255 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21256 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 21257 | echo ' or you can specify "--disable-ipv6"'. |
| 21258 | exit 1 |
| 21259 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21261 | |
| 21262 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21263 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21264 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21265 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21266 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21267 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 21268 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21269 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21270 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21271 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21272 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21273 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21275 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21276 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21277 | /* confdefs.h. */ |
| 21278 | _ACEOF |
| 21279 | cat confdefs.h >>conftest.$ac_ext |
| 21280 | cat >>conftest.$ac_ext <<_ACEOF |
| 21281 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21282 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21283 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21284 | #define $ac_func innocuous_$ac_func |
| 21285 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21286 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21287 | which can conflict with char $ac_func (); below. |
| 21288 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21289 | <limits.h> exists even on freestanding compilers. */ |
| 21290 | |
| 21291 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21292 | # include <limits.h> |
| 21293 | #else |
| 21294 | # include <assert.h> |
| 21295 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21296 | |
| 21297 | #undef $ac_func |
| 21298 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21299 | /* Override any GCC internal prototype to avoid an error. |
| 21300 | Use char because int might match the return type of a GCC |
| 21301 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21302 | #ifdef __cplusplus |
| 21303 | extern "C" |
| 21304 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21305 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21306 | /* The GNU C library defines this for functions which it implements |
| 21307 | to always fail with ENOSYS. Some functions are actually named |
| 21308 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21309 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21310 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21311 | #endif |
| 21312 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21313 | int |
| 21314 | main () |
| 21315 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21316 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21317 | ; |
| 21318 | return 0; |
| 21319 | } |
| 21320 | _ACEOF |
| 21321 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21322 | if { (ac_try="$ac_link" |
| 21323 | case "(($ac_try" in |
| 21324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21325 | *) ac_try_echo=$ac_try;; |
| 21326 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21328 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21329 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21331 | rm -f conftest.er1 |
| 21332 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21334 | (exit $ac_status); } && { |
| 21335 | test -z "$ac_c_werror_flag" || |
| 21336 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21337 | } && test -s conftest$ac_exeext && |
| 21338 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21339 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21340 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21341 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21343 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21344 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21345 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21346 | |
| 21347 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21348 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21349 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21350 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21351 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21352 | echo "${ECHO_T}$ac_res" >&6; } |
| 21353 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21354 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21355 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21356 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21357 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21358 | fi |
| 21359 | done |
| 21360 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21361 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21362 | # checks for structures |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21363 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 21364 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21365 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21368 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21369 | /* confdefs.h. */ |
| 21370 | _ACEOF |
| 21371 | cat confdefs.h >>conftest.$ac_ext |
| 21372 | cat >>conftest.$ac_ext <<_ACEOF |
| 21373 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21374 | #include <sys/types.h> |
| 21375 | #include <sys/time.h> |
| 21376 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21378 | int |
| 21379 | main () |
| 21380 | { |
| 21381 | if ((struct tm *) 0) |
| 21382 | return 0; |
| 21383 | ; |
| 21384 | return 0; |
| 21385 | } |
| 21386 | _ACEOF |
| 21387 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21388 | if { (ac_try="$ac_compile" |
| 21389 | case "(($ac_try" in |
| 21390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21391 | *) ac_try_echo=$ac_try;; |
| 21392 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21394 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21395 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21397 | rm -f conftest.er1 |
| 21398 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21400 | (exit $ac_status); } && { |
| 21401 | test -z "$ac_c_werror_flag" || |
| 21402 | test ! -s conftest.err |
| 21403 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21404 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21405 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21406 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21408 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21409 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21410 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21411 | |
| 21412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21413 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21414 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 21415 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21416 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21417 | |
| 21418 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21419 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21420 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21421 | |
| 21422 | fi |
| 21423 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21424 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 21425 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21426 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21429 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21430 | /* confdefs.h. */ |
| 21431 | _ACEOF |
| 21432 | cat confdefs.h >>conftest.$ac_ext |
| 21433 | cat >>conftest.$ac_ext <<_ACEOF |
| 21434 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21435 | #include <sys/types.h> |
| 21436 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21437 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21438 | int |
| 21439 | main () |
| 21440 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21441 | struct tm tm; |
| 21442 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21443 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21444 | ; |
| 21445 | return 0; |
| 21446 | } |
| 21447 | _ACEOF |
| 21448 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21449 | if { (ac_try="$ac_compile" |
| 21450 | case "(($ac_try" in |
| 21451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21452 | *) ac_try_echo=$ac_try;; |
| 21453 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21455 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21456 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21458 | rm -f conftest.er1 |
| 21459 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21461 | (exit $ac_status); } && { |
| 21462 | test -z "$ac_c_werror_flag" || |
| 21463 | test ! -s conftest.err |
| 21464 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21465 | ac_cv_struct_tm=time.h |
| 21466 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21467 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21469 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21470 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21471 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21472 | |
| 21473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21474 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21475 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 21476 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21477 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21478 | |
| 21479 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21480 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21481 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21482 | |
| 21483 | fi |
| 21484 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21485 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21486 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21487 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21489 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21490 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21491 | /* confdefs.h. */ |
| 21492 | _ACEOF |
| 21493 | cat confdefs.h >>conftest.$ac_ext |
| 21494 | cat >>conftest.$ac_ext <<_ACEOF |
| 21495 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21496 | #include <sys/types.h> |
| 21497 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21498 | |
| 21499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21500 | int |
| 21501 | main () |
| 21502 | { |
| 21503 | static struct tm ac_aggr; |
| 21504 | if (ac_aggr.tm_zone) |
| 21505 | return 0; |
| 21506 | ; |
| 21507 | return 0; |
| 21508 | } |
| 21509 | _ACEOF |
| 21510 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21511 | if { (ac_try="$ac_compile" |
| 21512 | case "(($ac_try" in |
| 21513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21514 | *) ac_try_echo=$ac_try;; |
| 21515 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21517 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21518 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21520 | rm -f conftest.er1 |
| 21521 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21523 | (exit $ac_status); } && { |
| 21524 | test -z "$ac_c_werror_flag" || |
| 21525 | test ! -s conftest.err |
| 21526 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21527 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21528 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21529 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21531 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21532 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21533 | /* confdefs.h. */ |
| 21534 | _ACEOF |
| 21535 | cat confdefs.h >>conftest.$ac_ext |
| 21536 | cat >>conftest.$ac_ext <<_ACEOF |
| 21537 | /* end confdefs.h. */ |
| 21538 | #include <sys/types.h> |
| 21539 | #include <$ac_cv_struct_tm> |
| 21540 | |
| 21541 | |
| 21542 | int |
| 21543 | main () |
| 21544 | { |
| 21545 | static struct tm ac_aggr; |
| 21546 | if (sizeof ac_aggr.tm_zone) |
| 21547 | return 0; |
| 21548 | ; |
| 21549 | return 0; |
| 21550 | } |
| 21551 | _ACEOF |
| 21552 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21553 | if { (ac_try="$ac_compile" |
| 21554 | case "(($ac_try" in |
| 21555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21556 | *) ac_try_echo=$ac_try;; |
| 21557 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21559 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21560 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21562 | rm -f conftest.er1 |
| 21563 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21565 | (exit $ac_status); } && { |
| 21566 | test -z "$ac_c_werror_flag" || |
| 21567 | test ! -s conftest.err |
| 21568 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21569 | ac_cv_member_struct_tm_tm_zone=yes |
| 21570 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21571 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21573 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21574 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21575 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21576 | |
| 21577 | 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] | 21578 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21579 | |
| 21580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21581 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21582 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21583 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 21584 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21585 | |
| 21586 | cat >>confdefs.h <<_ACEOF |
| 21587 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21588 | _ACEOF |
| 21589 | |
| 21590 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21591 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21593 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21594 | |
| 21595 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21596 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21597 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21598 | |
| 21599 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21600 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 21601 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21602 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21604 | else |
| 21605 | cat >conftest.$ac_ext <<_ACEOF |
| 21606 | /* confdefs.h. */ |
| 21607 | _ACEOF |
| 21608 | cat confdefs.h >>conftest.$ac_ext |
| 21609 | cat >>conftest.$ac_ext <<_ACEOF |
| 21610 | /* end confdefs.h. */ |
| 21611 | #include <time.h> |
| 21612 | |
| 21613 | int |
| 21614 | main () |
| 21615 | { |
| 21616 | #ifndef tzname |
| 21617 | (void) tzname; |
| 21618 | #endif |
| 21619 | |
| 21620 | ; |
| 21621 | return 0; |
| 21622 | } |
| 21623 | _ACEOF |
| 21624 | rm -f conftest.$ac_objext |
| 21625 | if { (ac_try="$ac_compile" |
| 21626 | case "(($ac_try" in |
| 21627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21628 | *) ac_try_echo=$ac_try;; |
| 21629 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21631 | (eval "$ac_compile") 2>conftest.er1 |
| 21632 | ac_status=$? |
| 21633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21634 | rm -f conftest.er1 |
| 21635 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21637 | (exit $ac_status); } && { |
| 21638 | test -z "$ac_c_werror_flag" || |
| 21639 | test ! -s conftest.err |
| 21640 | } && test -s conftest.$ac_objext; then |
| 21641 | ac_cv_have_decl_tzname=yes |
| 21642 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21643 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21645 | |
| 21646 | ac_cv_have_decl_tzname=no |
| 21647 | fi |
| 21648 | |
| 21649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21650 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21651 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 21652 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 21653 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21654 | |
| 21655 | cat >>confdefs.h <<_ACEOF |
| 21656 | #define HAVE_DECL_TZNAME 1 |
| 21657 | _ACEOF |
| 21658 | |
| 21659 | |
| 21660 | else |
| 21661 | cat >>confdefs.h <<_ACEOF |
| 21662 | #define HAVE_DECL_TZNAME 0 |
| 21663 | _ACEOF |
| 21664 | |
| 21665 | |
| 21666 | fi |
| 21667 | |
| 21668 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21669 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21670 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21671 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21674 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21675 | /* confdefs.h. */ |
| 21676 | _ACEOF |
| 21677 | cat confdefs.h >>conftest.$ac_ext |
| 21678 | cat >>conftest.$ac_ext <<_ACEOF |
| 21679 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21680 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21681 | #if !HAVE_DECL_TZNAME |
| 21682 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21683 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21685 | int |
| 21686 | main () |
| 21687 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21688 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21689 | ; |
| 21690 | return 0; |
| 21691 | } |
| 21692 | _ACEOF |
| 21693 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21694 | if { (ac_try="$ac_link" |
| 21695 | case "(($ac_try" in |
| 21696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21697 | *) ac_try_echo=$ac_try;; |
| 21698 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21700 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21701 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21703 | rm -f conftest.er1 |
| 21704 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21706 | (exit $ac_status); } && { |
| 21707 | test -z "$ac_c_werror_flag" || |
| 21708 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21709 | } && test -s conftest$ac_exeext && |
| 21710 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21711 | ac_cv_var_tzname=yes |
| 21712 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21713 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21715 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21716 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21717 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21718 | |
| 21719 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21720 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21721 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21722 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21723 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21724 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21725 | |
| 21726 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21727 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21728 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21729 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21730 | fi |
| 21731 | fi |
| 21732 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21733 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 21734 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21735 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21737 | else |
| 21738 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21739 | /* confdefs.h. */ |
| 21740 | _ACEOF |
| 21741 | cat confdefs.h >>conftest.$ac_ext |
| 21742 | cat >>conftest.$ac_ext <<_ACEOF |
| 21743 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21744 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21745 | int |
| 21746 | main () |
| 21747 | { |
| 21748 | static struct stat ac_aggr; |
| 21749 | if (ac_aggr.st_rdev) |
| 21750 | return 0; |
| 21751 | ; |
| 21752 | return 0; |
| 21753 | } |
| 21754 | _ACEOF |
| 21755 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21756 | if { (ac_try="$ac_compile" |
| 21757 | case "(($ac_try" in |
| 21758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21759 | *) ac_try_echo=$ac_try;; |
| 21760 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21762 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21763 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21765 | rm -f conftest.er1 |
| 21766 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21768 | (exit $ac_status); } && { |
| 21769 | test -z "$ac_c_werror_flag" || |
| 21770 | test ! -s conftest.err |
| 21771 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21772 | ac_cv_member_struct_stat_st_rdev=yes |
| 21773 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21774 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21776 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21777 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21778 | /* confdefs.h. */ |
| 21779 | _ACEOF |
| 21780 | cat confdefs.h >>conftest.$ac_ext |
| 21781 | cat >>conftest.$ac_ext <<_ACEOF |
| 21782 | /* end confdefs.h. */ |
| 21783 | $ac_includes_default |
| 21784 | int |
| 21785 | main () |
| 21786 | { |
| 21787 | static struct stat ac_aggr; |
| 21788 | if (sizeof ac_aggr.st_rdev) |
| 21789 | return 0; |
| 21790 | ; |
| 21791 | return 0; |
| 21792 | } |
| 21793 | _ACEOF |
| 21794 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21795 | if { (ac_try="$ac_compile" |
| 21796 | case "(($ac_try" in |
| 21797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21798 | *) ac_try_echo=$ac_try;; |
| 21799 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21801 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21802 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21804 | rm -f conftest.er1 |
| 21805 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21807 | (exit $ac_status); } && { |
| 21808 | test -z "$ac_c_werror_flag" || |
| 21809 | test ! -s conftest.err |
| 21810 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21811 | ac_cv_member_struct_stat_st_rdev=yes |
| 21812 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21813 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21816 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21817 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21818 | |
| 21819 | 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] | 21820 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21821 | |
| 21822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21823 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21824 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 21825 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 21826 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21827 | |
| 21828 | cat >>confdefs.h <<_ACEOF |
| 21829 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 21830 | _ACEOF |
| 21831 | |
| 21832 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21833 | fi |
| 21834 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21835 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 21836 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21837 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21841 | /* confdefs.h. */ |
| 21842 | _ACEOF |
| 21843 | cat confdefs.h >>conftest.$ac_ext |
| 21844 | cat >>conftest.$ac_ext <<_ACEOF |
| 21845 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21846 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21847 | int |
| 21848 | main () |
| 21849 | { |
| 21850 | static struct stat ac_aggr; |
| 21851 | if (ac_aggr.st_blksize) |
| 21852 | return 0; |
| 21853 | ; |
| 21854 | return 0; |
| 21855 | } |
| 21856 | _ACEOF |
| 21857 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21858 | if { (ac_try="$ac_compile" |
| 21859 | case "(($ac_try" in |
| 21860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21861 | *) ac_try_echo=$ac_try;; |
| 21862 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21864 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21865 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21867 | rm -f conftest.er1 |
| 21868 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21870 | (exit $ac_status); } && { |
| 21871 | test -z "$ac_c_werror_flag" || |
| 21872 | test ! -s conftest.err |
| 21873 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21874 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21875 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21878 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21879 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21880 | /* confdefs.h. */ |
| 21881 | _ACEOF |
| 21882 | cat confdefs.h >>conftest.$ac_ext |
| 21883 | cat >>conftest.$ac_ext <<_ACEOF |
| 21884 | /* end confdefs.h. */ |
| 21885 | $ac_includes_default |
| 21886 | int |
| 21887 | main () |
| 21888 | { |
| 21889 | static struct stat ac_aggr; |
| 21890 | if (sizeof ac_aggr.st_blksize) |
| 21891 | return 0; |
| 21892 | ; |
| 21893 | return 0; |
| 21894 | } |
| 21895 | _ACEOF |
| 21896 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21897 | if { (ac_try="$ac_compile" |
| 21898 | case "(($ac_try" in |
| 21899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21900 | *) ac_try_echo=$ac_try;; |
| 21901 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21903 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21904 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21906 | rm -f conftest.er1 |
| 21907 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21909 | (exit $ac_status); } && { |
| 21910 | test -z "$ac_c_werror_flag" || |
| 21911 | test ! -s conftest.err |
| 21912 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21913 | ac_cv_member_struct_stat_st_blksize=yes |
| 21914 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21915 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21917 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21918 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21919 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21920 | |
| 21921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21922 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21923 | |
| 21924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21925 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21926 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 21927 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 21928 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21930 | cat >>confdefs.h <<_ACEOF |
| 21931 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 21932 | _ACEOF |
| 21933 | |
| 21934 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21935 | fi |
| 21936 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21937 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 21938 | echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; } |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21939 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21941 | else |
| 21942 | cat >conftest.$ac_ext <<_ACEOF |
| 21943 | /* confdefs.h. */ |
| 21944 | _ACEOF |
| 21945 | cat confdefs.h >>conftest.$ac_ext |
| 21946 | cat >>conftest.$ac_ext <<_ACEOF |
| 21947 | /* end confdefs.h. */ |
| 21948 | $ac_includes_default |
| 21949 | int |
| 21950 | main () |
| 21951 | { |
| 21952 | static struct stat ac_aggr; |
| 21953 | if (ac_aggr.st_flags) |
| 21954 | return 0; |
| 21955 | ; |
| 21956 | return 0; |
| 21957 | } |
| 21958 | _ACEOF |
| 21959 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21960 | if { (ac_try="$ac_compile" |
| 21961 | case "(($ac_try" in |
| 21962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21963 | *) ac_try_echo=$ac_try;; |
| 21964 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21966 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21967 | ac_status=$? |
| 21968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21969 | rm -f conftest.er1 |
| 21970 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21972 | (exit $ac_status); } && { |
| 21973 | test -z "$ac_c_werror_flag" || |
| 21974 | test ! -s conftest.err |
| 21975 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21976 | ac_cv_member_struct_stat_st_flags=yes |
| 21977 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21978 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21980 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21981 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21982 | /* confdefs.h. */ |
| 21983 | _ACEOF |
| 21984 | cat confdefs.h >>conftest.$ac_ext |
| 21985 | cat >>conftest.$ac_ext <<_ACEOF |
| 21986 | /* end confdefs.h. */ |
| 21987 | $ac_includes_default |
| 21988 | int |
| 21989 | main () |
| 21990 | { |
| 21991 | static struct stat ac_aggr; |
| 21992 | if (sizeof ac_aggr.st_flags) |
| 21993 | return 0; |
| 21994 | ; |
| 21995 | return 0; |
| 21996 | } |
| 21997 | _ACEOF |
| 21998 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21999 | if { (ac_try="$ac_compile" |
| 22000 | case "(($ac_try" in |
| 22001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22002 | *) ac_try_echo=$ac_try;; |
| 22003 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22005 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22006 | ac_status=$? |
| 22007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22008 | rm -f conftest.er1 |
| 22009 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22011 | (exit $ac_status); } && { |
| 22012 | test -z "$ac_c_werror_flag" || |
| 22013 | test ! -s conftest.err |
| 22014 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22015 | ac_cv_member_struct_stat_st_flags=yes |
| 22016 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22017 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22019 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22020 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22021 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22022 | |
| 22023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22024 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22025 | |
| 22026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22027 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22028 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 22029 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 22030 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22031 | |
| 22032 | cat >>confdefs.h <<_ACEOF |
| 22033 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 22034 | _ACEOF |
| 22035 | |
| 22036 | |
| 22037 | fi |
| 22038 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22039 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 22040 | echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22041 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22043 | else |
| 22044 | cat >conftest.$ac_ext <<_ACEOF |
| 22045 | /* confdefs.h. */ |
| 22046 | _ACEOF |
| 22047 | cat confdefs.h >>conftest.$ac_ext |
| 22048 | cat >>conftest.$ac_ext <<_ACEOF |
| 22049 | /* end confdefs.h. */ |
| 22050 | $ac_includes_default |
| 22051 | int |
| 22052 | main () |
| 22053 | { |
| 22054 | static struct stat ac_aggr; |
| 22055 | if (ac_aggr.st_gen) |
| 22056 | return 0; |
| 22057 | ; |
| 22058 | return 0; |
| 22059 | } |
| 22060 | _ACEOF |
| 22061 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22062 | if { (ac_try="$ac_compile" |
| 22063 | case "(($ac_try" in |
| 22064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22065 | *) ac_try_echo=$ac_try;; |
| 22066 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22068 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22069 | ac_status=$? |
| 22070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22071 | rm -f conftest.er1 |
| 22072 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22074 | (exit $ac_status); } && { |
| 22075 | test -z "$ac_c_werror_flag" || |
| 22076 | test ! -s conftest.err |
| 22077 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22078 | ac_cv_member_struct_stat_st_gen=yes |
| 22079 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22080 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22082 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22083 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22084 | /* confdefs.h. */ |
| 22085 | _ACEOF |
| 22086 | cat confdefs.h >>conftest.$ac_ext |
| 22087 | cat >>conftest.$ac_ext <<_ACEOF |
| 22088 | /* end confdefs.h. */ |
| 22089 | $ac_includes_default |
| 22090 | int |
| 22091 | main () |
| 22092 | { |
| 22093 | static struct stat ac_aggr; |
| 22094 | if (sizeof ac_aggr.st_gen) |
| 22095 | return 0; |
| 22096 | ; |
| 22097 | return 0; |
| 22098 | } |
| 22099 | _ACEOF |
| 22100 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22101 | if { (ac_try="$ac_compile" |
| 22102 | case "(($ac_try" in |
| 22103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22104 | *) ac_try_echo=$ac_try;; |
| 22105 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22107 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22108 | ac_status=$? |
| 22109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22110 | rm -f conftest.er1 |
| 22111 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22113 | (exit $ac_status); } && { |
| 22114 | test -z "$ac_c_werror_flag" || |
| 22115 | test ! -s conftest.err |
| 22116 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22117 | ac_cv_member_struct_stat_st_gen=yes |
| 22118 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22119 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22121 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22122 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22123 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22124 | |
| 22125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22126 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22127 | |
| 22128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22129 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22130 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 22131 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 22132 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22133 | |
| 22134 | cat >>confdefs.h <<_ACEOF |
| 22135 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 22136 | _ACEOF |
| 22137 | |
| 22138 | |
| 22139 | fi |
| 22140 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22141 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 22142 | echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22143 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22145 | else |
| 22146 | cat >conftest.$ac_ext <<_ACEOF |
| 22147 | /* confdefs.h. */ |
| 22148 | _ACEOF |
| 22149 | cat confdefs.h >>conftest.$ac_ext |
| 22150 | cat >>conftest.$ac_ext <<_ACEOF |
| 22151 | /* end confdefs.h. */ |
| 22152 | $ac_includes_default |
| 22153 | int |
| 22154 | main () |
| 22155 | { |
| 22156 | static struct stat ac_aggr; |
| 22157 | if (ac_aggr.st_birthtime) |
| 22158 | return 0; |
| 22159 | ; |
| 22160 | return 0; |
| 22161 | } |
| 22162 | _ACEOF |
| 22163 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22164 | if { (ac_try="$ac_compile" |
| 22165 | case "(($ac_try" in |
| 22166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22167 | *) ac_try_echo=$ac_try;; |
| 22168 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22170 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22171 | ac_status=$? |
| 22172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22173 | rm -f conftest.er1 |
| 22174 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22176 | (exit $ac_status); } && { |
| 22177 | test -z "$ac_c_werror_flag" || |
| 22178 | test ! -s conftest.err |
| 22179 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22180 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22181 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22182 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22184 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22185 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22186 | /* confdefs.h. */ |
| 22187 | _ACEOF |
| 22188 | cat confdefs.h >>conftest.$ac_ext |
| 22189 | cat >>conftest.$ac_ext <<_ACEOF |
| 22190 | /* end confdefs.h. */ |
| 22191 | $ac_includes_default |
| 22192 | int |
| 22193 | main () |
| 22194 | { |
| 22195 | static struct stat ac_aggr; |
| 22196 | if (sizeof ac_aggr.st_birthtime) |
| 22197 | return 0; |
| 22198 | ; |
| 22199 | return 0; |
| 22200 | } |
| 22201 | _ACEOF |
| 22202 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22203 | if { (ac_try="$ac_compile" |
| 22204 | case "(($ac_try" in |
| 22205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22206 | *) ac_try_echo=$ac_try;; |
| 22207 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22209 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22210 | ac_status=$? |
| 22211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22212 | rm -f conftest.er1 |
| 22213 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22215 | (exit $ac_status); } && { |
| 22216 | test -z "$ac_c_werror_flag" || |
| 22217 | test ! -s conftest.err |
| 22218 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22219 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22220 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22221 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22223 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22224 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22225 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22226 | |
| 22227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22228 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22229 | |
| 22230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22231 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22232 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 22233 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 22234 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22235 | |
| 22236 | cat >>confdefs.h <<_ACEOF |
| 22237 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 22238 | _ACEOF |
| 22239 | |
| 22240 | |
| 22241 | fi |
| 22242 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22243 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 22244 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22245 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22247 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22248 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22249 | /* confdefs.h. */ |
| 22250 | _ACEOF |
| 22251 | cat confdefs.h >>conftest.$ac_ext |
| 22252 | cat >>conftest.$ac_ext <<_ACEOF |
| 22253 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22254 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22255 | int |
| 22256 | main () |
| 22257 | { |
| 22258 | static struct stat ac_aggr; |
| 22259 | if (ac_aggr.st_blocks) |
| 22260 | return 0; |
| 22261 | ; |
| 22262 | return 0; |
| 22263 | } |
| 22264 | _ACEOF |
| 22265 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22266 | if { (ac_try="$ac_compile" |
| 22267 | case "(($ac_try" in |
| 22268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22269 | *) ac_try_echo=$ac_try;; |
| 22270 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22272 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22273 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22275 | rm -f conftest.er1 |
| 22276 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22278 | (exit $ac_status); } && { |
| 22279 | test -z "$ac_c_werror_flag" || |
| 22280 | test ! -s conftest.err |
| 22281 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22282 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22283 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22284 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22286 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22287 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22288 | /* confdefs.h. */ |
| 22289 | _ACEOF |
| 22290 | cat confdefs.h >>conftest.$ac_ext |
| 22291 | cat >>conftest.$ac_ext <<_ACEOF |
| 22292 | /* end confdefs.h. */ |
| 22293 | $ac_includes_default |
| 22294 | int |
| 22295 | main () |
| 22296 | { |
| 22297 | static struct stat ac_aggr; |
| 22298 | if (sizeof ac_aggr.st_blocks) |
| 22299 | return 0; |
| 22300 | ; |
| 22301 | return 0; |
| 22302 | } |
| 22303 | _ACEOF |
| 22304 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22305 | if { (ac_try="$ac_compile" |
| 22306 | case "(($ac_try" in |
| 22307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22308 | *) ac_try_echo=$ac_try;; |
| 22309 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22311 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22312 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22314 | rm -f conftest.er1 |
| 22315 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22317 | (exit $ac_status); } && { |
| 22318 | test -z "$ac_c_werror_flag" || |
| 22319 | test ! -s conftest.err |
| 22320 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22321 | ac_cv_member_struct_stat_st_blocks=yes |
| 22322 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22323 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22325 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22326 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22327 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22328 | |
| 22329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22330 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22331 | |
| 22332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22333 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22334 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 22335 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 22336 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22338 | cat >>confdefs.h <<_ACEOF |
| 22339 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 22340 | _ACEOF |
| 22341 | |
| 22342 | |
| 22343 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22344 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22345 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22346 | |
| 22347 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22348 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22349 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22350 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 22351 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22352 | esac |
| 22353 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22354 | fi |
| 22355 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22357 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22358 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 22359 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22360 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22363 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22364 | /* confdefs.h. */ |
| 22365 | _ACEOF |
| 22366 | cat confdefs.h >>conftest.$ac_ext |
| 22367 | cat >>conftest.$ac_ext <<_ACEOF |
| 22368 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22369 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22370 | int |
| 22371 | main () |
| 22372 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22373 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22374 | ; |
| 22375 | return 0; |
| 22376 | } |
| 22377 | _ACEOF |
| 22378 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22379 | if { (ac_try="$ac_compile" |
| 22380 | case "(($ac_try" in |
| 22381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22382 | *) ac_try_echo=$ac_try;; |
| 22383 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22385 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22386 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22388 | rm -f conftest.er1 |
| 22389 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22391 | (exit $ac_status); } && { |
| 22392 | test -z "$ac_c_werror_flag" || |
| 22393 | test ! -s conftest.err |
| 22394 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22395 | ac_cv_header_time_altzone=yes |
| 22396 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22397 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22399 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22400 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22401 | fi |
| 22402 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22404 | fi |
| 22405 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22406 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 22407 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22408 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22409 | |
| 22410 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22411 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22412 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22413 | |
| 22414 | fi |
| 22415 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22416 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22417 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 22418 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22419 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22420 | /* confdefs.h. */ |
| 22421 | _ACEOF |
| 22422 | cat confdefs.h >>conftest.$ac_ext |
| 22423 | cat >>conftest.$ac_ext <<_ACEOF |
| 22424 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22425 | |
| 22426 | #include <sys/types.h> |
| 22427 | #include <sys/select.h> |
| 22428 | #include <sys/time.h> |
| 22429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22430 | int |
| 22431 | main () |
| 22432 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22433 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22434 | ; |
| 22435 | return 0; |
| 22436 | } |
| 22437 | _ACEOF |
| 22438 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22439 | if { (ac_try="$ac_compile" |
| 22440 | case "(($ac_try" in |
| 22441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22442 | *) ac_try_echo=$ac_try;; |
| 22443 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22445 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22446 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22448 | rm -f conftest.er1 |
| 22449 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22451 | (exit $ac_status); } && { |
| 22452 | test -z "$ac_c_werror_flag" || |
| 22453 | test ! -s conftest.err |
| 22454 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22455 | |
| 22456 | |
| 22457 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22458 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22459 | _ACEOF |
| 22460 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22461 | was_it_defined=yes |
| 22462 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22463 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22464 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22466 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 22467 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22468 | fi |
| 22469 | |
| 22470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22471 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 22472 | echo "${ECHO_T}$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22473 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22474 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 22475 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22476 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22479 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22480 | /* confdefs.h. */ |
| 22481 | _ACEOF |
| 22482 | cat confdefs.h >>conftest.$ac_ext |
| 22483 | cat >>conftest.$ac_ext <<_ACEOF |
| 22484 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22485 | |
| 22486 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22487 | int |
| 22488 | main () |
| 22489 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22490 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22491 | ; |
| 22492 | return 0; |
| 22493 | } |
| 22494 | _ACEOF |
| 22495 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22496 | if { (ac_try="$ac_compile" |
| 22497 | case "(($ac_try" in |
| 22498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22499 | *) ac_try_echo=$ac_try;; |
| 22500 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22502 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22503 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22505 | rm -f conftest.er1 |
| 22506 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22508 | (exit $ac_status); } && { |
| 22509 | test -z "$ac_c_werror_flag" || |
| 22510 | test ! -s conftest.err |
| 22511 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22512 | ac_cv_struct_addrinfo=yes |
| 22513 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22514 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22516 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22517 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22518 | fi |
| 22519 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22521 | fi |
| 22522 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22523 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 22524 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22525 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22526 | |
| 22527 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22528 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22529 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22530 | |
| 22531 | fi |
| 22532 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22533 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 22534 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22535 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22538 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22539 | /* confdefs.h. */ |
| 22540 | _ACEOF |
| 22541 | cat confdefs.h >>conftest.$ac_ext |
| 22542 | cat >>conftest.$ac_ext <<_ACEOF |
| 22543 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22544 | |
| 22545 | # include <sys/types.h> |
| 22546 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22547 | int |
| 22548 | main () |
| 22549 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22550 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22551 | ; |
| 22552 | return 0; |
| 22553 | } |
| 22554 | _ACEOF |
| 22555 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22556 | if { (ac_try="$ac_compile" |
| 22557 | case "(($ac_try" in |
| 22558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22559 | *) ac_try_echo=$ac_try;; |
| 22560 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22562 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22563 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22565 | rm -f conftest.er1 |
| 22566 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22568 | (exit $ac_status); } && { |
| 22569 | test -z "$ac_c_werror_flag" || |
| 22570 | test ! -s conftest.err |
| 22571 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22572 | ac_cv_struct_sockaddr_storage=yes |
| 22573 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22574 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22576 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22577 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22578 | fi |
| 22579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22581 | fi |
| 22582 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22583 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 22584 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22585 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22586 | |
| 22587 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22588 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22589 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22590 | |
| 22591 | fi |
| 22592 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22593 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22594 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22595 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22596 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 22597 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22598 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22600 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22601 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22602 | /* confdefs.h. */ |
| 22603 | _ACEOF |
| 22604 | cat confdefs.h >>conftest.$ac_ext |
| 22605 | cat >>conftest.$ac_ext <<_ACEOF |
| 22606 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22607 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22608 | int |
| 22609 | main () |
| 22610 | { |
| 22611 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 22612 | test_array [0] = 0 |
| 22613 | |
| 22614 | ; |
| 22615 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22616 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22617 | _ACEOF |
| 22618 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22619 | if { (ac_try="$ac_compile" |
| 22620 | case "(($ac_try" in |
| 22621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22622 | *) ac_try_echo=$ac_try;; |
| 22623 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22625 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22626 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22628 | rm -f conftest.er1 |
| 22629 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22631 | (exit $ac_status); } && { |
| 22632 | test -z "$ac_c_werror_flag" || |
| 22633 | test ! -s conftest.err |
| 22634 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22635 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22636 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22637 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22639 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22640 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22641 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22642 | |
| 22643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22644 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22645 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 22646 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22647 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22648 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22649 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22650 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22651 | |
| 22652 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22653 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22654 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 22655 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22656 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22658 | else |
| 22659 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22660 | /* confdefs.h. */ |
| 22661 | _ACEOF |
| 22662 | cat confdefs.h >>conftest.$ac_ext |
| 22663 | cat >>conftest.$ac_ext <<_ACEOF |
| 22664 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22666 | int |
| 22667 | main () |
| 22668 | { |
| 22669 | /* FIXME: Include the comments suggested by Paul. */ |
| 22670 | #ifndef __cplusplus |
| 22671 | /* Ultrix mips cc rejects this. */ |
| 22672 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22673 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22674 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22675 | char const *const *pcpcc; |
| 22676 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22677 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 22678 | struct point {int x, y;}; |
| 22679 | static struct point const zero = {0,0}; |
| 22680 | /* AIX XL C 1.02.0.0 rejects this. |
| 22681 | It does not let you subtract one const X* pointer from another in |
| 22682 | an arm of an if-expression whose if-part is not a constant |
| 22683 | expression */ |
| 22684 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22685 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22686 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22687 | ++pcpcc; |
| 22688 | ppc = (char**) pcpcc; |
| 22689 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22690 | { /* SCO 3.2v4 cc rejects this. */ |
| 22691 | char *t; |
| 22692 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22694 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22695 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22696 | } |
| 22697 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22698 | int x[] = {25, 17}; |
| 22699 | const int *foo = &x[0]; |
| 22700 | ++foo; |
| 22701 | } |
| 22702 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22703 | typedef const int *iptr; |
| 22704 | iptr p = 0; |
| 22705 | ++p; |
| 22706 | } |
| 22707 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 22708 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22709 | struct s { int j; const int *ap[3]; }; |
| 22710 | struct s *b; b->j = 5; |
| 22711 | } |
| 22712 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22713 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22714 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22715 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22716 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22717 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22719 | ; |
| 22720 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22721 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22722 | _ACEOF |
| 22723 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22724 | if { (ac_try="$ac_compile" |
| 22725 | case "(($ac_try" in |
| 22726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22727 | *) ac_try_echo=$ac_try;; |
| 22728 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22730 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22731 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22733 | rm -f conftest.er1 |
| 22734 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22736 | (exit $ac_status); } && { |
| 22737 | test -z "$ac_c_werror_flag" || |
| 22738 | test ! -s conftest.err |
| 22739 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22740 | ac_cv_c_const=yes |
| 22741 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22742 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22744 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22745 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22746 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22747 | |
| 22748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22749 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22750 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 22751 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22752 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22753 | |
| 22754 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22755 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22756 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22757 | |
| 22758 | fi |
| 22759 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22760 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22761 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22762 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 22763 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22764 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22765 | /* confdefs.h. */ |
| 22766 | _ACEOF |
| 22767 | cat confdefs.h >>conftest.$ac_ext |
| 22768 | cat >>conftest.$ac_ext <<_ACEOF |
| 22769 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22771 | int |
| 22772 | main () |
| 22773 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22774 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22775 | ; |
| 22776 | return 0; |
| 22777 | } |
| 22778 | _ACEOF |
| 22779 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22780 | if { (ac_try="$ac_compile" |
| 22781 | case "(($ac_try" in |
| 22782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22783 | *) ac_try_echo=$ac_try;; |
| 22784 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22786 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22787 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22789 | rm -f conftest.er1 |
| 22790 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22792 | (exit $ac_status); } && { |
| 22793 | test -z "$ac_c_werror_flag" || |
| 22794 | test ! -s conftest.err |
| 22795 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22796 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22797 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22798 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22800 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22801 | |
| 22802 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22803 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22804 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22805 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22806 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22807 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22808 | |
| 22809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22810 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22811 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22812 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22813 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22814 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 22815 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22816 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22817 | /* confdefs.h. */ |
| 22818 | _ACEOF |
| 22819 | cat confdefs.h >>conftest.$ac_ext |
| 22820 | cat >>conftest.$ac_ext <<_ACEOF |
| 22821 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22823 | int |
| 22824 | main () |
| 22825 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22826 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22827 | ; |
| 22828 | return 0; |
| 22829 | } |
| 22830 | _ACEOF |
| 22831 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22832 | if { (ac_try="$ac_compile" |
| 22833 | case "(($ac_try" in |
| 22834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22835 | *) ac_try_echo=$ac_try;; |
| 22836 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22838 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22839 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22841 | rm -f conftest.er1 |
| 22842 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22844 | (exit $ac_status); } && { |
| 22845 | test -z "$ac_c_werror_flag" || |
| 22846 | test ! -s conftest.err |
| 22847 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22848 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22849 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22850 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22852 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22853 | |
| 22854 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22855 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22856 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22857 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22858 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22859 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22860 | |
| 22861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22862 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22863 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22864 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22865 | have_prototypes=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22866 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 22867 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22868 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22869 | /* confdefs.h. */ |
| 22870 | _ACEOF |
| 22871 | cat confdefs.h >>conftest.$ac_ext |
| 22872 | cat >>conftest.$ac_ext <<_ACEOF |
| 22873 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22874 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22875 | int |
| 22876 | main () |
| 22877 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22878 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22879 | ; |
| 22880 | return 0; |
| 22881 | } |
| 22882 | _ACEOF |
| 22883 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22884 | if { (ac_try="$ac_compile" |
| 22885 | case "(($ac_try" in |
| 22886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22887 | *) ac_try_echo=$ac_try;; |
| 22888 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22890 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22891 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22893 | rm -f conftest.er1 |
| 22894 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22896 | (exit $ac_status); } && { |
| 22897 | test -z "$ac_c_werror_flag" || |
| 22898 | test ! -s conftest.err |
| 22899 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22900 | |
| 22901 | |
| 22902 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22903 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22904 | _ACEOF |
| 22905 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22906 | have_prototypes=yes |
| 22907 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22908 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22909 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22911 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22912 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22913 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22914 | |
| 22915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22916 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 22917 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22918 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22919 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22920 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 22921 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22922 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22923 | /* confdefs.h. */ |
| 22924 | _ACEOF |
| 22925 | cat confdefs.h >>conftest.$ac_ext |
| 22926 | cat >>conftest.$ac_ext <<_ACEOF |
| 22927 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22928 | |
| 22929 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22930 | int foo(int x, ...) { |
| 22931 | va_list va; |
| 22932 | va_start(va, x); |
| 22933 | va_arg(va, int); |
| 22934 | va_arg(va, char *); |
| 22935 | va_arg(va, double); |
| 22936 | return 0; |
| 22937 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22939 | int |
| 22940 | main () |
| 22941 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22942 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22943 | ; |
| 22944 | return 0; |
| 22945 | } |
| 22946 | _ACEOF |
| 22947 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22948 | if { (ac_try="$ac_compile" |
| 22949 | case "(($ac_try" in |
| 22950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22951 | *) ac_try_echo=$ac_try;; |
| 22952 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22954 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22955 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22957 | rm -f conftest.er1 |
| 22958 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22960 | (exit $ac_status); } && { |
| 22961 | test -z "$ac_c_werror_flag" || |
| 22962 | test ! -s conftest.err |
| 22963 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22964 | |
| 22965 | |
| 22966 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22967 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22968 | _ACEOF |
| 22969 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22970 | works=yes |
| 22971 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22972 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22973 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22975 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22976 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22977 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22978 | |
| 22979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22980 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22981 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22982 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22983 | # check for socketpair |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22984 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 22985 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22986 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22987 | /* confdefs.h. */ |
| 22988 | _ACEOF |
| 22989 | cat confdefs.h >>conftest.$ac_ext |
| 22990 | cat >>conftest.$ac_ext <<_ACEOF |
| 22991 | /* end confdefs.h. */ |
| 22992 | |
| 22993 | #include <sys/types.h> |
| 22994 | #include <sys/socket.h> |
| 22995 | |
| 22996 | int |
| 22997 | main () |
| 22998 | { |
| 22999 | void *x=socketpair |
| 23000 | ; |
| 23001 | return 0; |
| 23002 | } |
| 23003 | _ACEOF |
| 23004 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23005 | if { (ac_try="$ac_compile" |
| 23006 | case "(($ac_try" in |
| 23007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23008 | *) ac_try_echo=$ac_try;; |
| 23009 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23011 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23012 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23014 | rm -f conftest.er1 |
| 23015 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23017 | (exit $ac_status); } && { |
| 23018 | test -z "$ac_c_werror_flag" || |
| 23019 | test ! -s conftest.err |
| 23020 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23021 | |
| 23022 | cat >>confdefs.h <<\_ACEOF |
| 23023 | #define HAVE_SOCKETPAIR 1 |
| 23024 | _ACEOF |
| 23025 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23026 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23027 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23028 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23029 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23031 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23032 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23033 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23034 | |
| 23035 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23036 | |
| 23037 | 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] | 23038 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23039 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23040 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 23041 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23043 | /* confdefs.h. */ |
| 23044 | _ACEOF |
| 23045 | cat confdefs.h >>conftest.$ac_ext |
| 23046 | cat >>conftest.$ac_ext <<_ACEOF |
| 23047 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23048 | #include <sys/types.h> |
| 23049 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23050 | int |
| 23051 | main () |
| 23052 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23053 | struct sockaddr x; |
| 23054 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23055 | ; |
| 23056 | return 0; |
| 23057 | } |
| 23058 | _ACEOF |
| 23059 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23060 | if { (ac_try="$ac_compile" |
| 23061 | case "(($ac_try" in |
| 23062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23063 | *) ac_try_echo=$ac_try;; |
| 23064 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23066 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23067 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23069 | rm -f conftest.er1 |
| 23070 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23072 | (exit $ac_status); } && { |
| 23073 | test -z "$ac_c_werror_flag" || |
| 23074 | test ! -s conftest.err |
| 23075 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23076 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23077 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23078 | |
| 23079 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23080 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23081 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23082 | |
| 23083 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23086 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23087 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23088 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23089 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23090 | |
| 23091 | 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] | 23092 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 23093 | va_list_is_array=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23094 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 23095 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23096 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23097 | /* confdefs.h. */ |
| 23098 | _ACEOF |
| 23099 | cat confdefs.h >>conftest.$ac_ext |
| 23100 | cat >>conftest.$ac_ext <<_ACEOF |
| 23101 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23102 | |
| 23103 | #ifdef HAVE_STDARG_PROTOTYPES |
| 23104 | #include <stdarg.h> |
| 23105 | #else |
| 23106 | #include <varargs.h> |
| 23107 | #endif |
| 23108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23109 | int |
| 23110 | main () |
| 23111 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23112 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23113 | ; |
| 23114 | return 0; |
| 23115 | } |
| 23116 | _ACEOF |
| 23117 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23118 | if { (ac_try="$ac_compile" |
| 23119 | case "(($ac_try" in |
| 23120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23121 | *) ac_try_echo=$ac_try;; |
| 23122 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23124 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23125 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23127 | rm -f conftest.er1 |
| 23128 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23130 | (exit $ac_status); } && { |
| 23131 | test -z "$ac_c_werror_flag" || |
| 23132 | test ! -s conftest.err |
| 23133 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23134 | : |
| 23135 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23136 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23139 | |
| 23140 | |
| 23141 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23142 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23143 | _ACEOF |
| 23144 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 23145 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 23146 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23147 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23148 | |
| 23149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23150 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 23151 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23152 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23153 | # 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] | 23154 | |
| 23155 | |
| 23156 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23157 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 23158 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23159 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23162 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23163 | /* confdefs.h. */ |
| 23164 | _ACEOF |
| 23165 | cat confdefs.h >>conftest.$ac_ext |
| 23166 | cat >>conftest.$ac_ext <<_ACEOF |
| 23167 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23168 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 23169 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23170 | #define gethostbyname_r innocuous_gethostbyname_r |
| 23171 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23172 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23173 | which can conflict with char gethostbyname_r (); below. |
| 23174 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23175 | <limits.h> exists even on freestanding compilers. */ |
| 23176 | |
| 23177 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23178 | # include <limits.h> |
| 23179 | #else |
| 23180 | # include <assert.h> |
| 23181 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23182 | |
| 23183 | #undef gethostbyname_r |
| 23184 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23185 | /* Override any GCC internal prototype to avoid an error. |
| 23186 | Use char because int might match the return type of a GCC |
| 23187 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23188 | #ifdef __cplusplus |
| 23189 | extern "C" |
| 23190 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23191 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23192 | /* The GNU C library defines this for functions which it implements |
| 23193 | to always fail with ENOSYS. Some functions are actually named |
| 23194 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23195 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23196 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23197 | #endif |
| 23198 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23199 | int |
| 23200 | main () |
| 23201 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23202 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23203 | ; |
| 23204 | return 0; |
| 23205 | } |
| 23206 | _ACEOF |
| 23207 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23208 | if { (ac_try="$ac_link" |
| 23209 | case "(($ac_try" in |
| 23210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23211 | *) ac_try_echo=$ac_try;; |
| 23212 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23214 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23215 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23217 | rm -f conftest.er1 |
| 23218 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23220 | (exit $ac_status); } && { |
| 23221 | test -z "$ac_c_werror_flag" || |
| 23222 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23223 | } && test -s conftest$ac_exeext && |
| 23224 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23225 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23226 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23227 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23229 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23230 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23231 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23232 | |
| 23233 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23234 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23235 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23236 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 23237 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 23238 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23240 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23241 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23242 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23243 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23244 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 23245 | echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23246 | OLD_CFLAGS=$CFLAGS |
| 23247 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23248 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23249 | /* confdefs.h. */ |
| 23250 | _ACEOF |
| 23251 | cat confdefs.h >>conftest.$ac_ext |
| 23252 | cat >>conftest.$ac_ext <<_ACEOF |
| 23253 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23254 | |
| 23255 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23256 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23257 | int |
| 23258 | main () |
| 23259 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23260 | |
| 23261 | char *name; |
| 23262 | struct hostent *he, *res; |
| 23263 | char buffer[2048]; |
| 23264 | int buflen = 2048; |
| 23265 | int h_errnop; |
| 23266 | |
| 23267 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23268 | |
| 23269 | ; |
| 23270 | return 0; |
| 23271 | } |
| 23272 | _ACEOF |
| 23273 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23274 | if { (ac_try="$ac_compile" |
| 23275 | case "(($ac_try" in |
| 23276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23277 | *) ac_try_echo=$ac_try;; |
| 23278 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23280 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23281 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23283 | rm -f conftest.er1 |
| 23284 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23286 | (exit $ac_status); } && { |
| 23287 | test -z "$ac_c_werror_flag" || |
| 23288 | test ! -s conftest.err |
| 23289 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23290 | |
| 23291 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23292 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23293 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23295 | |
| 23296 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23297 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23298 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23299 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23300 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23301 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23302 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23303 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23304 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23307 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23308 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23309 | echo "${ECHO_T}no" >&6; } |
| 23310 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 23311 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23312 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23313 | /* confdefs.h. */ |
| 23314 | _ACEOF |
| 23315 | cat confdefs.h >>conftest.$ac_ext |
| 23316 | cat >>conftest.$ac_ext <<_ACEOF |
| 23317 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23318 | |
| 23319 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23321 | int |
| 23322 | main () |
| 23323 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23324 | |
| 23325 | char *name; |
| 23326 | struct hostent *he; |
| 23327 | char buffer[2048]; |
| 23328 | int buflen = 2048; |
| 23329 | int h_errnop; |
| 23330 | |
| 23331 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23332 | |
| 23333 | ; |
| 23334 | return 0; |
| 23335 | } |
| 23336 | _ACEOF |
| 23337 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23338 | if { (ac_try="$ac_compile" |
| 23339 | case "(($ac_try" in |
| 23340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23341 | *) ac_try_echo=$ac_try;; |
| 23342 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23344 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23345 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23347 | rm -f conftest.er1 |
| 23348 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23350 | (exit $ac_status); } && { |
| 23351 | test -z "$ac_c_werror_flag" || |
| 23352 | test ! -s conftest.err |
| 23353 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23354 | |
| 23355 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23356 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23357 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23359 | |
| 23360 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23361 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23362 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23363 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23364 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23365 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23366 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23367 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23368 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23370 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23371 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23372 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23373 | echo "${ECHO_T}no" >&6; } |
| 23374 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 23375 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23376 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23377 | /* confdefs.h. */ |
| 23378 | _ACEOF |
| 23379 | cat confdefs.h >>conftest.$ac_ext |
| 23380 | cat >>conftest.$ac_ext <<_ACEOF |
| 23381 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23382 | |
| 23383 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23384 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23385 | int |
| 23386 | main () |
| 23387 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23388 | |
| 23389 | char *name; |
| 23390 | struct hostent *he; |
| 23391 | struct hostent_data data; |
| 23392 | |
| 23393 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23394 | |
| 23395 | ; |
| 23396 | return 0; |
| 23397 | } |
| 23398 | _ACEOF |
| 23399 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23400 | if { (ac_try="$ac_compile" |
| 23401 | case "(($ac_try" in |
| 23402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23403 | *) ac_try_echo=$ac_try;; |
| 23404 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23406 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23407 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23409 | rm -f conftest.er1 |
| 23410 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23412 | (exit $ac_status); } && { |
| 23413 | test -z "$ac_c_werror_flag" || |
| 23414 | test ! -s conftest.err |
| 23415 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23416 | |
| 23417 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23418 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23419 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23421 | |
| 23422 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23423 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23424 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23425 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23426 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23427 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23428 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23429 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23430 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23433 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23434 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23435 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23436 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23437 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23438 | |
| 23439 | 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] | 23440 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23441 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23442 | |
| 23443 | 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] | 23444 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23445 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23446 | |
| 23447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23448 | CFLAGS=$OLD_CFLAGS |
| 23449 | |
| 23450 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23452 | |
| 23453 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23454 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23455 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23456 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23457 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23458 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23460 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23461 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23462 | /* confdefs.h. */ |
| 23463 | _ACEOF |
| 23464 | cat confdefs.h >>conftest.$ac_ext |
| 23465 | cat >>conftest.$ac_ext <<_ACEOF |
| 23466 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23467 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23468 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23469 | #define $ac_func innocuous_$ac_func |
| 23470 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23471 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23472 | which can conflict with char $ac_func (); below. |
| 23473 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23474 | <limits.h> exists even on freestanding compilers. */ |
| 23475 | |
| 23476 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23477 | # include <limits.h> |
| 23478 | #else |
| 23479 | # include <assert.h> |
| 23480 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23481 | |
| 23482 | #undef $ac_func |
| 23483 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23484 | /* Override any GCC internal prototype to avoid an error. |
| 23485 | Use char because int might match the return type of a GCC |
| 23486 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23487 | #ifdef __cplusplus |
| 23488 | extern "C" |
| 23489 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23490 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23491 | /* The GNU C library defines this for functions which it implements |
| 23492 | to always fail with ENOSYS. Some functions are actually named |
| 23493 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23494 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23495 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23496 | #endif |
| 23497 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23498 | int |
| 23499 | main () |
| 23500 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23501 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23502 | ; |
| 23503 | return 0; |
| 23504 | } |
| 23505 | _ACEOF |
| 23506 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23507 | if { (ac_try="$ac_link" |
| 23508 | case "(($ac_try" in |
| 23509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23510 | *) ac_try_echo=$ac_try;; |
| 23511 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23513 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23514 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23516 | rm -f conftest.er1 |
| 23517 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23519 | (exit $ac_status); } && { |
| 23520 | test -z "$ac_c_werror_flag" || |
| 23521 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23522 | } && test -s conftest$ac_exeext && |
| 23523 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23524 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23525 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23526 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23528 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23529 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23530 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23531 | |
| 23532 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23533 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23534 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23535 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23536 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23537 | echo "${ECHO_T}$ac_res" >&6; } |
| 23538 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23539 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23540 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23541 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23542 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23543 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23544 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23545 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23546 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23547 | fi |
| 23548 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23549 | |
| 23550 | |
| 23551 | |
| 23552 | |
| 23553 | |
| 23554 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23555 | # checks for system services |
| 23556 | # (none yet) |
| 23557 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23558 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23559 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 23560 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23561 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23564 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23565 | /* confdefs.h. */ |
| 23566 | _ACEOF |
| 23567 | cat confdefs.h >>conftest.$ac_ext |
| 23568 | cat >>conftest.$ac_ext <<_ACEOF |
| 23569 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23570 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 23571 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23572 | #define __fpu_control innocuous___fpu_control |
| 23573 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23574 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23575 | which can conflict with char __fpu_control (); below. |
| 23576 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23577 | <limits.h> exists even on freestanding compilers. */ |
| 23578 | |
| 23579 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23580 | # include <limits.h> |
| 23581 | #else |
| 23582 | # include <assert.h> |
| 23583 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23584 | |
| 23585 | #undef __fpu_control |
| 23586 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23587 | /* Override any GCC internal prototype to avoid an error. |
| 23588 | Use char because int might match the return type of a GCC |
| 23589 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23590 | #ifdef __cplusplus |
| 23591 | extern "C" |
| 23592 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23593 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23594 | /* The GNU C library defines this for functions which it implements |
| 23595 | to always fail with ENOSYS. Some functions are actually named |
| 23596 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23597 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23598 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23599 | #endif |
| 23600 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23601 | int |
| 23602 | main () |
| 23603 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23604 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23605 | ; |
| 23606 | return 0; |
| 23607 | } |
| 23608 | _ACEOF |
| 23609 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23610 | if { (ac_try="$ac_link" |
| 23611 | case "(($ac_try" in |
| 23612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23613 | *) ac_try_echo=$ac_try;; |
| 23614 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23616 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23617 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23619 | rm -f conftest.er1 |
| 23620 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23622 | (exit $ac_status); } && { |
| 23623 | test -z "$ac_c_werror_flag" || |
| 23624 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23625 | } && test -s conftest$ac_exeext && |
| 23626 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23627 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23628 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23629 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23631 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23632 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23633 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23634 | |
| 23635 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23636 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23637 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23638 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 23639 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 23640 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23641 | : |
| 23642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23643 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23644 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 23645 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23646 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23649 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23650 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23651 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23652 | /* confdefs.h. */ |
| 23653 | _ACEOF |
| 23654 | cat confdefs.h >>conftest.$ac_ext |
| 23655 | cat >>conftest.$ac_ext <<_ACEOF |
| 23656 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23657 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23658 | /* Override any GCC internal prototype to avoid an error. |
| 23659 | Use char because int might match the return type of a GCC |
| 23660 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23661 | #ifdef __cplusplus |
| 23662 | extern "C" |
| 23663 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23664 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23665 | int |
| 23666 | main () |
| 23667 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23668 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23669 | ; |
| 23670 | return 0; |
| 23671 | } |
| 23672 | _ACEOF |
| 23673 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23674 | if { (ac_try="$ac_link" |
| 23675 | case "(($ac_try" in |
| 23676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23677 | *) ac_try_echo=$ac_try;; |
| 23678 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23680 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23681 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23683 | rm -f conftest.er1 |
| 23684 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23686 | (exit $ac_status); } && { |
| 23687 | test -z "$ac_c_werror_flag" || |
| 23688 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23689 | } && test -s conftest$ac_exeext && |
| 23690 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23691 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23692 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23693 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23695 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23696 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23697 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23698 | |
| 23699 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23700 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23701 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23702 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23703 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 23704 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 23705 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23706 | cat >>confdefs.h <<_ACEOF |
| 23707 | #define HAVE_LIBIEEE 1 |
| 23708 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23709 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23710 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23711 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23712 | fi |
| 23713 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23714 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23715 | fi |
| 23716 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23717 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23718 | # Check for --with-fpectl |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23719 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 23720 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23721 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23722 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23723 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23724 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23725 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23726 | then |
| 23727 | |
| 23728 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23729 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23730 | _ACEOF |
| 23731 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23732 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23733 | echo "${ECHO_T}yes" >&6; } |
| 23734 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 23735 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23736 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23737 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23738 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23739 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23740 | fi |
| 23741 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23742 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23743 | # check for --with-libm=... |
| 23744 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23745 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 23746 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 23747 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23748 | *) LIBM=-lm |
| 23749 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23750 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 23751 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23752 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23753 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23754 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23755 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23756 | if test "$withval" = no |
| 23757 | then LIBM= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23758 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 23759 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23760 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23761 | then LIBM=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23762 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 23763 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 23764 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 23765 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23766 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23767 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23768 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23769 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 23770 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23771 | fi |
| 23772 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23773 | |
| 23774 | # check for --with-libc=... |
| 23775 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23776 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 23777 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23778 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23779 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23780 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23781 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23782 | if test "$withval" = no |
| 23783 | then LIBC= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23784 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 23785 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23786 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23787 | then LIBC=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23788 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 23789 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 23790 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 23791 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23792 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23793 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23794 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23795 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 23796 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23797 | fi |
| 23798 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23799 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23800 | # ************************************************** |
| 23801 | # * Check for various properties of floating point * |
| 23802 | # ************************************************** |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23803 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23804 | { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 23805 | echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23806 | if test "${ac_cv_little_endian_double+set}" = set; then |
| 23807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23808 | else |
| 23809 | |
| 23810 | if test "$cross_compiling" = yes; then |
| 23811 | ac_cv_little_endian_double=no |
| 23812 | else |
| 23813 | cat >conftest.$ac_ext <<_ACEOF |
| 23814 | /* confdefs.h. */ |
| 23815 | _ACEOF |
| 23816 | cat confdefs.h >>conftest.$ac_ext |
| 23817 | cat >>conftest.$ac_ext <<_ACEOF |
| 23818 | /* end confdefs.h. */ |
| 23819 | |
| 23820 | #include <string.h> |
| 23821 | int main() { |
| 23822 | double x = 9006104071832581.0; |
| 23823 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 23824 | return 0; |
| 23825 | else |
| 23826 | return 1; |
| 23827 | } |
| 23828 | |
| 23829 | _ACEOF |
| 23830 | rm -f conftest$ac_exeext |
| 23831 | if { (ac_try="$ac_link" |
| 23832 | case "(($ac_try" in |
| 23833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23834 | *) ac_try_echo=$ac_try;; |
| 23835 | esac |
| 23836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23837 | (eval "$ac_link") 2>&5 |
| 23838 | ac_status=$? |
| 23839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23840 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23841 | { (case "(($ac_try" in |
| 23842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23843 | *) ac_try_echo=$ac_try;; |
| 23844 | esac |
| 23845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23846 | (eval "$ac_try") 2>&5 |
| 23847 | ac_status=$? |
| 23848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23849 | (exit $ac_status); }; }; then |
| 23850 | ac_cv_little_endian_double=yes |
| 23851 | else |
| 23852 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23853 | echo "$as_me: failed program was:" >&5 |
| 23854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23855 | |
| 23856 | ( exit $ac_status ) |
| 23857 | ac_cv_little_endian_double=no |
| 23858 | fi |
| 23859 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23860 | fi |
| 23861 | |
| 23862 | |
| 23863 | fi |
| 23864 | |
| 23865 | { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5 |
| 23866 | echo "${ECHO_T}$ac_cv_little_endian_double" >&6; } |
| 23867 | if test "$ac_cv_little_endian_double" = yes |
| 23868 | then |
| 23869 | |
| 23870 | cat >>confdefs.h <<\_ACEOF |
| 23871 | #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 |
| 23872 | _ACEOF |
| 23873 | |
| 23874 | fi |
| 23875 | |
| 23876 | { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 23877 | echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23878 | if test "${ac_cv_big_endian_double+set}" = set; then |
| 23879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23880 | else |
| 23881 | |
| 23882 | if test "$cross_compiling" = yes; then |
| 23883 | ac_cv_big_endian_double=no |
| 23884 | else |
| 23885 | cat >conftest.$ac_ext <<_ACEOF |
| 23886 | /* confdefs.h. */ |
| 23887 | _ACEOF |
| 23888 | cat confdefs.h >>conftest.$ac_ext |
| 23889 | cat >>conftest.$ac_ext <<_ACEOF |
| 23890 | /* end confdefs.h. */ |
| 23891 | |
| 23892 | #include <string.h> |
| 23893 | int main() { |
| 23894 | double x = 9006104071832581.0; |
| 23895 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 23896 | return 0; |
| 23897 | else |
| 23898 | return 1; |
| 23899 | } |
| 23900 | |
| 23901 | _ACEOF |
| 23902 | rm -f conftest$ac_exeext |
| 23903 | if { (ac_try="$ac_link" |
| 23904 | case "(($ac_try" in |
| 23905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23906 | *) ac_try_echo=$ac_try;; |
| 23907 | esac |
| 23908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23909 | (eval "$ac_link") 2>&5 |
| 23910 | ac_status=$? |
| 23911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23912 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23913 | { (case "(($ac_try" in |
| 23914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23915 | *) ac_try_echo=$ac_try;; |
| 23916 | esac |
| 23917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23918 | (eval "$ac_try") 2>&5 |
| 23919 | ac_status=$? |
| 23920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23921 | (exit $ac_status); }; }; then |
| 23922 | ac_cv_big_endian_double=yes |
| 23923 | else |
| 23924 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23925 | echo "$as_me: failed program was:" >&5 |
| 23926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23927 | |
| 23928 | ( exit $ac_status ) |
| 23929 | ac_cv_big_endian_double=no |
| 23930 | fi |
| 23931 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23932 | fi |
| 23933 | |
| 23934 | |
| 23935 | fi |
| 23936 | |
| 23937 | { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5 |
| 23938 | echo "${ECHO_T}$ac_cv_big_endian_double" >&6; } |
| 23939 | if test "$ac_cv_big_endian_double" = yes |
| 23940 | then |
| 23941 | |
| 23942 | cat >>confdefs.h <<\_ACEOF |
| 23943 | #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1 |
| 23944 | _ACEOF |
| 23945 | |
| 23946 | fi |
| 23947 | |
| 23948 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 23949 | # While Python doesn't currently have full support for these platforms |
| 23950 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 23951 | # conversions work. |
| 23952 | { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 23953 | echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23954 | if test "${ac_cv_mixed_endian_double+set}" = set; then |
| 23955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23956 | else |
| 23957 | |
| 23958 | if test "$cross_compiling" = yes; then |
| 23959 | ac_cv_mixed_endian_double=no |
| 23960 | else |
| 23961 | cat >conftest.$ac_ext <<_ACEOF |
| 23962 | /* confdefs.h. */ |
| 23963 | _ACEOF |
| 23964 | cat confdefs.h >>conftest.$ac_ext |
| 23965 | cat >>conftest.$ac_ext <<_ACEOF |
| 23966 | /* end confdefs.h. */ |
| 23967 | |
| 23968 | #include <string.h> |
| 23969 | int main() { |
| 23970 | double x = 9006104071832581.0; |
| 23971 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 23972 | return 0; |
| 23973 | else |
| 23974 | return 1; |
| 23975 | } |
| 23976 | |
| 23977 | _ACEOF |
| 23978 | rm -f conftest$ac_exeext |
| 23979 | if { (ac_try="$ac_link" |
| 23980 | case "(($ac_try" in |
| 23981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23982 | *) ac_try_echo=$ac_try;; |
| 23983 | esac |
| 23984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23985 | (eval "$ac_link") 2>&5 |
| 23986 | ac_status=$? |
| 23987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23988 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23989 | { (case "(($ac_try" in |
| 23990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23991 | *) ac_try_echo=$ac_try;; |
| 23992 | esac |
| 23993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23994 | (eval "$ac_try") 2>&5 |
| 23995 | ac_status=$? |
| 23996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23997 | (exit $ac_status); }; }; then |
| 23998 | ac_cv_mixed_endian_double=yes |
| 23999 | else |
| 24000 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24001 | echo "$as_me: failed program was:" >&5 |
| 24002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24003 | |
| 24004 | ( exit $ac_status ) |
| 24005 | ac_cv_mixed_endian_double=no |
| 24006 | fi |
| 24007 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24008 | fi |
| 24009 | |
| 24010 | |
| 24011 | fi |
| 24012 | |
| 24013 | { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5 |
| 24014 | echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; } |
| 24015 | if test "$ac_cv_mixed_endian_double" = yes |
| 24016 | then |
| 24017 | |
| 24018 | cat >>confdefs.h <<\_ACEOF |
| 24019 | #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1 |
| 24020 | _ACEOF |
| 24021 | |
| 24022 | fi |
| 24023 | |
| 24024 | # The short float repr introduced in Python 3.1 requires the |
| 24025 | # correctly-rounded string <-> double conversion functions from |
| 24026 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
| 24027 | # 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] | 24028 | # 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] | 24029 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24030 | |
| 24031 | # This inline assembler syntax may also work for suncc and icc, |
| 24032 | # so we try it on all platforms. |
| 24033 | |
| 24034 | { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24035 | echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24036 | cat >conftest.$ac_ext <<_ACEOF |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24037 | /* confdefs.h. */ |
| 24038 | _ACEOF |
| 24039 | cat confdefs.h >>conftest.$ac_ext |
| 24040 | cat >>conftest.$ac_ext <<_ACEOF |
| 24041 | /* end confdefs.h. */ |
| 24042 | |
| 24043 | int |
| 24044 | main () |
| 24045 | { |
| 24046 | |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24047 | unsigned short cw; |
| 24048 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 24049 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24050 | |
| 24051 | ; |
| 24052 | return 0; |
| 24053 | } |
| 24054 | _ACEOF |
| 24055 | rm -f conftest.$ac_objext |
| 24056 | if { (ac_try="$ac_compile" |
| 24057 | case "(($ac_try" in |
| 24058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24059 | *) ac_try_echo=$ac_try;; |
| 24060 | esac |
| 24061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24062 | (eval "$ac_compile") 2>conftest.er1 |
| 24063 | ac_status=$? |
| 24064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24065 | rm -f conftest.er1 |
| 24066 | cat conftest.err >&5 |
| 24067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24068 | (exit $ac_status); } && { |
| 24069 | test -z "$ac_c_werror_flag" || |
| 24070 | test ! -s conftest.err |
| 24071 | } && test -s conftest.$ac_objext; then |
| 24072 | have_gcc_asm_for_x87=yes |
| 24073 | else |
| 24074 | echo "$as_me: failed program was:" >&5 |
| 24075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24076 | |
| 24077 | have_gcc_asm_for_x87=no |
| 24078 | fi |
| 24079 | |
| 24080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24081 | { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24082 | echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24083 | if test "$have_gcc_asm_for_x87" = yes |
| 24084 | then |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24085 | |
| 24086 | cat >>confdefs.h <<\_ACEOF |
| 24087 | #define HAVE_GCC_ASM_FOR_X87 1 |
| 24088 | _ACEOF |
| 24089 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24090 | fi |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 24091 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24092 | # Detect whether system arithmetic is subject to x87-style double |
| 24093 | # rounding issues. The result of this test has little meaning on non |
| 24094 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 24095 | # mode is round-to-nearest and double rounding issues are present, and |
| 24096 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24097 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 24098 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 24099 | # $BASECFLAGS may affect the result |
| 24100 | ac_save_cc="$CC" |
| 24101 | CC="$CC $BASECFLAGS" |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24102 | if test "$cross_compiling" = yes; then |
| 24103 | ac_cv_x87_double_rounding=no |
| 24104 | else |
| 24105 | cat >conftest.$ac_ext <<_ACEOF |
| 24106 | /* confdefs.h. */ |
| 24107 | _ACEOF |
| 24108 | cat confdefs.h >>conftest.$ac_ext |
| 24109 | cat >>conftest.$ac_ext <<_ACEOF |
| 24110 | /* end confdefs.h. */ |
| 24111 | |
| 24112 | #include <stdlib.h> |
| 24113 | #include <math.h> |
| 24114 | int main() { |
| 24115 | volatile double x, y, z; |
| 24116 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 24117 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 24118 | y = 1./x; |
| 24119 | if (y != 1.) |
| 24120 | exit(0); |
| 24121 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 24122 | x = 1e16; |
| 24123 | y = 2.99999; |
| 24124 | z = x + y; |
| 24125 | if (z != 1e16+4.) |
| 24126 | exit(0); |
| 24127 | /* both tests show evidence of double rounding */ |
| 24128 | exit(1); |
| 24129 | } |
| 24130 | |
| 24131 | _ACEOF |
| 24132 | rm -f conftest$ac_exeext |
| 24133 | if { (ac_try="$ac_link" |
| 24134 | case "(($ac_try" in |
| 24135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24136 | *) ac_try_echo=$ac_try;; |
| 24137 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24139 | (eval "$ac_link") 2>&5 |
| 24140 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24142 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24143 | { (case "(($ac_try" in |
| 24144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24145 | *) ac_try_echo=$ac_try;; |
| 24146 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24148 | (eval "$ac_try") 2>&5 |
| 24149 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24151 | (exit $ac_status); }; }; then |
| 24152 | ac_cv_x87_double_rounding=no |
| 24153 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24154 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24155 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24157 | |
| 24158 | ( exit $ac_status ) |
| 24159 | ac_cv_x87_double_rounding=yes |
| 24160 | fi |
| 24161 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24162 | fi |
| 24163 | |
| 24164 | |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 24165 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24166 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 24167 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24168 | if test "$ac_cv_x87_double_rounding" = yes |
| 24169 | then |
| 24170 | |
| 24171 | cat >>confdefs.h <<\_ACEOF |
| 24172 | #define X87_DOUBLE_ROUNDING 1 |
| 24173 | _ACEOF |
| 24174 | |
| 24175 | fi |
| 24176 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24177 | # ************************************ |
| 24178 | # * Check for mathematical functions * |
| 24179 | # ************************************ |
| 24180 | |
| 24181 | LIBS_SAVE=$LIBS |
| 24182 | LIBS="$LIBS $LIBM" |
| 24183 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24184 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 24185 | # -0. on some architectures. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24186 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 24187 | echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24188 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24190 | else |
| 24191 | |
| 24192 | if test "$cross_compiling" = yes; then |
| 24193 | ac_cv_tanh_preserves_zero_sign=no |
| 24194 | else |
| 24195 | cat >conftest.$ac_ext <<_ACEOF |
| 24196 | /* confdefs.h. */ |
| 24197 | _ACEOF |
| 24198 | cat confdefs.h >>conftest.$ac_ext |
| 24199 | cat >>conftest.$ac_ext <<_ACEOF |
| 24200 | /* end confdefs.h. */ |
| 24201 | |
| 24202 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 24203 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24204 | int main() { |
| 24205 | /* return 0 if either negative zeros don't exist |
| 24206 | on this platform or if negative zeros exist |
| 24207 | and tanh(-0.) == -0. */ |
| 24208 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 24209 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 24210 | else exit(1); |
| 24211 | } |
| 24212 | |
| 24213 | _ACEOF |
| 24214 | rm -f conftest$ac_exeext |
| 24215 | if { (ac_try="$ac_link" |
| 24216 | case "(($ac_try" in |
| 24217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24218 | *) ac_try_echo=$ac_try;; |
| 24219 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24221 | (eval "$ac_link") 2>&5 |
| 24222 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24224 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24225 | { (case "(($ac_try" in |
| 24226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24227 | *) ac_try_echo=$ac_try;; |
| 24228 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24230 | (eval "$ac_try") 2>&5 |
| 24231 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24233 | (exit $ac_status); }; }; then |
| 24234 | ac_cv_tanh_preserves_zero_sign=yes |
| 24235 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24236 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24237 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24239 | |
| 24240 | ( exit $ac_status ) |
| 24241 | ac_cv_tanh_preserves_zero_sign=no |
| 24242 | fi |
| 24243 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24244 | fi |
| 24245 | |
| 24246 | |
| 24247 | fi |
| 24248 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24249 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 24250 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24251 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 24252 | then |
| 24253 | |
| 24254 | cat >>confdefs.h <<\_ACEOF |
| 24255 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 24256 | _ACEOF |
| 24257 | |
| 24258 | fi |
| 24259 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24260 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 24261 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24262 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24263 | |
| 24264 | |
| 24265 | |
| 24266 | |
| 24267 | |
Mark Dickinson | 8e5446f | 2009-04-18 14:41:37 +0000 | [diff] [blame] | 24268 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 24269 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 24270 | do |
| 24271 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24272 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24273 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 24274 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 24275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24276 | else |
| 24277 | cat >conftest.$ac_ext <<_ACEOF |
| 24278 | /* confdefs.h. */ |
| 24279 | _ACEOF |
| 24280 | cat confdefs.h >>conftest.$ac_ext |
| 24281 | cat >>conftest.$ac_ext <<_ACEOF |
| 24282 | /* end confdefs.h. */ |
| 24283 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24284 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24285 | #define $ac_func innocuous_$ac_func |
| 24286 | |
| 24287 | /* System header to define __stub macros and hopefully few prototypes, |
| 24288 | which can conflict with char $ac_func (); below. |
| 24289 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24290 | <limits.h> exists even on freestanding compilers. */ |
| 24291 | |
| 24292 | #ifdef __STDC__ |
| 24293 | # include <limits.h> |
| 24294 | #else |
| 24295 | # include <assert.h> |
| 24296 | #endif |
| 24297 | |
| 24298 | #undef $ac_func |
| 24299 | |
| 24300 | /* Override any GCC internal prototype to avoid an error. |
| 24301 | Use char because int might match the return type of a GCC |
| 24302 | builtin and then its argument prototype would still apply. */ |
| 24303 | #ifdef __cplusplus |
| 24304 | extern "C" |
| 24305 | #endif |
| 24306 | char $ac_func (); |
| 24307 | /* The GNU C library defines this for functions which it implements |
| 24308 | to always fail with ENOSYS. Some functions are actually named |
| 24309 | something starting with __ and the normal name is an alias. */ |
| 24310 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24311 | choke me |
| 24312 | #endif |
| 24313 | |
| 24314 | int |
| 24315 | main () |
| 24316 | { |
| 24317 | return $ac_func (); |
| 24318 | ; |
| 24319 | return 0; |
| 24320 | } |
| 24321 | _ACEOF |
| 24322 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24323 | if { (ac_try="$ac_link" |
| 24324 | case "(($ac_try" in |
| 24325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24326 | *) ac_try_echo=$ac_try;; |
| 24327 | esac |
| 24328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24329 | (eval "$ac_link") 2>conftest.er1 |
| 24330 | ac_status=$? |
| 24331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24332 | rm -f conftest.er1 |
| 24333 | cat conftest.err >&5 |
| 24334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24335 | (exit $ac_status); } && { |
| 24336 | test -z "$ac_c_werror_flag" || |
| 24337 | test ! -s conftest.err |
| 24338 | } && test -s conftest$ac_exeext && |
| 24339 | $as_test_x conftest$ac_exeext; then |
| 24340 | eval "$as_ac_var=yes" |
| 24341 | else |
| 24342 | echo "$as_me: failed program was:" >&5 |
| 24343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24344 | |
| 24345 | eval "$as_ac_var=no" |
| 24346 | fi |
| 24347 | |
| 24348 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24349 | conftest$ac_exeext conftest.$ac_ext |
| 24350 | fi |
| 24351 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24352 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24353 | echo "${ECHO_T}$ac_res" >&6; } |
| 24354 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 24355 | cat >>confdefs.h <<_ACEOF |
| 24356 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24357 | _ACEOF |
| 24358 | |
| 24359 | fi |
| 24360 | done |
| 24361 | |
| 24362 | |
| 24363 | |
| 24364 | |
| 24365 | |
| 24366 | |
| 24367 | for ac_func in hypot lgamma log1p round tgamma |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24368 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24369 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24370 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24371 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24372 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24374 | else |
| 24375 | cat >conftest.$ac_ext <<_ACEOF |
| 24376 | /* confdefs.h. */ |
| 24377 | _ACEOF |
| 24378 | cat confdefs.h >>conftest.$ac_ext |
| 24379 | cat >>conftest.$ac_ext <<_ACEOF |
| 24380 | /* end confdefs.h. */ |
| 24381 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24382 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24383 | #define $ac_func innocuous_$ac_func |
| 24384 | |
| 24385 | /* System header to define __stub macros and hopefully few prototypes, |
| 24386 | which can conflict with char $ac_func (); below. |
| 24387 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24388 | <limits.h> exists even on freestanding compilers. */ |
| 24389 | |
| 24390 | #ifdef __STDC__ |
| 24391 | # include <limits.h> |
| 24392 | #else |
| 24393 | # include <assert.h> |
| 24394 | #endif |
| 24395 | |
| 24396 | #undef $ac_func |
| 24397 | |
| 24398 | /* Override any GCC internal prototype to avoid an error. |
| 24399 | Use char because int might match the return type of a GCC |
| 24400 | builtin and then its argument prototype would still apply. */ |
| 24401 | #ifdef __cplusplus |
| 24402 | extern "C" |
| 24403 | #endif |
| 24404 | char $ac_func (); |
| 24405 | /* The GNU C library defines this for functions which it implements |
| 24406 | to always fail with ENOSYS. Some functions are actually named |
| 24407 | something starting with __ and the normal name is an alias. */ |
| 24408 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24409 | choke me |
| 24410 | #endif |
| 24411 | |
| 24412 | int |
| 24413 | main () |
| 24414 | { |
| 24415 | return $ac_func (); |
| 24416 | ; |
| 24417 | return 0; |
| 24418 | } |
| 24419 | _ACEOF |
| 24420 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24421 | if { (ac_try="$ac_link" |
| 24422 | case "(($ac_try" in |
| 24423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24424 | *) ac_try_echo=$ac_try;; |
| 24425 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24427 | (eval "$ac_link") 2>conftest.er1 |
| 24428 | ac_status=$? |
| 24429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24430 | rm -f conftest.er1 |
| 24431 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24433 | (exit $ac_status); } && { |
| 24434 | test -z "$ac_c_werror_flag" || |
| 24435 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24436 | } && test -s conftest$ac_exeext && |
| 24437 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24438 | eval "$as_ac_var=yes" |
| 24439 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24440 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24442 | |
| 24443 | eval "$as_ac_var=no" |
| 24444 | fi |
| 24445 | |
| 24446 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24447 | conftest$ac_exeext conftest.$ac_ext |
| 24448 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24449 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24450 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24451 | echo "${ECHO_T}$ac_res" >&6; } |
| 24452 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24453 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24454 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24455 | _ACEOF |
| 24456 | |
| 24457 | fi |
| 24458 | done |
| 24459 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24460 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 24461 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24462 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24464 | else |
| 24465 | cat >conftest.$ac_ext <<_ACEOF |
| 24466 | /* confdefs.h. */ |
| 24467 | _ACEOF |
| 24468 | cat confdefs.h >>conftest.$ac_ext |
| 24469 | cat >>conftest.$ac_ext <<_ACEOF |
| 24470 | /* end confdefs.h. */ |
| 24471 | #include <math.h> |
| 24472 | |
| 24473 | int |
| 24474 | main () |
| 24475 | { |
| 24476 | #ifndef isinf |
| 24477 | (void) isinf; |
| 24478 | #endif |
| 24479 | |
| 24480 | ; |
| 24481 | return 0; |
| 24482 | } |
| 24483 | _ACEOF |
| 24484 | rm -f conftest.$ac_objext |
| 24485 | if { (ac_try="$ac_compile" |
| 24486 | case "(($ac_try" in |
| 24487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24488 | *) ac_try_echo=$ac_try;; |
| 24489 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24491 | (eval "$ac_compile") 2>conftest.er1 |
| 24492 | ac_status=$? |
| 24493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24494 | rm -f conftest.er1 |
| 24495 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24497 | (exit $ac_status); } && { |
| 24498 | test -z "$ac_c_werror_flag" || |
| 24499 | test ! -s conftest.err |
| 24500 | } && test -s conftest.$ac_objext; then |
| 24501 | ac_cv_have_decl_isinf=yes |
| 24502 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24503 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24505 | |
| 24506 | ac_cv_have_decl_isinf=no |
| 24507 | fi |
| 24508 | |
| 24509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24510 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24511 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 24512 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 24513 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24514 | |
| 24515 | cat >>confdefs.h <<_ACEOF |
| 24516 | #define HAVE_DECL_ISINF 1 |
| 24517 | _ACEOF |
| 24518 | |
| 24519 | |
| 24520 | else |
| 24521 | cat >>confdefs.h <<_ACEOF |
| 24522 | #define HAVE_DECL_ISINF 0 |
| 24523 | _ACEOF |
| 24524 | |
| 24525 | |
| 24526 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24527 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 24528 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24529 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24531 | else |
| 24532 | cat >conftest.$ac_ext <<_ACEOF |
| 24533 | /* confdefs.h. */ |
| 24534 | _ACEOF |
| 24535 | cat confdefs.h >>conftest.$ac_ext |
| 24536 | cat >>conftest.$ac_ext <<_ACEOF |
| 24537 | /* end confdefs.h. */ |
| 24538 | #include <math.h> |
| 24539 | |
| 24540 | int |
| 24541 | main () |
| 24542 | { |
| 24543 | #ifndef isnan |
| 24544 | (void) isnan; |
| 24545 | #endif |
| 24546 | |
| 24547 | ; |
| 24548 | return 0; |
| 24549 | } |
| 24550 | _ACEOF |
| 24551 | rm -f conftest.$ac_objext |
| 24552 | if { (ac_try="$ac_compile" |
| 24553 | case "(($ac_try" in |
| 24554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24555 | *) ac_try_echo=$ac_try;; |
| 24556 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24558 | (eval "$ac_compile") 2>conftest.er1 |
| 24559 | ac_status=$? |
| 24560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24561 | rm -f conftest.er1 |
| 24562 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24564 | (exit $ac_status); } && { |
| 24565 | test -z "$ac_c_werror_flag" || |
| 24566 | test ! -s conftest.err |
| 24567 | } && test -s conftest.$ac_objext; then |
| 24568 | ac_cv_have_decl_isnan=yes |
| 24569 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24570 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24572 | |
| 24573 | ac_cv_have_decl_isnan=no |
| 24574 | fi |
| 24575 | |
| 24576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24577 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24578 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 24579 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 24580 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24581 | |
| 24582 | cat >>confdefs.h <<_ACEOF |
| 24583 | #define HAVE_DECL_ISNAN 1 |
| 24584 | _ACEOF |
| 24585 | |
| 24586 | |
| 24587 | else |
| 24588 | cat >>confdefs.h <<_ACEOF |
| 24589 | #define HAVE_DECL_ISNAN 0 |
| 24590 | _ACEOF |
| 24591 | |
| 24592 | |
| 24593 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24594 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 24595 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24596 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24598 | else |
| 24599 | cat >conftest.$ac_ext <<_ACEOF |
| 24600 | /* confdefs.h. */ |
| 24601 | _ACEOF |
| 24602 | cat confdefs.h >>conftest.$ac_ext |
| 24603 | cat >>conftest.$ac_ext <<_ACEOF |
| 24604 | /* end confdefs.h. */ |
| 24605 | #include <math.h> |
| 24606 | |
| 24607 | int |
| 24608 | main () |
| 24609 | { |
| 24610 | #ifndef isfinite |
| 24611 | (void) isfinite; |
| 24612 | #endif |
| 24613 | |
| 24614 | ; |
| 24615 | return 0; |
| 24616 | } |
| 24617 | _ACEOF |
| 24618 | rm -f conftest.$ac_objext |
| 24619 | if { (ac_try="$ac_compile" |
| 24620 | case "(($ac_try" in |
| 24621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24622 | *) ac_try_echo=$ac_try;; |
| 24623 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24625 | (eval "$ac_compile") 2>conftest.er1 |
| 24626 | ac_status=$? |
| 24627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24628 | rm -f conftest.er1 |
| 24629 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24631 | (exit $ac_status); } && { |
| 24632 | test -z "$ac_c_werror_flag" || |
| 24633 | test ! -s conftest.err |
| 24634 | } && test -s conftest.$ac_objext; then |
| 24635 | ac_cv_have_decl_isfinite=yes |
| 24636 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24637 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24639 | |
| 24640 | ac_cv_have_decl_isfinite=no |
| 24641 | fi |
| 24642 | |
| 24643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24644 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24645 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 24646 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 24647 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24648 | |
| 24649 | cat >>confdefs.h <<_ACEOF |
| 24650 | #define HAVE_DECL_ISFINITE 1 |
| 24651 | _ACEOF |
| 24652 | |
| 24653 | |
| 24654 | else |
| 24655 | cat >>confdefs.h <<_ACEOF |
| 24656 | #define HAVE_DECL_ISFINITE 0 |
| 24657 | _ACEOF |
| 24658 | |
| 24659 | |
| 24660 | fi |
| 24661 | |
| 24662 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24663 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 24664 | LIBS=$LIBS_SAVE |
| 24665 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24666 | # For multiprocessing module, check that sem_open |
| 24667 | # actually works. For FreeBSD versions <= 7.2, |
| 24668 | # the kernel module that provides POSIX semaphores |
| 24669 | # isn't loaded by default, so an attempt to call |
| 24670 | # sem_open results in a 'Signal 12' error. |
| 24671 | { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5 |
| 24672 | echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; } |
| 24673 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then |
| 24674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24675 | else |
| 24676 | if test "$cross_compiling" = yes; then |
| 24677 | ac_cv_posix_semaphores_enabled=yes |
| 24678 | else |
| 24679 | cat >conftest.$ac_ext <<_ACEOF |
| 24680 | /* confdefs.h. */ |
| 24681 | _ACEOF |
| 24682 | cat confdefs.h >>conftest.$ac_ext |
| 24683 | cat >>conftest.$ac_ext <<_ACEOF |
| 24684 | /* end confdefs.h. */ |
| 24685 | |
| 24686 | #include <unistd.h> |
| 24687 | #include <fcntl.h> |
| 24688 | #include <stdio.h> |
| 24689 | #include <semaphore.h> |
| 24690 | #include <sys/stat.h> |
| 24691 | |
| 24692 | int main(void) { |
| 24693 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 24694 | if (a == SEM_FAILED) { |
| 24695 | perror("sem_open"); |
| 24696 | return 1; |
| 24697 | } |
| 24698 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24699 | sem_unlink("/autoconf"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24700 | return 0; |
| 24701 | } |
| 24702 | |
| 24703 | _ACEOF |
| 24704 | rm -f conftest$ac_exeext |
| 24705 | if { (ac_try="$ac_link" |
| 24706 | case "(($ac_try" in |
| 24707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24708 | *) ac_try_echo=$ac_try;; |
| 24709 | esac |
| 24710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24711 | (eval "$ac_link") 2>&5 |
| 24712 | ac_status=$? |
| 24713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24714 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24715 | { (case "(($ac_try" in |
| 24716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24717 | *) ac_try_echo=$ac_try;; |
| 24718 | esac |
| 24719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24720 | (eval "$ac_try") 2>&5 |
| 24721 | ac_status=$? |
| 24722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24723 | (exit $ac_status); }; }; then |
| 24724 | ac_cv_posix_semaphores_enabled=yes |
| 24725 | else |
| 24726 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24727 | echo "$as_me: failed program was:" >&5 |
| 24728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24729 | |
| 24730 | ( exit $ac_status ) |
| 24731 | ac_cv_posix_semaphores_enabled=no |
| 24732 | fi |
| 24733 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24734 | fi |
| 24735 | |
| 24736 | |
| 24737 | |
| 24738 | fi |
| 24739 | |
| 24740 | { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 24741 | echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; } |
| 24742 | if test $ac_cv_posix_semaphores_enabled = no |
| 24743 | then |
| 24744 | |
| 24745 | cat >>confdefs.h <<\_ACEOF |
| 24746 | #define POSIX_SEMAPHORES_NOT_ENABLED 1 |
| 24747 | _ACEOF |
| 24748 | |
| 24749 | fi |
| 24750 | |
| 24751 | # Multiprocessing check for broken sem_getvalue |
| 24752 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 24753 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
| 24754 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then |
| 24755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24756 | else |
| 24757 | if test "$cross_compiling" = yes; then |
| 24758 | ac_cv_broken_sem_getvalue=yes |
| 24759 | else |
| 24760 | cat >conftest.$ac_ext <<_ACEOF |
| 24761 | /* confdefs.h. */ |
| 24762 | _ACEOF |
| 24763 | cat confdefs.h >>conftest.$ac_ext |
| 24764 | cat >>conftest.$ac_ext <<_ACEOF |
| 24765 | /* end confdefs.h. */ |
| 24766 | |
| 24767 | #include <unistd.h> |
| 24768 | #include <fcntl.h> |
| 24769 | #include <stdio.h> |
| 24770 | #include <semaphore.h> |
| 24771 | #include <sys/stat.h> |
| 24772 | |
| 24773 | int main(void){ |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24774 | 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] | 24775 | int count; |
| 24776 | int res; |
| 24777 | if(a==SEM_FAILED){ |
| 24778 | perror("sem_open"); |
| 24779 | return 1; |
| 24780 | |
| 24781 | } |
| 24782 | res = sem_getvalue(a, &count); |
| 24783 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24784 | sem_unlink("/autocftw"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24785 | return res==-1 ? 1 : 0; |
| 24786 | } |
| 24787 | |
| 24788 | _ACEOF |
| 24789 | rm -f conftest$ac_exeext |
| 24790 | if { (ac_try="$ac_link" |
| 24791 | case "(($ac_try" in |
| 24792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24793 | *) ac_try_echo=$ac_try;; |
| 24794 | esac |
| 24795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24796 | (eval "$ac_link") 2>&5 |
| 24797 | ac_status=$? |
| 24798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24799 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24800 | { (case "(($ac_try" in |
| 24801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24802 | *) ac_try_echo=$ac_try;; |
| 24803 | esac |
| 24804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24805 | (eval "$ac_try") 2>&5 |
| 24806 | ac_status=$? |
| 24807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24808 | (exit $ac_status); }; }; then |
| 24809 | ac_cv_broken_sem_getvalue=no |
| 24810 | else |
| 24811 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24812 | echo "$as_me: failed program was:" >&5 |
| 24813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24814 | |
| 24815 | ( exit $ac_status ) |
| 24816 | ac_cv_broken_sem_getvalue=yes |
| 24817 | fi |
| 24818 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24819 | fi |
| 24820 | |
| 24821 | |
| 24822 | |
| 24823 | fi |
| 24824 | |
| 24825 | { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5 |
| 24826 | echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; } |
| 24827 | if test $ac_cv_broken_sem_getvalue = yes |
| 24828 | then |
| 24829 | |
| 24830 | cat >>confdefs.h <<\_ACEOF |
| 24831 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 24832 | _ACEOF |
| 24833 | |
| 24834 | fi |
| 24835 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24836 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24837 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 24838 | echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24839 | # Check whether --enable-big-digits was given. |
| 24840 | if test "${enable_big_digits+set}" = set; then |
| 24841 | enableval=$enable_big_digits; case $enable_big_digits in |
| 24842 | yes) |
| 24843 | enable_big_digits=30 ;; |
| 24844 | no) |
| 24845 | enable_big_digits=15 ;; |
| 24846 | 15|30) |
| 24847 | ;; |
| 24848 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24849 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 24850 | echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;} |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24851 | { (exit 1); exit 1; }; } ;; |
| 24852 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24853 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 24854 | echo "${ECHO_T}$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24855 | |
| 24856 | cat >>confdefs.h <<_ACEOF |
| 24857 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 24858 | _ACEOF |
| 24859 | |
| 24860 | |
| 24861 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24862 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 24863 | echo "${ECHO_T}no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24864 | fi |
| 24865 | |
| 24866 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24867 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24868 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24869 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24870 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24871 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24873 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24874 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24875 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24877 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24878 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 24879 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24880 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24881 | /* confdefs.h. */ |
| 24882 | _ACEOF |
| 24883 | cat confdefs.h >>conftest.$ac_ext |
| 24884 | cat >>conftest.$ac_ext <<_ACEOF |
| 24885 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24886 | $ac_includes_default |
| 24887 | #include <wchar.h> |
| 24888 | _ACEOF |
| 24889 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24890 | if { (ac_try="$ac_compile" |
| 24891 | case "(($ac_try" in |
| 24892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24893 | *) ac_try_echo=$ac_try;; |
| 24894 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24896 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24897 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24899 | rm -f conftest.er1 |
| 24900 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24902 | (exit $ac_status); } && { |
| 24903 | test -z "$ac_c_werror_flag" || |
| 24904 | test ! -s conftest.err |
| 24905 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24906 | ac_header_compiler=yes |
| 24907 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24908 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24910 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24911 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24912 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24913 | |
| 24914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24915 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24916 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24917 | |
| 24918 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24919 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 24920 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24921 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24922 | /* confdefs.h. */ |
| 24923 | _ACEOF |
| 24924 | cat confdefs.h >>conftest.$ac_ext |
| 24925 | cat >>conftest.$ac_ext <<_ACEOF |
| 24926 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24927 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24928 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24929 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24930 | case "(($ac_try" in |
| 24931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24932 | *) ac_try_echo=$ac_try;; |
| 24933 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24935 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24936 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24937 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24938 | rm -f conftest.er1 |
| 24939 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24941 | (exit $ac_status); } >/dev/null && { |
| 24942 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24943 | test ! -s conftest.err |
| 24944 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24945 | ac_header_preproc=yes |
| 24946 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24947 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24950 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24951 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24953 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24954 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24955 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24956 | |
| 24957 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24958 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 24959 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24960 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24961 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24962 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 24963 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24964 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24965 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24966 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24967 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 24968 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 24969 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 24970 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 24971 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 24972 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 24973 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 24974 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24975 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 24976 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 24977 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 24978 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24979 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 24980 | ## -------------------------------------- ## |
| 24981 | ## Report this to http://bugs.python.org/ ## |
| 24982 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24983 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24984 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24985 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24986 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24987 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24988 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24989 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24991 | else |
| 24992 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24993 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24994 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24995 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24996 | |
| 24997 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24998 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24999 | |
| 25000 | |
| 25001 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25002 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25003 | _ACEOF |
| 25004 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 25005 | wchar_h="yes" |
| 25006 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25008 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25009 | |
| 25010 | fi |
| 25011 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25013 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25014 | # determine wchar_t size |
| 25015 | if test "$wchar_h" = yes |
| 25016 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25017 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 25018 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 25019 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 25020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25021 | else |
| 25022 | cat >conftest.$ac_ext <<_ACEOF |
| 25023 | /* confdefs.h. */ |
| 25024 | _ACEOF |
| 25025 | cat confdefs.h >>conftest.$ac_ext |
| 25026 | cat >>conftest.$ac_ext <<_ACEOF |
| 25027 | /* end confdefs.h. */ |
| 25028 | #include <wchar.h> |
| 25029 | |
| 25030 | typedef wchar_t ac__type_new_; |
| 25031 | int |
| 25032 | main () |
| 25033 | { |
| 25034 | if ((ac__type_new_ *) 0) |
| 25035 | return 0; |
| 25036 | if (sizeof (ac__type_new_)) |
| 25037 | return 0; |
| 25038 | ; |
| 25039 | return 0; |
| 25040 | } |
| 25041 | _ACEOF |
| 25042 | rm -f conftest.$ac_objext |
| 25043 | if { (ac_try="$ac_compile" |
| 25044 | case "(($ac_try" in |
| 25045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25046 | *) ac_try_echo=$ac_try;; |
| 25047 | esac |
| 25048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25049 | (eval "$ac_compile") 2>conftest.er1 |
| 25050 | ac_status=$? |
| 25051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25052 | rm -f conftest.er1 |
| 25053 | cat conftest.err >&5 |
| 25054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25055 | (exit $ac_status); } && { |
| 25056 | test -z "$ac_c_werror_flag" || |
| 25057 | test ! -s conftest.err |
| 25058 | } && test -s conftest.$ac_objext; then |
| 25059 | ac_cv_type_wchar_t=yes |
| 25060 | else |
| 25061 | echo "$as_me: failed program was:" >&5 |
| 25062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25063 | |
| 25064 | ac_cv_type_wchar_t=no |
| 25065 | fi |
| 25066 | |
| 25067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25068 | fi |
| 25069 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 25070 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 25071 | |
| 25072 | # 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] | 25073 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 25074 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 25075 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25076 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 25077 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25078 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25081 | if test "$cross_compiling" = yes; then |
| 25082 | # Depending upon the size, compute the lo and hi bounds. |
| 25083 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25084 | /* confdefs.h. */ |
| 25085 | _ACEOF |
| 25086 | cat confdefs.h >>conftest.$ac_ext |
| 25087 | cat >>conftest.$ac_ext <<_ACEOF |
| 25088 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25089 | #include <wchar.h> |
| 25090 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25091 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25092 | int |
| 25093 | main () |
| 25094 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25095 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25096 | test_array [0] = 0 |
| 25097 | |
| 25098 | ; |
| 25099 | return 0; |
| 25100 | } |
| 25101 | _ACEOF |
| 25102 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25103 | if { (ac_try="$ac_compile" |
| 25104 | case "(($ac_try" in |
| 25105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25106 | *) ac_try_echo=$ac_try;; |
| 25107 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25109 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25110 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25112 | rm -f conftest.er1 |
| 25113 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25115 | (exit $ac_status); } && { |
| 25116 | test -z "$ac_c_werror_flag" || |
| 25117 | test ! -s conftest.err |
| 25118 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25119 | ac_lo=0 ac_mid=0 |
| 25120 | while :; do |
| 25121 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25122 | /* confdefs.h. */ |
| 25123 | _ACEOF |
| 25124 | cat confdefs.h >>conftest.$ac_ext |
| 25125 | cat >>conftest.$ac_ext <<_ACEOF |
| 25126 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25127 | #include <wchar.h> |
| 25128 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25129 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25130 | int |
| 25131 | main () |
| 25132 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25133 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25134 | test_array [0] = 0 |
| 25135 | |
| 25136 | ; |
| 25137 | return 0; |
| 25138 | } |
| 25139 | _ACEOF |
| 25140 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25141 | if { (ac_try="$ac_compile" |
| 25142 | case "(($ac_try" in |
| 25143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25144 | *) ac_try_echo=$ac_try;; |
| 25145 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25147 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25148 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25150 | rm -f conftest.er1 |
| 25151 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25153 | (exit $ac_status); } && { |
| 25154 | test -z "$ac_c_werror_flag" || |
| 25155 | test ! -s conftest.err |
| 25156 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25157 | ac_hi=$ac_mid; break |
| 25158 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25159 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25161 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25162 | ac_lo=`expr $ac_mid + 1` |
| 25163 | if test $ac_lo -le $ac_mid; then |
| 25164 | ac_lo= ac_hi= |
| 25165 | break |
| 25166 | fi |
| 25167 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25168 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25169 | |
| 25170 | 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] | 25171 | done |
| 25172 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25173 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25175 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25176 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25177 | /* confdefs.h. */ |
| 25178 | _ACEOF |
| 25179 | cat confdefs.h >>conftest.$ac_ext |
| 25180 | cat >>conftest.$ac_ext <<_ACEOF |
| 25181 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25182 | #include <wchar.h> |
| 25183 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25184 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25185 | int |
| 25186 | main () |
| 25187 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25188 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25189 | test_array [0] = 0 |
| 25190 | |
| 25191 | ; |
| 25192 | return 0; |
| 25193 | } |
| 25194 | _ACEOF |
| 25195 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25196 | if { (ac_try="$ac_compile" |
| 25197 | case "(($ac_try" in |
| 25198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25199 | *) ac_try_echo=$ac_try;; |
| 25200 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25202 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25203 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25205 | rm -f conftest.er1 |
| 25206 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25208 | (exit $ac_status); } && { |
| 25209 | test -z "$ac_c_werror_flag" || |
| 25210 | test ! -s conftest.err |
| 25211 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25212 | ac_hi=-1 ac_mid=-1 |
| 25213 | while :; do |
| 25214 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25215 | /* confdefs.h. */ |
| 25216 | _ACEOF |
| 25217 | cat confdefs.h >>conftest.$ac_ext |
| 25218 | cat >>conftest.$ac_ext <<_ACEOF |
| 25219 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25220 | #include <wchar.h> |
| 25221 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25222 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25223 | int |
| 25224 | main () |
| 25225 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25226 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25227 | test_array [0] = 0 |
| 25228 | |
| 25229 | ; |
| 25230 | return 0; |
| 25231 | } |
| 25232 | _ACEOF |
| 25233 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25234 | if { (ac_try="$ac_compile" |
| 25235 | case "(($ac_try" in |
| 25236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25237 | *) ac_try_echo=$ac_try;; |
| 25238 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25240 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25241 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25243 | rm -f conftest.er1 |
| 25244 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25246 | (exit $ac_status); } && { |
| 25247 | test -z "$ac_c_werror_flag" || |
| 25248 | test ! -s conftest.err |
| 25249 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25250 | ac_lo=$ac_mid; break |
| 25251 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25252 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25254 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25255 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 25256 | if test $ac_mid -le $ac_hi; then |
| 25257 | ac_lo= ac_hi= |
| 25258 | break |
| 25259 | fi |
| 25260 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25261 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25262 | |
| 25263 | 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] | 25264 | done |
| 25265 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25266 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25268 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25269 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25270 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25271 | |
| 25272 | 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] | 25273 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25274 | |
| 25275 | 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] | 25276 | # Binary search between lo and hi bounds. |
| 25277 | while test "x$ac_lo" != "x$ac_hi"; do |
| 25278 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 25279 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25280 | /* confdefs.h. */ |
| 25281 | _ACEOF |
| 25282 | cat confdefs.h >>conftest.$ac_ext |
| 25283 | cat >>conftest.$ac_ext <<_ACEOF |
| 25284 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25285 | #include <wchar.h> |
| 25286 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25287 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25288 | int |
| 25289 | main () |
| 25290 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25291 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25292 | test_array [0] = 0 |
| 25293 | |
| 25294 | ; |
| 25295 | return 0; |
| 25296 | } |
| 25297 | _ACEOF |
| 25298 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25299 | if { (ac_try="$ac_compile" |
| 25300 | case "(($ac_try" in |
| 25301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25302 | *) ac_try_echo=$ac_try;; |
| 25303 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25305 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25306 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25308 | rm -f conftest.er1 |
| 25309 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25311 | (exit $ac_status); } && { |
| 25312 | test -z "$ac_c_werror_flag" || |
| 25313 | test ! -s conftest.err |
| 25314 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25315 | ac_hi=$ac_mid |
| 25316 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25317 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25319 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25320 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25321 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25322 | |
| 25323 | 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] | 25324 | done |
| 25325 | case $ac_lo in |
| 25326 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25327 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25328 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25329 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25330 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25331 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25332 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25333 | else |
| 25334 | ac_cv_sizeof_wchar_t=0 |
| 25335 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25336 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25337 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25338 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25339 | /* confdefs.h. */ |
| 25340 | _ACEOF |
| 25341 | cat confdefs.h >>conftest.$ac_ext |
| 25342 | cat >>conftest.$ac_ext <<_ACEOF |
| 25343 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25344 | #include <wchar.h> |
| 25345 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25346 | typedef wchar_t ac__type_sizeof_; |
| 25347 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 25348 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25349 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25350 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25351 | int |
| 25352 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25353 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25354 | |
| 25355 | FILE *f = fopen ("conftest.val", "w"); |
| 25356 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25357 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25358 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25359 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25360 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25361 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25362 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25363 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25364 | } |
| 25365 | else |
| 25366 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25367 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25368 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25369 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25370 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25371 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25372 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25373 | |
| 25374 | ; |
| 25375 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25376 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25377 | _ACEOF |
| 25378 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25379 | if { (ac_try="$ac_link" |
| 25380 | case "(($ac_try" in |
| 25381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25382 | *) ac_try_echo=$ac_try;; |
| 25383 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25385 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25386 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25389 | { (case "(($ac_try" in |
| 25390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25391 | *) ac_try_echo=$ac_try;; |
| 25392 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25394 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25395 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25397 | (exit $ac_status); }; }; then |
| 25398 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25399 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25400 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25401 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25404 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25405 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25406 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25407 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25408 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25409 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25410 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25411 | else |
| 25412 | ac_cv_sizeof_wchar_t=0 |
| 25413 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25414 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25415 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25416 | fi |
| 25417 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25418 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25419 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 25420 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25421 | |
| 25422 | |
| 25423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25424 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25425 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25426 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25427 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25428 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25429 | fi |
| 25430 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25431 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 25432 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25433 | have_ucs4_tcl=no |
| 25434 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25435 | /* confdefs.h. */ |
| 25436 | _ACEOF |
| 25437 | cat confdefs.h >>conftest.$ac_ext |
| 25438 | cat >>conftest.$ac_ext <<_ACEOF |
| 25439 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25440 | |
| 25441 | #include <tcl.h> |
| 25442 | #if TCL_UTF_MAX != 6 |
| 25443 | # error "NOT UCS4_TCL" |
| 25444 | #endif |
| 25445 | int |
| 25446 | main () |
| 25447 | { |
| 25448 | |
| 25449 | ; |
| 25450 | return 0; |
| 25451 | } |
| 25452 | _ACEOF |
| 25453 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25454 | if { (ac_try="$ac_compile" |
| 25455 | case "(($ac_try" in |
| 25456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25457 | *) ac_try_echo=$ac_try;; |
| 25458 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25460 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25461 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25463 | rm -f conftest.er1 |
| 25464 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25466 | (exit $ac_status); } && { |
| 25467 | test -z "$ac_c_werror_flag" || |
| 25468 | test ! -s conftest.err |
| 25469 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25470 | |
| 25471 | |
| 25472 | cat >>confdefs.h <<\_ACEOF |
| 25473 | #define HAVE_UCS4_TCL 1 |
| 25474 | _ACEOF |
| 25475 | |
| 25476 | have_ucs4_tcl=yes |
| 25477 | |
| 25478 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25479 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25481 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25482 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25483 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25484 | |
| 25485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25486 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 25487 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25488 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25489 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25490 | if test "$wchar_h" = yes |
| 25491 | then |
| 25492 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25493 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 25494 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; } |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25495 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25497 | else |
| 25498 | |
| 25499 | if test "$cross_compiling" = yes; then |
| 25500 | ac_cv_wchar_t_signed=yes |
| 25501 | else |
| 25502 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25503 | /* confdefs.h. */ |
| 25504 | _ACEOF |
| 25505 | cat confdefs.h >>conftest.$ac_ext |
| 25506 | cat >>conftest.$ac_ext <<_ACEOF |
| 25507 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25508 | |
| 25509 | #include <wchar.h> |
| 25510 | int main() |
| 25511 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 25512 | /* Success: exit code 0 */ |
| 25513 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25514 | } |
| 25515 | |
| 25516 | _ACEOF |
| 25517 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25518 | if { (ac_try="$ac_link" |
| 25519 | case "(($ac_try" in |
| 25520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25521 | *) ac_try_echo=$ac_try;; |
| 25522 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25524 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25525 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25527 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25528 | { (case "(($ac_try" in |
| 25529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25530 | *) ac_try_echo=$ac_try;; |
| 25531 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25533 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25534 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25536 | (exit $ac_status); }; }; then |
| 25537 | ac_cv_wchar_t_signed=yes |
| 25538 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25539 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25540 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25542 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25543 | ( exit $ac_status ) |
| 25544 | ac_cv_wchar_t_signed=no |
| 25545 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25546 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25547 | fi |
| 25548 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25549 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25550 | fi |
| 25551 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25552 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 25553 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25554 | fi |
| 25555 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25556 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 25557 | echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25558 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25559 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25560 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25561 | else |
| 25562 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25563 | fi |
| 25564 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25565 | |
| 25566 | if test $enable_unicode = yes |
| 25567 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 25568 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25569 | case "$have_ucs4_tcl" in |
| 25570 | yes) enable_unicode="ucs4" |
| 25571 | ;; |
| 25572 | *) enable_unicode="ucs2" |
| 25573 | ;; |
| 25574 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25575 | fi |
| 25576 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25577 | |
| 25578 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25579 | case "$enable_unicode" in |
| 25580 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25581 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25582 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25583 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25584 | |
| 25585 | ;; |
| 25586 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25587 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25588 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25589 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25590 | |
| 25591 | ;; |
Benjamin Peterson | 8b65054 | 2010-02-27 00:11:42 +0000 | [diff] [blame] | 25592 | *) { { echo "$as_me:$LINENO: error: invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." >&5 |
| 25593 | echo "$as_me: error: invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." >&2;} |
| 25594 | { (exit 1); exit 1; }; } ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25595 | esac |
| 25596 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25598 | |
| 25599 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25600 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25601 | if test "$enable_unicode" = "no" |
| 25602 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25603 | UNICODE_OBJS="" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25604 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 25605 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25606 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25607 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25608 | |
| 25609 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25610 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25611 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25612 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25613 | |
| 25614 | # wchar_t is only usable if it maps to an unsigned type |
| 25615 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 25616 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25617 | then |
| 25618 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25620 | cat >>confdefs.h <<\_ACEOF |
| 25621 | #define HAVE_USABLE_WCHAR_T 1 |
| 25622 | _ACEOF |
| 25623 | |
| 25624 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25625 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25626 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25627 | |
| 25628 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 25629 | then |
| 25630 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25631 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25632 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25633 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25634 | |
| 25635 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 25636 | then |
| 25637 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25638 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25639 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25640 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25641 | |
| 25642 | else |
| 25643 | PY_UNICODE_TYPE="no type found" |
| 25644 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25645 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 25646 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25647 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25648 | |
| 25649 | # check for endianness |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25650 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 25651 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25652 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25654 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25655 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 25656 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25657 | /* confdefs.h. */ |
| 25658 | _ACEOF |
| 25659 | cat confdefs.h >>conftest.$ac_ext |
| 25660 | cat >>conftest.$ac_ext <<_ACEOF |
| 25661 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25662 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25663 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25665 | int |
| 25666 | main () |
| 25667 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25668 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 25669 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 25670 | bogus endian macros |
| 25671 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25672 | |
| 25673 | ; |
| 25674 | return 0; |
| 25675 | } |
| 25676 | _ACEOF |
| 25677 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25678 | if { (ac_try="$ac_compile" |
| 25679 | case "(($ac_try" in |
| 25680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25681 | *) ac_try_echo=$ac_try;; |
| 25682 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25684 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25685 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25687 | rm -f conftest.er1 |
| 25688 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25690 | (exit $ac_status); } && { |
| 25691 | test -z "$ac_c_werror_flag" || |
| 25692 | test ! -s conftest.err |
| 25693 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25694 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25695 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25696 | /* confdefs.h. */ |
| 25697 | _ACEOF |
| 25698 | cat confdefs.h >>conftest.$ac_ext |
| 25699 | cat >>conftest.$ac_ext <<_ACEOF |
| 25700 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25701 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25702 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25704 | int |
| 25705 | main () |
| 25706 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25707 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25708 | not big endian |
| 25709 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25710 | |
| 25711 | ; |
| 25712 | return 0; |
| 25713 | } |
| 25714 | _ACEOF |
| 25715 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25716 | if { (ac_try="$ac_compile" |
| 25717 | case "(($ac_try" in |
| 25718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25719 | *) ac_try_echo=$ac_try;; |
| 25720 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25722 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25723 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25725 | rm -f conftest.er1 |
| 25726 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25728 | (exit $ac_status); } && { |
| 25729 | test -z "$ac_c_werror_flag" || |
| 25730 | test ! -s conftest.err |
| 25731 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25732 | ac_cv_c_bigendian=yes |
| 25733 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25734 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25736 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25737 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25738 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25739 | |
| 25740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25741 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25742 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25744 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25745 | # It does not; compile a test program. |
| 25746 | if test "$cross_compiling" = yes; then |
| 25747 | # try to guess the endianness by grepping values into an object file |
| 25748 | ac_cv_c_bigendian=unknown |
| 25749 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25750 | /* confdefs.h. */ |
| 25751 | _ACEOF |
| 25752 | cat confdefs.h >>conftest.$ac_ext |
| 25753 | cat >>conftest.$ac_ext <<_ACEOF |
| 25754 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25755 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 25756 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 25757 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 25758 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 25759 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 25760 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25761 | int |
| 25762 | main () |
| 25763 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25764 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25765 | ; |
| 25766 | return 0; |
| 25767 | } |
| 25768 | _ACEOF |
| 25769 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25770 | if { (ac_try="$ac_compile" |
| 25771 | case "(($ac_try" in |
| 25772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25773 | *) ac_try_echo=$ac_try;; |
| 25774 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25776 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25777 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25779 | rm -f conftest.er1 |
| 25780 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25782 | (exit $ac_status); } && { |
| 25783 | test -z "$ac_c_werror_flag" || |
| 25784 | test ! -s conftest.err |
| 25785 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25786 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25787 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25788 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25789 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 25790 | if test "$ac_cv_c_bigendian" = unknown; then |
| 25791 | ac_cv_c_bigendian=no |
| 25792 | else |
| 25793 | # finding both strings is unlikely to happen, but who knows? |
| 25794 | ac_cv_c_bigendian=unknown |
| 25795 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25796 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25797 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25798 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25800 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25802 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25803 | |
| 25804 | 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] | 25805 | else |
| 25806 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25807 | /* confdefs.h. */ |
| 25808 | _ACEOF |
| 25809 | cat confdefs.h >>conftest.$ac_ext |
| 25810 | cat >>conftest.$ac_ext <<_ACEOF |
| 25811 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25812 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25813 | int |
| 25814 | main () |
| 25815 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25816 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25817 | /* Are we little or big endian? From Harbison&Steele. */ |
| 25818 | union |
| 25819 | { |
| 25820 | long int l; |
| 25821 | char c[sizeof (long int)]; |
| 25822 | } u; |
| 25823 | u.l = 1; |
| 25824 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25825 | |
| 25826 | ; |
| 25827 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25828 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25829 | _ACEOF |
| 25830 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25831 | if { (ac_try="$ac_link" |
| 25832 | case "(($ac_try" in |
| 25833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25834 | *) ac_try_echo=$ac_try;; |
| 25835 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25837 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25838 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25840 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25841 | { (case "(($ac_try" in |
| 25842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25843 | *) ac_try_echo=$ac_try;; |
| 25844 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25846 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25847 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25849 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25850 | ac_cv_c_bigendian=no |
| 25851 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25852 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25853 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25856 | ( exit $ac_status ) |
| 25857 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25858 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25859 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25860 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25861 | |
| 25862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25863 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25864 | |
| 25865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25866 | fi |
| 25867 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 25868 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 25869 | case $ac_cv_c_bigendian in |
| 25870 | yes) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25871 | |
| 25872 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25873 | #define WORDS_BIGENDIAN 1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25874 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25875 | ;; |
| 25876 | no) |
| 25877 | ;; |
| 25878 | *) |
| 25879 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 25880 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 25881 | echo "$as_me: error: unknown endianness |
| 25882 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25883 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25884 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25885 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25886 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25887 | # Check whether right shifting a negative integer extends the sign bit |
| 25888 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25889 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 25890 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25891 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25893 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25894 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25895 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25896 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25897 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25898 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25899 | /* confdefs.h. */ |
| 25900 | _ACEOF |
| 25901 | cat confdefs.h >>conftest.$ac_ext |
| 25902 | cat >>conftest.$ac_ext <<_ACEOF |
| 25903 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25904 | |
| 25905 | int main() |
| 25906 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25907 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25908 | } |
| 25909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25910 | _ACEOF |
| 25911 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25912 | if { (ac_try="$ac_link" |
| 25913 | case "(($ac_try" in |
| 25914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25915 | *) ac_try_echo=$ac_try;; |
| 25916 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25918 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25919 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25921 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25922 | { (case "(($ac_try" in |
| 25923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25924 | *) ac_try_echo=$ac_try;; |
| 25925 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25927 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25928 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25930 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25931 | ac_cv_rshift_extends_sign=yes |
| 25932 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25933 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25934 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25937 | ( exit $ac_status ) |
| 25938 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25939 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25940 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25941 | fi |
| 25942 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25943 | |
| 25944 | fi |
| 25945 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25946 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 25947 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25948 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25949 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25950 | |
| 25951 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25952 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25953 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25954 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25955 | fi |
| 25956 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25957 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25958 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 25959 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25960 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25962 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25963 | |
| 25964 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25965 | /* confdefs.h. */ |
| 25966 | _ACEOF |
| 25967 | cat confdefs.h >>conftest.$ac_ext |
| 25968 | cat >>conftest.$ac_ext <<_ACEOF |
| 25969 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25970 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25971 | int |
| 25972 | main () |
| 25973 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25974 | |
| 25975 | FILE *f = fopen("/dev/null", "r"); |
| 25976 | flockfile(f); |
| 25977 | getc_unlocked(f); |
| 25978 | funlockfile(f); |
| 25979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25980 | ; |
| 25981 | return 0; |
| 25982 | } |
| 25983 | _ACEOF |
| 25984 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25985 | if { (ac_try="$ac_link" |
| 25986 | case "(($ac_try" in |
| 25987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25988 | *) ac_try_echo=$ac_try;; |
| 25989 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25991 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25992 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25994 | rm -f conftest.er1 |
| 25995 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25997 | (exit $ac_status); } && { |
| 25998 | test -z "$ac_c_werror_flag" || |
| 25999 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26000 | } && test -s conftest$ac_exeext && |
| 26001 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26002 | ac_cv_have_getc_unlocked=yes |
| 26003 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26004 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26006 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26007 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26008 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26009 | |
| 26010 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26011 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26012 | fi |
| 26013 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26014 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 26015 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26016 | if test "$ac_cv_have_getc_unlocked" = yes |
| 26017 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26018 | |
| 26019 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26020 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26021 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26022 | |
| 26023 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 26024 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26025 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26026 | # save the value of LIBS so we don't actually link Python with readline |
| 26027 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26028 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26029 | # On some systems we need to link readline to a termcap compatible |
| 26030 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 26031 | # with setup.py. |
| 26032 | py_cv_lib_readline=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26033 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 26034 | echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26035 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 26036 | if test -z "$py_libtermcap"; then |
| 26037 | READLINE_LIBS="-lreadline" |
| 26038 | else |
| 26039 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 26040 | fi |
| 26041 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 26042 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26043 | /* confdefs.h. */ |
| 26044 | _ACEOF |
| 26045 | cat confdefs.h >>conftest.$ac_ext |
| 26046 | cat >>conftest.$ac_ext <<_ACEOF |
| 26047 | /* end confdefs.h. */ |
| 26048 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26049 | /* Override any GCC internal prototype to avoid an error. |
| 26050 | Use char because int might match the return type of a GCC |
| 26051 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26052 | #ifdef __cplusplus |
| 26053 | extern "C" |
| 26054 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26055 | char readline (); |
| 26056 | int |
| 26057 | main () |
| 26058 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26059 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26060 | ; |
| 26061 | return 0; |
| 26062 | } |
| 26063 | _ACEOF |
| 26064 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26065 | if { (ac_try="$ac_link" |
| 26066 | case "(($ac_try" in |
| 26067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26068 | *) ac_try_echo=$ac_try;; |
| 26069 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26071 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26072 | ac_status=$? |
| 26073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26074 | rm -f conftest.er1 |
| 26075 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26077 | (exit $ac_status); } && { |
| 26078 | test -z "$ac_c_werror_flag" || |
| 26079 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26080 | } && test -s conftest$ac_exeext && |
| 26081 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26082 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26083 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26084 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26086 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26087 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26088 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26089 | |
| 26090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26091 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26092 | if test $py_cv_lib_readline = yes; then |
| 26093 | break |
| 26094 | fi |
| 26095 | done |
| 26096 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 26097 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 26098 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26099 | { echo "$as_me:$LINENO: result: none" >&5 |
| 26100 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26101 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26102 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 26103 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26104 | |
| 26105 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26106 | #define HAVE_LIBREADLINE 1 |
| 26107 | _ACEOF |
| 26108 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26109 | fi |
| 26110 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26111 | # check for readline 2.1 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26112 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 26113 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; } |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26114 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26116 | else |
| 26117 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26118 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26119 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26120 | /* confdefs.h. */ |
| 26121 | _ACEOF |
| 26122 | cat confdefs.h >>conftest.$ac_ext |
| 26123 | cat >>conftest.$ac_ext <<_ACEOF |
| 26124 | /* end confdefs.h. */ |
| 26125 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26126 | /* Override any GCC internal prototype to avoid an error. |
| 26127 | Use char because int might match the return type of a GCC |
| 26128 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26129 | #ifdef __cplusplus |
| 26130 | extern "C" |
| 26131 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26132 | char rl_callback_handler_install (); |
| 26133 | int |
| 26134 | main () |
| 26135 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26136 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26137 | ; |
| 26138 | return 0; |
| 26139 | } |
| 26140 | _ACEOF |
| 26141 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26142 | if { (ac_try="$ac_link" |
| 26143 | case "(($ac_try" in |
| 26144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26145 | *) ac_try_echo=$ac_try;; |
| 26146 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26148 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26149 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26151 | rm -f conftest.er1 |
| 26152 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26154 | (exit $ac_status); } && { |
| 26155 | test -z "$ac_c_werror_flag" || |
| 26156 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26157 | } && test -s conftest$ac_exeext && |
| 26158 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26159 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 26160 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26161 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26163 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26164 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26165 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26166 | |
| 26167 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26168 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26169 | LIBS=$ac_check_lib_save_LIBS |
| 26170 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26171 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 26172 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 26173 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26174 | |
| 26175 | cat >>confdefs.h <<\_ACEOF |
| 26176 | #define HAVE_RL_CALLBACK 1 |
| 26177 | _ACEOF |
| 26178 | |
| 26179 | fi |
| 26180 | |
| 26181 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26182 | # check for readline 2.2 |
| 26183 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26184 | /* confdefs.h. */ |
| 26185 | _ACEOF |
| 26186 | cat confdefs.h >>conftest.$ac_ext |
| 26187 | cat >>conftest.$ac_ext <<_ACEOF |
| 26188 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26189 | #include <readline/readline.h> |
| 26190 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26191 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26192 | case "(($ac_try" in |
| 26193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26194 | *) ac_try_echo=$ac_try;; |
| 26195 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26197 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26198 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26199 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26200 | rm -f conftest.er1 |
| 26201 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26203 | (exit $ac_status); } >/dev/null && { |
| 26204 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26205 | test ! -s conftest.err |
| 26206 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26207 | have_readline=yes |
| 26208 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26209 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26211 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26212 | have_readline=no |
| 26213 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26214 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26215 | rm -f conftest.err conftest.$ac_ext |
| 26216 | if test $have_readline = yes |
| 26217 | then |
| 26218 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26219 | /* confdefs.h. */ |
| 26220 | _ACEOF |
| 26221 | cat confdefs.h >>conftest.$ac_ext |
| 26222 | cat >>conftest.$ac_ext <<_ACEOF |
| 26223 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26224 | #include <readline/readline.h> |
| 26225 | |
| 26226 | _ACEOF |
| 26227 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26228 | $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] | 26229 | |
| 26230 | cat >>confdefs.h <<\_ACEOF |
| 26231 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 26232 | _ACEOF |
| 26233 | |
| 26234 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 26235 | rm -f -r conftest* |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 26236 | |
| 26237 | cat >conftest.$ac_ext <<_ACEOF |
| 26238 | /* confdefs.h. */ |
| 26239 | _ACEOF |
| 26240 | cat confdefs.h >>conftest.$ac_ext |
| 26241 | cat >>conftest.$ac_ext <<_ACEOF |
| 26242 | /* end confdefs.h. */ |
| 26243 | #include <readline/readline.h> |
| 26244 | |
| 26245 | _ACEOF |
| 26246 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26247 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then |
| 26248 | |
| 26249 | cat >>confdefs.h <<\_ACEOF |
| 26250 | #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1 |
| 26251 | _ACEOF |
| 26252 | |
| 26253 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 26254 | rm -f -r conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26255 | |
| 26256 | fi |
| 26257 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26258 | # check for readline 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26259 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 26260 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26261 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26263 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26264 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26265 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26266 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26267 | /* confdefs.h. */ |
| 26268 | _ACEOF |
| 26269 | cat confdefs.h >>conftest.$ac_ext |
| 26270 | cat >>conftest.$ac_ext <<_ACEOF |
| 26271 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26272 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26273 | /* Override any GCC internal prototype to avoid an error. |
| 26274 | Use char because int might match the return type of a GCC |
| 26275 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26276 | #ifdef __cplusplus |
| 26277 | extern "C" |
| 26278 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26279 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26280 | int |
| 26281 | main () |
| 26282 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26283 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26284 | ; |
| 26285 | return 0; |
| 26286 | } |
| 26287 | _ACEOF |
| 26288 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26289 | if { (ac_try="$ac_link" |
| 26290 | case "(($ac_try" in |
| 26291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26292 | *) ac_try_echo=$ac_try;; |
| 26293 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26295 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26296 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26298 | rm -f conftest.er1 |
| 26299 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26301 | (exit $ac_status); } && { |
| 26302 | test -z "$ac_c_werror_flag" || |
| 26303 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26304 | } && test -s conftest$ac_exeext && |
| 26305 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26306 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26307 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26308 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26310 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26311 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26312 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26313 | |
| 26314 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26315 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26316 | LIBS=$ac_check_lib_save_LIBS |
| 26317 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26318 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 26319 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 26320 | if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26321 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26322 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26323 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26324 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26325 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26326 | fi |
| 26327 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26328 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26329 | # also in 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26330 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 26331 | echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; } |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26332 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26334 | else |
| 26335 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26336 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26337 | cat >conftest.$ac_ext <<_ACEOF |
| 26338 | /* confdefs.h. */ |
| 26339 | _ACEOF |
| 26340 | cat confdefs.h >>conftest.$ac_ext |
| 26341 | cat >>conftest.$ac_ext <<_ACEOF |
| 26342 | /* end confdefs.h. */ |
| 26343 | |
| 26344 | /* Override any GCC internal prototype to avoid an error. |
| 26345 | Use char because int might match the return type of a GCC |
| 26346 | builtin and then its argument prototype would still apply. */ |
| 26347 | #ifdef __cplusplus |
| 26348 | extern "C" |
| 26349 | #endif |
| 26350 | char rl_completion_display_matches_hook (); |
| 26351 | int |
| 26352 | main () |
| 26353 | { |
| 26354 | return rl_completion_display_matches_hook (); |
| 26355 | ; |
| 26356 | return 0; |
| 26357 | } |
| 26358 | _ACEOF |
| 26359 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26360 | if { (ac_try="$ac_link" |
| 26361 | case "(($ac_try" in |
| 26362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26363 | *) ac_try_echo=$ac_try;; |
| 26364 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26366 | (eval "$ac_link") 2>conftest.er1 |
| 26367 | ac_status=$? |
| 26368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26369 | rm -f conftest.er1 |
| 26370 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26372 | (exit $ac_status); } && { |
| 26373 | test -z "$ac_c_werror_flag" || |
| 26374 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26375 | } && test -s conftest$ac_exeext && |
| 26376 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26377 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 26378 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26379 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26381 | |
| 26382 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 26383 | fi |
| 26384 | |
| 26385 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 26386 | conftest$ac_exeext conftest.$ac_ext |
| 26387 | LIBS=$ac_check_lib_save_LIBS |
| 26388 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26389 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 26390 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 26391 | if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26392 | |
| 26393 | cat >>confdefs.h <<\_ACEOF |
| 26394 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 26395 | _ACEOF |
| 26396 | |
| 26397 | fi |
| 26398 | |
| 26399 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26400 | # check for readline 4.2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26401 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 26402 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26403 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26405 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26406 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26407 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26408 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26409 | /* confdefs.h. */ |
| 26410 | _ACEOF |
| 26411 | cat confdefs.h >>conftest.$ac_ext |
| 26412 | cat >>conftest.$ac_ext <<_ACEOF |
| 26413 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26414 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26415 | /* Override any GCC internal prototype to avoid an error. |
| 26416 | Use char because int might match the return type of a GCC |
| 26417 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26418 | #ifdef __cplusplus |
| 26419 | extern "C" |
| 26420 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26421 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26422 | int |
| 26423 | main () |
| 26424 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26425 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26426 | ; |
| 26427 | return 0; |
| 26428 | } |
| 26429 | _ACEOF |
| 26430 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26431 | if { (ac_try="$ac_link" |
| 26432 | case "(($ac_try" in |
| 26433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26434 | *) ac_try_echo=$ac_try;; |
| 26435 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26437 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26438 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26440 | rm -f conftest.er1 |
| 26441 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26443 | (exit $ac_status); } && { |
| 26444 | test -z "$ac_c_werror_flag" || |
| 26445 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26446 | } && test -s conftest$ac_exeext && |
| 26447 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26448 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26449 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26450 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26452 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26453 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26454 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26455 | |
| 26456 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26457 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26458 | LIBS=$ac_check_lib_save_LIBS |
| 26459 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26460 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 26461 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 26462 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26464 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26465 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26466 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26467 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26468 | fi |
| 26469 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26470 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26471 | # also in readline 4.2 |
| 26472 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26473 | /* confdefs.h. */ |
| 26474 | _ACEOF |
| 26475 | cat confdefs.h >>conftest.$ac_ext |
| 26476 | cat >>conftest.$ac_ext <<_ACEOF |
| 26477 | /* end confdefs.h. */ |
| 26478 | #include <readline/readline.h> |
| 26479 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26480 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26481 | case "(($ac_try" in |
| 26482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26483 | *) ac_try_echo=$ac_try;; |
| 26484 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26486 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26487 | ac_status=$? |
| 26488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26489 | rm -f conftest.er1 |
| 26490 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26492 | (exit $ac_status); } >/dev/null && { |
| 26493 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26494 | test ! -s conftest.err |
| 26495 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26496 | have_readline=yes |
| 26497 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26498 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26500 | |
| 26501 | have_readline=no |
| 26502 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26503 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26504 | rm -f conftest.err conftest.$ac_ext |
| 26505 | if test $have_readline = yes |
| 26506 | then |
| 26507 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26508 | /* confdefs.h. */ |
| 26509 | _ACEOF |
| 26510 | cat confdefs.h >>conftest.$ac_ext |
| 26511 | cat >>conftest.$ac_ext <<_ACEOF |
| 26512 | /* end confdefs.h. */ |
| 26513 | #include <readline/readline.h> |
| 26514 | |
| 26515 | _ACEOF |
| 26516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26517 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 26518 | |
| 26519 | cat >>confdefs.h <<\_ACEOF |
| 26520 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 26521 | _ACEOF |
| 26522 | |
| 26523 | fi |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 26524 | rm -f -r conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26525 | |
| 26526 | fi |
| 26527 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26528 | # End of readline checks: restore LIBS |
| 26529 | LIBS=$LIBS_no_readline |
| 26530 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26531 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 26532 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26533 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26536 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26537 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 26538 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26540 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26541 | /* confdefs.h. */ |
| 26542 | _ACEOF |
| 26543 | cat confdefs.h >>conftest.$ac_ext |
| 26544 | cat >>conftest.$ac_ext <<_ACEOF |
| 26545 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26546 | |
| 26547 | int main() |
| 26548 | { |
| 26549 | int val1 = nice(1); |
| 26550 | if (val1 != -1 && val1 == nice(2)) |
| 26551 | exit(0); |
| 26552 | exit(1); |
| 26553 | } |
| 26554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26555 | _ACEOF |
| 26556 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26557 | if { (ac_try="$ac_link" |
| 26558 | case "(($ac_try" in |
| 26559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26560 | *) ac_try_echo=$ac_try;; |
| 26561 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26563 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26564 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26566 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26567 | { (case "(($ac_try" in |
| 26568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26569 | *) ac_try_echo=$ac_try;; |
| 26570 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26572 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26573 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26575 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26576 | ac_cv_broken_nice=yes |
| 26577 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26578 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26579 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26582 | ( exit $ac_status ) |
| 26583 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26584 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26585 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26586 | fi |
| 26587 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26588 | |
| 26589 | fi |
| 26590 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26591 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 26592 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26593 | if test "$ac_cv_broken_nice" = yes |
| 26594 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26595 | |
| 26596 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26597 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26598 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26599 | |
| 26600 | fi |
| 26601 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26602 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 26603 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26604 | if test "${ac_cv_broken_poll+set}" = set; then |
| 26605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26606 | else |
| 26607 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26608 | ac_cv_broken_poll=no |
| 26609 | else |
| 26610 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26611 | /* confdefs.h. */ |
| 26612 | _ACEOF |
| 26613 | cat confdefs.h >>conftest.$ac_ext |
| 26614 | cat >>conftest.$ac_ext <<_ACEOF |
| 26615 | /* end confdefs.h. */ |
| 26616 | |
| 26617 | #include <poll.h> |
| 26618 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26619 | int main() |
| 26620 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26621 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26622 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26623 | |
| 26624 | close (42); |
| 26625 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26626 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26627 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26628 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26629 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26630 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26631 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26632 | return 1; |
| 26633 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26634 | |
| 26635 | _ACEOF |
| 26636 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26637 | if { (ac_try="$ac_link" |
| 26638 | case "(($ac_try" in |
| 26639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26640 | *) ac_try_echo=$ac_try;; |
| 26641 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26643 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26644 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26646 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26647 | { (case "(($ac_try" in |
| 26648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26649 | *) ac_try_echo=$ac_try;; |
| 26650 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26652 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26653 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26655 | (exit $ac_status); }; }; then |
| 26656 | ac_cv_broken_poll=yes |
| 26657 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26658 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26659 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26661 | |
| 26662 | ( exit $ac_status ) |
| 26663 | ac_cv_broken_poll=no |
| 26664 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26665 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26666 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26667 | |
| 26668 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26669 | fi |
| 26670 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26671 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 26672 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26673 | if test "$ac_cv_broken_poll" = yes |
| 26674 | then |
| 26675 | |
| 26676 | cat >>confdefs.h <<\_ACEOF |
| 26677 | #define HAVE_BROKEN_POLL 1 |
| 26678 | _ACEOF |
| 26679 | |
| 26680 | fi |
| 26681 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26682 | # 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] | 26683 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 26684 | # tzname[] |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26685 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 26686 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26687 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26689 | else |
| 26690 | cat >conftest.$ac_ext <<_ACEOF |
| 26691 | /* confdefs.h. */ |
| 26692 | _ACEOF |
| 26693 | cat confdefs.h >>conftest.$ac_ext |
| 26694 | cat >>conftest.$ac_ext <<_ACEOF |
| 26695 | /* end confdefs.h. */ |
| 26696 | #include <sys/types.h> |
| 26697 | #include <$ac_cv_struct_tm> |
| 26698 | |
| 26699 | |
| 26700 | int |
| 26701 | main () |
| 26702 | { |
| 26703 | static struct tm ac_aggr; |
| 26704 | if (ac_aggr.tm_zone) |
| 26705 | return 0; |
| 26706 | ; |
| 26707 | return 0; |
| 26708 | } |
| 26709 | _ACEOF |
| 26710 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26711 | if { (ac_try="$ac_compile" |
| 26712 | case "(($ac_try" in |
| 26713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26714 | *) ac_try_echo=$ac_try;; |
| 26715 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26717 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26718 | ac_status=$? |
| 26719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26720 | rm -f conftest.er1 |
| 26721 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26723 | (exit $ac_status); } && { |
| 26724 | test -z "$ac_c_werror_flag" || |
| 26725 | test ! -s conftest.err |
| 26726 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26727 | ac_cv_member_struct_tm_tm_zone=yes |
| 26728 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26729 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26731 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26732 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26733 | /* confdefs.h. */ |
| 26734 | _ACEOF |
| 26735 | cat confdefs.h >>conftest.$ac_ext |
| 26736 | cat >>conftest.$ac_ext <<_ACEOF |
| 26737 | /* end confdefs.h. */ |
| 26738 | #include <sys/types.h> |
| 26739 | #include <$ac_cv_struct_tm> |
| 26740 | |
| 26741 | |
| 26742 | int |
| 26743 | main () |
| 26744 | { |
| 26745 | static struct tm ac_aggr; |
| 26746 | if (sizeof ac_aggr.tm_zone) |
| 26747 | return 0; |
| 26748 | ; |
| 26749 | return 0; |
| 26750 | } |
| 26751 | _ACEOF |
| 26752 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26753 | if { (ac_try="$ac_compile" |
| 26754 | case "(($ac_try" in |
| 26755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26756 | *) ac_try_echo=$ac_try;; |
| 26757 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26759 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26760 | ac_status=$? |
| 26761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26762 | rm -f conftest.er1 |
| 26763 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26765 | (exit $ac_status); } && { |
| 26766 | test -z "$ac_c_werror_flag" || |
| 26767 | test ! -s conftest.err |
| 26768 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26769 | ac_cv_member_struct_tm_tm_zone=yes |
| 26770 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26771 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26773 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26774 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26775 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26776 | |
| 26777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26778 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26779 | |
| 26780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26781 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26782 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 26783 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 26784 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26785 | |
| 26786 | cat >>confdefs.h <<_ACEOF |
| 26787 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 26788 | _ACEOF |
| 26789 | |
| 26790 | |
| 26791 | fi |
| 26792 | |
| 26793 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 26794 | |
| 26795 | cat >>confdefs.h <<\_ACEOF |
| 26796 | #define HAVE_TM_ZONE 1 |
| 26797 | _ACEOF |
| 26798 | |
| 26799 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26800 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 26801 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26802 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26804 | else |
| 26805 | cat >conftest.$ac_ext <<_ACEOF |
| 26806 | /* confdefs.h. */ |
| 26807 | _ACEOF |
| 26808 | cat confdefs.h >>conftest.$ac_ext |
| 26809 | cat >>conftest.$ac_ext <<_ACEOF |
| 26810 | /* end confdefs.h. */ |
| 26811 | #include <time.h> |
| 26812 | |
| 26813 | int |
| 26814 | main () |
| 26815 | { |
| 26816 | #ifndef tzname |
| 26817 | (void) tzname; |
| 26818 | #endif |
| 26819 | |
| 26820 | ; |
| 26821 | return 0; |
| 26822 | } |
| 26823 | _ACEOF |
| 26824 | rm -f conftest.$ac_objext |
| 26825 | if { (ac_try="$ac_compile" |
| 26826 | case "(($ac_try" in |
| 26827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26828 | *) ac_try_echo=$ac_try;; |
| 26829 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26831 | (eval "$ac_compile") 2>conftest.er1 |
| 26832 | ac_status=$? |
| 26833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26834 | rm -f conftest.er1 |
| 26835 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26837 | (exit $ac_status); } && { |
| 26838 | test -z "$ac_c_werror_flag" || |
| 26839 | test ! -s conftest.err |
| 26840 | } && test -s conftest.$ac_objext; then |
| 26841 | ac_cv_have_decl_tzname=yes |
| 26842 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26843 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26845 | |
| 26846 | ac_cv_have_decl_tzname=no |
| 26847 | fi |
| 26848 | |
| 26849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26850 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26851 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 26852 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 26853 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26854 | |
| 26855 | cat >>confdefs.h <<_ACEOF |
| 26856 | #define HAVE_DECL_TZNAME 1 |
| 26857 | _ACEOF |
| 26858 | |
| 26859 | |
| 26860 | else |
| 26861 | cat >>confdefs.h <<_ACEOF |
| 26862 | #define HAVE_DECL_TZNAME 0 |
| 26863 | _ACEOF |
| 26864 | |
| 26865 | |
| 26866 | fi |
| 26867 | |
| 26868 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26869 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 26870 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26871 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26873 | else |
| 26874 | cat >conftest.$ac_ext <<_ACEOF |
| 26875 | /* confdefs.h. */ |
| 26876 | _ACEOF |
| 26877 | cat confdefs.h >>conftest.$ac_ext |
| 26878 | cat >>conftest.$ac_ext <<_ACEOF |
| 26879 | /* end confdefs.h. */ |
| 26880 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26881 | #if !HAVE_DECL_TZNAME |
| 26882 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26883 | #endif |
| 26884 | |
| 26885 | int |
| 26886 | main () |
| 26887 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26888 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26889 | ; |
| 26890 | return 0; |
| 26891 | } |
| 26892 | _ACEOF |
| 26893 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26894 | if { (ac_try="$ac_link" |
| 26895 | case "(($ac_try" in |
| 26896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26897 | *) ac_try_echo=$ac_try;; |
| 26898 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26900 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26901 | ac_status=$? |
| 26902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26903 | rm -f conftest.er1 |
| 26904 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26906 | (exit $ac_status); } && { |
| 26907 | test -z "$ac_c_werror_flag" || |
| 26908 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26909 | } && test -s conftest$ac_exeext && |
| 26910 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26911 | ac_cv_var_tzname=yes |
| 26912 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26913 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26915 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26916 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26917 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26918 | |
| 26919 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26920 | conftest$ac_exeext conftest.$ac_ext |
| 26921 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26922 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 26923 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26924 | if test $ac_cv_var_tzname = yes; then |
| 26925 | |
| 26926 | cat >>confdefs.h <<\_ACEOF |
| 26927 | #define HAVE_TZNAME 1 |
| 26928 | _ACEOF |
| 26929 | |
| 26930 | fi |
| 26931 | fi |
| 26932 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26933 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26934 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26935 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 26936 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26937 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26939 | else |
| 26940 | |
| 26941 | if test "$cross_compiling" = yes; then |
| 26942 | ac_cv_working_tzset=no |
| 26943 | else |
| 26944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26945 | /* confdefs.h. */ |
| 26946 | _ACEOF |
| 26947 | cat confdefs.h >>conftest.$ac_ext |
| 26948 | cat >>conftest.$ac_ext <<_ACEOF |
| 26949 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26950 | |
| 26951 | #include <stdlib.h> |
| 26952 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26953 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26954 | |
| 26955 | #if HAVE_TZNAME |
| 26956 | extern char *tzname[]; |
| 26957 | #endif |
| 26958 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26959 | int main() |
| 26960 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26961 | /* Note that we need to ensure that not only does tzset(3) |
| 26962 | do 'something' with localtime, but it works as documented |
| 26963 | 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] | 26964 | This includes making sure that tzname is set properly if |
| 26965 | tm->tm_zone does not exist since it is the alternative way |
| 26966 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26967 | |
| 26968 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26969 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26970 | */ |
| 26971 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26972 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26973 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 26974 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26975 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26976 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26977 | if (localtime(&groundhogday)->tm_hour != 0) |
| 26978 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26979 | #if HAVE_TZNAME |
| 26980 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 26981 | if (strcmp(tzname[0], "UTC") || |
| 26982 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 26983 | exit(1); |
| 26984 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26985 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26986 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26987 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26988 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26989 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26990 | #if HAVE_TZNAME |
| 26991 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 26992 | exit(1); |
| 26993 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26994 | |
| 26995 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 26996 | tzset(); |
| 26997 | if (localtime(&groundhogday)->tm_hour != 11) |
| 26998 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26999 | #if HAVE_TZNAME |
| 27000 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 27001 | exit(1); |
| 27002 | #endif |
| 27003 | |
| 27004 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27005 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 27006 | exit(1); |
| 27007 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 27008 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 27009 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27010 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27011 | exit(0); |
| 27012 | } |
| 27013 | |
| 27014 | _ACEOF |
| 27015 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27016 | if { (ac_try="$ac_link" |
| 27017 | case "(($ac_try" in |
| 27018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27019 | *) ac_try_echo=$ac_try;; |
| 27020 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27022 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27023 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27025 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27026 | { (case "(($ac_try" in |
| 27027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27028 | *) ac_try_echo=$ac_try;; |
| 27029 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27031 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27032 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27034 | (exit $ac_status); }; }; then |
| 27035 | ac_cv_working_tzset=yes |
| 27036 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27037 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27038 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27040 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27041 | ( exit $ac_status ) |
| 27042 | ac_cv_working_tzset=no |
| 27043 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27044 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27045 | fi |
| 27046 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27047 | |
| 27048 | fi |
| 27049 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27050 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 27051 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27052 | if test "$ac_cv_working_tzset" = yes |
| 27053 | then |
| 27054 | |
| 27055 | cat >>confdefs.h <<\_ACEOF |
| 27056 | #define HAVE_WORKING_TZSET 1 |
| 27057 | _ACEOF |
| 27058 | |
| 27059 | fi |
| 27060 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27061 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27062 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 27063 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27064 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27066 | else |
| 27067 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27068 | /* confdefs.h. */ |
| 27069 | _ACEOF |
| 27070 | cat confdefs.h >>conftest.$ac_ext |
| 27071 | cat >>conftest.$ac_ext <<_ACEOF |
| 27072 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27073 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27074 | int |
| 27075 | main () |
| 27076 | { |
| 27077 | |
| 27078 | struct stat st; |
| 27079 | st.st_mtim.tv_nsec = 1; |
| 27080 | |
| 27081 | ; |
| 27082 | return 0; |
| 27083 | } |
| 27084 | _ACEOF |
| 27085 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27086 | if { (ac_try="$ac_compile" |
| 27087 | case "(($ac_try" in |
| 27088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27089 | *) ac_try_echo=$ac_try;; |
| 27090 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27092 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27093 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27095 | rm -f conftest.er1 |
| 27096 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27098 | (exit $ac_status); } && { |
| 27099 | test -z "$ac_c_werror_flag" || |
| 27100 | test ! -s conftest.err |
| 27101 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 27102 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27103 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27104 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27106 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27107 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27108 | fi |
| 27109 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27111 | fi |
| 27112 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27113 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 27114 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27115 | if test "$ac_cv_stat_tv_nsec" = yes |
| 27116 | then |
| 27117 | |
| 27118 | cat >>confdefs.h <<\_ACEOF |
| 27119 | #define HAVE_STAT_TV_NSEC 1 |
| 27120 | _ACEOF |
| 27121 | |
| 27122 | fi |
| 27123 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27124 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27125 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 27126 | echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27127 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27129 | else |
| 27130 | cat >conftest.$ac_ext <<_ACEOF |
| 27131 | /* confdefs.h. */ |
| 27132 | _ACEOF |
| 27133 | cat confdefs.h >>conftest.$ac_ext |
| 27134 | cat >>conftest.$ac_ext <<_ACEOF |
| 27135 | /* end confdefs.h. */ |
| 27136 | #include <sys/stat.h> |
| 27137 | int |
| 27138 | main () |
| 27139 | { |
| 27140 | |
| 27141 | struct stat st; |
| 27142 | st.st_mtimespec.tv_nsec = 1; |
| 27143 | |
| 27144 | ; |
| 27145 | return 0; |
| 27146 | } |
| 27147 | _ACEOF |
| 27148 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27149 | if { (ac_try="$ac_compile" |
| 27150 | case "(($ac_try" in |
| 27151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27152 | *) ac_try_echo=$ac_try;; |
| 27153 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27155 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27156 | ac_status=$? |
| 27157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27158 | rm -f conftest.er1 |
| 27159 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27161 | (exit $ac_status); } && { |
| 27162 | test -z "$ac_c_werror_flag" || |
| 27163 | test ! -s conftest.err |
| 27164 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27165 | ac_cv_stat_tv_nsec2=yes |
| 27166 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27167 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27169 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27170 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27171 | fi |
| 27172 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27174 | fi |
| 27175 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27176 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 27177 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27178 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 27179 | then |
| 27180 | |
| 27181 | cat >>confdefs.h <<\_ACEOF |
| 27182 | #define HAVE_STAT_TV_NSEC2 1 |
| 27183 | _ACEOF |
| 27184 | |
| 27185 | fi |
| 27186 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27187 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27188 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 27189 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27190 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27192 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27193 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27194 | /* confdefs.h. */ |
| 27195 | _ACEOF |
| 27196 | cat confdefs.h >>conftest.$ac_ext |
| 27197 | cat >>conftest.$ac_ext <<_ACEOF |
| 27198 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27199 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27200 | int |
| 27201 | main () |
| 27202 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27203 | |
| 27204 | int rtn; |
| 27205 | rtn = mvwdelch(0,0,0); |
| 27206 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27207 | ; |
| 27208 | return 0; |
| 27209 | } |
| 27210 | _ACEOF |
| 27211 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27212 | if { (ac_try="$ac_compile" |
| 27213 | case "(($ac_try" in |
| 27214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27215 | *) ac_try_echo=$ac_try;; |
| 27216 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27218 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27219 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27221 | rm -f conftest.er1 |
| 27222 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27224 | (exit $ac_status); } && { |
| 27225 | test -z "$ac_c_werror_flag" || |
| 27226 | test ! -s conftest.err |
| 27227 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27228 | ac_cv_mvwdelch_is_expression=yes |
| 27229 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27230 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27232 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27233 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27234 | fi |
| 27235 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27237 | fi |
| 27238 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27239 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 27240 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27241 | |
| 27242 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 27243 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27244 | |
| 27245 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27246 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27247 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27248 | |
| 27249 | fi |
| 27250 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27251 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 27252 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27253 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27256 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27257 | /* confdefs.h. */ |
| 27258 | _ACEOF |
| 27259 | cat confdefs.h >>conftest.$ac_ext |
| 27260 | cat >>conftest.$ac_ext <<_ACEOF |
| 27261 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27262 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27263 | int |
| 27264 | main () |
| 27265 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27266 | |
| 27267 | WINDOW *w; |
| 27268 | w->_flags = 0; |
| 27269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27270 | ; |
| 27271 | return 0; |
| 27272 | } |
| 27273 | _ACEOF |
| 27274 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27275 | if { (ac_try="$ac_compile" |
| 27276 | case "(($ac_try" in |
| 27277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27278 | *) ac_try_echo=$ac_try;; |
| 27279 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27281 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27282 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27284 | rm -f conftest.er1 |
| 27285 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27287 | (exit $ac_status); } && { |
| 27288 | test -z "$ac_c_werror_flag" || |
| 27289 | test ! -s conftest.err |
| 27290 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27291 | ac_cv_window_has_flags=yes |
| 27292 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27293 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27295 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27296 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27297 | fi |
| 27298 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27300 | fi |
| 27301 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27302 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 27303 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27304 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27305 | |
| 27306 | if test "$ac_cv_window_has_flags" = yes |
| 27307 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27308 | |
| 27309 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27310 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27311 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27312 | |
| 27313 | fi |
| 27314 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27315 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 27316 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27317 | cat >conftest.$ac_ext <<_ACEOF |
| 27318 | /* confdefs.h. */ |
| 27319 | _ACEOF |
| 27320 | cat confdefs.h >>conftest.$ac_ext |
| 27321 | cat >>conftest.$ac_ext <<_ACEOF |
| 27322 | /* end confdefs.h. */ |
| 27323 | #include <curses.h> |
| 27324 | int |
| 27325 | main () |
| 27326 | { |
| 27327 | void *x=is_term_resized |
| 27328 | ; |
| 27329 | return 0; |
| 27330 | } |
| 27331 | _ACEOF |
| 27332 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27333 | if { (ac_try="$ac_compile" |
| 27334 | case "(($ac_try" in |
| 27335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27336 | *) ac_try_echo=$ac_try;; |
| 27337 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27339 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27340 | ac_status=$? |
| 27341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27342 | rm -f conftest.er1 |
| 27343 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27345 | (exit $ac_status); } && { |
| 27346 | test -z "$ac_c_werror_flag" || |
| 27347 | test ! -s conftest.err |
| 27348 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27349 | |
| 27350 | cat >>confdefs.h <<\_ACEOF |
| 27351 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 27352 | _ACEOF |
| 27353 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27354 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27355 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27356 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27357 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27359 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27360 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27361 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27362 | |
| 27363 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27366 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27367 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 27368 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27369 | cat >conftest.$ac_ext <<_ACEOF |
| 27370 | /* confdefs.h. */ |
| 27371 | _ACEOF |
| 27372 | cat confdefs.h >>conftest.$ac_ext |
| 27373 | cat >>conftest.$ac_ext <<_ACEOF |
| 27374 | /* end confdefs.h. */ |
| 27375 | #include <curses.h> |
| 27376 | int |
| 27377 | main () |
| 27378 | { |
| 27379 | void *x=resize_term |
| 27380 | ; |
| 27381 | return 0; |
| 27382 | } |
| 27383 | _ACEOF |
| 27384 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27385 | if { (ac_try="$ac_compile" |
| 27386 | case "(($ac_try" in |
| 27387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27388 | *) ac_try_echo=$ac_try;; |
| 27389 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27391 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27392 | ac_status=$? |
| 27393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27394 | rm -f conftest.er1 |
| 27395 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27397 | (exit $ac_status); } && { |
| 27398 | test -z "$ac_c_werror_flag" || |
| 27399 | test ! -s conftest.err |
| 27400 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27401 | |
| 27402 | cat >>confdefs.h <<\_ACEOF |
| 27403 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 27404 | _ACEOF |
| 27405 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27406 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27407 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27408 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27409 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27411 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27412 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27413 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27414 | |
| 27415 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27416 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27418 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27419 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 27420 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27421 | cat >conftest.$ac_ext <<_ACEOF |
| 27422 | /* confdefs.h. */ |
| 27423 | _ACEOF |
| 27424 | cat confdefs.h >>conftest.$ac_ext |
| 27425 | cat >>conftest.$ac_ext <<_ACEOF |
| 27426 | /* end confdefs.h. */ |
| 27427 | #include <curses.h> |
| 27428 | int |
| 27429 | main () |
| 27430 | { |
| 27431 | void *x=resizeterm |
| 27432 | ; |
| 27433 | return 0; |
| 27434 | } |
| 27435 | _ACEOF |
| 27436 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27437 | if { (ac_try="$ac_compile" |
| 27438 | case "(($ac_try" in |
| 27439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27440 | *) ac_try_echo=$ac_try;; |
| 27441 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27443 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27444 | ac_status=$? |
| 27445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27446 | rm -f conftest.er1 |
| 27447 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27449 | (exit $ac_status); } && { |
| 27450 | test -z "$ac_c_werror_flag" || |
| 27451 | test ! -s conftest.err |
| 27452 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27453 | |
| 27454 | cat >>confdefs.h <<\_ACEOF |
| 27455 | #define HAVE_CURSES_RESIZETERM 1 |
| 27456 | _ACEOF |
| 27457 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27458 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27459 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27460 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27461 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27463 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27464 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27465 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27466 | |
| 27467 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27470 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27471 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 27472 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27473 | |
| 27474 | if test -r /dev/ptmx |
| 27475 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27476 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27477 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27478 | |
| 27479 | cat >>confdefs.h <<\_ACEOF |
| 27480 | #define HAVE_DEV_PTMX 1 |
| 27481 | _ACEOF |
| 27482 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27483 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27484 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27485 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27486 | fi |
| 27487 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27488 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 27489 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27490 | |
| 27491 | if test -r /dev/ptc |
| 27492 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27493 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27494 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27495 | |
| 27496 | cat >>confdefs.h <<\_ACEOF |
| 27497 | #define HAVE_DEV_PTC 1 |
| 27498 | _ACEOF |
| 27499 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27500 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27501 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27502 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27503 | fi |
| 27504 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27505 | if test "$have_long_long" = yes |
| 27506 | then |
| 27507 | { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5 |
| 27508 | echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; } |
| 27509 | if test "${ac_cv_have_long_long_format+set}" = set; then |
| 27510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27511 | else |
| 27512 | if test "$cross_compiling" = yes; then |
| 27513 | ac_cv_have_long_long_format=no |
| 27514 | else |
| 27515 | cat >conftest.$ac_ext <<_ACEOF |
| 27516 | /* confdefs.h. */ |
| 27517 | _ACEOF |
| 27518 | cat confdefs.h >>conftest.$ac_ext |
| 27519 | cat >>conftest.$ac_ext <<_ACEOF |
| 27520 | /* end confdefs.h. */ |
| 27521 | |
| 27522 | #include <stdio.h> |
| 27523 | #include <stddef.h> |
| 27524 | #include <string.h> |
| 27525 | |
| 27526 | #ifdef HAVE_SYS_TYPES_H |
| 27527 | #include <sys/types.h> |
| 27528 | #endif |
| 27529 | |
| 27530 | int main() |
| 27531 | { |
| 27532 | char buffer[256]; |
| 27533 | |
| 27534 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 27535 | return 1; |
| 27536 | if (strcmp(buffer, "123")) |
| 27537 | return 1; |
| 27538 | |
| 27539 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 27540 | return 1; |
| 27541 | if (strcmp(buffer, "-123")) |
| 27542 | return 1; |
| 27543 | |
| 27544 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 27545 | return 1; |
| 27546 | if (strcmp(buffer, "123")) |
| 27547 | return 1; |
| 27548 | |
| 27549 | return 0; |
| 27550 | } |
| 27551 | |
| 27552 | _ACEOF |
| 27553 | rm -f conftest$ac_exeext |
| 27554 | if { (ac_try="$ac_link" |
| 27555 | case "(($ac_try" in |
| 27556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27557 | *) ac_try_echo=$ac_try;; |
| 27558 | esac |
| 27559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27560 | (eval "$ac_link") 2>&5 |
| 27561 | ac_status=$? |
| 27562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27563 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27564 | { (case "(($ac_try" in |
| 27565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27566 | *) ac_try_echo=$ac_try;; |
| 27567 | esac |
| 27568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27569 | (eval "$ac_try") 2>&5 |
| 27570 | ac_status=$? |
| 27571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27572 | (exit $ac_status); }; }; then |
| 27573 | ac_cv_have_long_long_format=yes |
| 27574 | else |
| 27575 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27576 | echo "$as_me: failed program was:" >&5 |
| 27577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27578 | |
| 27579 | ( exit $ac_status ) |
| 27580 | ac_cv_have_long_long_format=no |
| 27581 | fi |
| 27582 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27583 | fi |
| 27584 | |
| 27585 | |
| 27586 | |
| 27587 | fi |
| 27588 | |
| 27589 | { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5 |
| 27590 | echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; } |
| 27591 | fi |
| 27592 | |
Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 27593 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27594 | then |
| 27595 | |
| 27596 | cat >>confdefs.h <<\_ACEOF |
| 27597 | #define PY_FORMAT_LONG_LONG "ll" |
| 27598 | _ACEOF |
| 27599 | |
| 27600 | fi |
| 27601 | |
Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 27602 | if test $ac_sys_system = Darwin |
| 27603 | then |
| 27604 | LIBS="$LIBS -framework CoreFoundation" |
| 27605 | fi |
| 27606 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27607 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27608 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 27609 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27610 | if test "${ac_cv_have_size_t_format+set}" = set; then |
| 27611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27612 | else |
| 27613 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27614 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 27615 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27616 | else |
| 27617 | cat >conftest.$ac_ext <<_ACEOF |
| 27618 | /* confdefs.h. */ |
| 27619 | _ACEOF |
| 27620 | cat confdefs.h >>conftest.$ac_ext |
| 27621 | cat >>conftest.$ac_ext <<_ACEOF |
| 27622 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27623 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27624 | #include <stdio.h> |
| 27625 | #include <stddef.h> |
| 27626 | #include <string.h> |
| 27627 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27628 | #ifdef HAVE_SYS_TYPES_H |
| 27629 | #include <sys/types.h> |
| 27630 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27631 | |
| 27632 | #ifdef HAVE_SSIZE_T |
| 27633 | typedef ssize_t Py_ssize_t; |
| 27634 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 27635 | typedef long Py_ssize_t; |
| 27636 | #else |
| 27637 | typedef int Py_ssize_t; |
| 27638 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27639 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27640 | int main() |
| 27641 | { |
| 27642 | char buffer[256]; |
| 27643 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27644 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 27645 | return 1; |
| 27646 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27647 | if (strcmp(buffer, "123")) |
| 27648 | return 1; |
| 27649 | |
| 27650 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 27651 | return 1; |
| 27652 | |
| 27653 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27654 | return 1; |
| 27655 | |
| 27656 | return 0; |
| 27657 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27658 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27659 | _ACEOF |
| 27660 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27661 | if { (ac_try="$ac_link" |
| 27662 | case "(($ac_try" in |
| 27663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27664 | *) ac_try_echo=$ac_try;; |
| 27665 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27667 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27668 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27670 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27671 | { (case "(($ac_try" in |
| 27672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27673 | *) ac_try_echo=$ac_try;; |
| 27674 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27676 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27677 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27679 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27680 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27681 | else |
| 27682 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27683 | echo "$as_me: failed program was:" >&5 |
| 27684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27685 | |
| 27686 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27687 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27688 | fi |
| 27689 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 27690 | fi |
| 27691 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27692 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27693 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27694 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5 |
| 27695 | echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; } |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27696 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27697 | |
| 27698 | cat >>confdefs.h <<\_ACEOF |
| 27699 | #define PY_FORMAT_SIZE_T "z" |
| 27700 | _ACEOF |
| 27701 | |
| 27702 | fi |
| 27703 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27704 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 27705 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27706 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27709 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27710 | /* confdefs.h. */ |
| 27711 | _ACEOF |
| 27712 | cat confdefs.h >>conftest.$ac_ext |
| 27713 | cat >>conftest.$ac_ext <<_ACEOF |
| 27714 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27715 | |
| 27716 | #ifdef HAVE_SYS_TYPES_H |
| 27717 | #include <sys/types.h> |
| 27718 | #endif |
| 27719 | #ifdef HAVE_SYS_SOCKET_H |
| 27720 | #include <sys/socket.h> |
| 27721 | #endif |
| 27722 | |
| 27723 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27724 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27725 | int |
| 27726 | main () |
| 27727 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27728 | if ((ac__type_new_ *) 0) |
| 27729 | return 0; |
| 27730 | if (sizeof (ac__type_new_)) |
| 27731 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27732 | ; |
| 27733 | return 0; |
| 27734 | } |
| 27735 | _ACEOF |
| 27736 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27737 | if { (ac_try="$ac_compile" |
| 27738 | case "(($ac_try" in |
| 27739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27740 | *) ac_try_echo=$ac_try;; |
| 27741 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27743 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27744 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27746 | rm -f conftest.er1 |
| 27747 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27749 | (exit $ac_status); } && { |
| 27750 | test -z "$ac_c_werror_flag" || |
| 27751 | test ! -s conftest.err |
| 27752 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27753 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27754 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27755 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27757 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27758 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27759 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27760 | |
| 27761 | 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] | 27762 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27763 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 27764 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 27765 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27766 | : |
| 27767 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27768 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27769 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27770 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27771 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27772 | |
| 27773 | fi |
| 27774 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27775 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27776 | |
| 27777 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 27778 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 27779 | do |
| 27780 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 27781 | done |
| 27782 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27783 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 27784 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27785 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 27786 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27787 | for dir in $SRCDIRS; do |
| 27788 | if test ! -d $dir; then |
| 27789 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 27790 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27791 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27792 | { echo "$as_me:$LINENO: result: done" >&5 |
| 27793 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 27794 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27795 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27796 | 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] | 27797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27798 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27799 | # This file is a shell script that caches the results of configure |
| 27800 | # 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] | 27801 | # scripts and configure runs, see configure's option --config-cache. |
| 27802 | # It is not useful on other systems. If it contains results you don't |
| 27803 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27804 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27805 | # config.status only pays attention to the cache file if you give it |
| 27806 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27807 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27808 | # `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] | 27809 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 27810 | # following values. |
| 27811 | |
| 27812 | _ACEOF |
| 27813 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 27814 | # The following way of writing the cache mishandles newlines in values, |
| 27815 | # 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] | 27816 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27817 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 27818 | # 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] | 27819 | ( |
| 27820 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 27821 | eval ac_val=\$$ac_var |
| 27822 | case $ac_val in #( |
| 27823 | *${as_nl}*) |
| 27824 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27825 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 27826 | 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] | 27827 | esac |
| 27828 | case $ac_var in #( |
| 27829 | _ | IFS | as_nl) ;; #( |
| 27830 | *) $as_unset $ac_var ;; |
| 27831 | esac ;; |
| 27832 | esac |
| 27833 | done |
| 27834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27835 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27836 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 27837 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27838 | # `set' does not quote correctly, so add quotes (double-quote |
| 27839 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 27840 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27841 | "s/'/'\\\\''/g; |
| 27842 | 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] | 27843 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27844 | *) |
| 27845 | # `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] | 27846 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27847 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27848 | esac | |
| 27849 | sort |
| 27850 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27851 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27852 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27853 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27854 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27855 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 27856 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27857 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 27858 | :end' >>confcache |
| 27859 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 27860 | if test -w "$cache_file"; then |
| 27861 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27862 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 27863 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27864 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27865 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27866 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 27867 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27868 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27869 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27870 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27871 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27872 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 27873 | # Let make expand exec_prefix. |
| 27874 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27875 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27876 | DEFS=-DHAVE_CONFIG_H |
| 27877 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27878 | ac_libobjs= |
| 27879 | ac_ltlibobjs= |
| 27880 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 27881 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27882 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27883 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27884 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 27885 | # will be set to the directory where LIBOBJS objects are built. |
| 27886 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 27887 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27888 | done |
| 27889 | LIBOBJS=$ac_libobjs |
| 27890 | |
| 27891 | LTLIBOBJS=$ac_ltlibobjs |
| 27892 | |
| 27893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27894 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27895 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27896 | ac_clean_files_save=$ac_clean_files |
| 27897 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27898 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 27899 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 27900 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27901 | #! $SHELL |
| 27902 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27903 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27904 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27905 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27907 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27908 | ac_cs_recheck=false |
| 27909 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27910 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 27911 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27912 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27913 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27914 | ## --------------------- ## |
| 27915 | ## M4sh Initialization. ## |
| 27916 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27917 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27918 | # Be more Bourne compatible |
| 27919 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27920 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 27921 | emulate sh |
| 27922 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27923 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27924 | # is contrary to our usage. Disable this feature. |
| 27925 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27926 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27927 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27928 | case `(set -o) 2>/dev/null` in |
| 27929 | *posix*) set -o posix ;; |
| 27930 | esac |
| 27931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27932 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27933 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27934 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27935 | |
| 27936 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27937 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27938 | # Avoid depending upon Character Ranges. |
| 27939 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 27940 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 27941 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 27942 | as_cr_digits='0123456789' |
| 27943 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 27944 | |
| 27945 | # The user is always right. |
| 27946 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27947 | echo "#! /bin/sh" >conf$$.sh |
| 27948 | echo "exit 0" >>conf$$.sh |
| 27949 | chmod +x conf$$.sh |
| 27950 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 27951 | PATH_SEPARATOR=';' |
| 27952 | else |
| 27953 | PATH_SEPARATOR=: |
| 27954 | fi |
| 27955 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27956 | fi |
| 27957 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27958 | # Support unset when possible. |
| 27959 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 27960 | as_unset=unset |
| 27961 | else |
| 27962 | as_unset=false |
| 27963 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27964 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27965 | |
| 27966 | # IFS |
| 27967 | # We need space, tab and new line, in precisely that order. Quoting is |
| 27968 | # there to prevent editors from complaining about space-tab. |
| 27969 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 27970 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27971 | as_nl=' |
| 27972 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27973 | IFS=" "" $as_nl" |
| 27974 | |
| 27975 | # Find who we are. Look in the path if we contain no directory separator. |
| 27976 | case $0 in |
| 27977 | *[\\/]* ) as_myself=$0 ;; |
| 27978 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27979 | for as_dir in $PATH |
| 27980 | do |
| 27981 | IFS=$as_save_IFS |
| 27982 | test -z "$as_dir" && as_dir=. |
| 27983 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 27984 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27985 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27986 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27987 | ;; |
| 27988 | esac |
| 27989 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 27990 | # in which case we are not to be found in the path. |
| 27991 | if test "x$as_myself" = x; then |
| 27992 | as_myself=$0 |
| 27993 | fi |
| 27994 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27995 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27996 | { (exit 1); exit 1; } |
| 27997 | fi |
| 27998 | |
| 27999 | # Work around bugs in pre-3.0 UWIN ksh. |
| 28000 | for as_var in ENV MAIL MAILPATH |
| 28001 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 28002 | done |
| 28003 | PS1='$ ' |
| 28004 | PS2='> ' |
| 28005 | PS4='+ ' |
| 28006 | |
| 28007 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28008 | for as_var in \ |
| 28009 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 28010 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 28011 | LC_TELEPHONE LC_TIME |
| 28012 | do |
| 28013 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 28014 | eval $as_var=C; export $as_var |
| 28015 | else |
| 28016 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 28017 | fi |
| 28018 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28019 | |
| 28020 | # Required to use basename. |
| 28021 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 28022 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 28023 | as_expr=expr |
| 28024 | else |
| 28025 | as_expr=false |
| 28026 | fi |
| 28027 | |
| 28028 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 28029 | as_basename=basename |
| 28030 | else |
| 28031 | as_basename=false |
| 28032 | fi |
| 28033 | |
| 28034 | |
| 28035 | # Name of the executable. |
| 28036 | as_me=`$as_basename -- "$0" || |
| 28037 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 28038 | X"$0" : 'X\(//\)$' \| \ |
| 28039 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28040 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28041 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 28042 | s//\1/ |
| 28043 | q |
| 28044 | } |
| 28045 | /^X\/\(\/\/\)$/{ |
| 28046 | s//\1/ |
| 28047 | q |
| 28048 | } |
| 28049 | /^X\/\(\/\).*/{ |
| 28050 | s//\1/ |
| 28051 | q |
| 28052 | } |
| 28053 | s/.*/./; q'` |
| 28054 | |
| 28055 | # CDPATH. |
| 28056 | $as_unset CDPATH |
| 28057 | |
| 28058 | |
| 28059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28060 | as_lineno_1=$LINENO |
| 28061 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28062 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28063 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 28064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28065 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 28066 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28067 | # line-number line after each line using $LINENO; the second 'sed' |
| 28068 | # does the real work. The second script uses 'N' to pair each |
| 28069 | # line-number line with the line containing $LINENO, and appends |
| 28070 | # trailing '-' during substitution so that $LINENO is not a special |
| 28071 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28072 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28073 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 28074 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 28075 | sed -n ' |
| 28076 | p |
| 28077 | /[$]LINENO/= |
| 28078 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28079 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28080 | s/[$]LINENO.*/&-/ |
| 28081 | t lineno |
| 28082 | b |
| 28083 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28084 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28085 | :loop |
| 28086 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28087 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28088 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28089 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28090 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28091 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28092 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 28093 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28094 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 28095 | # (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] | 28096 | # original and so on. Autoconf is especially sensitive to this). |
| 28097 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28098 | # Exit status is that of the last command. |
| 28099 | exit |
| 28100 | } |
| 28101 | |
| 28102 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28103 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 28104 | as_dirname=dirname |
| 28105 | else |
| 28106 | as_dirname=false |
| 28107 | fi |
| 28108 | |
| 28109 | ECHO_C= ECHO_N= ECHO_T= |
| 28110 | case `echo -n x` in |
| 28111 | -n*) |
| 28112 | case `echo 'x\c'` in |
| 28113 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 28114 | *) ECHO_C='\c';; |
| 28115 | esac;; |
| 28116 | *) |
| 28117 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28118 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28119 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28120 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 28121 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28122 | as_expr=expr |
| 28123 | else |
| 28124 | as_expr=false |
| 28125 | fi |
| 28126 | |
| 28127 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28128 | if test -d conf$$.dir; then |
| 28129 | rm -f conf$$.dir/conf$$.file |
| 28130 | else |
| 28131 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28132 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28133 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28134 | echo >conf$$.file |
| 28135 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 28136 | as_ln_s='ln -s' |
| 28137 | # ... but there are two gotchas: |
| 28138 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 28139 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 28140 | # In both cases, we have to default to `cp -p'. |
| 28141 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28142 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28143 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 28144 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28145 | else |
| 28146 | as_ln_s='cp -p' |
| 28147 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28148 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 28149 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28150 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28151 | if mkdir -p . 2>/dev/null; then |
| 28152 | as_mkdir_p=: |
| 28153 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28154 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28155 | as_mkdir_p=false |
| 28156 | fi |
| 28157 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28158 | if test -x / >/dev/null 2>&1; then |
| 28159 | as_test_x='test -x' |
| 28160 | else |
| 28161 | if ls -dL / >/dev/null 2>&1; then |
| 28162 | as_ls_L_option=L |
| 28163 | else |
| 28164 | as_ls_L_option= |
| 28165 | fi |
| 28166 | as_test_x=' |
| 28167 | eval sh -c '\'' |
| 28168 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28169 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28170 | else |
| 28171 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28172 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28173 | esac; |
| 28174 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 28175 | ???[sx]*):;;*)false;;esac;fi |
| 28176 | '\'' sh |
| 28177 | ' |
| 28178 | fi |
| 28179 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28180 | |
| 28181 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28182 | 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] | 28183 | |
| 28184 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28185 | 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] | 28186 | |
| 28187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28188 | exec 6>&1 |
| 28189 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28190 | # 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] | 28191 | # 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] | 28192 | # values after options handling. |
| 28193 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28194 | This file was extended by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28195 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28196 | |
| 28197 | CONFIG_FILES = $CONFIG_FILES |
| 28198 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 28199 | CONFIG_LINKS = $CONFIG_LINKS |
| 28200 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 28201 | $ $0 $@ |
| 28202 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28203 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 28204 | " |
| 28205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28206 | _ACEOF |
| 28207 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28208 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28209 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 28210 | config_files="$ac_config_files" |
| 28211 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28212 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28213 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28214 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28215 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28216 | ac_cs_usage="\ |
| 28217 | \`$as_me' instantiates files from templates according to the |
| 28218 | current configuration. |
| 28219 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28220 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28221 | |
| 28222 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28223 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28224 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28225 | -d, --debug don't remove temporary files |
| 28226 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28227 | --file=FILE[:TEMPLATE] |
| 28228 | instantiate the configuration file FILE |
| 28229 | --header=FILE[:TEMPLATE] |
| 28230 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28231 | |
| 28232 | Configuration files: |
| 28233 | $config_files |
| 28234 | |
| 28235 | Configuration headers: |
| 28236 | $config_headers |
| 28237 | |
| 28238 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28239 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28240 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28241 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28242 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28243 | python config.status 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28244 | configured by $0, generated by GNU Autoconf 2.61, |
| 28245 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28246 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28247 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28248 | This config.status script is free software; the Free Software Foundation |
| 28249 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28250 | |
| 28251 | ac_pwd='$ac_pwd' |
| 28252 | srcdir='$srcdir' |
| 28253 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28254 | _ACEOF |
| 28255 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28256 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 28257 | # If no file are specified by the user, then we need to provide default |
| 28258 | # value. By we need to know if files were specified by the user. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28259 | ac_need_defaults=: |
| 28260 | while test $# != 0 |
| 28261 | do |
| 28262 | case $1 in |
| 28263 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28264 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 28265 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28266 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28267 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28268 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28269 | ac_option=$1 |
| 28270 | ac_optarg=$2 |
| 28271 | ac_shift=shift |
| 28272 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28273 | esac |
| 28274 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28275 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28276 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28277 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 28278 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28279 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28280 | echo "$ac_cs_version"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28281 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28282 | debug=: ;; |
| 28283 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28284 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28285 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28286 | ac_need_defaults=false;; |
| 28287 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28288 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28289 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28290 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28291 | --he | --h) |
| 28292 | # Conflict between --help and --header |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28293 | { echo "$as_me: error: ambiguous option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28294 | Try \`$0 --help' for more information." >&2 |
| 28295 | { (exit 1); exit 1; }; };; |
| 28296 | --help | --hel | -h ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28297 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28298 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 28299 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 28300 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28301 | |
| 28302 | # This is an error. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28303 | -*) { echo "$as_me: error: unrecognized option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28304 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28305 | { (exit 1); exit 1; }; } ;; |
| 28306 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28307 | *) ac_config_targets="$ac_config_targets $1" |
| 28308 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28309 | |
| 28310 | esac |
| 28311 | shift |
| 28312 | done |
| 28313 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28314 | ac_configure_extra_args= |
| 28315 | |
| 28316 | if $ac_cs_silent; then |
| 28317 | exec 6>/dev/null |
| 28318 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 28319 | fi |
| 28320 | |
| 28321 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28322 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28323 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28324 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 28325 | CONFIG_SHELL=$SHELL |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28326 | export CONFIG_SHELL |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28327 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28328 | fi |
| 28329 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28330 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28331 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28332 | exec 5>>config.log |
| 28333 | { |
| 28334 | echo |
| 28335 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 28336 | ## Running $as_me. ## |
| 28337 | _ASBOX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28338 | echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28339 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28340 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28341 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28342 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28343 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28344 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28345 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28346 | |
| 28347 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28348 | for ac_config_target in $ac_config_targets |
| 28349 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28350 | case $ac_config_target in |
| 28351 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 28352 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 28353 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 28354 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 28355 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 28356 | "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] | 28357 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 28358 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 28359 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28360 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28361 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 28362 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28363 | { (exit 1); exit 1; }; };; |
| 28364 | esac |
| 28365 | done |
| 28366 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28368 | # If the user did not use the arguments to specify the items to instantiate, |
| 28369 | # then the envvar interface is used. Set only those that are not. |
| 28370 | # We use the long form for the default assignment because of an extremely |
| 28371 | # bizarre bug on SunOS 4.1.3. |
| 28372 | if $ac_need_defaults; then |
| 28373 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 28374 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 28375 | fi |
| 28376 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28377 | # 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] | 28378 | # 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] | 28379 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28380 | # Hook for its removal unless debugging. |
| 28381 | # Note that there is a small window in which the directory will not be cleaned: |
| 28382 | # 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] | 28383 | $debug || |
| 28384 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28385 | tmp= |
| 28386 | trap 'exit_status=$? |
| 28387 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 28388 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28389 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 28390 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28391 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28392 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28393 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28394 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28395 | test -n "$tmp" && test -d "$tmp" |
| 28396 | } || |
| 28397 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28398 | tmp=./conf$$-$RANDOM |
| 28399 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28400 | } || |
| 28401 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28402 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28403 | { (exit 1); exit 1; } |
| 28404 | } |
| 28405 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28406 | # |
| 28407 | # Set up the sed scripts for CONFIG_FILES section. |
| 28408 | # |
| 28409 | |
| 28410 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 28411 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28412 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28413 | |
| 28414 | _ACEOF |
| 28415 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28416 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28417 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28418 | ac_delim='%!_!# ' |
| 28419 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28420 | cat >conf$$subs.sed <<_ACEOF |
| 28421 | SHELL!$SHELL$ac_delim |
| 28422 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 28423 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 28424 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 28425 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 28426 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 28427 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 28428 | exec_prefix!$exec_prefix$ac_delim |
| 28429 | prefix!$prefix$ac_delim |
| 28430 | program_transform_name!$program_transform_name$ac_delim |
| 28431 | bindir!$bindir$ac_delim |
| 28432 | sbindir!$sbindir$ac_delim |
| 28433 | libexecdir!$libexecdir$ac_delim |
| 28434 | datarootdir!$datarootdir$ac_delim |
| 28435 | datadir!$datadir$ac_delim |
| 28436 | sysconfdir!$sysconfdir$ac_delim |
| 28437 | sharedstatedir!$sharedstatedir$ac_delim |
| 28438 | localstatedir!$localstatedir$ac_delim |
| 28439 | includedir!$includedir$ac_delim |
| 28440 | oldincludedir!$oldincludedir$ac_delim |
| 28441 | docdir!$docdir$ac_delim |
| 28442 | infodir!$infodir$ac_delim |
| 28443 | htmldir!$htmldir$ac_delim |
| 28444 | dvidir!$dvidir$ac_delim |
| 28445 | pdfdir!$pdfdir$ac_delim |
| 28446 | psdir!$psdir$ac_delim |
| 28447 | libdir!$libdir$ac_delim |
| 28448 | localedir!$localedir$ac_delim |
| 28449 | mandir!$mandir$ac_delim |
| 28450 | DEFS!$DEFS$ac_delim |
| 28451 | ECHO_C!$ECHO_C$ac_delim |
| 28452 | ECHO_N!$ECHO_N$ac_delim |
| 28453 | ECHO_T!$ECHO_T$ac_delim |
| 28454 | LIBS!$LIBS$ac_delim |
| 28455 | build_alias!$build_alias$ac_delim |
| 28456 | host_alias!$host_alias$ac_delim |
| 28457 | target_alias!$target_alias$ac_delim |
| 28458 | VERSION!$VERSION$ac_delim |
| 28459 | SOVERSION!$SOVERSION$ac_delim |
| 28460 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 28461 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 28462 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28463 | LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28464 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 28465 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 28466 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 28467 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 28468 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 28469 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 28470 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 28471 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 28472 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 28473 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 28474 | MACHDEP!$MACHDEP$ac_delim |
| 28475 | SGI_ABI!$SGI_ABI$ac_delim |
| 28476 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 28477 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 28478 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28479 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28480 | CC!$CC$ac_delim |
| 28481 | CFLAGS!$CFLAGS$ac_delim |
| 28482 | LDFLAGS!$LDFLAGS$ac_delim |
| 28483 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 28484 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 28485 | EXEEXT!$EXEEXT$ac_delim |
| 28486 | OBJEXT!$OBJEXT$ac_delim |
| 28487 | CXX!$CXX$ac_delim |
| 28488 | MAINCC!$MAINCC$ac_delim |
| 28489 | CPP!$CPP$ac_delim |
| 28490 | GREP!$GREP$ac_delim |
| 28491 | EGREP!$EGREP$ac_delim |
| 28492 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 28493 | LIBRARY!$LIBRARY$ac_delim |
| 28494 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 28495 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 28496 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 28497 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 28498 | INSTSONAME!$INSTSONAME$ac_delim |
| 28499 | RUNSHARED!$RUNSHARED$ac_delim |
| 28500 | LINKCC!$LINKCC$ac_delim |
| 28501 | GNULD!$GNULD$ac_delim |
| 28502 | RANLIB!$RANLIB$ac_delim |
| 28503 | AR!$AR$ac_delim |
| 28504 | ARFLAGS!$ARFLAGS$ac_delim |
| 28505 | SVNVERSION!$SVNVERSION$ac_delim |
| 28506 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 28507 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 28508 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 28509 | LN!$LN$ac_delim |
| 28510 | OPT!$OPT$ac_delim |
| 28511 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 28512 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 28513 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 28514 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 28515 | SO!$SO$ac_delim |
| 28516 | LDSHARED!$LDSHARED$ac_delim |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 28517 | LDCXXSHARED!$LDCXXSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28518 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28519 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28520 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28521 | break |
| 28522 | elif $ac_last_try; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28523 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28524 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28525 | { (exit 1); exit 1; }; } |
| 28526 | else |
| 28527 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28528 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28529 | done |
| 28530 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28531 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28532 | if test -n "$ac_eof"; then |
| 28533 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28534 | ac_eof=`expr $ac_eof + 1` |
| 28535 | fi |
| 28536 | |
| 28537 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28538 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 28539 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28540 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28541 | sed ' |
| 28542 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28543 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28544 | :n |
| 28545 | t n |
| 28546 | s/'"$ac_delim"'$/,g/; t |
| 28547 | s/$/\\/; p |
| 28548 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28549 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28550 | rm -f conf$$subs.sed |
| 28551 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28552 | CEOF$ac_eof |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28553 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28554 | |
| 28555 | |
| 28556 | ac_delim='%!_!# ' |
| 28557 | for ac_last_try in false false false false false :; do |
| 28558 | cat >conf$$subs.sed <<_ACEOF |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 28559 | BLDSHARED!$BLDSHARED$ac_delim |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28560 | CCSHARED!$CCSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28561 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 28562 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 28563 | SHLIBS!$SHLIBS$ac_delim |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 28564 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
| 28565 | LIBFFI_INCLUDEDIR!$LIBFFI_INCLUDEDIR$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28566 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 28567 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 28568 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 28569 | LDLAST!$LDLAST$ac_delim |
| 28570 | THREADOBJ!$THREADOBJ$ac_delim |
| 28571 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 28572 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 28573 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 28574 | TRUE!$TRUE$ac_delim |
| 28575 | LIBOBJS!$LIBOBJS$ac_delim |
| 28576 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 28577 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 28578 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 28579 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 28580 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 28581 | LIBM!$LIBM$ac_delim |
| 28582 | LIBC!$LIBC$ac_delim |
| 28583 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 28584 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 28585 | SRCDIRS!$SRCDIRS$ac_delim |
| 28586 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 28587 | _ACEOF |
| 28588 | |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 28589 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28590 | break |
| 28591 | elif $ac_last_try; then |
| 28592 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28593 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28594 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28595 | else |
| 28596 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 28597 | fi |
| 28598 | done |
| 28599 | |
| 28600 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28601 | if test -n "$ac_eof"; then |
| 28602 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28603 | ac_eof=`expr $ac_eof + 1` |
| 28604 | fi |
| 28605 | |
| 28606 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28607 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 28608 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28609 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28610 | sed ' |
| 28611 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28612 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28613 | :n |
| 28614 | t n |
| 28615 | s/'"$ac_delim"'$/,g/; t |
| 28616 | s/$/\\/; p |
| 28617 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28618 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28619 | rm -f conf$$subs.sed |
| 28620 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28621 | :end |
| 28622 | s/|#_!!_#|//g |
| 28623 | CEOF$ac_eof |
| 28624 | _ACEOF |
| 28625 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28626 | |
| 28627 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 28628 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 28629 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 28630 | # (actually we leave an empty line to preserve line numbers). |
| 28631 | if test "x$srcdir" = x.; then |
| 28632 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 28633 | s/:*\$(srcdir):*/:/ |
| 28634 | s/:*\${srcdir}:*/:/ |
| 28635 | s/:*@srcdir@:*/:/ |
| 28636 | s/^\([^=]*=[ ]*\):*/\1/ |
| 28637 | s/:*$// |
| 28638 | s/^[^=]*=[ ]*$// |
| 28639 | }' |
| 28640 | fi |
| 28641 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28642 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28643 | fi # test -n "$CONFIG_FILES" |
| 28644 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28645 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28646 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28647 | do |
| 28648 | case $ac_tag in |
| 28649 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 28650 | esac |
| 28651 | case $ac_mode$ac_tag in |
| 28652 | :[FHL]*:*);; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28653 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 28654 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28655 | { (exit 1); exit 1; }; };; |
| 28656 | :[FH]-) ac_tag=-:-;; |
| 28657 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 28658 | esac |
| 28659 | ac_save_IFS=$IFS |
| 28660 | IFS=: |
| 28661 | set x $ac_tag |
| 28662 | IFS=$ac_save_IFS |
| 28663 | shift |
| 28664 | ac_file=$1 |
| 28665 | shift |
| 28666 | |
| 28667 | case $ac_mode in |
| 28668 | :L) ac_source=$1;; |
| 28669 | :[FH]) |
| 28670 | ac_file_inputs= |
| 28671 | for ac_f |
| 28672 | do |
| 28673 | case $ac_f in |
| 28674 | -) ac_f="$tmp/stdin";; |
| 28675 | *) # Look for the file first in the build tree, then in the source tree |
| 28676 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 28677 | # because $ac_f cannot contain `:'. |
| 28678 | test -f "$ac_f" || |
| 28679 | case $ac_f in |
| 28680 | [\\/$]*) false;; |
| 28681 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 28682 | esac || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28683 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 28684 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28685 | { (exit 1); exit 1; }; };; |
| 28686 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28687 | ac_file_inputs="$ac_file_inputs $ac_f" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28688 | done |
| 28689 | |
| 28690 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 28691 | # use $as_me), people would be surprised to read: |
| 28692 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28693 | configure_input="Generated from "`IFS=: |
| 28694 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28695 | if test x"$ac_file" != x-; then |
| 28696 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28697 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 28698 | echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28699 | fi |
| 28700 | |
| 28701 | case $ac_tag in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28702 | *:-:* | *:-) cat >"$tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28703 | esac |
| 28704 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28705 | esac |
| 28706 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28707 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28708 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28709 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 28710 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28711 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28712 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28713 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28714 | s//\1/ |
| 28715 | q |
| 28716 | } |
| 28717 | /^X\(\/\/\)[^/].*/{ |
| 28718 | s//\1/ |
| 28719 | q |
| 28720 | } |
| 28721 | /^X\(\/\/\)$/{ |
| 28722 | s//\1/ |
| 28723 | q |
| 28724 | } |
| 28725 | /^X\(\/\).*/{ |
| 28726 | s//\1/ |
| 28727 | q |
| 28728 | } |
| 28729 | s/.*/./; q'` |
| 28730 | { as_dir="$ac_dir" |
| 28731 | case $as_dir in #( |
| 28732 | -*) as_dir=./$as_dir;; |
| 28733 | esac |
| 28734 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28735 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28736 | while :; do |
| 28737 | case $as_dir in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28738 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28739 | *) as_qdir=$as_dir;; |
| 28740 | esac |
| 28741 | as_dirs="'$as_qdir' $as_dirs" |
| 28742 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28743 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28744 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 28745 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28746 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28747 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28748 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28749 | s//\1/ |
| 28750 | q |
| 28751 | } |
| 28752 | /^X\(\/\/\)[^/].*/{ |
| 28753 | s//\1/ |
| 28754 | q |
| 28755 | } |
| 28756 | /^X\(\/\/\)$/{ |
| 28757 | s//\1/ |
| 28758 | q |
| 28759 | } |
| 28760 | /^X\(\/\).*/{ |
| 28761 | s//\1/ |
| 28762 | q |
| 28763 | } |
| 28764 | s/.*/./; q'` |
| 28765 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28766 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28767 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28768 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 28769 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28770 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28771 | ac_builddir=. |
| 28772 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28773 | case "$ac_dir" in |
| 28774 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28775 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28776 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28777 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28778 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28779 | case $ac_top_builddir_sub in |
| 28780 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28781 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 28782 | esac ;; |
| 28783 | esac |
| 28784 | ac_abs_top_builddir=$ac_pwd |
| 28785 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 28786 | # for backward compatibility: |
| 28787 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28788 | |
| 28789 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28790 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28791 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28792 | ac_top_srcdir=$ac_top_builddir_sub |
| 28793 | ac_abs_top_srcdir=$ac_pwd ;; |
| 28794 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28795 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28796 | ac_top_srcdir=$srcdir |
| 28797 | ac_abs_top_srcdir=$srcdir ;; |
| 28798 | *) # Relative name. |
| 28799 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 28800 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 28801 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28802 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28803 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28804 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28805 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28806 | case $ac_mode in |
| 28807 | :F) |
| 28808 | # |
| 28809 | # CONFIG_FILE |
| 28810 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28811 | |
| 28812 | case $INSTALL in |
| 28813 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28814 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28815 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 28816 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28817 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28818 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28819 | # If the template does not know about datarootdir, expand it. |
| 28820 | # FIXME: This hack should be removed a few years after 2.60. |
| 28821 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 28822 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28823 | case `sed -n '/datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28824 | p |
| 28825 | q |
| 28826 | } |
| 28827 | /@datadir@/p |
| 28828 | /@docdir@/p |
| 28829 | /@infodir@/p |
| 28830 | /@localedir@/p |
| 28831 | /@mandir@/p |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28832 | ' $ac_file_inputs` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28833 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 28834 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28835 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 28836 | 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] | 28837 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28838 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28839 | ac_datarootdir_hack=' |
| 28840 | s&@datadir@&$datadir&g |
| 28841 | s&@docdir@&$docdir&g |
| 28842 | s&@infodir@&$infodir&g |
| 28843 | s&@localedir@&$localedir&g |
| 28844 | s&@mandir@&$mandir&g |
| 28845 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 28846 | esac |
| 28847 | _ACEOF |
| 28848 | |
| 28849 | # Neutralize VPATH when `$srcdir' = `.'. |
| 28850 | # Shell code in configure.ac might set extrasub. |
| 28851 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28852 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28853 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28854 | $extrasub |
| 28855 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28856 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28857 | :t |
| 28858 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28859 | s&@configure_input@&$configure_input&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28860 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 28861 | s&@srcdir@&$ac_srcdir&;t t |
| 28862 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 28863 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 28864 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 28865 | s&@builddir@&$ac_builddir&;t t |
| 28866 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 28867 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 28868 | s&@INSTALL@&$ac_INSTALL&;t t |
| 28869 | $ac_datarootdir_hack |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28870 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 28871 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28872 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 28873 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 28874 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28875 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28876 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28877 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28878 | 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] | 28879 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28880 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28881 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28882 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 28883 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 28884 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28885 | ;; |
| 28886 | :H) |
| 28887 | # |
| 28888 | # CONFIG_HEADER |
| 28889 | # |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28890 | _ACEOF |
| 28891 | |
| 28892 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 28893 | # substitutes the proper values into config.h.in to produce config.h. |
| 28894 | rm -f conftest.defines conftest.tail |
| 28895 | # First, append a space to every undef/define line, to ease matching. |
| 28896 | echo 's/$/ /' >conftest.defines |
| 28897 | # Then, protect against being on the right side of a sed subst, or in |
| 28898 | # an unquoted here document, in config.status. If some macros were |
| 28899 | # called several times there might be several #defines for the same |
| 28900 | # symbol, which is useless. But do not sort them, since the last |
| 28901 | # AC_DEFINE must be honored. |
| 28902 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 28903 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 28904 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 28905 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 28906 | # just an empty string. |
| 28907 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 28908 | ac_dB='\\)[ (].*,\\1define\\2' |
| 28909 | ac_dC=' ' |
| 28910 | ac_dD=' ,' |
| 28911 | |
| 28912 | uniq confdefs.h | |
| 28913 | sed -n ' |
| 28914 | t rset |
| 28915 | :rset |
| 28916 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 28917 | t ok |
| 28918 | d |
| 28919 | :ok |
| 28920 | s/[\\&,]/\\&/g |
| 28921 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 28922 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 28923 | ' >>conftest.defines |
| 28924 | |
| 28925 | # Remove the space that was appended to ease matching. |
| 28926 | # Then replace #undef with comments. This is necessary, for |
| 28927 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 28928 | # on some systems where configure will not decide to define it. |
| 28929 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 28930 | echo 's/ $// |
| 28931 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 28932 | |
| 28933 | # Break up conftest.defines: |
| 28934 | ac_max_sed_lines=50 |
| 28935 | |
| 28936 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 28937 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 28938 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 28939 | # et cetera. |
| 28940 | ac_in='$ac_file_inputs' |
| 28941 | ac_out='"$tmp/out1"' |
| 28942 | ac_nxt='"$tmp/out2"' |
| 28943 | |
| 28944 | while : |
| 28945 | do |
| 28946 | # Write a here document: |
| 28947 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28948 | # First, check the format of the line: |
| 28949 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 28950 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 28951 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 28952 | b |
| 28953 | :def |
| 28954 | _ACEOF |
| 28955 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 28956 | echo 'CEOF |
| 28957 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 28958 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 28959 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 28960 | grep . conftest.tail >/dev/null || break |
| 28961 | rm -f conftest.defines |
| 28962 | mv conftest.tail conftest.defines |
| 28963 | done |
| 28964 | rm -f conftest.defines conftest.tail |
| 28965 | |
| 28966 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 28967 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28968 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28969 | echo "/* $configure_input */" >"$tmp/config.h" |
| 28970 | cat "$ac_result" >>"$tmp/config.h" |
| 28971 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 28972 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 28973 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28974 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28975 | rm -f $ac_file |
| 28976 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28977 | fi |
| 28978 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28979 | echo "/* $configure_input */" |
| 28980 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28981 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28982 | rm -f "$tmp/out12" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28983 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 28984 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28985 | |
| 28986 | esac |
| 28987 | |
| 28988 | done # for ac_tag |
| 28989 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 28990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28991 | { (exit 0); exit 0; } |
| 28992 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 28993 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28994 | ac_clean_files=$ac_clean_files_save |
| 28995 | |
| 28996 | |
| 28997 | # configure is writing to config.log, and then calls config.status. |
| 28998 | # config.status does its own redirection, appending to config.log. |
| 28999 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 29000 | # by configure, so config.status won't be able to write to it; its |
| 29001 | # output is simply discarded. So we exec the FD to /dev/null, |
| 29002 | # effectively closing config.log, so it can be properly (re)opened and |
| 29003 | # appended to by config.status. When coming back to configure, we |
| 29004 | # need to make the FD available again. |
| 29005 | if test "$no_create" != yes; then |
| 29006 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 29007 | ac_config_status_args= |
| 29008 | test "$silent" = yes && |
| 29009 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29010 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 29011 | $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] | 29012 | exec 5>>config.log |
| 29013 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 29014 | # would make configure fail if this is the last instruction. |
| 29015 | $ac_cs_success || { (exit 1); exit 1; } |
| 29016 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 29017 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29018 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 29019 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29020 | if test ! -f Modules/Setup |
| 29021 | then |
| 29022 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 29023 | fi |
| 29024 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 29025 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29026 | if test ! -f Modules/Setup.local |
| 29027 | then |
| 29028 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 29029 | fi |
| 29030 | |
| 29031 | echo "creating Makefile" |
| 29032 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 29033 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 29034 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29035 | |
| 29036 | case $ac_sys_system in |
| 29037 | BeOS) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29038 | { echo "$as_me:$LINENO: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29039 | |
| 29040 | Support for BeOS is deprecated as of Python 2.6. |
| 29041 | See PEP 11 for the gory details. |
| 29042 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29043 | echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29044 | |
| 29045 | Support for BeOS is deprecated as of Python 2.6. |
| 29046 | See PEP 11 for the gory details. |
| 29047 | " >&2;} |
| 29048 | ;; |
| 29049 | *) ;; |
| 29050 | esac |
| 29051 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 29052 | mv config.c Modules |