Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Thomas Heller | 486b1b0 | 2007-11-02 19:10:24 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 58653 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 for python 2.6. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # Report bugs to <http://www.python.org/python-bugs>. |
| 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, |
| 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=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 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 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 49 | PATH_SEPARATOR=';' |
| 50 | else |
| 51 | PATH_SEPARATOR=: |
| 52 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 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.) |
| 69 | as_nl=' |
| 70 | ' |
| 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 |
| 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 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. |
| 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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 115 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 116 | done |
| 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 || |
| 138 | echo X/"$0" | |
| 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 | |
| 164 | if test $as_have_required = yes && (eval ": |
| 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=: |
| 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 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=: |
| 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 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 |
| 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+"$@"} |
| 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. |
| 419 | echo Please tell autoconf@gnu.org about your system, |
| 420 | echo including any error possibly output before this |
| 421 | echo message |
| 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" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 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 |
| 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 |
| 498 | mkdir conf$$.dir |
| 499 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 500 | echo >conf$$.file |
| 501 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 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' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 510 | as_ln_s=ln |
| 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 |
| 535 | test -d "$1/."; |
| 536 | else |
| 537 | case $1 in |
| 538 | -*)set "./$1";; |
| 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' |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='2.6' |
| 579 | PACKAGE_STRING='python 2.6' |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 580 | PACKAGE_BUGREPORT='http://www.python.org/python-bugs' |
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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 619 | ac_subst_vars='SHELL |
| 620 | PATH_SEPARATOR |
| 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 | PYTHONFRAMEWORK |
| 661 | PYTHONFRAMEWORKDIR |
| 662 | PYTHONFRAMEWORKPREFIX |
| 663 | PYTHONFRAMEWORKINSTALLDIR |
| 664 | FRAMEWORKINSTALLFIRST |
| 665 | FRAMEWORKINSTALLLAST |
| 666 | FRAMEWORKALTINSTALLFIRST |
| 667 | FRAMEWORKALTINSTALLLAST |
| 668 | FRAMEWORKUNIXTOOLSPREFIX |
| 669 | MACHDEP |
| 670 | SGI_ABI |
| 671 | EXTRAPLATDIR |
| 672 | EXTRAMACHDEPPATH |
| 673 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 674 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 675 | CC |
| 676 | CFLAGS |
| 677 | LDFLAGS |
| 678 | CPPFLAGS |
| 679 | ac_ct_CC |
| 680 | EXEEXT |
| 681 | OBJEXT |
| 682 | CXX |
| 683 | MAINCC |
| 684 | CPP |
| 685 | GREP |
| 686 | EGREP |
| 687 | BUILDEXEEXT |
| 688 | LIBRARY |
| 689 | LDLIBRARY |
| 690 | DLLLIBRARY |
| 691 | BLDLIBRARY |
| 692 | LDLIBRARYDIR |
| 693 | INSTSONAME |
| 694 | RUNSHARED |
| 695 | LINKCC |
| 696 | RANLIB |
| 697 | AR |
| 698 | SVNVERSION |
| 699 | INSTALL_PROGRAM |
| 700 | INSTALL_SCRIPT |
| 701 | INSTALL_DATA |
| 702 | LN |
| 703 | OPT |
| 704 | BASECFLAGS |
| 705 | OTHER_LIBTOOL_OPT |
| 706 | LIBTOOL_CRUFT |
| 707 | SO |
| 708 | LDSHARED |
| 709 | BLDSHARED |
| 710 | CCSHARED |
| 711 | LINKFORSHARED |
| 712 | CFLAGSFORSHARED |
| 713 | SHLIBS |
| 714 | USE_SIGNAL_MODULE |
| 715 | SIGNAL_OBJS |
| 716 | USE_THREAD_MODULE |
| 717 | LDLAST |
| 718 | THREADOBJ |
| 719 | DLINCLDIR |
| 720 | DYNLOADFILE |
| 721 | MACHDEP_OBJS |
| 722 | TRUE |
| 723 | LIBOBJS |
| 724 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 725 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 726 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 727 | HAVE_GETHOSTBYNAME_R |
| 728 | HAVE_GETHOSTBYNAME |
| 729 | LIBM |
| 730 | LIBC |
| 731 | UNICODE_OBJS |
| 732 | THREADHEADERS |
| 733 | SRCDIRS |
| 734 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 735 | ac_subst_files='' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 736 | ac_precious_vars='build_alias |
| 737 | host_alias |
| 738 | target_alias |
| 739 | CC |
| 740 | CFLAGS |
| 741 | LDFLAGS |
| 742 | LIBS |
| 743 | CPPFLAGS |
| 744 | CPP' |
| 745 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 746 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 747 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 748 | ac_init_help= |
| 749 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 750 | # The variables have the same names as the options, with |
| 751 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 752 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 753 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 754 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 755 | no_recursion= |
| 756 | prefix=NONE |
| 757 | program_prefix=NONE |
| 758 | program_suffix=NONE |
| 759 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 760 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 761 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 762 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 763 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 764 | x_includes=NONE |
| 765 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 766 | |
| 767 | # Installation directory options. |
| 768 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 769 | # and all the variables that are supposed to be based on exec_prefix |
| 770 | # by default will actually change. |
| 771 | # 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] | 772 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 773 | bindir='${exec_prefix}/bin' |
| 774 | sbindir='${exec_prefix}/sbin' |
| 775 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 776 | datarootdir='${prefix}/share' |
| 777 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 778 | sysconfdir='${prefix}/etc' |
| 779 | sharedstatedir='${prefix}/com' |
| 780 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 781 | includedir='${prefix}/include' |
| 782 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 783 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 784 | infodir='${datarootdir}/info' |
| 785 | htmldir='${docdir}' |
| 786 | dvidir='${docdir}' |
| 787 | pdfdir='${docdir}' |
| 788 | psdir='${docdir}' |
| 789 | libdir='${exec_prefix}/lib' |
| 790 | localedir='${datarootdir}/locale' |
| 791 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 792 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 793 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 794 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 795 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 796 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 797 | # If the previous option needs an argument, assign it. |
| 798 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 799 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 800 | ac_prev= |
| 801 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 802 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 804 | case $ac_option in |
| 805 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 806 | *) ac_optarg=yes ;; |
| 807 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 808 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 809 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 810 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 811 | case $ac_dashdash$ac_option in |
| 812 | --) |
| 813 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 814 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 815 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 816 | ac_prev=bindir ;; |
| 817 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 818 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 819 | |
| 820 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 821 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 822 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 823 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 824 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 825 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 826 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 827 | ac_prev=cache_file ;; |
| 828 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 829 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 830 | cache_file=$ac_optarg ;; |
| 831 | |
| 832 | --config-cache | -C) |
| 833 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 834 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 835 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 836 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 837 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 838 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 839 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 840 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 841 | | --dataroo | --dataro | --datar) |
| 842 | ac_prev=datarootdir ;; |
| 843 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 844 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 845 | datarootdir=$ac_optarg ;; |
| 846 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 847 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 848 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 849 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 850 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 851 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 852 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 853 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 854 | eval enable_$ac_feature=no ;; |
| 855 | |
| 856 | -docdir | --docdir | --docdi | --doc | --do) |
| 857 | ac_prev=docdir ;; |
| 858 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 859 | docdir=$ac_optarg ;; |
| 860 | |
| 861 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 862 | ac_prev=dvidir ;; |
| 863 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 864 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 865 | |
| 866 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 867 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 868 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 869 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 870 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 871 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 872 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 873 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 874 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 875 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 876 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 877 | | --exec | --exe | --ex) |
| 878 | ac_prev=exec_prefix ;; |
| 879 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 880 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 881 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 882 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 883 | |
| 884 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 885 | # Obsolete; use --with-gas. |
| 886 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 888 | -help | --help | --hel | --he | -h) |
| 889 | ac_init_help=long ;; |
| 890 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 891 | ac_init_help=recursive ;; |
| 892 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 893 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 894 | |
| 895 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 896 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 897 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 898 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 899 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 900 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 901 | ac_prev=htmldir ;; |
| 902 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 903 | | --ht=*) |
| 904 | htmldir=$ac_optarg ;; |
| 905 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 906 | -includedir | --includedir | --includedi | --included | --include \ |
| 907 | | --includ | --inclu | --incl | --inc) |
| 908 | ac_prev=includedir ;; |
| 909 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 910 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 911 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 912 | |
| 913 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 914 | ac_prev=infodir ;; |
| 915 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 916 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 917 | |
| 918 | -libdir | --libdir | --libdi | --libd) |
| 919 | ac_prev=libdir ;; |
| 920 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 921 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 922 | |
| 923 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 924 | | --libexe | --libex | --libe) |
| 925 | ac_prev=libexecdir ;; |
| 926 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 927 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 928 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 929 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 930 | -localedir | --localedir | --localedi | --localed | --locale) |
| 931 | ac_prev=localedir ;; |
| 932 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 933 | localedir=$ac_optarg ;; |
| 934 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 935 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 936 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 937 | ac_prev=localstatedir ;; |
| 938 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 939 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 940 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 941 | |
| 942 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 943 | ac_prev=mandir ;; |
| 944 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 945 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 946 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 947 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 948 | # Obsolete; use --without-fp. |
| 949 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 950 | |
| 951 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 952 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 953 | no_create=yes ;; |
| 954 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 955 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 956 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 957 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 958 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 959 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 960 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 961 | | --oldin | --oldi | --old | --ol | --o) |
| 962 | ac_prev=oldincludedir ;; |
| 963 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 964 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 965 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 966 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 967 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 968 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 969 | ac_prev=prefix ;; |
| 970 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 971 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 972 | |
| 973 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 974 | | --program-pre | --program-pr | --program-p) |
| 975 | ac_prev=program_prefix ;; |
| 976 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 977 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 978 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 979 | |
| 980 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 981 | | --program-suf | --program-su | --program-s) |
| 982 | ac_prev=program_suffix ;; |
| 983 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 984 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 985 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 986 | |
| 987 | -program-transform-name | --program-transform-name \ |
| 988 | | --program-transform-nam | --program-transform-na \ |
| 989 | | --program-transform-n | --program-transform- \ |
| 990 | | --program-transform | --program-transfor \ |
| 991 | | --program-transfo | --program-transf \ |
| 992 | | --program-trans | --program-tran \ |
| 993 | | --progr-tra | --program-tr | --program-t) |
| 994 | ac_prev=program_transform_name ;; |
| 995 | -program-transform-name=* | --program-transform-name=* \ |
| 996 | | --program-transform-nam=* | --program-transform-na=* \ |
| 997 | | --program-transform-n=* | --program-transform-=* \ |
| 998 | | --program-transform=* | --program-transfor=* \ |
| 999 | | --program-transfo=* | --program-transf=* \ |
| 1000 | | --program-trans=* | --program-tran=* \ |
| 1001 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1002 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1003 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1004 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1005 | ac_prev=pdfdir ;; |
| 1006 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1007 | pdfdir=$ac_optarg ;; |
| 1008 | |
| 1009 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1010 | ac_prev=psdir ;; |
| 1011 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1012 | psdir=$ac_optarg ;; |
| 1013 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1014 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1015 | | -silent | --silent | --silen | --sile | --sil) |
| 1016 | silent=yes ;; |
| 1017 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1018 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1019 | ac_prev=sbindir ;; |
| 1020 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1021 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1022 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1023 | |
| 1024 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1025 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1026 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1027 | | --sha | --sh) |
| 1028 | ac_prev=sharedstatedir ;; |
| 1029 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1030 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1031 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1032 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1033 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1034 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1035 | -site | --site | --sit) |
| 1036 | ac_prev=site ;; |
| 1037 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1038 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1039 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1040 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1041 | ac_prev=srcdir ;; |
| 1042 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1043 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1044 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1045 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1046 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1047 | ac_prev=sysconfdir ;; |
| 1048 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1049 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1050 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1051 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1052 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1053 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1054 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1055 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1056 | |
| 1057 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1058 | verbose=yes ;; |
| 1059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1060 | -version | --version | --versio | --versi | --vers | -V) |
| 1061 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1062 | |
| 1063 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1064 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1065 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1066 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1067 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1068 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1069 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1070 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1071 | |
| 1072 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1074 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1075 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1076 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1077 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1078 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1079 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1080 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1081 | --x) |
| 1082 | # Obsolete; use --with-x. |
| 1083 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1084 | |
| 1085 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1086 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1087 | ac_prev=x_includes ;; |
| 1088 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1089 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1090 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1091 | |
| 1092 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1093 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1094 | ac_prev=x_libraries ;; |
| 1095 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1096 | | --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] | 1097 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1099 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1100 | Try \`$0 --help' for more information." >&2 |
| 1101 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1102 | ;; |
| 1103 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1104 | *=*) |
| 1105 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1106 | # Reject names that are not valid shell variable names. |
| 1107 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1108 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1109 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1110 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1111 | export $ac_envvar ;; |
| 1112 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1113 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1114 | # FIXME: should be removed in autoconf 3.0. |
| 1115 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1116 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1117 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1118 | : ${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] | 1119 | ;; |
| 1120 | |
| 1121 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1122 | done |
| 1123 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1124 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1125 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1126 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1127 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1128 | fi |
| 1129 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1130 | # Be sure to have absolute directory names. |
| 1131 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1132 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1133 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1134 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1135 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1136 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1137 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1138 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1139 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1140 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1141 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1142 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1143 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1144 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1145 | # There might be people who depend on the old broken behavior: `$host' |
| 1146 | # used to hold the argument of --host etc. |
| 1147 | # FIXME: To remove some day. |
| 1148 | build=$build_alias |
| 1149 | host=$host_alias |
| 1150 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1152 | # FIXME: To remove some day. |
| 1153 | if test "x$host_alias" != x; then |
| 1154 | if test "x$build_alias" = x; then |
| 1155 | cross_compiling=maybe |
| 1156 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1157 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1158 | elif test "x$build_alias" != "x$host_alias"; then |
| 1159 | cross_compiling=yes |
| 1160 | fi |
| 1161 | fi |
| 1162 | |
| 1163 | ac_tool_prefix= |
| 1164 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1165 | |
| 1166 | test "$silent" = yes && exec 6>/dev/null |
| 1167 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1168 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1169 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1170 | ac_ls_di=`ls -di .` && |
| 1171 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1172 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1173 | { (exit 1); exit 1; }; } |
| 1174 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1175 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1176 | { (exit 1); exit 1; }; } |
| 1177 | |
| 1178 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1179 | # Find the source files, if location was not specified. |
| 1180 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1181 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1182 | # Try the directory containing this script, then the parent directory. |
| 1183 | ac_confdir=`$as_dirname -- "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1184 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1185 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1186 | X"$0" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1187 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1188 | echo X"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1189 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1190 | s//\1/ |
| 1191 | q |
| 1192 | } |
| 1193 | /^X\(\/\/\)[^/].*/{ |
| 1194 | s//\1/ |
| 1195 | q |
| 1196 | } |
| 1197 | /^X\(\/\/\)$/{ |
| 1198 | s//\1/ |
| 1199 | q |
| 1200 | } |
| 1201 | /^X\(\/\).*/{ |
| 1202 | s//\1/ |
| 1203 | q |
| 1204 | } |
| 1205 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1206 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1207 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1208 | srcdir=.. |
| 1209 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1210 | else |
| 1211 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1212 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1213 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1214 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1215 | { 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] | 1216 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1217 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1218 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1219 | ac_abs_confdir=`( |
| 1220 | 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] | 1221 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1222 | pwd)` |
| 1223 | # When building in place, set srcdir=. |
| 1224 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1225 | srcdir=. |
| 1226 | fi |
| 1227 | # Remove unnecessary trailing slashes from srcdir. |
| 1228 | # Double slashes in file names in object file debugging info |
| 1229 | # mess up M-x gdb in Emacs. |
| 1230 | case $srcdir in |
| 1231 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1232 | esac |
| 1233 | for ac_var in $ac_precious_vars; do |
| 1234 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1235 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1236 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1237 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1238 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1240 | # |
| 1241 | # Report the --help message. |
| 1242 | # |
| 1243 | if test "$ac_init_help" = "long"; then |
| 1244 | # Omit some internal or obsolete options to make the list less imposing. |
| 1245 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1246 | cat <<_ACEOF |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 1247 | \`configure' configures python 2.6 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1248 | |
| 1249 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1250 | |
| 1251 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1252 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1253 | |
| 1254 | Defaults for the options are specified in brackets. |
| 1255 | |
| 1256 | Configuration: |
| 1257 | -h, --help display this help and exit |
| 1258 | --help=short display options specific to this package |
| 1259 | --help=recursive display the short help of all the included packages |
| 1260 | -V, --version display version information and exit |
| 1261 | -q, --quiet, --silent do not print \`checking...' messages |
| 1262 | --cache-file=FILE cache test results in FILE [disabled] |
| 1263 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1264 | -n, --no-create do not create output files |
| 1265 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1267 | Installation directories: |
| 1268 | --prefix=PREFIX install architecture-independent files in PREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1269 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1270 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1271 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1272 | |
| 1273 | By default, \`make install' will install all the files in |
| 1274 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1275 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1276 | for instance \`--prefix=\$HOME'. |
| 1277 | |
| 1278 | For better control, use the options below. |
| 1279 | |
| 1280 | Fine tuning of the installation directories: |
| 1281 | --bindir=DIR user executables [EPREFIX/bin] |
| 1282 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1283 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1285 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1286 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1287 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1288 | --includedir=DIR C header files [PREFIX/include] |
| 1289 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1290 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1291 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1292 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1293 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1294 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1295 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1296 | --htmldir=DIR html documentation [DOCDIR] |
| 1297 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1298 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1299 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1300 | _ACEOF |
| 1301 | |
| 1302 | cat <<\_ACEOF |
| 1303 | _ACEOF |
| 1304 | fi |
| 1305 | |
| 1306 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1307 | case $ac_init_help in |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 1308 | short | recursive ) echo "Configuration of python 2.6:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1309 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1310 | cat <<\_ACEOF |
| 1311 | |
| 1312 | Optional Features: |
| 1313 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1314 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1315 | --enable-universalsdk[SDKDIR] |
| 1316 | Build agains Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1317 | --enable-framework[=INSTALLDIR] |
| 1318 | Build (MacOSX|Darwin) framework |
| 1319 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1320 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1321 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1322 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1323 | --disable-ipv6 Disable ipv6 support |
| 1324 | --enable-unicode[=ucs[24]] |
| 1325 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1326 | |
| 1327 | Optional Packages: |
| 1328 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1329 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1330 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1331 | --with-cxx-main=<compiler> |
| 1332 | compile main() and link python executable with C++ |
| 1333 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1334 | --with-suffix=.exe set executable suffix |
| 1335 | --with-pydebug build with Py_DEBUG defined |
| 1336 | --with-libs='lib1 ...' link against additional libs |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1337 | --with-system-ffi build _ctypes module using an installed ffi library |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1338 | --with-signal-module disable/enable signal module |
| 1339 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1340 | --with(out)-threads[=DIRECTORY] |
| 1341 | disable/enable thread support |
| 1342 | --with(out)-thread[=DIRECTORY] |
| 1343 | deprecated; use --with(out)-threads |
| 1344 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1345 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1346 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1347 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1348 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1349 | --with-fpectl enable SIGFPE catching |
| 1350 | --with-libm=STRING math library |
| 1351 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1352 | |
| 1353 | Some influential environment variables: |
| 1354 | CC C compiler command |
| 1355 | CFLAGS C compiler flags |
| 1356 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1357 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1358 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1359 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1360 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1361 | CPP C preprocessor |
| 1362 | |
| 1363 | Use these variables to override the choices made by `configure' or to help |
| 1364 | it to find libraries and programs with nonstandard names/locations. |
| 1365 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 1366 | Report bugs to <http://www.python.org/python-bugs>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1367 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1368 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | fi |
| 1370 | |
| 1371 | if test "$ac_init_help" = "recursive"; then |
| 1372 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1373 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1374 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1375 | ac_builddir=. |
| 1376 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1377 | case "$ac_dir" in |
| 1378 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1379 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1380 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1381 | # A ".." for each directory in $ac_dir_suffix. |
| 1382 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1383 | case $ac_top_builddir_sub in |
| 1384 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1385 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1386 | esac ;; |
| 1387 | esac |
| 1388 | ac_abs_top_builddir=$ac_pwd |
| 1389 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1390 | # for backward compatibility: |
| 1391 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | |
| 1393 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1394 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1395 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1396 | ac_top_srcdir=$ac_top_builddir_sub |
| 1397 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1398 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1399 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1400 | ac_top_srcdir=$srcdir |
| 1401 | ac_abs_top_srcdir=$srcdir ;; |
| 1402 | *) # Relative name. |
| 1403 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1404 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1405 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1406 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1407 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1408 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1409 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1410 | # Check for guested configure. |
| 1411 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1412 | echo && |
| 1413 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1414 | elif test -f "$ac_srcdir/configure"; then |
| 1415 | echo && |
| 1416 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1417 | else |
| 1418 | 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] | 1419 | fi || ac_status=$? |
| 1420 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1421 | done |
| 1422 | fi |
| 1423 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1424 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1425 | if $ac_init_version; then |
| 1426 | cat <<\_ACEOF |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 1427 | python configure 2.6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1428 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1429 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1430 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1431 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1432 | This configure script is free software; the Free Software Foundation |
| 1433 | gives unlimited permission to copy, distribute and modify it. |
| 1434 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1435 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1436 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1437 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1438 | This file contains any messages produced by compilers while |
| 1439 | running configure, to aid debugging if configure makes a mistake. |
| 1440 | |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 1441 | It was created by python $as_me 2.6, which was |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1442 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1443 | |
| 1444 | $ $0 $@ |
| 1445 | |
| 1446 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1447 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1448 | { |
| 1449 | cat <<_ASUNAME |
| 1450 | ## --------- ## |
| 1451 | ## Platform. ## |
| 1452 | ## --------- ## |
| 1453 | |
| 1454 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1455 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1456 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1457 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1458 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1459 | |
| 1460 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1461 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1462 | |
| 1463 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1464 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1465 | /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] | 1466 | /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] | 1467 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1468 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1469 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1470 | |
| 1471 | _ASUNAME |
| 1472 | |
| 1473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1474 | for as_dir in $PATH |
| 1475 | do |
| 1476 | IFS=$as_save_IFS |
| 1477 | test -z "$as_dir" && as_dir=. |
| 1478 | echo "PATH: $as_dir" |
| 1479 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1480 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1481 | |
| 1482 | } >&5 |
| 1483 | |
| 1484 | cat >&5 <<_ACEOF |
| 1485 | |
| 1486 | |
| 1487 | ## ----------- ## |
| 1488 | ## Core tests. ## |
| 1489 | ## ----------- ## |
| 1490 | |
| 1491 | _ACEOF |
| 1492 | |
| 1493 | |
| 1494 | # Keep a trace of the command line. |
| 1495 | # 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] | 1496 | # 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] | 1497 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1498 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1499 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1500 | ac_configure_args0= |
| 1501 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1502 | ac_must_keep_next=false |
| 1503 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1504 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1505 | for ac_arg |
| 1506 | do |
| 1507 | case $ac_arg in |
| 1508 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1509 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1510 | | -silent | --silent | --silen | --sile | --sil) |
| 1511 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1512 | *\'*) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1513 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1514 | esac |
| 1515 | case $ac_pass in |
| 1516 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1517 | 2) |
| 1518 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1519 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1520 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1521 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1522 | case $ac_arg in |
| 1523 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1524 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1525 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1526 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1527 | case "$ac_configure_args0 " in |
| 1528 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1529 | esac |
| 1530 | ;; |
| 1531 | -* ) ac_must_keep_next=true ;; |
| 1532 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1533 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1534 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1535 | ;; |
| 1536 | esac |
| 1537 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1538 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1539 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1540 | $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] | 1541 | |
| 1542 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1543 | # config.log. We remove comments because anyway the quotes in there |
| 1544 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1545 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1546 | # 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] | 1547 | trap 'exit_status=$? |
| 1548 | # Save into config.log some information that might help in debugging. |
| 1549 | { |
| 1550 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1552 | cat <<\_ASBOX |
| 1553 | ## ---------------- ## |
| 1554 | ## Cache variables. ## |
| 1555 | ## ---------------- ## |
| 1556 | _ASBOX |
| 1557 | echo |
| 1558 | # 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] | 1559 | ( |
| 1560 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1561 | eval ac_val=\$$ac_var |
| 1562 | case $ac_val in #( |
| 1563 | *${as_nl}*) |
| 1564 | case $ac_var in #( |
| 1565 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1566 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1567 | esac |
| 1568 | case $ac_var in #( |
| 1569 | _ | IFS | as_nl) ;; #( |
| 1570 | *) $as_unset $ac_var ;; |
| 1571 | esac ;; |
| 1572 | esac |
| 1573 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1574 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1575 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1576 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1577 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1578 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1579 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1580 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1581 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1582 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1583 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1584 | esac | |
| 1585 | sort |
| 1586 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1587 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1588 | |
| 1589 | cat <<\_ASBOX |
| 1590 | ## ----------------- ## |
| 1591 | ## Output variables. ## |
| 1592 | ## ----------------- ## |
| 1593 | _ASBOX |
| 1594 | echo |
| 1595 | for ac_var in $ac_subst_vars |
| 1596 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1597 | eval ac_val=\$$ac_var |
| 1598 | case $ac_val in |
| 1599 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1600 | esac |
| 1601 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1602 | done | sort |
| 1603 | echo |
| 1604 | |
| 1605 | if test -n "$ac_subst_files"; then |
| 1606 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1607 | ## ------------------- ## |
| 1608 | ## File substitutions. ## |
| 1609 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1610 | _ASBOX |
| 1611 | echo |
| 1612 | for ac_var in $ac_subst_files |
| 1613 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1614 | eval ac_val=\$$ac_var |
| 1615 | case $ac_val in |
| 1616 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1617 | esac |
| 1618 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1619 | done | sort |
| 1620 | echo |
| 1621 | fi |
| 1622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1623 | if test -s confdefs.h; then |
| 1624 | cat <<\_ASBOX |
| 1625 | ## ----------- ## |
| 1626 | ## confdefs.h. ## |
| 1627 | ## ----------- ## |
| 1628 | _ASBOX |
| 1629 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1630 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1631 | echo |
| 1632 | fi |
| 1633 | test "$ac_signal" != 0 && |
| 1634 | echo "$as_me: caught signal $ac_signal" |
| 1635 | echo "$as_me: exit $exit_status" |
| 1636 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1637 | rm -f core *.core core.conftest.* && |
| 1638 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1639 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1640 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1641 | for ac_signal in 1 2 13 15; do |
| 1642 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1643 | done |
| 1644 | ac_signal=0 |
| 1645 | |
| 1646 | # 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] | 1647 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1648 | |
| 1649 | # Predefined preprocessor variables. |
| 1650 | |
| 1651 | cat >>confdefs.h <<_ACEOF |
| 1652 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1653 | _ACEOF |
| 1654 | |
| 1655 | |
| 1656 | cat >>confdefs.h <<_ACEOF |
| 1657 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1658 | _ACEOF |
| 1659 | |
| 1660 | |
| 1661 | cat >>confdefs.h <<_ACEOF |
| 1662 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1663 | _ACEOF |
| 1664 | |
| 1665 | |
| 1666 | cat >>confdefs.h <<_ACEOF |
| 1667 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1668 | _ACEOF |
| 1669 | |
| 1670 | |
| 1671 | cat >>confdefs.h <<_ACEOF |
| 1672 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1673 | _ACEOF |
| 1674 | |
| 1675 | |
| 1676 | # Let the site file select an alternate cache file if it wants to. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1677 | # Prefer explicitly selected file to automatically selected ones. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1678 | if test -n "$CONFIG_SITE"; then |
| 1679 | set x "$CONFIG_SITE" |
| 1680 | elif test "x$prefix" != xNONE; then |
| 1681 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1682 | else |
| 1683 | set x "$ac_default_prefix/share/config.site" \ |
| 1684 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1685 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1686 | shift |
| 1687 | for ac_site_file |
| 1688 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1689 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1690 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1691 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1692 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1693 | . "$ac_site_file" |
| 1694 | fi |
| 1695 | done |
| 1696 | |
| 1697 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1698 | # Some versions of bash will fail to source /dev/null (special |
| 1699 | # files actually), so we avoid doing that. |
| 1700 | if test -f "$cache_file"; then |
| 1701 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1702 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1703 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1704 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1705 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1706 | esac |
| 1707 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1709 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1710 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1711 | >$cache_file |
| 1712 | fi |
| 1713 | |
| 1714 | # Check that the precious variables saved in the cache have kept the same |
| 1715 | # value. |
| 1716 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1717 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1718 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1719 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1720 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1721 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1722 | case $ac_old_set,$ac_new_set in |
| 1723 | set,) |
| 1724 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1725 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1726 | ac_cache_corrupted=: ;; |
| 1727 | ,set) |
| 1728 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1729 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1730 | ac_cache_corrupted=: ;; |
| 1731 | ,);; |
| 1732 | *) |
| 1733 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1734 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1735 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1736 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1737 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1738 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1739 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1740 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1741 | fi;; |
| 1742 | esac |
| 1743 | # Pass precious variables to config.status. |
| 1744 | if test "$ac_new_set" = set; then |
| 1745 | case $ac_new_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1746 | *\'*) 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] | 1747 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1748 | esac |
| 1749 | case " $ac_configure_args " in |
| 1750 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1751 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1752 | esac |
| 1753 | fi |
| 1754 | done |
| 1755 | if $ac_cache_corrupted; then |
| 1756 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1757 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1758 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1759 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1760 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1761 | fi |
| 1762 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1763 | |
| 1764 | |
| 1765 | |
| 1766 | |
| 1767 | |
| 1768 | |
| 1769 | |
| 1770 | |
| 1771 | |
| 1772 | |
| 1773 | |
| 1774 | |
| 1775 | |
| 1776 | |
| 1777 | |
| 1778 | |
| 1779 | |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1787 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1788 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1789 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1790 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1791 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1792 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1793 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1794 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1795 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1796 | |
| 1797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1798 | |
| 1799 | |
| 1800 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1801 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1802 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1803 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1804 | # with other autoconf-based packages that include Python.h |
| 1805 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1806 | rm confdefs.h |
| 1807 | mv confdefs.h.new confdefs.h |
| 1808 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1809 | |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 1810 | VERSION=2.6 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1811 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1812 | |
| 1813 | SOVERSION=1.0 |
| 1814 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1815 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1816 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1817 | |
| 1818 | cat >>confdefs.h <<\_ACEOF |
| 1819 | #define _GNU_SOURCE 1 |
| 1820 | _ACEOF |
| 1821 | |
| 1822 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1823 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1824 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1825 | # them. |
| 1826 | |
| 1827 | cat >>confdefs.h <<\_ACEOF |
| 1828 | #define _NETBSD_SOURCE 1 |
| 1829 | _ACEOF |
| 1830 | |
| 1831 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1832 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1833 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1834 | # them. |
| 1835 | |
| 1836 | cat >>confdefs.h <<\_ACEOF |
| 1837 | #define __BSD_VISIBLE 1 |
| 1838 | _ACEOF |
| 1839 | |
| 1840 | |
Martin v. Löwis | 76760b0 | 2007-07-31 19:57:56 +0000 | [diff] [blame] | 1841 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 1842 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 1843 | |
| 1844 | cat >>confdefs.h <<\_ACEOF |
| 1845 | #define _BSD_SOURCE 1 |
| 1846 | _ACEOF |
| 1847 | |
| 1848 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1849 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1850 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1851 | |
| 1852 | cat >>confdefs.h <<\_ACEOF |
| 1853 | #define _BSD_TYPES 1 |
| 1854 | _ACEOF |
| 1855 | |
| 1856 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1857 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1858 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1859 | # Arguments passed to configure. |
| 1860 | |
| 1861 | CONFIG_ARGS="$ac_configure_args" |
| 1862 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1863 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1864 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1865 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1866 | case $enableval in |
| 1867 | yes) |
| 1868 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1869 | ;; |
| 1870 | esac |
| 1871 | case $enableval in |
| 1872 | no) |
| 1873 | UNIVERSALSDK= |
| 1874 | enable_universalsdk= |
| 1875 | ;; |
| 1876 | *) |
| 1877 | UNIVERSALSDK=$enableval |
| 1878 | ;; |
| 1879 | esac |
| 1880 | |
| 1881 | else |
| 1882 | |
| 1883 | UNIVERSALSDK= |
| 1884 | enable_universalsdk= |
| 1885 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1886 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1887 | |
| 1888 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1889 | |
| 1890 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1891 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1892 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1893 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1894 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1895 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1896 | esac |
| 1897 | case $enableval in |
| 1898 | no) |
| 1899 | PYTHONFRAMEWORK= |
| 1900 | PYTHONFRAMEWORKDIR=no-framework |
| 1901 | PYTHONFRAMEWORKPREFIX= |
| 1902 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1903 | FRAMEWORKINSTALLFIRST= |
| 1904 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1905 | FRAMEWORKALTINSTALLFIRST= |
| 1906 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1907 | if test "x${prefix}" = "xNONE"; then |
| 1908 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1909 | else |
| 1910 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1911 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1912 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1913 | ;; |
| 1914 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1915 | PYTHONFRAMEWORK=Python |
| 1916 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1917 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1918 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1919 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
| 1920 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1921 | FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall" |
| 1922 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1923 | if test "x${prefix}" = "xNONE" ; then |
| 1924 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1925 | else |
| 1926 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1927 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1928 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1929 | |
| 1930 | # Add makefiles for Mac specific code to the list of output |
| 1931 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1932 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1933 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1934 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1935 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1936 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1937 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1938 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1939 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1940 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1941 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1942 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1943 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1944 | PYTHONFRAMEWORKPREFIX= |
| 1945 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1946 | FRAMEWORKINSTALLFIRST= |
| 1947 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1948 | FRAMEWORKALTINSTALLFIRST= |
| 1949 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1950 | if test "x${prefix}" = "xNONE" ; then |
| 1951 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1952 | else |
| 1953 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1954 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1955 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1956 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1957 | fi |
| 1958 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1959 | |
| 1960 | |
| 1961 | |
| 1962 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1963 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1964 | |
| 1965 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1966 | |
| 1967 | |
| 1968 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1969 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1970 | ## AC_HELP_STRING(--with-dyld, |
| 1971 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1972 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1973 | # Set name for machine-dependent library files |
| 1974 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1975 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1976 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1977 | if test -z "$MACHDEP" |
| 1978 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1979 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1980 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1981 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1982 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1983 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1984 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1985 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1986 | ac_md_system=`echo $ac_sys_system | |
| 1987 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1988 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1989 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1990 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1991 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1992 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1993 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1994 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1995 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1996 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1997 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1998 | esac |
| 1999 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2000 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2001 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2002 | # disable features if it is defined, without any means to access these |
| 2003 | # features as extensions. For these systems, we skip the definition of |
| 2004 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2005 | # some feature, make sure there is no alternative way to access this |
| 2006 | # feature. Also, when using wildcards, make sure you have verified the |
| 2007 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2008 | # wildcard, and that the wildcard does not include future systems |
| 2009 | # (which may remove their limitations). |
| 2010 | case $ac_sys_system/$ac_sys_release in |
| 2011 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2012 | # 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] | 2013 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Neal Norwitz | 4bc2c09 | 2006-09-05 02:57:01 +0000 | [diff] [blame] | 2014 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2015 | define_xopen_source=no;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2016 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2017 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2018 | # Marc Recht |
| 2019 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S) |
| 2020 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2021 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2022 | # of union __?sigval. Reported by Stuart Bishop. |
| 2023 | SunOS/5.6) |
| 2024 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2025 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2026 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2027 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2028 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2029 | define_xopen_source=no;; |
| 2030 | # 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] | 2031 | # 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] | 2032 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2033 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2034 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 2035 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 2036 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 2037 | # This should hopefully be fixed in FreeBSD 4.9 |
| 2038 | FreeBSD/4.8* | Darwin/6* ) |
| 2039 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2040 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2041 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2042 | # 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] | 2043 | AIX/4) |
| 2044 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2045 | AIX/5) |
| 2046 | if test `uname -r` -eq 1; then |
| 2047 | define_xopen_source=no |
| 2048 | fi |
| 2049 | ;; |
Neal Norwitz | e8fb992 | 2006-04-04 05:32:17 +0000 | [diff] [blame] | 2050 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2051 | # disables platform specific features beyond repair. |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2052 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
Neal Norwitz | 7659f0f | 2006-06-12 02:09:03 +0000 | [diff] [blame] | 2053 | # has no effect, don't bother defining them |
Ronald Oussoren | c95f756 | 2006-08-09 14:56:33 +0000 | [diff] [blame] | 2054 | Darwin/[789].*) |
Neal Norwitz | e8fb992 | 2006-04-04 05:32:17 +0000 | [diff] [blame] | 2055 | define_xopen_source=no |
| 2056 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2057 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2058 | esac |
| 2059 | |
| 2060 | if test $define_xopen_source = yes |
| 2061 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2062 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2063 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2064 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2065 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2066 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2067 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2068 | |
| 2069 | cat >>confdefs.h <<\_ACEOF |
| 2070 | #define _XOPEN_SOURCE 500 |
| 2071 | _ACEOF |
| 2072 | |
| 2073 | ;; |
| 2074 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2075 | |
| 2076 | cat >>confdefs.h <<\_ACEOF |
| 2077 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2078 | _ACEOF |
| 2079 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2080 | ;; |
| 2081 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2082 | |
| 2083 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2084 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2085 | # several APIs are not declared. Since this is also needed in some |
| 2086 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2087 | # except for Solaris 10, where it must not be defined, |
| 2088 | # as it implies XPG4.2 |
| 2089 | case $ac_sys_system/$ac_sys_release in |
| 2090 | SunOS/5.10) |
| 2091 | ;; |
| 2092 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2093 | |
| 2094 | cat >>confdefs.h <<\_ACEOF |
| 2095 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2096 | _ACEOF |
| 2097 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2098 | ;; |
| 2099 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2100 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2101 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2102 | cat >>confdefs.h <<\_ACEOF |
| 2103 | #define _POSIX_C_SOURCE 200112L |
| 2104 | _ACEOF |
| 2105 | |
| 2106 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2107 | fi |
| 2108 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2109 | # |
| 2110 | # SGI compilers allow the specification of the both the ABI and the |
| 2111 | # ISA on the command line. Depending on the values of these switches, |
| 2112 | # different and often incompatable code will be generated. |
| 2113 | # |
| 2114 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2115 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2116 | # variable is also adjusted. |
| 2117 | # |
| 2118 | |
| 2119 | if test ! -z "$SGI_ABI" |
| 2120 | then |
| 2121 | CC="cc $SGI_ABI" |
| 2122 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2123 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2124 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2125 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2126 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2127 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2128 | # And add extra plat-mac for darwin |
| 2129 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2130 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2131 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2132 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2133 | if test -z "$EXTRAPLATDIR" |
| 2134 | then |
| 2135 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2136 | darwin) |
| 2137 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2138 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2139 | ;; |
| 2140 | *) |
| 2141 | EXTRAPLATDIR="" |
| 2142 | EXTRAMACHDEPPATH="" |
| 2143 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2144 | esac |
| 2145 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2146 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2147 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2148 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2149 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2150 | # it may influence the way we can build extensions, so distutils |
| 2151 | # needs to check it |
| 2152 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2153 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2154 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2155 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2156 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2157 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2158 | |
| 2159 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2160 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2161 | # just to get things to compile and link. Users are free to override OPT |
| 2162 | # when running configure or make. The build should not break if they do. |
| 2163 | # BASECFLAGS should generally not be messed with, however. |
| 2164 | |
| 2165 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2166 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2167 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2168 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2169 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2170 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2171 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2172 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2173 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2174 | no) CC=cc |
| 2175 | without_gcc=yes;; |
| 2176 | yes) CC=gcc |
| 2177 | without_gcc=no;; |
| 2178 | *) CC=$withval |
| 2179 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2180 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2182 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2183 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2184 | AIX*) CC=cc_r |
| 2185 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2186 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2187 | case $BE_HOST_CPU in |
| 2188 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2189 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2190 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2191 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2192 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2193 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2194 | ;; |
| 2195 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2196 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2197 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2198 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2199 | ;; |
| 2200 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2201 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2202 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 2203 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2204 | ;; |
| 2205 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2206 | AR="\$(srcdir)/Modules/ar_beos" |
| 2207 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2208 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2209 | Monterey*) |
| 2210 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2211 | without_gcc=;; |
| 2212 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2213 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2214 | fi |
| 2215 | |
| 2216 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2217 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2218 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2219 | # If the user switches compilers, we can't believe the cache |
| 2220 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2221 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2222 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 2223 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 2224 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 2225 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2226 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2227 | fi |
| 2228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2229 | ac_ext=c |
| 2230 | ac_cpp='$CPP $CPPFLAGS' |
| 2231 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2232 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2233 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2234 | if test -n "$ac_tool_prefix"; then |
| 2235 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2236 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2237 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2239 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2241 | else |
| 2242 | if test -n "$CC"; then |
| 2243 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2246 | for as_dir in $PATH |
| 2247 | do |
| 2248 | IFS=$as_save_IFS |
| 2249 | test -z "$as_dir" && as_dir=. |
| 2250 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2251 | 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] | 2252 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2253 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2254 | break 2 |
| 2255 | fi |
| 2256 | done |
| 2257 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2258 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2259 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2260 | fi |
| 2261 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2262 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2263 | if test -n "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2264 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2265 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2266 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2267 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2268 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2269 | fi |
| 2270 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2272 | fi |
| 2273 | if test -z "$ac_cv_prog_CC"; then |
| 2274 | ac_ct_CC=$CC |
| 2275 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2276 | set dummy gcc; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2277 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2279 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2281 | else |
| 2282 | if test -n "$ac_ct_CC"; then |
| 2283 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2284 | else |
| 2285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2286 | for as_dir in $PATH |
| 2287 | do |
| 2288 | IFS=$as_save_IFS |
| 2289 | test -z "$as_dir" && as_dir=. |
| 2290 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2291 | 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] | 2292 | ac_cv_prog_ac_ct_CC="gcc" |
| 2293 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2294 | break 2 |
| 2295 | fi |
| 2296 | done |
| 2297 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2298 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2299 | |
| 2300 | fi |
| 2301 | fi |
| 2302 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2303 | if test -n "$ac_ct_CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2304 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2305 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2306 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2307 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2308 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2309 | fi |
| 2310 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2311 | if test "x$ac_ct_CC" = x; then |
| 2312 | CC="" |
| 2313 | else |
| 2314 | case $cross_compiling:$ac_tool_warned in |
| 2315 | yes:) |
| 2316 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2317 | whose name does not start with the host triplet. If you think this |
| 2318 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2319 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2320 | whose name does not start with the host triplet. If you think this |
| 2321 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2322 | ac_tool_warned=yes ;; |
| 2323 | esac |
| 2324 | CC=$ac_ct_CC |
| 2325 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2326 | else |
| 2327 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2328 | fi |
| 2329 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2330 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2331 | if test -n "$ac_tool_prefix"; then |
| 2332 | # 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] | 2333 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2334 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2336 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2338 | else |
| 2339 | if test -n "$CC"; then |
| 2340 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2343 | for as_dir in $PATH |
| 2344 | do |
| 2345 | IFS=$as_save_IFS |
| 2346 | test -z "$as_dir" && as_dir=. |
| 2347 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2348 | 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] | 2349 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2351 | break 2 |
| 2352 | fi |
| 2353 | done |
| 2354 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2355 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2356 | |
| 2357 | fi |
| 2358 | fi |
| 2359 | CC=$ac_cv_prog_CC |
| 2360 | if test -n "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2361 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2362 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2363 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2364 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2365 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2366 | fi |
| 2367 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2369 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2370 | fi |
| 2371 | if test -z "$CC"; then |
| 2372 | # Extract the first word of "cc", so it can be a program name with args. |
| 2373 | set dummy cc; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2374 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2376 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2378 | else |
| 2379 | if test -n "$CC"; then |
| 2380 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2381 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2382 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2384 | for as_dir in $PATH |
| 2385 | do |
| 2386 | IFS=$as_save_IFS |
| 2387 | test -z "$as_dir" && as_dir=. |
| 2388 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2389 | 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] | 2390 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2391 | ac_prog_rejected=yes |
| 2392 | continue |
| 2393 | fi |
| 2394 | ac_cv_prog_CC="cc" |
| 2395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2396 | break 2 |
| 2397 | fi |
| 2398 | done |
| 2399 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2400 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2401 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2402 | if test $ac_prog_rejected = yes; then |
| 2403 | # We found a bogon in the path, so make sure we never use it. |
| 2404 | set dummy $ac_cv_prog_CC |
| 2405 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2406 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2407 | # We chose a different compiler from the bogus one. |
| 2408 | # However, it has the same basename, so the bogon will be chosen |
| 2409 | # first if we set CC to just the basename; use the full file name. |
| 2410 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2411 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2412 | fi |
| 2413 | fi |
| 2414 | fi |
| 2415 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2416 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2417 | if test -n "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2418 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2419 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2420 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2421 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2422 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2423 | fi |
| 2424 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2426 | fi |
| 2427 | if test -z "$CC"; then |
| 2428 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2429 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2430 | do |
| 2431 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2432 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2433 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2435 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2437 | else |
| 2438 | if test -n "$CC"; then |
| 2439 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2440 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2442 | for as_dir in $PATH |
| 2443 | do |
| 2444 | IFS=$as_save_IFS |
| 2445 | test -z "$as_dir" && as_dir=. |
| 2446 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2447 | 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] | 2448 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2449 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2450 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2451 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | done |
| 2453 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2454 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2455 | |
| 2456 | fi |
| 2457 | fi |
| 2458 | CC=$ac_cv_prog_CC |
| 2459 | if test -n "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2460 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2461 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2462 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2463 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2464 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2465 | fi |
| 2466 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2468 | test -n "$CC" && break |
| 2469 | done |
| 2470 | fi |
| 2471 | if test -z "$CC"; then |
| 2472 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2473 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2474 | do |
| 2475 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2476 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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_ac_ct_CC+set}" = set; then |
| 2480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2481 | else |
| 2482 | if test -n "$ac_ct_CC"; then |
| 2483 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2484 | else |
| 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_ac_ct_CC="$ac_prog" |
| 2493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 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 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2500 | fi |
| 2501 | fi |
| 2502 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2503 | if test -n "$ac_ct_CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2504 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2505 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2506 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 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 | test -n "$ac_ct_CC" && break |
| 2513 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2514 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2515 | if test "x$ac_ct_CC" = x; then |
| 2516 | CC="" |
| 2517 | else |
| 2518 | case $cross_compiling:$ac_tool_warned in |
| 2519 | yes:) |
| 2520 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2521 | whose name does not start with the host triplet. If you think this |
| 2522 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2523 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2524 | whose name does not start with the host triplet. If you think this |
| 2525 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2526 | ac_tool_warned=yes ;; |
| 2527 | esac |
| 2528 | CC=$ac_ct_CC |
| 2529 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 | fi |
| 2531 | |
| 2532 | fi |
| 2533 | |
| 2534 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2535 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2536 | See \`config.log' for more details." >&5 |
| 2537 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2538 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2539 | { (exit 1); exit 1; }; } |
| 2540 | |
| 2541 | # Provide some information about the compiler. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2542 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2543 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2544 | { (ac_try="$ac_compiler --version >&5" |
| 2545 | case "(($ac_try" in |
| 2546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2547 | *) ac_try_echo=$ac_try;; |
| 2548 | esac |
| 2549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2550 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 | ac_status=$? |
| 2552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2553 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2554 | { (ac_try="$ac_compiler -v >&5" |
| 2555 | case "(($ac_try" in |
| 2556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2557 | *) ac_try_echo=$ac_try;; |
| 2558 | esac |
| 2559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2560 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2561 | ac_status=$? |
| 2562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2563 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2564 | { (ac_try="$ac_compiler -V >&5" |
| 2565 | case "(($ac_try" in |
| 2566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2567 | *) ac_try_echo=$ac_try;; |
| 2568 | esac |
| 2569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2570 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2571 | ac_status=$? |
| 2572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2573 | (exit $ac_status); } |
| 2574 | |
| 2575 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2576 | /* confdefs.h. */ |
| 2577 | _ACEOF |
| 2578 | cat confdefs.h >>conftest.$ac_ext |
| 2579 | cat >>conftest.$ac_ext <<_ACEOF |
| 2580 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2582 | int |
| 2583 | main () |
| 2584 | { |
| 2585 | |
| 2586 | ; |
| 2587 | return 0; |
| 2588 | } |
| 2589 | _ACEOF |
| 2590 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2591 | 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] | 2592 | # Try to create an executable without -o first, disregard a.out. |
| 2593 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2594 | # of exeext. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2595 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2596 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2597 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2598 | # |
| 2599 | # List of possible output files, starting from the most likely. |
| 2600 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2601 | # only as a last resort. b.out is created by i960 compilers. |
| 2602 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2603 | # |
| 2604 | # The IRIX 6 linker writes into existing files which may not be |
| 2605 | # executable, retaining their permissions. Remove them first so a |
| 2606 | # subsequent execution test works. |
| 2607 | ac_rmfiles= |
| 2608 | for ac_file in $ac_files |
| 2609 | do |
| 2610 | case $ac_file in |
| 2611 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2612 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2613 | esac |
| 2614 | done |
| 2615 | rm -f $ac_rmfiles |
| 2616 | |
| 2617 | if { (ac_try="$ac_link_default" |
| 2618 | case "(($ac_try" in |
| 2619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2620 | *) ac_try_echo=$ac_try;; |
| 2621 | esac |
| 2622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2623 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | ac_status=$? |
| 2625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2626 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2627 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2628 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2629 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2630 | # so that the user can short-circuit this test for compilers unknown to |
| 2631 | # Autoconf. |
| 2632 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2633 | do |
| 2634 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2635 | case $ac_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2636 | *.$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] | 2637 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2638 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2639 | # We found the default executable, but exeext='' is most |
| 2640 | # certainly right. |
| 2641 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2642 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2643 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2644 | then :; else |
| 2645 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2646 | fi |
| 2647 | # We set ac_cv_exeext here because the later test for it is not |
| 2648 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2649 | # argument, so we may need to know it at that point already. |
| 2650 | # Even if this section looks crufty: it has the advantage of |
| 2651 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2652 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2653 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2654 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2655 | esac |
| 2656 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2657 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2658 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2659 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2660 | ac_file='' |
| 2661 | fi |
| 2662 | |
| 2663 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2664 | echo "${ECHO_T}$ac_file" >&6; } |
| 2665 | if test -z "$ac_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2666 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2668 | |
| 2669 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2670 | See \`config.log' for more details." >&5 |
| 2671 | echo "$as_me: error: C compiler cannot create executables |
| 2672 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2674 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2677 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2678 | # 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] | 2679 | # the compiler is broken, or we cross compile. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2680 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2681 | 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] | 2682 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2683 | # If not cross compiling, check that we can run a simple program. |
| 2684 | if test "$cross_compiling" != yes; then |
| 2685 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2686 | { (case "(($ac_try" in |
| 2687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2688 | *) ac_try_echo=$ac_try;; |
| 2689 | esac |
| 2690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2691 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2692 | ac_status=$? |
| 2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2694 | (exit $ac_status); }; }; then |
| 2695 | cross_compiling=no |
| 2696 | else |
| 2697 | if test "$cross_compiling" = maybe; then |
| 2698 | cross_compiling=yes |
| 2699 | else |
| 2700 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2701 | If you meant to cross compile, use \`--host'. |
| 2702 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2703 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2704 | If you meant to cross compile, use \`--host'. |
| 2705 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2706 | { (exit 1); exit 1; }; } |
| 2707 | fi |
| 2708 | fi |
| 2709 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2710 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2711 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2712 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2713 | 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] | 2714 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2715 | # 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] | 2716 | # the compiler is broken, or we cross compile. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2717 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2718 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2719 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2720 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2721 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2722 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2723 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2724 | if { (ac_try="$ac_link" |
| 2725 | case "(($ac_try" in |
| 2726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2727 | *) ac_try_echo=$ac_try;; |
| 2728 | esac |
| 2729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2730 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2731 | ac_status=$? |
| 2732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2733 | (exit $ac_status); }; then |
| 2734 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2735 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2736 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2737 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2738 | for ac_file in conftest.exe conftest conftest.*; do |
| 2739 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2740 | case $ac_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2741 | *.$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] | 2742 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2743 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2744 | * ) break;; |
| 2745 | esac |
| 2746 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2747 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2748 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2749 | See \`config.log' for more details." >&5 |
| 2750 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2751 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2752 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2753 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2755 | rm -f conftest$ac_cv_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2756 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2757 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2758 | |
| 2759 | rm -f conftest.$ac_ext |
| 2760 | EXEEXT=$ac_cv_exeext |
| 2761 | ac_exeext=$EXEEXT |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2762 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2763 | 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] | 2764 | if test "${ac_cv_objext+set}" = set; then |
| 2765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2767 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2768 | /* confdefs.h. */ |
| 2769 | _ACEOF |
| 2770 | cat confdefs.h >>conftest.$ac_ext |
| 2771 | cat >>conftest.$ac_ext <<_ACEOF |
| 2772 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2774 | int |
| 2775 | main () |
| 2776 | { |
| 2777 | |
| 2778 | ; |
| 2779 | return 0; |
| 2780 | } |
| 2781 | _ACEOF |
| 2782 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2783 | if { (ac_try="$ac_compile" |
| 2784 | case "(($ac_try" in |
| 2785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2786 | *) ac_try_echo=$ac_try;; |
| 2787 | esac |
| 2788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2789 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2790 | ac_status=$? |
| 2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2792 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2793 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2794 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2795 | case $ac_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2796 | *.$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] | 2797 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2798 | break;; |
| 2799 | esac |
| 2800 | done |
| 2801 | else |
| 2802 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2804 | |
| 2805 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2806 | See \`config.log' for more details." >&5 |
| 2807 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2808 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2809 | { (exit 1); exit 1; }; } |
| 2810 | fi |
| 2811 | |
| 2812 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2813 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2814 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2815 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2816 | OBJEXT=$ac_cv_objext |
| 2817 | ac_objext=$OBJEXT |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2818 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2819 | 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] | 2820 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2822 | else |
| 2823 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2824 | /* confdefs.h. */ |
| 2825 | _ACEOF |
| 2826 | cat confdefs.h >>conftest.$ac_ext |
| 2827 | cat >>conftest.$ac_ext <<_ACEOF |
| 2828 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2830 | int |
| 2831 | main () |
| 2832 | { |
| 2833 | #ifndef __GNUC__ |
| 2834 | choke me |
| 2835 | #endif |
| 2836 | |
| 2837 | ; |
| 2838 | return 0; |
| 2839 | } |
| 2840 | _ACEOF |
| 2841 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2842 | if { (ac_try="$ac_compile" |
| 2843 | case "(($ac_try" in |
| 2844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2845 | *) ac_try_echo=$ac_try;; |
| 2846 | esac |
| 2847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2848 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2849 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2851 | rm -f conftest.er1 |
| 2852 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2854 | (exit $ac_status); } && { |
| 2855 | test -z "$ac_c_werror_flag" || |
| 2856 | test ! -s conftest.err |
| 2857 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2858 | ac_compiler_gnu=yes |
| 2859 | else |
| 2860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2862 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2863 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2864 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2865 | |
| 2866 | 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] | 2867 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2868 | |
| 2869 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2870 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2871 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2872 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2873 | ac_test_CFLAGS=${CFLAGS+set} |
| 2874 | ac_save_CFLAGS=$CFLAGS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2875 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2876 | 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] | 2877 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2879 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2880 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2881 | ac_c_werror_flag=yes |
| 2882 | ac_cv_prog_cc_g=no |
| 2883 | CFLAGS="-g" |
| 2884 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2885 | /* confdefs.h. */ |
| 2886 | _ACEOF |
| 2887 | cat confdefs.h >>conftest.$ac_ext |
| 2888 | cat >>conftest.$ac_ext <<_ACEOF |
| 2889 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2890 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2891 | int |
| 2892 | main () |
| 2893 | { |
| 2894 | |
| 2895 | ; |
| 2896 | return 0; |
| 2897 | } |
| 2898 | _ACEOF |
| 2899 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2900 | if { (ac_try="$ac_compile" |
| 2901 | case "(($ac_try" in |
| 2902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2903 | *) ac_try_echo=$ac_try;; |
| 2904 | esac |
| 2905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2906 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2907 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2909 | rm -f conftest.er1 |
| 2910 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2912 | (exit $ac_status); } && { |
| 2913 | test -z "$ac_c_werror_flag" || |
| 2914 | test ! -s conftest.err |
| 2915 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2916 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2917 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2920 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2921 | CFLAGS="" |
| 2922 | cat >conftest.$ac_ext <<_ACEOF |
| 2923 | /* confdefs.h. */ |
| 2924 | _ACEOF |
| 2925 | cat confdefs.h >>conftest.$ac_ext |
| 2926 | cat >>conftest.$ac_ext <<_ACEOF |
| 2927 | /* end confdefs.h. */ |
| 2928 | |
| 2929 | int |
| 2930 | main () |
| 2931 | { |
| 2932 | |
| 2933 | ; |
| 2934 | return 0; |
| 2935 | } |
| 2936 | _ACEOF |
| 2937 | rm -f conftest.$ac_objext |
| 2938 | if { (ac_try="$ac_compile" |
| 2939 | case "(($ac_try" in |
| 2940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2941 | *) ac_try_echo=$ac_try;; |
| 2942 | esac |
| 2943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2944 | (eval "$ac_compile") 2>conftest.er1 |
| 2945 | ac_status=$? |
| 2946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2947 | rm -f conftest.er1 |
| 2948 | cat conftest.err >&5 |
| 2949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2950 | (exit $ac_status); } && { |
| 2951 | test -z "$ac_c_werror_flag" || |
| 2952 | test ! -s conftest.err |
| 2953 | } && test -s conftest.$ac_objext; then |
| 2954 | : |
| 2955 | else |
| 2956 | echo "$as_me: failed program was:" >&5 |
| 2957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2958 | |
| 2959 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2960 | CFLAGS="-g" |
| 2961 | cat >conftest.$ac_ext <<_ACEOF |
| 2962 | /* confdefs.h. */ |
| 2963 | _ACEOF |
| 2964 | cat confdefs.h >>conftest.$ac_ext |
| 2965 | cat >>conftest.$ac_ext <<_ACEOF |
| 2966 | /* end confdefs.h. */ |
| 2967 | |
| 2968 | int |
| 2969 | main () |
| 2970 | { |
| 2971 | |
| 2972 | ; |
| 2973 | return 0; |
| 2974 | } |
| 2975 | _ACEOF |
| 2976 | rm -f conftest.$ac_objext |
| 2977 | if { (ac_try="$ac_compile" |
| 2978 | case "(($ac_try" in |
| 2979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2980 | *) ac_try_echo=$ac_try;; |
| 2981 | esac |
| 2982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2983 | (eval "$ac_compile") 2>conftest.er1 |
| 2984 | ac_status=$? |
| 2985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2986 | rm -f conftest.er1 |
| 2987 | cat conftest.err >&5 |
| 2988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2989 | (exit $ac_status); } && { |
| 2990 | test -z "$ac_c_werror_flag" || |
| 2991 | test ! -s conftest.err |
| 2992 | } && test -s conftest.$ac_objext; then |
| 2993 | ac_cv_prog_cc_g=yes |
| 2994 | else |
| 2995 | echo "$as_me: failed program was:" >&5 |
| 2996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2997 | |
| 2998 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2999 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3000 | |
| 3001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3002 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3003 | |
| 3004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3005 | fi |
| 3006 | |
| 3007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3008 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3009 | fi |
| 3010 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3011 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3012 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3013 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3014 | elif test $ac_cv_prog_cc_g = yes; then |
| 3015 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3016 | CFLAGS="-g -O2" |
| 3017 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3018 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3019 | fi |
| 3020 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3021 | if test "$GCC" = yes; then |
| 3022 | CFLAGS="-O2" |
| 3023 | else |
| 3024 | CFLAGS= |
| 3025 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3026 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3027 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3028 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3029 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3031 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3032 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3033 | ac_save_CC=$CC |
| 3034 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3035 | /* confdefs.h. */ |
| 3036 | _ACEOF |
| 3037 | cat confdefs.h >>conftest.$ac_ext |
| 3038 | cat >>conftest.$ac_ext <<_ACEOF |
| 3039 | /* end confdefs.h. */ |
| 3040 | #include <stdarg.h> |
| 3041 | #include <stdio.h> |
| 3042 | #include <sys/types.h> |
| 3043 | #include <sys/stat.h> |
| 3044 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3045 | struct buf { int x; }; |
| 3046 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3047 | static char *e (p, i) |
| 3048 | char **p; |
| 3049 | int i; |
| 3050 | { |
| 3051 | return p[i]; |
| 3052 | } |
| 3053 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3054 | { |
| 3055 | char *s; |
| 3056 | va_list v; |
| 3057 | va_start (v,p); |
| 3058 | s = g (p, va_arg (v,int)); |
| 3059 | va_end (v); |
| 3060 | return s; |
| 3061 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3062 | |
| 3063 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3064 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3065 | 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] | 3066 | 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] | 3067 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3068 | 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] | 3069 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3070 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3071 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3072 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3073 | inside strings and character constants. */ |
| 3074 | #define FOO(x) 'x' |
| 3075 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3076 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3077 | int test (int i, double x); |
| 3078 | struct s1 {int (*f) (int a);}; |
| 3079 | struct s2 {int (*f) (double a);}; |
| 3080 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3081 | int argc; |
| 3082 | char **argv; |
| 3083 | int |
| 3084 | main () |
| 3085 | { |
| 3086 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3087 | ; |
| 3088 | return 0; |
| 3089 | } |
| 3090 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3091 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3092 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3093 | do |
| 3094 | CC="$ac_save_CC $ac_arg" |
| 3095 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3096 | if { (ac_try="$ac_compile" |
| 3097 | case "(($ac_try" in |
| 3098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3099 | *) ac_try_echo=$ac_try;; |
| 3100 | esac |
| 3101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3102 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3103 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3105 | rm -f conftest.er1 |
| 3106 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3108 | (exit $ac_status); } && { |
| 3109 | test -z "$ac_c_werror_flag" || |
| 3110 | test ! -s conftest.err |
| 3111 | } && test -s conftest.$ac_objext; then |
| 3112 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3113 | else |
| 3114 | echo "$as_me: failed program was:" >&5 |
| 3115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3116 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3117 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3118 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3119 | |
| 3120 | rm -f core conftest.err conftest.$ac_objext |
| 3121 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3122 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3123 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3124 | CC=$ac_save_CC |
| 3125 | |
| 3126 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3127 | # AC_CACHE_VAL |
| 3128 | case "x$ac_cv_prog_cc_c89" in |
| 3129 | x) |
| 3130 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3131 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3132 | xno) |
| 3133 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3134 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3135 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3136 | CC="$CC $ac_cv_prog_cc_c89" |
| 3137 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3138 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3139 | esac |
| 3140 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3142 | ac_ext=c |
| 3143 | ac_cpp='$CPP $CPPFLAGS' |
| 3144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3147 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3148 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3149 | |
| 3150 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3151 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3152 | 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] | 3153 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3154 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3155 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3156 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3157 | |
| 3158 | case $withval in |
| 3159 | no) with_cxx_main=no |
| 3160 | MAINCC='$(CC)';; |
| 3161 | yes) with_cxx_main=yes |
| 3162 | MAINCC='$(CXX)';; |
| 3163 | *) with_cxx_main=yes |
| 3164 | MAINCC=$withval |
| 3165 | if test -z "$CXX" |
| 3166 | then |
| 3167 | CXX=$withval |
| 3168 | fi;; |
| 3169 | esac |
| 3170 | else |
| 3171 | |
| 3172 | with_cxx_main=no |
| 3173 | MAINCC='$(CC)' |
| 3174 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3175 | fi |
| 3176 | |
| 3177 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3178 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3179 | |
| 3180 | preset_cxx="$CXX" |
| 3181 | if test -z "$CXX" |
| 3182 | then |
| 3183 | case "$CC" in |
| 3184 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3185 | set dummy g++; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3186 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3188 | if test "${ac_cv_path_CXX+set}" = set; then |
| 3189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3190 | else |
| 3191 | case $CXX in |
| 3192 | [\\/]* | ?:[\\/]*) |
| 3193 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3194 | ;; |
| 3195 | *) |
| 3196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3197 | for as_dir in notfound |
| 3198 | do |
| 3199 | IFS=$as_save_IFS |
| 3200 | test -z "$as_dir" && as_dir=. |
| 3201 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3202 | 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] | 3203 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 3204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3205 | break 2 |
| 3206 | fi |
| 3207 | done |
| 3208 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3209 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3210 | |
| 3211 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3212 | ;; |
| 3213 | esac |
| 3214 | fi |
| 3215 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3216 | if test -n "$CXX"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3217 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3218 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3219 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3220 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3221 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3222 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3223 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3224 | ;; |
| 3225 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3226 | set dummy c++; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3227 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3229 | if test "${ac_cv_path_CXX+set}" = set; then |
| 3230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3231 | else |
| 3232 | case $CXX in |
| 3233 | [\\/]* | ?:[\\/]*) |
| 3234 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3235 | ;; |
| 3236 | *) |
| 3237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3238 | for as_dir in notfound |
| 3239 | do |
| 3240 | IFS=$as_save_IFS |
| 3241 | test -z "$as_dir" && as_dir=. |
| 3242 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3243 | 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] | 3244 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 3245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3246 | break 2 |
| 3247 | fi |
| 3248 | done |
| 3249 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3250 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3251 | |
| 3252 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3253 | ;; |
| 3254 | esac |
| 3255 | fi |
| 3256 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3257 | if test -n "$CXX"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3258 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3259 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3260 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3261 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3262 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3263 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3264 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3265 | ;; |
| 3266 | esac |
| 3267 | if test "$CXX" = "notfound" |
| 3268 | then |
| 3269 | CXX="" |
| 3270 | fi |
| 3271 | fi |
| 3272 | if test -z "$CXX" |
| 3273 | then |
| 3274 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3275 | do |
| 3276 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3277 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3278 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3280 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3282 | else |
| 3283 | if test -n "$CXX"; then |
| 3284 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3285 | else |
| 3286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3287 | for as_dir in $PATH |
| 3288 | do |
| 3289 | IFS=$as_save_IFS |
| 3290 | test -z "$as_dir" && as_dir=. |
| 3291 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3292 | 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] | 3293 | ac_cv_prog_CXX="$ac_prog" |
| 3294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3295 | break 2 |
| 3296 | fi |
| 3297 | done |
| 3298 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3299 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3300 | |
| 3301 | fi |
| 3302 | fi |
| 3303 | CXX=$ac_cv_prog_CXX |
| 3304 | if test -n "$CXX"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3305 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3306 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3307 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3308 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3309 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3310 | fi |
| 3311 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3312 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3313 | test -n "$CXX" && break |
| 3314 | done |
| 3315 | test -n "$CXX" || CXX="notfound" |
| 3316 | |
| 3317 | if test "$CXX" = "notfound" |
| 3318 | then |
| 3319 | CXX="" |
| 3320 | fi |
| 3321 | fi |
| 3322 | if test "$preset_cxx" != "$CXX" |
| 3323 | then |
| 3324 | { echo "$as_me:$LINENO: WARNING: |
| 3325 | |
| 3326 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3327 | If this is not intended, then set CXX on the configure command line. |
| 3328 | " >&5 |
| 3329 | echo "$as_me: WARNING: |
| 3330 | |
| 3331 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3332 | If this is not intended, then set CXX on the configure command line. |
| 3333 | " >&2;} |
| 3334 | fi |
| 3335 | |
| 3336 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3337 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3338 | |
| 3339 | ac_ext=c |
| 3340 | ac_cpp='$CPP $CPPFLAGS' |
| 3341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3344 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3345 | 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] | 3346 | # On Suns, sometimes $CPP names a directory. |
| 3347 | if test -n "$CPP" && test -d "$CPP"; then |
| 3348 | CPP= |
| 3349 | fi |
| 3350 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3351 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3354 | # Double quotes because CPP needs to be expanded |
| 3355 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3356 | do |
| 3357 | ac_preproc_ok=false |
| 3358 | for ac_c_preproc_warn_flag in '' yes |
| 3359 | do |
| 3360 | # Use a header file that comes with gcc, so configuring glibc |
| 3361 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3362 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3363 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3364 | # 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] | 3365 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3366 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3367 | /* confdefs.h. */ |
| 3368 | _ACEOF |
| 3369 | cat confdefs.h >>conftest.$ac_ext |
| 3370 | cat >>conftest.$ac_ext <<_ACEOF |
| 3371 | /* end confdefs.h. */ |
| 3372 | #ifdef __STDC__ |
| 3373 | # include <limits.h> |
| 3374 | #else |
| 3375 | # include <assert.h> |
| 3376 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3377 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3378 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3379 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3380 | case "(($ac_try" in |
| 3381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3382 | *) ac_try_echo=$ac_try;; |
| 3383 | esac |
| 3384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3385 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3386 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3387 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3388 | rm -f conftest.er1 |
| 3389 | cat conftest.err >&5 |
| 3390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3391 | (exit $ac_status); } >/dev/null && { |
| 3392 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3393 | test ! -s conftest.err |
| 3394 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3395 | : |
| 3396 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3397 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3400 | # Broken: fails on valid input. |
| 3401 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3402 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3404 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3405 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3406 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3407 | # can be detected and how. |
| 3408 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3409 | /* confdefs.h. */ |
| 3410 | _ACEOF |
| 3411 | cat confdefs.h >>conftest.$ac_ext |
| 3412 | cat >>conftest.$ac_ext <<_ACEOF |
| 3413 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3414 | #include <ac_nonexistent.h> |
| 3415 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3416 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3417 | case "(($ac_try" in |
| 3418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3419 | *) ac_try_echo=$ac_try;; |
| 3420 | esac |
| 3421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3422 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3423 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3424 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3425 | rm -f conftest.er1 |
| 3426 | cat conftest.err >&5 |
| 3427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3428 | (exit $ac_status); } >/dev/null && { |
| 3429 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3430 | test ! -s conftest.err |
| 3431 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3432 | # Broken: success on invalid input. |
| 3433 | continue |
| 3434 | else |
| 3435 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3437 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3438 | # Passes both tests. |
| 3439 | ac_preproc_ok=: |
| 3440 | break |
| 3441 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3443 | rm -f conftest.err conftest.$ac_ext |
| 3444 | |
| 3445 | done |
| 3446 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3447 | rm -f conftest.err conftest.$ac_ext |
| 3448 | if $ac_preproc_ok; then |
| 3449 | break |
| 3450 | fi |
| 3451 | |
| 3452 | done |
| 3453 | ac_cv_prog_CPP=$CPP |
| 3454 | |
| 3455 | fi |
| 3456 | CPP=$ac_cv_prog_CPP |
| 3457 | else |
| 3458 | ac_cv_prog_CPP=$CPP |
| 3459 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3460 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3461 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3462 | ac_preproc_ok=false |
| 3463 | for ac_c_preproc_warn_flag in '' yes |
| 3464 | do |
| 3465 | # Use a header file that comes with gcc, so configuring glibc |
| 3466 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3467 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3468 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3469 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3470 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3471 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3472 | /* confdefs.h. */ |
| 3473 | _ACEOF |
| 3474 | cat confdefs.h >>conftest.$ac_ext |
| 3475 | cat >>conftest.$ac_ext <<_ACEOF |
| 3476 | /* end confdefs.h. */ |
| 3477 | #ifdef __STDC__ |
| 3478 | # include <limits.h> |
| 3479 | #else |
| 3480 | # include <assert.h> |
| 3481 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3482 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3483 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3484 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3485 | case "(($ac_try" in |
| 3486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3487 | *) ac_try_echo=$ac_try;; |
| 3488 | esac |
| 3489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3490 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3491 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3492 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3493 | rm -f conftest.er1 |
| 3494 | cat conftest.err >&5 |
| 3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3496 | (exit $ac_status); } >/dev/null && { |
| 3497 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3498 | test ! -s conftest.err |
| 3499 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3500 | : |
| 3501 | else |
| 3502 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3505 | # Broken: fails on valid input. |
| 3506 | continue |
| 3507 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3509 | rm -f conftest.err conftest.$ac_ext |
| 3510 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3511 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3512 | # can be detected and how. |
| 3513 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3514 | /* confdefs.h. */ |
| 3515 | _ACEOF |
| 3516 | cat confdefs.h >>conftest.$ac_ext |
| 3517 | cat >>conftest.$ac_ext <<_ACEOF |
| 3518 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3519 | #include <ac_nonexistent.h> |
| 3520 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3521 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3522 | case "(($ac_try" in |
| 3523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3524 | *) ac_try_echo=$ac_try;; |
| 3525 | esac |
| 3526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3527 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3528 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3529 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3530 | rm -f conftest.er1 |
| 3531 | cat conftest.err >&5 |
| 3532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3533 | (exit $ac_status); } >/dev/null && { |
| 3534 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3535 | test ! -s conftest.err |
| 3536 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3537 | # Broken: success on invalid input. |
| 3538 | continue |
| 3539 | else |
| 3540 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3543 | # Passes both tests. |
| 3544 | ac_preproc_ok=: |
| 3545 | break |
| 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 |
| 3549 | |
| 3550 | done |
| 3551 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3552 | rm -f conftest.err conftest.$ac_ext |
| 3553 | if $ac_preproc_ok; then |
| 3554 | : |
| 3555 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3556 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3557 | See \`config.log' for more details." >&5 |
| 3558 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3559 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3560 | { (exit 1); exit 1; }; } |
| 3561 | fi |
| 3562 | |
| 3563 | ac_ext=c |
| 3564 | ac_cpp='$CPP $CPPFLAGS' |
| 3565 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3566 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3568 | |
| 3569 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3570 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3571 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3572 | if test "${ac_cv_path_GREP+set}" = set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3574 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3575 | # Extract the first word of "grep ggrep" to use in msg output |
| 3576 | if test -z "$GREP"; then |
| 3577 | set dummy grep ggrep; ac_prog_name=$2 |
| 3578 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3580 | else |
| 3581 | ac_path_GREP_found=false |
| 3582 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3584 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3585 | do |
| 3586 | IFS=$as_save_IFS |
| 3587 | test -z "$as_dir" && as_dir=. |
| 3588 | for ac_prog in grep ggrep; do |
| 3589 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3590 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3591 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3592 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3593 | # Check for GNU $ac_path_GREP |
| 3594 | case `"$ac_path_GREP" --version 2>&1` in |
| 3595 | *GNU*) |
| 3596 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3597 | *) |
| 3598 | ac_count=0 |
| 3599 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3600 | while : |
| 3601 | do |
| 3602 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3603 | mv "conftest.tmp" "conftest.in" |
| 3604 | cp "conftest.in" "conftest.nl" |
| 3605 | echo 'GREP' >> "conftest.nl" |
| 3606 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3607 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3608 | ac_count=`expr $ac_count + 1` |
| 3609 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3610 | # Best one so far, save it but keep looking for a better one |
| 3611 | ac_cv_path_GREP="$ac_path_GREP" |
| 3612 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3613 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3614 | # 10*(2^10) chars as input seems more than enough |
| 3615 | test $ac_count -gt 10 && break |
| 3616 | done |
| 3617 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3618 | esac |
| 3619 | |
| 3620 | |
| 3621 | $ac_path_GREP_found && break 3 |
| 3622 | done |
| 3623 | done |
| 3624 | |
| 3625 | done |
| 3626 | IFS=$as_save_IFS |
| 3627 | |
| 3628 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3629 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3630 | |
| 3631 | GREP="$ac_cv_path_GREP" |
| 3632 | if test -z "$GREP"; then |
| 3633 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3634 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3635 | { (exit 1); exit 1; }; } |
| 3636 | fi |
| 3637 | |
| 3638 | else |
| 3639 | ac_cv_path_GREP=$GREP |
| 3640 | fi |
| 3641 | |
| 3642 | |
| 3643 | fi |
| 3644 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3645 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3646 | GREP="$ac_cv_path_GREP" |
| 3647 | |
| 3648 | |
| 3649 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3650 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3651 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3653 | else |
| 3654 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3655 | then ac_cv_path_EGREP="$GREP -E" |
| 3656 | else |
| 3657 | # Extract the first word of "egrep" to use in msg output |
| 3658 | if test -z "$EGREP"; then |
| 3659 | set dummy egrep; ac_prog_name=$2 |
| 3660 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3662 | else |
| 3663 | ac_path_EGREP_found=false |
| 3664 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3666 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3667 | do |
| 3668 | IFS=$as_save_IFS |
| 3669 | test -z "$as_dir" && as_dir=. |
| 3670 | for ac_prog in egrep; do |
| 3671 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3672 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3673 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3674 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3675 | # Check for GNU $ac_path_EGREP |
| 3676 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3677 | *GNU*) |
| 3678 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3679 | *) |
| 3680 | ac_count=0 |
| 3681 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3682 | while : |
| 3683 | do |
| 3684 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3685 | mv "conftest.tmp" "conftest.in" |
| 3686 | cp "conftest.in" "conftest.nl" |
| 3687 | echo 'EGREP' >> "conftest.nl" |
| 3688 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3689 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3690 | ac_count=`expr $ac_count + 1` |
| 3691 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3692 | # Best one so far, save it but keep looking for a better one |
| 3693 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3694 | ac_path_EGREP_max=$ac_count |
| 3695 | fi |
| 3696 | # 10*(2^10) chars as input seems more than enough |
| 3697 | test $ac_count -gt 10 && break |
| 3698 | done |
| 3699 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3700 | esac |
| 3701 | |
| 3702 | |
| 3703 | $ac_path_EGREP_found && break 3 |
| 3704 | done |
| 3705 | done |
| 3706 | |
| 3707 | done |
| 3708 | IFS=$as_save_IFS |
| 3709 | |
| 3710 | |
| 3711 | fi |
| 3712 | |
| 3713 | EGREP="$ac_cv_path_EGREP" |
| 3714 | if test -z "$EGREP"; then |
| 3715 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3716 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3717 | { (exit 1); exit 1; }; } |
| 3718 | fi |
| 3719 | |
| 3720 | else |
| 3721 | ac_cv_path_EGREP=$EGREP |
| 3722 | fi |
| 3723 | |
| 3724 | |
| 3725 | fi |
| 3726 | fi |
| 3727 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3728 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3729 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3730 | |
| 3731 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3732 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3733 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3734 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3735 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3736 | /* confdefs.h. */ |
| 3737 | _ACEOF |
| 3738 | cat confdefs.h >>conftest.$ac_ext |
| 3739 | cat >>conftest.$ac_ext <<_ACEOF |
| 3740 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3741 | #ifdef _AIX |
| 3742 | yes |
| 3743 | #endif |
| 3744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3745 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3746 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3747 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3748 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3749 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3750 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3751 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3752 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3753 | |
| 3754 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3755 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3756 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3757 | fi |
| 3758 | rm -f conftest* |
| 3759 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3760 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3761 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3762 | # Check for unsupported systems |
| 3763 | case $ac_sys_system/$ac_sys_release in |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 3764 | atheos*|Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3765 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3766 | echo See README for details. |
| 3767 | exit 1;; |
| 3768 | esac |
| 3769 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3770 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3771 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3772 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3773 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3774 | # Check whether --with-suffix was given. |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3775 | if test "${with_suffix+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3776 | withval=$with_suffix; |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3777 | case $withval in |
| 3778 | no) EXEEXT=;; |
| 3779 | yes) EXEEXT=.exe;; |
| 3780 | *) EXEEXT=$withval;; |
| 3781 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3782 | fi |
| 3783 | |
| 3784 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3785 | echo "${ECHO_T}$EXEEXT" >&6; } |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3786 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3787 | # Test whether we're running on a non-case-sensitive system, in which |
| 3788 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3789 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3790 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3791 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3792 | if test ! -d CaseSensitiveTestDir; then |
| 3793 | mkdir CaseSensitiveTestDir |
| 3794 | fi |
| 3795 | |
| 3796 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3797 | then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3798 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3799 | echo "${ECHO_T}yes" >&6; } |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3800 | BUILDEXEEXT=.exe |
| 3801 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3802 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3803 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3804 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3805 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3806 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3807 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3808 | case $MACHDEP in |
| 3809 | bsdos*) |
| 3810 | case $CC in |
| 3811 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3812 | esac;; |
| 3813 | esac |
| 3814 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3815 | case $ac_sys_system in |
| 3816 | hp*|HP*) |
| 3817 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3818 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3819 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3820 | Monterey*) |
| 3821 | case $CC in |
| 3822 | cc) CC="$CC -Wl,-Bexport";; |
| 3823 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3824 | SunOS*) |
| 3825 | # Some functions have a prototype only with that define, e.g. confstr |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3826 | |
| 3827 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3828 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3829 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3830 | |
| 3831 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3832 | esac |
| 3833 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3834 | |
| 3835 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3836 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3837 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3838 | if test -z "$LIBRARY" |
| 3839 | then |
| 3840 | LIBRARY='libpython$(VERSION).a' |
| 3841 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3842 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3843 | echo "${ECHO_T}$LIBRARY" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3844 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3845 | # LDLIBRARY is the name of the library to link against (as opposed to the |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3846 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3847 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3848 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3849 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3850 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3851 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3852 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3853 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3854 | # RUNSHARED is used to run shared python without installed libraries |
| 3855 | # |
| 3856 | # INSTSONAME is the name of the shared library that will be use to install |
| 3857 | # on the system - some systems like version suffix, others don't |
| 3858 | |
| 3859 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3860 | |
| 3861 | |
| 3862 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3863 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3864 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3865 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3866 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3867 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3868 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3869 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3870 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3871 | # LINKCC is the command that links the python executable -- default is $(CC). |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3872 | # If CXX is set, and if it is needed to link a main function that was |
| 3873 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3874 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3875 | # This is altered for AIX in order to build the export list before |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3876 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3877 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3878 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3879 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3880 | if test -z "$LINKCC" |
| 3881 | then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3882 | LINKCC='$(PURIFY) $(MAINCC)' |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3883 | case $ac_sys_system in |
| 3884 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3885 | exp_extra="\"\"" |
| 3886 | if test $ac_sys_release -ge 5 -o \ |
| 3887 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3888 | exp_extra="." |
| 3889 | fi |
| 3890 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3891 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3892 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3893 | esac |
| 3894 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3895 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3896 | echo "${ECHO_T}$LINKCC" >&6; } |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3897 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3898 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3899 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
| 3900 | # Check whether --enable-shared was given. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3901 | if test "${enable_shared+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3902 | enableval=$enable_shared; |
| 3903 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3904 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3905 | |
| 3906 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3907 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3908 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3909 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3910 | enable_shared="yes";; |
| 3911 | *) |
| 3912 | enable_shared="no";; |
| 3913 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3914 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3915 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3916 | echo "${ECHO_T}$enable_shared" >&6; } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3917 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3918 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3919 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
| 3920 | # Check whether --enable-profiling was given. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3921 | if test "${enable_profiling+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3922 | enableval=$enable_profiling; ac_save_cc="$CC" |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3923 | CC="$CC -pg" |
| 3924 | if test "$cross_compiling" = yes; then |
| 3925 | ac_enable_profiling="no" |
| 3926 | else |
| 3927 | cat >conftest.$ac_ext <<_ACEOF |
| 3928 | /* confdefs.h. */ |
| 3929 | _ACEOF |
| 3930 | cat confdefs.h >>conftest.$ac_ext |
| 3931 | cat >>conftest.$ac_ext <<_ACEOF |
| 3932 | /* end confdefs.h. */ |
| 3933 | int main() { return 0; } |
| 3934 | _ACEOF |
| 3935 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3936 | if { (ac_try="$ac_link" |
| 3937 | case "(($ac_try" in |
| 3938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3939 | *) ac_try_echo=$ac_try;; |
| 3940 | esac |
| 3941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3942 | (eval "$ac_link") 2>&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3943 | ac_status=$? |
| 3944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3945 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3946 | { (case "(($ac_try" in |
| 3947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3948 | *) ac_try_echo=$ac_try;; |
| 3949 | esac |
| 3950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3951 | (eval "$ac_try") 2>&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3952 | ac_status=$? |
| 3953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3954 | (exit $ac_status); }; }; then |
| 3955 | ac_enable_profiling="yes" |
| 3956 | else |
| 3957 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3958 | echo "$as_me: failed program was:" >&5 |
| 3959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3960 | |
| 3961 | ( exit $ac_status ) |
| 3962 | ac_enable_profiling="no" |
| 3963 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3964 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3965 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3966 | |
| 3967 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3968 | CC="$ac_save_cc" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3969 | fi |
| 3970 | |
| 3971 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3972 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3973 | |
| 3974 | case "$ac_enable_profiling" in |
| 3975 | "yes") |
| 3976 | BASECFLAGS="-pg $BASECFLAGS" |
| 3977 | LDFLAGS="-pg $LDFLAGS" |
| 3978 | ;; |
| 3979 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3980 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3981 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3982 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3983 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3984 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3985 | # library that we build, but we do not want to link against it (we |
| 3986 | # will find it with a -framework option). For this reason there is an |
| 3987 | # extra variable BLDLIBRARY against which Python and the extension |
| 3988 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3989 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3990 | if test "$enable_framework" |
| 3991 | then |
| 3992 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3993 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3994 | BLDLIBRARY='' |
| 3995 | else |
| 3996 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3997 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3998 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3999 | # Other platforms follow |
| 4000 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 4001 | |
| 4002 | cat >>confdefs.h <<\_ACEOF |
| 4003 | #define Py_ENABLE_SHARED 1 |
| 4004 | _ACEOF |
| 4005 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4006 | case $ac_sys_system in |
| 4007 | BeOS*) |
| 4008 | LDLIBRARY='libpython$(VERSION).so' |
| 4009 | ;; |
| 4010 | CYGWIN*) |
| 4011 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4012 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4013 | ;; |
| 4014 | SunOS*) |
| 4015 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 4016 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4017 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 4018 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4019 | ;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 4020 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4021 | LDLIBRARY='libpython$(VERSION).so' |
| 4022 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4023 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 4024 | case $ac_sys_system in |
| 4025 | FreeBSD*) |
| 4026 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4027 | ;; |
| 4028 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4029 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4030 | ;; |
| 4031 | hp*|HP*) |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 4032 | case `uname -m` in |
| 4033 | ia64) |
| 4034 | LDLIBRARY='libpython$(VERSION).so' |
| 4035 | ;; |
| 4036 | *) |
| 4037 | LDLIBRARY='libpython$(VERSION).sl' |
| 4038 | ;; |
| 4039 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4040 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4041 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4042 | ;; |
| 4043 | OSF*) |
| 4044 | LDLIBRARY='libpython$(VERSION).so' |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 4045 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4046 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4047 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 4048 | atheos*) |
| 4049 | LDLIBRARY='libpython$(VERSION).so' |
| 4050 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4051 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4052 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4053 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 4054 | else # shared is disabled |
| 4055 | case $ac_sys_system in |
| 4056 | CYGWIN*) |
| 4057 | BLDLIBRARY='$(LIBRARY)' |
| 4058 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4059 | ;; |
| 4060 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4061 | fi |
| 4062 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4063 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4064 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 4065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4066 | if test -n "$ac_tool_prefix"; then |
| 4067 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4068 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4069 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4071 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4073 | else |
| 4074 | if test -n "$RANLIB"; then |
| 4075 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4078 | for as_dir in $PATH |
| 4079 | do |
| 4080 | IFS=$as_save_IFS |
| 4081 | test -z "$as_dir" && as_dir=. |
| 4082 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4083 | 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] | 4084 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4086 | break 2 |
| 4087 | fi |
| 4088 | done |
| 4089 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4090 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4091 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4092 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4093 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4094 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4095 | if test -n "$RANLIB"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4096 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4097 | echo "${ECHO_T}$RANLIB" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4098 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4099 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4100 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4101 | fi |
| 4102 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4103 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4104 | fi |
| 4105 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4106 | ac_ct_RANLIB=$RANLIB |
| 4107 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4108 | set dummy ranlib; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4109 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4111 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4113 | else |
| 4114 | if test -n "$ac_ct_RANLIB"; then |
| 4115 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4116 | else |
| 4117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4118 | for as_dir in $PATH |
| 4119 | do |
| 4120 | IFS=$as_save_IFS |
| 4121 | test -z "$as_dir" && as_dir=. |
| 4122 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4123 | 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] | 4124 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4126 | break 2 |
| 4127 | fi |
| 4128 | done |
| 4129 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4130 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4132 | fi |
| 4133 | fi |
| 4134 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4135 | if test -n "$ac_ct_RANLIB"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4136 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4137 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4138 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4139 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4140 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4141 | fi |
| 4142 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4143 | if test "x$ac_ct_RANLIB" = x; then |
| 4144 | RANLIB=":" |
| 4145 | else |
| 4146 | case $cross_compiling:$ac_tool_warned in |
| 4147 | yes:) |
| 4148 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4149 | whose name does not start with the host triplet. If you think this |
| 4150 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4151 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4152 | whose name does not start with the host triplet. If you think this |
| 4153 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4154 | ac_tool_warned=yes ;; |
| 4155 | esac |
| 4156 | RANLIB=$ac_ct_RANLIB |
| 4157 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4158 | else |
| 4159 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4160 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4161 | |
| 4162 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4163 | for ac_prog in ar aal |
| 4164 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4165 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4166 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4167 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4169 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4171 | else |
| 4172 | if test -n "$AR"; then |
| 4173 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4174 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4176 | for as_dir in $PATH |
| 4177 | do |
| 4178 | IFS=$as_save_IFS |
| 4179 | test -z "$as_dir" && as_dir=. |
| 4180 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4181 | 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] | 4182 | ac_cv_prog_AR="$ac_prog" |
| 4183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4184 | break 2 |
| 4185 | fi |
| 4186 | done |
| 4187 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4188 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4189 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4190 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4191 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4192 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4193 | if test -n "$AR"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4194 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4195 | echo "${ECHO_T}$AR" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4196 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4197 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4198 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4199 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4200 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4202 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4203 | done |
| 4204 | test -n "$AR" || AR="ar" |
| 4205 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4206 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4207 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 4208 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4209 | set dummy svnversion; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4210 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4212 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 4213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4214 | else |
| 4215 | if test -n "$SVNVERSION"; then |
| 4216 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4217 | else |
| 4218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4219 | for as_dir in $PATH |
| 4220 | do |
| 4221 | IFS=$as_save_IFS |
| 4222 | test -z "$as_dir" && as_dir=. |
| 4223 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4224 | 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 | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 4225 | ac_cv_prog_SVNVERSION="found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4227 | break 2 |
| 4228 | fi |
| 4229 | done |
| 4230 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4231 | IFS=$as_save_IFS |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4232 | |
Martin v. Löwis | ff60023 | 2006-04-03 19:12:32 +0000 | [diff] [blame] | 4233 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4234 | fi |
| 4235 | fi |
| 4236 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4237 | if test -n "$SVNVERSION"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4238 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4239 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4240 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4241 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4242 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4243 | fi |
| 4244 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4245 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 4246 | if test $SVNVERSION = found |
| 4247 | then |
| 4248 | SVNVERSION="svnversion \$(srcdir)" |
| 4249 | else |
| 4250 | SVNVERSION="echo exported" |
| 4251 | fi |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4252 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 4253 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 4254 | bsdos*|hp*|HP*) |
| 4255 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 4256 | if test -z "$INSTALL" |
| 4257 | then |
| 4258 | INSTALL="${srcdir}/install-sh -c" |
| 4259 | fi |
| 4260 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4261 | ac_aux_dir= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4262 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4263 | if test -f "$ac_dir/install-sh"; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4264 | ac_aux_dir=$ac_dir |
| 4265 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4266 | break |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4267 | elif test -f "$ac_dir/install.sh"; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4268 | ac_aux_dir=$ac_dir |
| 4269 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4270 | break |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4271 | elif test -f "$ac_dir/shtool"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4272 | ac_aux_dir=$ac_dir |
| 4273 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4274 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4275 | fi |
| 4276 | done |
| 4277 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4278 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4279 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4280 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4281 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4282 | |
| 4283 | # These three variables are undocumented and unsupported, |
| 4284 | # and are intended to be withdrawn in a future Autoconf release. |
| 4285 | # They can cause serious problems if a builder's source tree is in a directory |
| 4286 | # whose full name contains unusual characters. |
| 4287 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4288 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4289 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4290 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4291 | |
| 4292 | # Find a good install program. We prefer a C program (faster), |
| 4293 | # so one script is as good as another. But avoid the broken or |
| 4294 | # incompatible versions: |
| 4295 | # SysV /etc/install, /usr/sbin/install |
| 4296 | # SunOS /usr/etc/install |
| 4297 | # IRIX /sbin/install |
| 4298 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4299 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4300 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4301 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4302 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4303 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4304 | # ./install, which can be erroneously created by make from ./install.sh. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4305 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4306 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4307 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4308 | if test "${ac_cv_path_install+set}" = set; then |
| 4309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4310 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4312 | for as_dir in $PATH |
| 4313 | do |
| 4314 | IFS=$as_save_IFS |
| 4315 | test -z "$as_dir" && as_dir=. |
| 4316 | # Account for people who put trailing slashes in PATH elements. |
| 4317 | case $as_dir/ in |
| 4318 | ./ | .// | /cC/* | \ |
| 4319 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4320 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4321 | /usr/ucb/* ) ;; |
| 4322 | *) |
| 4323 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4324 | # Don't use installbsd from OSF since it installs stuff as root |
| 4325 | # by default. |
| 4326 | for ac_prog in ginstall scoinst install; do |
| 4327 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4328 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4329 | if test $ac_prog = install && |
| 4330 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4331 | # AIX install. It has an incompatible calling convention. |
| 4332 | : |
| 4333 | elif test $ac_prog = install && |
| 4334 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4335 | # program-specific install script used by HP pwplus--don't use. |
| 4336 | : |
| 4337 | else |
| 4338 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4339 | break 3 |
| 4340 | fi |
| 4341 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4342 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4343 | done |
| 4344 | ;; |
| 4345 | esac |
| 4346 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4347 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4348 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4349 | |
| 4350 | fi |
| 4351 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4352 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4353 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4354 | # As a last resort, use the slow shell script. Don't cache a |
| 4355 | # value for INSTALL within a source directory, because that will |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4356 | # break other packages using the cache if that directory is |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4357 | # removed, or if the value is a relative name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4358 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4359 | fi |
| 4360 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4361 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4362 | echo "${ECHO_T}$INSTALL" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4363 | |
| 4364 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4365 | # It thinks the first close brace ends the variable substitution. |
| 4366 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4368 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4369 | |
| 4370 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4371 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4372 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4373 | # Not every filesystem supports hard links |
| 4374 | |
| 4375 | if test -z "$LN" ; then |
| 4376 | case $ac_sys_system in |
| 4377 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 4378 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 4379 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4380 | *) LN=ln;; |
| 4381 | esac |
| 4382 | fi |
| 4383 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4384 | # Check for --with-pydebug |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4385 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4386 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4387 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4388 | # Check whether --with-pydebug was given. |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4389 | if test "${with_pydebug+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4390 | withval=$with_pydebug; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4391 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4392 | then |
| 4393 | |
| 4394 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4395 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4396 | _ACEOF |
| 4397 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4398 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4399 | echo "${ECHO_T}yes" >&6; }; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4400 | Py_DEBUG='true' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4401 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4402 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4403 | fi |
| 4404 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4405 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4406 | echo "${ECHO_T}no" >&6; } |
| 4407 | fi |
| 4408 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4409 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4410 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4411 | # merged with this chunk of code? |
| 4412 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4413 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4414 | # ------------------------ |
| 4415 | # (The following bit of code is complicated enough - please keep things |
| 4416 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4417 | |
| 4418 | # There are two parallel sets of case statements below, one that checks to |
| 4419 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4420 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4421 | # user set OPT. |
| 4422 | |
| 4423 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4424 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4425 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4426 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4427 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4428 | case $GCC in |
| 4429 | yes) |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 4430 | if test "$CC" != 'g++' ; then |
| 4431 | STRICT_PROTO="-Wstrict-prototypes" |
| 4432 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4433 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4434 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4435 | if test "$Py_DEBUG" = 'true' ; then |
| 4436 | # Optimization messes up debuggers, so turn it off for |
| 4437 | # debug builds. |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 4438 | OPT="-g -Wall $STRICT_PROTO" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4439 | else |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 4440 | OPT="-g -O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4441 | fi |
| 4442 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4443 | *) |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 4444 | OPT="-O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4445 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4446 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 4447 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4448 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4449 | ;; |
| 4450 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4451 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4452 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4453 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4454 | OPT="-O" |
| 4455 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4456 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4457 | |
| 4458 | # The current (beta) Monterey compiler dies with optimizations |
| 4459 | # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 4460 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4461 | Monterey*) |
| 4462 | OPT="" |
| 4463 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 4464 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4465 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4466 | fi |
| 4467 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4468 | |
| 4469 | # tweak BASECFLAGS based on compiler and platform |
| 4470 | case $GCC in |
| 4471 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4472 | # Python violates C99 rules, by casting between incompatible |
| 4473 | # pointer types. GCC may generate bad code as a result of that, |
| 4474 | # so use -fno-strict-aliasing if supported. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4475 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4476 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; } |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4477 | ac_save_cc="$CC" |
| 4478 | CC="$CC -fno-strict-aliasing" |
| 4479 | if test "$cross_compiling" = yes; then |
| 4480 | ac_cv_no_strict_aliasing_ok=no |
| 4481 | else |
| 4482 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4483 | /* confdefs.h. */ |
| 4484 | _ACEOF |
| 4485 | cat confdefs.h >>conftest.$ac_ext |
| 4486 | cat >>conftest.$ac_ext <<_ACEOF |
| 4487 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4488 | int main() { return 0; } |
| 4489 | _ACEOF |
| 4490 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4491 | if { (ac_try="$ac_link" |
| 4492 | case "(($ac_try" in |
| 4493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4494 | *) ac_try_echo=$ac_try;; |
| 4495 | esac |
| 4496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4497 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4498 | ac_status=$? |
| 4499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4500 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4501 | { (case "(($ac_try" in |
| 4502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4503 | *) ac_try_echo=$ac_try;; |
| 4504 | esac |
| 4505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4506 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4507 | ac_status=$? |
| 4508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4509 | (exit $ac_status); }; }; then |
| 4510 | ac_cv_no_strict_aliasing_ok=yes |
| 4511 | else |
| 4512 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4513 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4515 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4516 | ( exit $ac_status ) |
| 4517 | ac_cv_no_strict_aliasing_ok=no |
| 4518 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4519 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4520 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4521 | |
| 4522 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4523 | CC="$ac_save_cc" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4524 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4525 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4526 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4527 | then |
| 4528 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4529 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4530 | case $ac_sys_system in |
| 4531 | SCO_SV*) |
| 4532 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4533 | ;; |
| 4534 | # is there any other compiler on Darwin besides gcc? |
| 4535 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 4536 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 4537 | if test "${enable_universalsdk}"; then |
| 4538 | BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4539 | fi |
| 4540 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4541 | ;; |
Neal Norwitz | dedeeaa | 2006-03-31 06:54:45 +0000 | [diff] [blame] | 4542 | OSF*) |
| 4543 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4544 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4545 | esac |
| 4546 | ;; |
| 4547 | |
| 4548 | *) |
| 4549 | case $ac_sys_system in |
| 4550 | OpenUNIX*|UnixWare*) |
| 4551 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4552 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 4553 | OSF*) |
| 4554 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4555 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4556 | SCO_SV*) |
| 4557 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4558 | ;; |
| 4559 | esac |
| 4560 | ;; |
| 4561 | esac |
| 4562 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 4563 | if test "$Py_DEBUG" = 'true'; then |
| 4564 | : |
| 4565 | else |
| 4566 | OPT="-DNDEBUG $OPT" |
| 4567 | fi |
| 4568 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4569 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4570 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4571 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4572 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4573 | |
Neal Norwitz | 020c46a | 2006-01-07 21:39:28 +0000 | [diff] [blame] | 4574 | # disable check for icc since it seems to pass, but generates a warning |
| 4575 | if test "$CC" = icc |
| 4576 | then |
| 4577 | ac_cv_opt_olimit_ok=no |
| 4578 | fi |
| 4579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4580 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4581 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4582 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 4583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4584 | else |
| 4585 | ac_save_cc="$CC" |
| 4586 | CC="$CC -OPT:Olimit=0" |
| 4587 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4588 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4590 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4591 | /* confdefs.h. */ |
| 4592 | _ACEOF |
| 4593 | cat confdefs.h >>conftest.$ac_ext |
| 4594 | cat >>conftest.$ac_ext <<_ACEOF |
| 4595 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4596 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4597 | _ACEOF |
| 4598 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4599 | if { (ac_try="$ac_link" |
| 4600 | case "(($ac_try" in |
| 4601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4602 | *) ac_try_echo=$ac_try;; |
| 4603 | esac |
| 4604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4605 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4606 | ac_status=$? |
| 4607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4608 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4609 | { (case "(($ac_try" in |
| 4610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4611 | *) ac_try_echo=$ac_try;; |
| 4612 | esac |
| 4613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4614 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4615 | ac_status=$? |
| 4616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4617 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4618 | ac_cv_opt_olimit_ok=yes |
| 4619 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4620 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4621 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4624 | ( exit $ac_status ) |
| 4625 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4626 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4627 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4628 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4629 | |
| 4630 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4631 | CC="$ac_save_cc" |
| 4632 | fi |
| 4633 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4634 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4635 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 4636 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4637 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4638 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4639 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4640 | # environment? |
| 4641 | Darwin*) |
| 4642 | ;; |
| 4643 | *) |
| 4644 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4645 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4646 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4647 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4648 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4649 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4650 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 4651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4652 | else |
| 4653 | ac_save_cc="$CC" |
| 4654 | CC="$CC -Olimit 1500" |
| 4655 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4656 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4657 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4658 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4659 | /* confdefs.h. */ |
| 4660 | _ACEOF |
| 4661 | cat confdefs.h >>conftest.$ac_ext |
| 4662 | cat >>conftest.$ac_ext <<_ACEOF |
| 4663 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4664 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4665 | _ACEOF |
| 4666 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4667 | if { (ac_try="$ac_link" |
| 4668 | case "(($ac_try" in |
| 4669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4670 | *) ac_try_echo=$ac_try;; |
| 4671 | esac |
| 4672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4673 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4674 | ac_status=$? |
| 4675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4676 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4677 | { (case "(($ac_try" in |
| 4678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4679 | *) ac_try_echo=$ac_try;; |
| 4680 | esac |
| 4681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4682 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4683 | ac_status=$? |
| 4684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4685 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4686 | ac_cv_olimit_ok=yes |
| 4687 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4688 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4689 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4692 | ( exit $ac_status ) |
| 4693 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4694 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4695 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4696 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4697 | |
| 4698 | |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4699 | CC="$ac_save_cc" |
| 4700 | fi |
| 4701 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4702 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4703 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4704 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4705 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4706 | fi |
| 4707 | fi |
| 4708 | |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4709 | # Check whether GCC supports PyArg_ParseTuple format |
| 4710 | if test "$GCC" = "yes" |
| 4711 | then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4712 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4713 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4714 | save_CFLAGS=$CFLAGS |
| 4715 | CFLAGS="$CFLAGS -Werror" |
| 4716 | cat >conftest.$ac_ext <<_ACEOF |
| 4717 | /* confdefs.h. */ |
| 4718 | _ACEOF |
| 4719 | cat confdefs.h >>conftest.$ac_ext |
| 4720 | cat >>conftest.$ac_ext <<_ACEOF |
| 4721 | /* end confdefs.h. */ |
| 4722 | |
| 4723 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4724 | |
| 4725 | int |
| 4726 | main () |
| 4727 | { |
| 4728 | |
| 4729 | ; |
| 4730 | return 0; |
| 4731 | } |
| 4732 | _ACEOF |
| 4733 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4734 | if { (ac_try="$ac_compile" |
| 4735 | case "(($ac_try" in |
| 4736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4737 | *) ac_try_echo=$ac_try;; |
| 4738 | esac |
| 4739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4740 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4741 | ac_status=$? |
| 4742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4743 | rm -f conftest.er1 |
| 4744 | cat conftest.err >&5 |
| 4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4746 | (exit $ac_status); } && { |
| 4747 | test -z "$ac_c_werror_flag" || |
| 4748 | test ! -s conftest.err |
| 4749 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4750 | |
| 4751 | cat >>confdefs.h <<\_ACEOF |
| 4752 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4753 | _ACEOF |
| 4754 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4755 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4756 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4757 | else |
| 4758 | echo "$as_me: failed program was:" >&5 |
| 4759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4760 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4761 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4762 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4763 | |
| 4764 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4765 | |
| 4766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c1d7597 | 2006-10-19 16:01:37 +0000 | [diff] [blame] | 4767 | CFLAGS=$save_CFLAGS |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4768 | fi |
| 4769 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4770 | # On some compilers, pthreads are available without further options |
| 4771 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4772 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4773 | # So we have to see first whether pthreads are available without |
| 4774 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4775 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4776 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4777 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4779 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4780 | if test "$cross_compiling" = yes; then |
| 4781 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4782 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4783 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4784 | /* confdefs.h. */ |
| 4785 | _ACEOF |
| 4786 | cat confdefs.h >>conftest.$ac_ext |
| 4787 | cat >>conftest.$ac_ext <<_ACEOF |
| 4788 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4789 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4790 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4791 | |
| 4792 | void* routine(void* p){return NULL;} |
| 4793 | |
| 4794 | int main(){ |
| 4795 | pthread_t p; |
| 4796 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4797 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4798 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4799 | return 0; |
| 4800 | } |
| 4801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4802 | _ACEOF |
| 4803 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4804 | if { (ac_try="$ac_link" |
| 4805 | case "(($ac_try" in |
| 4806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4807 | *) ac_try_echo=$ac_try;; |
| 4808 | esac |
| 4809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4810 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4811 | ac_status=$? |
| 4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4813 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4814 | { (case "(($ac_try" in |
| 4815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4816 | *) ac_try_echo=$ac_try;; |
| 4817 | esac |
| 4818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4819 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4820 | ac_status=$? |
| 4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4822 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4823 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4824 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4825 | ac_cv_kthread=no |
| 4826 | ac_cv_pthread=no |
| 4827 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4829 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4830 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4833 | ( exit $ac_status ) |
| 4834 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4835 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4836 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4837 | fi |
| 4838 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4839 | |
| 4840 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4841 | fi |
| 4842 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4843 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4844 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4845 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4847 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4848 | then |
| 4849 | ac_cv_kpthread=no |
| 4850 | else |
| 4851 | # -Kpthread, if available, provides the right #defines |
| 4852 | # and linker options to make pthread_create available |
| 4853 | # Some compilers won't report that they do not support -Kpthread, |
| 4854 | # so we need to run a program to see whether it really made the |
| 4855 | # function available. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4856 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4857 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4858 | if test "${ac_cv_kpthread+set}" = set; then |
| 4859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4860 | else |
| 4861 | ac_save_cc="$CC" |
| 4862 | CC="$CC -Kpthread" |
| 4863 | if test "$cross_compiling" = yes; then |
| 4864 | ac_cv_kpthread=no |
| 4865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4866 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4867 | /* confdefs.h. */ |
| 4868 | _ACEOF |
| 4869 | cat confdefs.h >>conftest.$ac_ext |
| 4870 | cat >>conftest.$ac_ext <<_ACEOF |
| 4871 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4872 | |
| 4873 | #include <pthread.h> |
| 4874 | |
| 4875 | void* routine(void* p){return NULL;} |
| 4876 | |
| 4877 | int main(){ |
| 4878 | pthread_t p; |
| 4879 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4880 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4881 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4882 | return 0; |
| 4883 | } |
| 4884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4885 | _ACEOF |
| 4886 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4887 | if { (ac_try="$ac_link" |
| 4888 | case "(($ac_try" in |
| 4889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4890 | *) ac_try_echo=$ac_try;; |
| 4891 | esac |
| 4892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4893 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4894 | ac_status=$? |
| 4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4896 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4897 | { (case "(($ac_try" in |
| 4898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4899 | *) ac_try_echo=$ac_try;; |
| 4900 | esac |
| 4901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4902 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4903 | ac_status=$? |
| 4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4905 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4906 | ac_cv_kpthread=yes |
| 4907 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4908 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4909 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4911 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4912 | ( exit $ac_status ) |
| 4913 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4914 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4915 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4916 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4917 | |
| 4918 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4919 | CC="$ac_save_cc" |
| 4920 | fi |
| 4921 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4922 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4923 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4924 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4925 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4926 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4927 | then |
| 4928 | # -Kthread, if available, provides the right #defines |
| 4929 | # and linker options to make pthread_create available |
| 4930 | # Some compilers won't report that they do not support -Kthread, |
| 4931 | # so we need to run a program to see whether it really made the |
| 4932 | # function available. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4933 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4934 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4935 | if test "${ac_cv_kthread+set}" = set; then |
| 4936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4937 | else |
| 4938 | ac_save_cc="$CC" |
| 4939 | CC="$CC -Kthread" |
| 4940 | if test "$cross_compiling" = yes; then |
| 4941 | ac_cv_kthread=no |
| 4942 | else |
| 4943 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4944 | /* confdefs.h. */ |
| 4945 | _ACEOF |
| 4946 | cat confdefs.h >>conftest.$ac_ext |
| 4947 | cat >>conftest.$ac_ext <<_ACEOF |
| 4948 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4949 | |
| 4950 | #include <pthread.h> |
| 4951 | |
| 4952 | void* routine(void* p){return NULL;} |
| 4953 | |
| 4954 | int main(){ |
| 4955 | pthread_t p; |
| 4956 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4957 | return 1; |
| 4958 | (void)pthread_detach(p); |
| 4959 | return 0; |
| 4960 | } |
| 4961 | |
| 4962 | _ACEOF |
| 4963 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4964 | if { (ac_try="$ac_link" |
| 4965 | case "(($ac_try" in |
| 4966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4967 | *) ac_try_echo=$ac_try;; |
| 4968 | esac |
| 4969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4970 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4971 | ac_status=$? |
| 4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4973 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4974 | { (case "(($ac_try" in |
| 4975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4976 | *) ac_try_echo=$ac_try;; |
| 4977 | esac |
| 4978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4979 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4980 | ac_status=$? |
| 4981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4982 | (exit $ac_status); }; }; then |
| 4983 | ac_cv_kthread=yes |
| 4984 | else |
| 4985 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4986 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4988 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4989 | ( exit $ac_status ) |
| 4990 | ac_cv_kthread=no |
| 4991 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4992 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4993 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4994 | |
| 4995 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4996 | CC="$ac_save_cc" |
| 4997 | fi |
| 4998 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4999 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5000 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5001 | fi |
| 5002 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 5003 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5004 | then |
| 5005 | # -pthread, if available, provides the right #defines |
| 5006 | # and linker options to make pthread_create available |
| 5007 | # Some compilers won't report that they do not support -pthread, |
| 5008 | # so we need to run a program to see whether it really made the |
| 5009 | # function available. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5010 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5011 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5012 | if test "${ac_cv_thread+set}" = set; then |
| 5013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5014 | else |
| 5015 | ac_save_cc="$CC" |
| 5016 | CC="$CC -pthread" |
| 5017 | if test "$cross_compiling" = yes; then |
| 5018 | ac_cv_pthread=no |
| 5019 | else |
| 5020 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5021 | /* confdefs.h. */ |
| 5022 | _ACEOF |
| 5023 | cat confdefs.h >>conftest.$ac_ext |
| 5024 | cat >>conftest.$ac_ext <<_ACEOF |
| 5025 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5026 | |
| 5027 | #include <pthread.h> |
| 5028 | |
| 5029 | void* routine(void* p){return NULL;} |
| 5030 | |
| 5031 | int main(){ |
| 5032 | pthread_t p; |
| 5033 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5034 | return 1; |
| 5035 | (void)pthread_detach(p); |
| 5036 | return 0; |
| 5037 | } |
| 5038 | |
| 5039 | _ACEOF |
| 5040 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5041 | if { (ac_try="$ac_link" |
| 5042 | case "(($ac_try" in |
| 5043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5044 | *) ac_try_echo=$ac_try;; |
| 5045 | esac |
| 5046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5047 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5048 | ac_status=$? |
| 5049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5050 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5051 | { (case "(($ac_try" in |
| 5052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5053 | *) ac_try_echo=$ac_try;; |
| 5054 | esac |
| 5055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5056 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5057 | ac_status=$? |
| 5058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5059 | (exit $ac_status); }; }; then |
| 5060 | ac_cv_pthread=yes |
| 5061 | else |
| 5062 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5063 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5065 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5066 | ( exit $ac_status ) |
| 5067 | ac_cv_pthread=no |
| 5068 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5069 | 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] | 5070 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5071 | |
| 5072 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5073 | CC="$ac_save_cc" |
| 5074 | fi |
| 5075 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5076 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5077 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5078 | fi |
| 5079 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5080 | # If we have set a CC compiler flag for thread support then |
| 5081 | # check if it works for CXX, too. |
| 5082 | ac_cv_cxx_thread=no |
| 5083 | if test ! -z "$CXX" |
| 5084 | then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5085 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5086 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; } |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5087 | ac_save_cxx="$CXX" |
| 5088 | |
| 5089 | if test "$ac_cv_kpthread" = "yes" |
| 5090 | then |
| 5091 | CXX="$CXX -Kpthread" |
| 5092 | ac_cv_cxx_thread=yes |
| 5093 | elif test "$ac_cv_kthread" = "yes" |
| 5094 | then |
| 5095 | CXX="$CXX -Kthread" |
| 5096 | ac_cv_cxx_thread=yes |
| 5097 | elif test "$ac_cv_pthread" = "yes" |
| 5098 | then |
| 5099 | CXX="$CXX -pthread" |
| 5100 | ac_cv_cxx_thread=yes |
| 5101 | fi |
| 5102 | |
| 5103 | if test $ac_cv_cxx_thread = yes |
| 5104 | then |
| 5105 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5106 | $CXX -c conftest.$ac_ext 2>&5 |
| 5107 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5108 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5109 | then |
| 5110 | ac_cv_cxx_thread=yes |
| 5111 | else |
| 5112 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5113 | fi |
| 5114 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5115 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5116 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5117 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 5118 | fi |
| 5119 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5120 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5121 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5122 | # checks for header files |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5123 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5124 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5125 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5128 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5129 | /* confdefs.h. */ |
| 5130 | _ACEOF |
| 5131 | cat confdefs.h >>conftest.$ac_ext |
| 5132 | cat >>conftest.$ac_ext <<_ACEOF |
| 5133 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5134 | #include <stdlib.h> |
| 5135 | #include <stdarg.h> |
| 5136 | #include <string.h> |
| 5137 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5138 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5139 | int |
| 5140 | main () |
| 5141 | { |
| 5142 | |
| 5143 | ; |
| 5144 | return 0; |
| 5145 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5146 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5147 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5148 | if { (ac_try="$ac_compile" |
| 5149 | case "(($ac_try" in |
| 5150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5151 | *) ac_try_echo=$ac_try;; |
| 5152 | esac |
| 5153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5154 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5155 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5157 | rm -f conftest.er1 |
| 5158 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5160 | (exit $ac_status); } && { |
| 5161 | test -z "$ac_c_werror_flag" || |
| 5162 | test ! -s conftest.err |
| 5163 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5164 | ac_cv_header_stdc=yes |
| 5165 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5166 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5168 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5169 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5170 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5171 | |
| 5172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5173 | |
| 5174 | if test $ac_cv_header_stdc = yes; then |
| 5175 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5176 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5177 | /* confdefs.h. */ |
| 5178 | _ACEOF |
| 5179 | cat confdefs.h >>conftest.$ac_ext |
| 5180 | cat >>conftest.$ac_ext <<_ACEOF |
| 5181 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5182 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5183 | |
| 5184 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5185 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5186 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5187 | : |
| 5188 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5189 | ac_cv_header_stdc=no |
| 5190 | fi |
| 5191 | rm -f conftest* |
| 5192 | |
| 5193 | fi |
| 5194 | |
| 5195 | if test $ac_cv_header_stdc = yes; then |
| 5196 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5197 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5198 | /* confdefs.h. */ |
| 5199 | _ACEOF |
| 5200 | cat confdefs.h >>conftest.$ac_ext |
| 5201 | cat >>conftest.$ac_ext <<_ACEOF |
| 5202 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5203 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5204 | |
| 5205 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5206 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5207 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5208 | : |
| 5209 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5210 | ac_cv_header_stdc=no |
| 5211 | fi |
| 5212 | rm -f conftest* |
| 5213 | |
| 5214 | fi |
| 5215 | |
| 5216 | if test $ac_cv_header_stdc = yes; then |
| 5217 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5218 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5219 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5221 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5222 | /* confdefs.h. */ |
| 5223 | _ACEOF |
| 5224 | cat confdefs.h >>conftest.$ac_ext |
| 5225 | cat >>conftest.$ac_ext <<_ACEOF |
| 5226 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5227 | #include <ctype.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5228 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5229 | #if ((' ' & 0x0FF) == 0x020) |
| 5230 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5231 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5232 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5233 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5234 | (('a' <= (c) && (c) <= 'i') \ |
| 5235 | || ('j' <= (c) && (c) <= 'r') \ |
| 5236 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5237 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5238 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5240 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5241 | int |
| 5242 | main () |
| 5243 | { |
| 5244 | int i; |
| 5245 | for (i = 0; i < 256; i++) |
| 5246 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5247 | || toupper (i) != TOUPPER (i)) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5248 | return 2; |
| 5249 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5250 | } |
| 5251 | _ACEOF |
| 5252 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5253 | if { (ac_try="$ac_link" |
| 5254 | case "(($ac_try" in |
| 5255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5256 | *) ac_try_echo=$ac_try;; |
| 5257 | esac |
| 5258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5259 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5260 | ac_status=$? |
| 5261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5262 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5263 | { (case "(($ac_try" in |
| 5264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5265 | *) ac_try_echo=$ac_try;; |
| 5266 | esac |
| 5267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5268 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5269 | ac_status=$? |
| 5270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5271 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5272 | : |
| 5273 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5274 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5275 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5278 | ( exit $ac_status ) |
| 5279 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5280 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5281 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5282 | fi |
| 5283 | |
| 5284 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5285 | fi |
| 5286 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5287 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5288 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5289 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5290 | |
| 5291 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5292 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5293 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5294 | |
| 5295 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5296 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5297 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5298 | |
| 5299 | |
| 5300 | |
| 5301 | |
| 5302 | |
| 5303 | |
| 5304 | |
| 5305 | |
| 5306 | |
| 5307 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5308 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5309 | do |
| 5310 | 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] | 5311 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5312 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5313 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5315 | else |
| 5316 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5317 | /* confdefs.h. */ |
| 5318 | _ACEOF |
| 5319 | cat confdefs.h >>conftest.$ac_ext |
| 5320 | cat >>conftest.$ac_ext <<_ACEOF |
| 5321 | /* end confdefs.h. */ |
| 5322 | $ac_includes_default |
| 5323 | |
| 5324 | #include <$ac_header> |
| 5325 | _ACEOF |
| 5326 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5327 | if { (ac_try="$ac_compile" |
| 5328 | case "(($ac_try" in |
| 5329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5330 | *) ac_try_echo=$ac_try;; |
| 5331 | esac |
| 5332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5333 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5334 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5336 | rm -f conftest.er1 |
| 5337 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5339 | (exit $ac_status); } && { |
| 5340 | test -z "$ac_c_werror_flag" || |
| 5341 | test ! -s conftest.err |
| 5342 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5343 | eval "$as_ac_Header=yes" |
| 5344 | else |
| 5345 | echo "$as_me: failed program was:" >&5 |
| 5346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5347 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5348 | eval "$as_ac_Header=no" |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5349 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5350 | |
| 5351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5352 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5353 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5354 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5355 | echo "${ECHO_T}$ac_res" >&6; } |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5356 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5357 | cat >>confdefs.h <<_ACEOF |
| 5358 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5359 | _ACEOF |
| 5360 | |
| 5361 | fi |
| 5362 | |
| 5363 | done |
| 5364 | |
| 5365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5366 | |
| 5367 | |
| 5368 | |
| 5369 | |
| 5370 | |
| 5371 | |
| 5372 | |
| 5373 | |
| 5374 | |
| 5375 | |
| 5376 | |
| 5377 | |
| 5378 | |
| 5379 | |
| 5380 | |
| 5381 | |
| 5382 | |
| 5383 | |
| 5384 | |
| 5385 | |
| 5386 | |
| 5387 | |
| 5388 | |
| 5389 | |
| 5390 | |
| 5391 | |
| 5392 | |
| 5393 | |
| 5394 | |
| 5395 | |
| 5396 | |
| 5397 | |
| 5398 | |
| 5399 | |
| 5400 | |
| 5401 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5402 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5403 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5404 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5405 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5406 | |
| 5407 | |
| 5408 | |
| 5409 | |
| 5410 | |
| 5411 | |
| 5412 | |
| 5413 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5414 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5415 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5416 | fcntl.h grp.h \ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5417 | io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
| 5418 | 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] | 5419 | unistd.h utime.h \ |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5420 | sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| 5421 | sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5422 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
| 5423 | sys/time.h \ |
| 5424 | 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] | 5425 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 5426 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5427 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5428 | 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] | 5429 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5430 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5432 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5434 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5435 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5436 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5437 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5439 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5440 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5441 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5442 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5443 | /* confdefs.h. */ |
| 5444 | _ACEOF |
| 5445 | cat confdefs.h >>conftest.$ac_ext |
| 5446 | cat >>conftest.$ac_ext <<_ACEOF |
| 5447 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5448 | $ac_includes_default |
| 5449 | #include <$ac_header> |
| 5450 | _ACEOF |
| 5451 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5452 | if { (ac_try="$ac_compile" |
| 5453 | case "(($ac_try" in |
| 5454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5455 | *) ac_try_echo=$ac_try;; |
| 5456 | esac |
| 5457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5458 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5459 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5461 | rm -f conftest.er1 |
| 5462 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5464 | (exit $ac_status); } && { |
| 5465 | test -z "$ac_c_werror_flag" || |
| 5466 | test ! -s conftest.err |
| 5467 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5468 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5470 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5472 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5473 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5474 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5475 | |
| 5476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5477 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5478 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5479 | |
| 5480 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5481 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5482 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5483 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5484 | /* confdefs.h. */ |
| 5485 | _ACEOF |
| 5486 | cat confdefs.h >>conftest.$ac_ext |
| 5487 | cat >>conftest.$ac_ext <<_ACEOF |
| 5488 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5489 | #include <$ac_header> |
| 5490 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5491 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5492 | case "(($ac_try" in |
| 5493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5494 | *) ac_try_echo=$ac_try;; |
| 5495 | esac |
| 5496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5497 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5498 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5499 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5500 | rm -f conftest.er1 |
| 5501 | cat conftest.err >&5 |
| 5502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5503 | (exit $ac_status); } >/dev/null && { |
| 5504 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5505 | test ! -s conftest.err |
| 5506 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5507 | ac_header_preproc=yes |
| 5508 | else |
| 5509 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5512 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5513 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5515 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5516 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5517 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5518 | |
| 5519 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5520 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5521 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5522 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5523 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5524 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5525 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5526 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5527 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5528 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5529 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5530 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5531 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5532 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5533 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5534 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5535 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5536 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5537 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5538 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5539 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5540 | 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] | 5541 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5542 | ## ------------------------------------------------ ## |
| 5543 | ## Report this to http://www.python.org/python-bugs ## |
| 5544 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5545 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5546 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5547 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5548 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5549 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5550 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5551 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5553 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5554 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5555 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5556 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5557 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5558 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5559 | |
| 5560 | fi |
| 5561 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5562 | cat >>confdefs.h <<_ACEOF |
| 5563 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5564 | _ACEOF |
| 5565 | |
| 5566 | fi |
| 5567 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5568 | done |
| 5569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5570 | |
| 5571 | |
| 5572 | |
| 5573 | |
| 5574 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5575 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5576 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 5577 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5578 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5579 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 5580 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5583 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5584 | /* confdefs.h. */ |
| 5585 | _ACEOF |
| 5586 | cat confdefs.h >>conftest.$ac_ext |
| 5587 | cat >>conftest.$ac_ext <<_ACEOF |
| 5588 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5589 | #include <sys/types.h> |
| 5590 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5592 | int |
| 5593 | main () |
| 5594 | { |
| 5595 | if ((DIR *) 0) |
| 5596 | return 0; |
| 5597 | ; |
| 5598 | return 0; |
| 5599 | } |
| 5600 | _ACEOF |
| 5601 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5602 | if { (ac_try="$ac_compile" |
| 5603 | case "(($ac_try" in |
| 5604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5605 | *) ac_try_echo=$ac_try;; |
| 5606 | esac |
| 5607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5608 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5609 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5611 | rm -f conftest.er1 |
| 5612 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5614 | (exit $ac_status); } && { |
| 5615 | test -z "$ac_c_werror_flag" || |
| 5616 | test ! -s conftest.err |
| 5617 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5618 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5619 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5620 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5622 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5623 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5624 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5625 | |
| 5626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5627 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5628 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5629 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5630 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5631 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5632 | cat >>confdefs.h <<_ACEOF |
| 5633 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 5634 | _ACEOF |
| 5635 | |
| 5636 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5637 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5638 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5639 | done |
| 5640 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5641 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5642 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5643 | 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] | 5644 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5647 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5648 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5649 | /* confdefs.h. */ |
| 5650 | _ACEOF |
| 5651 | cat confdefs.h >>conftest.$ac_ext |
| 5652 | cat >>conftest.$ac_ext <<_ACEOF |
| 5653 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5654 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5655 | /* Override any GCC internal prototype to avoid an error. |
| 5656 | Use char because int might match the return type of a GCC |
| 5657 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5658 | #ifdef __cplusplus |
| 5659 | extern "C" |
| 5660 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5661 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5662 | int |
| 5663 | main () |
| 5664 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5665 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5666 | ; |
| 5667 | return 0; |
| 5668 | } |
| 5669 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5670 | for ac_lib in '' dir; do |
| 5671 | if test -z "$ac_lib"; then |
| 5672 | ac_res="none required" |
| 5673 | else |
| 5674 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5675 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5676 | fi |
| 5677 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5678 | if { (ac_try="$ac_link" |
| 5679 | case "(($ac_try" in |
| 5680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5681 | *) ac_try_echo=$ac_try;; |
| 5682 | esac |
| 5683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5684 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5685 | ac_status=$? |
| 5686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5687 | rm -f conftest.er1 |
| 5688 | cat conftest.err >&5 |
| 5689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5690 | (exit $ac_status); } && { |
| 5691 | test -z "$ac_c_werror_flag" || |
| 5692 | test ! -s conftest.err |
| 5693 | } && test -s conftest$ac_exeext && |
| 5694 | $as_test_x conftest$ac_exeext; then |
| 5695 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5696 | else |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5697 | echo "$as_me: failed program was:" >&5 |
| 5698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5699 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5700 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5701 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5702 | |
| 5703 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5704 | conftest$ac_exeext |
| 5705 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5706 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5707 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5708 | done |
| 5709 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5710 | : |
| 5711 | else |
| 5712 | ac_cv_search_opendir=no |
| 5713 | fi |
| 5714 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5715 | LIBS=$ac_func_search_save_LIBS |
| 5716 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5717 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5718 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 5719 | ac_res=$ac_cv_search_opendir |
| 5720 | if test "$ac_res" != no; then |
| 5721 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5722 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5723 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5724 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5725 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5726 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5727 | 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] | 5728 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5730 | else |
| 5731 | ac_func_search_save_LIBS=$LIBS |
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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5739 | /* Override any GCC internal prototype to avoid an error. |
| 5740 | Use char because int might match the return type of a GCC |
| 5741 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5742 | #ifdef __cplusplus |
| 5743 | extern "C" |
| 5744 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5745 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5746 | int |
| 5747 | main () |
| 5748 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5749 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5750 | ; |
| 5751 | return 0; |
| 5752 | } |
| 5753 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5754 | for ac_lib in '' x; do |
| 5755 | if test -z "$ac_lib"; then |
| 5756 | ac_res="none required" |
| 5757 | else |
| 5758 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5759 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5760 | fi |
| 5761 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5762 | if { (ac_try="$ac_link" |
| 5763 | case "(($ac_try" in |
| 5764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5765 | *) ac_try_echo=$ac_try;; |
| 5766 | esac |
| 5767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5768 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5769 | ac_status=$? |
| 5770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5771 | rm -f conftest.er1 |
| 5772 | cat conftest.err >&5 |
| 5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5774 | (exit $ac_status); } && { |
| 5775 | test -z "$ac_c_werror_flag" || |
| 5776 | test ! -s conftest.err |
| 5777 | } && test -s conftest$ac_exeext && |
| 5778 | $as_test_x conftest$ac_exeext; then |
| 5779 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5780 | else |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5781 | echo "$as_me: failed program was:" >&5 |
| 5782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5783 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5784 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5785 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5786 | |
| 5787 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5788 | conftest$ac_exeext |
| 5789 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5790 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5791 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5792 | done |
| 5793 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5794 | : |
| 5795 | else |
| 5796 | ac_cv_search_opendir=no |
| 5797 | fi |
| 5798 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5799 | LIBS=$ac_func_search_save_LIBS |
| 5800 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5801 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5802 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 5803 | ac_res=$ac_cv_search_opendir |
| 5804 | if test "$ac_res" != no; then |
| 5805 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5806 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5807 | fi |
| 5808 | |
| 5809 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5810 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5811 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5812 | 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] | 5813 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5815 | else |
| 5816 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5817 | /* confdefs.h. */ |
| 5818 | _ACEOF |
| 5819 | cat confdefs.h >>conftest.$ac_ext |
| 5820 | cat >>conftest.$ac_ext <<_ACEOF |
| 5821 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5822 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5823 | int |
| 5824 | main () |
| 5825 | { |
| 5826 | return makedev(0, 0); |
| 5827 | ; |
| 5828 | return 0; |
| 5829 | } |
| 5830 | _ACEOF |
| 5831 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5832 | if { (ac_try="$ac_link" |
| 5833 | case "(($ac_try" in |
| 5834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5835 | *) ac_try_echo=$ac_try;; |
| 5836 | esac |
| 5837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5838 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5839 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5841 | rm -f conftest.er1 |
| 5842 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5844 | (exit $ac_status); } && { |
| 5845 | test -z "$ac_c_werror_flag" || |
| 5846 | test ! -s conftest.err |
| 5847 | } && test -s conftest$ac_exeext && |
| 5848 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5849 | ac_cv_header_sys_types_h_makedev=yes |
| 5850 | else |
| 5851 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5853 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5854 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5855 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5856 | |
| 5857 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5858 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5859 | |
| 5860 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5861 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5862 | 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] | 5863 | |
| 5864 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5865 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5866 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5867 | 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] | 5868 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5870 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5871 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5872 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5873 | else |
| 5874 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5875 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5876 | 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] | 5877 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5878 | /* confdefs.h. */ |
| 5879 | _ACEOF |
| 5880 | cat confdefs.h >>conftest.$ac_ext |
| 5881 | cat >>conftest.$ac_ext <<_ACEOF |
| 5882 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5883 | $ac_includes_default |
| 5884 | #include <sys/mkdev.h> |
| 5885 | _ACEOF |
| 5886 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5887 | if { (ac_try="$ac_compile" |
| 5888 | case "(($ac_try" in |
| 5889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5890 | *) ac_try_echo=$ac_try;; |
| 5891 | esac |
| 5892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5893 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5894 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5896 | rm -f conftest.er1 |
| 5897 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5899 | (exit $ac_status); } && { |
| 5900 | test -z "$ac_c_werror_flag" || |
| 5901 | test ! -s conftest.err |
| 5902 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5903 | ac_header_compiler=yes |
| 5904 | else |
| 5905 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5907 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5908 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5909 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5910 | |
| 5911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5912 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5913 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5914 | |
| 5915 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5916 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5917 | 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] | 5918 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5919 | /* confdefs.h. */ |
| 5920 | _ACEOF |
| 5921 | cat confdefs.h >>conftest.$ac_ext |
| 5922 | cat >>conftest.$ac_ext <<_ACEOF |
| 5923 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5924 | #include <sys/mkdev.h> |
| 5925 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5926 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5927 | case "(($ac_try" in |
| 5928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5929 | *) ac_try_echo=$ac_try;; |
| 5930 | esac |
| 5931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5932 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5933 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5934 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5935 | rm -f conftest.er1 |
| 5936 | cat conftest.err >&5 |
| 5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5938 | (exit $ac_status); } >/dev/null && { |
| 5939 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5940 | test ! -s conftest.err |
| 5941 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5942 | ac_header_preproc=yes |
| 5943 | else |
| 5944 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5946 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5947 | ac_header_preproc=no |
| 5948 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5949 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5950 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5951 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5952 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5953 | |
| 5954 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5955 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5956 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5957 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5958 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5959 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5960 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5961 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5962 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5963 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5964 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5965 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5966 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5967 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5968 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5969 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5970 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5971 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5972 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5973 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5974 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5975 | 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] | 5976 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5977 | ## ------------------------------------------------ ## |
| 5978 | ## Report this to http://www.python.org/python-bugs ## |
| 5979 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5980 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5981 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5982 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5983 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5984 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5985 | 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] | 5986 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5988 | else |
| 5989 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5990 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5991 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5992 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5993 | |
| 5994 | fi |
| 5995 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5996 | |
| 5997 | cat >>confdefs.h <<\_ACEOF |
| 5998 | #define MAJOR_IN_MKDEV 1 |
| 5999 | _ACEOF |
| 6000 | |
| 6001 | fi |
| 6002 | |
| 6003 | |
| 6004 | |
| 6005 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6006 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6007 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6008 | 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] | 6009 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 6010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6011 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6012 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6013 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6014 | else |
| 6015 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6016 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6017 | 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] | 6018 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6019 | /* confdefs.h. */ |
| 6020 | _ACEOF |
| 6021 | cat confdefs.h >>conftest.$ac_ext |
| 6022 | cat >>conftest.$ac_ext <<_ACEOF |
| 6023 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6024 | $ac_includes_default |
| 6025 | #include <sys/sysmacros.h> |
| 6026 | _ACEOF |
| 6027 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6028 | if { (ac_try="$ac_compile" |
| 6029 | case "(($ac_try" in |
| 6030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6031 | *) ac_try_echo=$ac_try;; |
| 6032 | esac |
| 6033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6034 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6035 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6037 | rm -f conftest.er1 |
| 6038 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6040 | (exit $ac_status); } && { |
| 6041 | test -z "$ac_c_werror_flag" || |
| 6042 | test ! -s conftest.err |
| 6043 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6044 | ac_header_compiler=yes |
| 6045 | else |
| 6046 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6048 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6049 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6050 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6051 | |
| 6052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6053 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6054 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6055 | |
| 6056 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6057 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6058 | 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] | 6059 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6060 | /* confdefs.h. */ |
| 6061 | _ACEOF |
| 6062 | cat confdefs.h >>conftest.$ac_ext |
| 6063 | cat >>conftest.$ac_ext <<_ACEOF |
| 6064 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6065 | #include <sys/sysmacros.h> |
| 6066 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6067 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6068 | case "(($ac_try" in |
| 6069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6070 | *) ac_try_echo=$ac_try;; |
| 6071 | esac |
| 6072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6073 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6074 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6075 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6076 | rm -f conftest.er1 |
| 6077 | cat conftest.err >&5 |
| 6078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6079 | (exit $ac_status); } >/dev/null && { |
| 6080 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6081 | test ! -s conftest.err |
| 6082 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6083 | ac_header_preproc=yes |
| 6084 | else |
| 6085 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6087 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6088 | ac_header_preproc=no |
| 6089 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6090 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6091 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6092 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6093 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6094 | |
| 6095 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6096 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6097 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6098 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6099 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6100 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6101 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 6102 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6103 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6104 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6105 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6106 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6107 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6108 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6109 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6110 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6111 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6112 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6113 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6114 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6115 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6116 | 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] | 6117 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6118 | ## ------------------------------------------------ ## |
| 6119 | ## Report this to http://www.python.org/python-bugs ## |
| 6120 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6121 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6122 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6123 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6124 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6125 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6126 | 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] | 6127 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 6128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6129 | else |
| 6130 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6131 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6132 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6133 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6134 | |
| 6135 | fi |
| 6136 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 6137 | |
| 6138 | cat >>confdefs.h <<\_ACEOF |
| 6139 | #define MAJOR_IN_SYSMACROS 1 |
| 6140 | _ACEOF |
| 6141 | |
| 6142 | fi |
| 6143 | |
| 6144 | |
| 6145 | fi |
| 6146 | fi |
| 6147 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6148 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6149 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6150 | |
| 6151 | for ac_header in term.h |
| 6152 | do |
| 6153 | 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] | 6154 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6155 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6156 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6158 | else |
| 6159 | cat >conftest.$ac_ext <<_ACEOF |
| 6160 | /* confdefs.h. */ |
| 6161 | _ACEOF |
| 6162 | cat confdefs.h >>conftest.$ac_ext |
| 6163 | cat >>conftest.$ac_ext <<_ACEOF |
| 6164 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6165 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6166 | #ifdef HAVE_CURSES_H |
| 6167 | #include <curses.h> |
| 6168 | #endif |
| 6169 | |
| 6170 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6171 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6172 | _ACEOF |
| 6173 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6174 | if { (ac_try="$ac_compile" |
| 6175 | case "(($ac_try" in |
| 6176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6177 | *) ac_try_echo=$ac_try;; |
| 6178 | esac |
| 6179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6180 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6181 | ac_status=$? |
| 6182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6183 | rm -f conftest.er1 |
| 6184 | cat conftest.err >&5 |
| 6185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6186 | (exit $ac_status); } && { |
| 6187 | test -z "$ac_c_werror_flag" || |
| 6188 | test ! -s conftest.err |
| 6189 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6190 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6191 | else |
| 6192 | echo "$as_me: failed program was:" >&5 |
| 6193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6194 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6195 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6196 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6197 | |
| 6198 | 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] | 6199 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6200 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6201 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6202 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6203 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6204 | cat >>confdefs.h <<_ACEOF |
| 6205 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6206 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6207 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6208 | fi |
| 6209 | |
| 6210 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6211 | |
| 6212 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6213 | # On Linux, netlink.h requires asm/types.h |
| 6214 | |
| 6215 | for ac_header in linux/netlink.h |
| 6216 | do |
| 6217 | 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] | 6218 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6220 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6222 | else |
| 6223 | cat >conftest.$ac_ext <<_ACEOF |
| 6224 | /* confdefs.h. */ |
| 6225 | _ACEOF |
| 6226 | cat confdefs.h >>conftest.$ac_ext |
| 6227 | cat >>conftest.$ac_ext <<_ACEOF |
| 6228 | /* end confdefs.h. */ |
| 6229 | |
| 6230 | #ifdef HAVE_ASM_TYPES_H |
| 6231 | #include <asm/types.h> |
| 6232 | #endif |
| 6233 | #ifdef HAVE_SYS_SOCKET_H |
| 6234 | #include <sys/socket.h> |
| 6235 | #endif |
| 6236 | |
| 6237 | |
| 6238 | #include <$ac_header> |
| 6239 | _ACEOF |
| 6240 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6241 | if { (ac_try="$ac_compile" |
| 6242 | case "(($ac_try" in |
| 6243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6244 | *) ac_try_echo=$ac_try;; |
| 6245 | esac |
| 6246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6247 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6248 | ac_status=$? |
| 6249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6250 | rm -f conftest.er1 |
| 6251 | cat conftest.err >&5 |
| 6252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6253 | (exit $ac_status); } && { |
| 6254 | test -z "$ac_c_werror_flag" || |
| 6255 | test ! -s conftest.err |
| 6256 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6257 | eval "$as_ac_Header=yes" |
| 6258 | else |
| 6259 | echo "$as_me: failed program was:" >&5 |
| 6260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6261 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6262 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6263 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6264 | |
| 6265 | 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] | 6266 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6267 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6268 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6269 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6270 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6271 | cat >>confdefs.h <<_ACEOF |
| 6272 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6273 | _ACEOF |
| 6274 | |
| 6275 | fi |
| 6276 | |
| 6277 | done |
| 6278 | |
| 6279 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6280 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6281 | was_it_defined=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6282 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6283 | 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] | 6284 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6285 | /* confdefs.h. */ |
| 6286 | _ACEOF |
| 6287 | cat confdefs.h >>conftest.$ac_ext |
| 6288 | cat >>conftest.$ac_ext <<_ACEOF |
| 6289 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6290 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6291 | |
| 6292 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6293 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6294 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6295 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6297 | |
| 6298 | |
| 6299 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6300 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6301 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6302 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6303 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6304 | fi |
| 6305 | rm -f conftest* |
| 6306 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6307 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6308 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6309 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6310 | # Check whether using makedev requires defining _OSF_SOURCE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6311 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6312 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6313 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6314 | /* confdefs.h. */ |
| 6315 | _ACEOF |
| 6316 | cat confdefs.h >>conftest.$ac_ext |
| 6317 | cat >>conftest.$ac_ext <<_ACEOF |
| 6318 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6319 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6320 | int |
| 6321 | main () |
| 6322 | { |
| 6323 | makedev(0, 0) |
| 6324 | ; |
| 6325 | return 0; |
| 6326 | } |
| 6327 | _ACEOF |
| 6328 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6329 | if { (ac_try="$ac_link" |
| 6330 | case "(($ac_try" in |
| 6331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6332 | *) ac_try_echo=$ac_try;; |
| 6333 | esac |
| 6334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6335 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6336 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6338 | rm -f conftest.er1 |
| 6339 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6341 | (exit $ac_status); } && { |
| 6342 | test -z "$ac_c_werror_flag" || |
| 6343 | test ! -s conftest.err |
| 6344 | } && test -s conftest$ac_exeext && |
| 6345 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6346 | ac_cv_has_makedev=yes |
| 6347 | else |
| 6348 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6350 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6351 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6352 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6353 | |
| 6354 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6355 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6356 | if test "$ac_cv_has_makedev" = "no"; then |
| 6357 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6358 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6359 | /* confdefs.h. */ |
| 6360 | _ACEOF |
| 6361 | cat confdefs.h >>conftest.$ac_ext |
| 6362 | cat >>conftest.$ac_ext <<_ACEOF |
| 6363 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6364 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6365 | #define _OSF_SOURCE 1 |
| 6366 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6367 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6368 | int |
| 6369 | main () |
| 6370 | { |
| 6371 | makedev(0, 0) |
| 6372 | ; |
| 6373 | return 0; |
| 6374 | } |
| 6375 | _ACEOF |
| 6376 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6377 | if { (ac_try="$ac_link" |
| 6378 | case "(($ac_try" in |
| 6379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6380 | *) ac_try_echo=$ac_try;; |
| 6381 | esac |
| 6382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6383 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6384 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6386 | rm -f conftest.er1 |
| 6387 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6389 | (exit $ac_status); } && { |
| 6390 | test -z "$ac_c_werror_flag" || |
| 6391 | test ! -s conftest.err |
| 6392 | } && test -s conftest$ac_exeext && |
| 6393 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6394 | ac_cv_has_makedev=yes |
| 6395 | else |
| 6396 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6398 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6399 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6400 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6401 | |
| 6402 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6403 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6404 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6405 | |
| 6406 | cat >>confdefs.h <<\_ACEOF |
| 6407 | #define _OSF_SOURCE 1 |
| 6408 | _ACEOF |
| 6409 | |
| 6410 | fi |
| 6411 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6412 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6413 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6414 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6415 | |
| 6416 | cat >>confdefs.h <<\_ACEOF |
| 6417 | #define HAVE_MAKEDEV 1 |
| 6418 | _ACEOF |
| 6419 | |
| 6420 | fi |
| 6421 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6422 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6423 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6424 | # defined, but the compiler does not support pragma redefine_extname, |
| 6425 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6426 | # structures (such as rlimit64) without declaring them. As a |
| 6427 | # work-around, disable LFS on such configurations |
| 6428 | |
| 6429 | use_lfs=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6430 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6431 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6433 | /* confdefs.h. */ |
| 6434 | _ACEOF |
| 6435 | cat confdefs.h >>conftest.$ac_ext |
| 6436 | cat >>conftest.$ac_ext <<_ACEOF |
| 6437 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6438 | |
| 6439 | #define _LARGEFILE_SOURCE 1 |
| 6440 | #define _FILE_OFFSET_BITS 64 |
| 6441 | #include <sys/resource.h> |
| 6442 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6443 | int |
| 6444 | main () |
| 6445 | { |
| 6446 | struct rlimit foo; |
| 6447 | ; |
| 6448 | return 0; |
| 6449 | } |
| 6450 | _ACEOF |
| 6451 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6452 | if { (ac_try="$ac_compile" |
| 6453 | case "(($ac_try" in |
| 6454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6455 | *) ac_try_echo=$ac_try;; |
| 6456 | esac |
| 6457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6458 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6459 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6461 | rm -f conftest.er1 |
| 6462 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6464 | (exit $ac_status); } && { |
| 6465 | test -z "$ac_c_werror_flag" || |
| 6466 | test ! -s conftest.err |
| 6467 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6468 | sol_lfs_bug=no |
| 6469 | else |
| 6470 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6472 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6473 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6474 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6475 | |
| 6476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6477 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6478 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6479 | if test "$sol_lfs_bug" = "yes"; then |
| 6480 | use_lfs=no |
| 6481 | fi |
| 6482 | |
| 6483 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6484 | # Two defines needed to enable largefile support on various platforms |
| 6485 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6487 | cat >>confdefs.h <<\_ACEOF |
| 6488 | #define _LARGEFILE_SOURCE 1 |
| 6489 | _ACEOF |
| 6490 | |
| 6491 | |
| 6492 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6493 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6494 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6495 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6496 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6497 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6498 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6499 | cat >> confdefs.h <<\EOF |
| 6500 | #if defined(SCO_DS) |
| 6501 | #undef _OFF_T |
| 6502 | #endif |
| 6503 | EOF |
| 6504 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6505 | # Type availability checks |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6506 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6507 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6508 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 6509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6510 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6511 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6512 | /* confdefs.h. */ |
| 6513 | _ACEOF |
| 6514 | cat confdefs.h >>conftest.$ac_ext |
| 6515 | cat >>conftest.$ac_ext <<_ACEOF |
| 6516 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6517 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6518 | typedef mode_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6519 | int |
| 6520 | main () |
| 6521 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6522 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6523 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6524 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6525 | return 0; |
| 6526 | ; |
| 6527 | return 0; |
| 6528 | } |
| 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 |
| 6536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6537 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6538 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6540 | rm -f conftest.er1 |
| 6541 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6547 | ac_cv_type_mode_t=yes |
| 6548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6549 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +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 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +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 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6556 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6557 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6558 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6559 | if test $ac_cv_type_mode_t = yes; then |
| 6560 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6562 | |
| 6563 | cat >>confdefs.h <<_ACEOF |
| 6564 | #define mode_t int |
| 6565 | _ACEOF |
| 6566 | |
| 6567 | fi |
| 6568 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6569 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6570 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6571 | if test "${ac_cv_type_off_t+set}" = set; then |
| 6572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6573 | else |
| 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. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6580 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6581 | typedef off_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6582 | int |
| 6583 | main () |
| 6584 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6585 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6586 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6587 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6588 | return 0; |
| 6589 | ; |
| 6590 | return 0; |
| 6591 | } |
| 6592 | _ACEOF |
| 6593 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6594 | if { (ac_try="$ac_compile" |
| 6595 | case "(($ac_try" in |
| 6596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6597 | *) ac_try_echo=$ac_try;; |
| 6598 | esac |
| 6599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6600 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6601 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6603 | rm -f conftest.er1 |
| 6604 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6606 | (exit $ac_status); } && { |
| 6607 | test -z "$ac_c_werror_flag" || |
| 6608 | test ! -s conftest.err |
| 6609 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6610 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6611 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6612 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6614 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6615 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6616 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6617 | |
| 6618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6619 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6620 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6621 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6622 | if test $ac_cv_type_off_t = yes; then |
| 6623 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6624 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6625 | |
| 6626 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6627 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6628 | _ACEOF |
| 6629 | |
| 6630 | fi |
| 6631 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6632 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6633 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6634 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 6635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6636 | else |
| 6637 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6638 | /* confdefs.h. */ |
| 6639 | _ACEOF |
| 6640 | cat confdefs.h >>conftest.$ac_ext |
| 6641 | cat >>conftest.$ac_ext <<_ACEOF |
| 6642 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6643 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6644 | typedef pid_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6645 | int |
| 6646 | main () |
| 6647 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6648 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6649 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6650 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6651 | return 0; |
| 6652 | ; |
| 6653 | return 0; |
| 6654 | } |
| 6655 | _ACEOF |
| 6656 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6657 | if { (ac_try="$ac_compile" |
| 6658 | case "(($ac_try" in |
| 6659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6660 | *) ac_try_echo=$ac_try;; |
| 6661 | esac |
| 6662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6663 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6664 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6666 | rm -f conftest.er1 |
| 6667 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6669 | (exit $ac_status); } && { |
| 6670 | test -z "$ac_c_werror_flag" || |
| 6671 | test ! -s conftest.err |
| 6672 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6673 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6674 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6675 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6677 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6678 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6679 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6680 | |
| 6681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6682 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6683 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6684 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6685 | if test $ac_cv_type_pid_t = yes; then |
| 6686 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6687 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6688 | |
| 6689 | cat >>confdefs.h <<_ACEOF |
| 6690 | #define pid_t int |
| 6691 | _ACEOF |
| 6692 | |
| 6693 | fi |
| 6694 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6695 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6696 | 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] | 6697 | if test "${ac_cv_type_signal+set}" = set; then |
| 6698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6699 | else |
| 6700 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6701 | /* confdefs.h. */ |
| 6702 | _ACEOF |
| 6703 | cat confdefs.h >>conftest.$ac_ext |
| 6704 | cat >>conftest.$ac_ext <<_ACEOF |
| 6705 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6706 | #include <sys/types.h> |
| 6707 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6709 | int |
| 6710 | main () |
| 6711 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6712 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6713 | ; |
| 6714 | return 0; |
| 6715 | } |
| 6716 | _ACEOF |
| 6717 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6718 | if { (ac_try="$ac_compile" |
| 6719 | case "(($ac_try" in |
| 6720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6721 | *) ac_try_echo=$ac_try;; |
| 6722 | esac |
| 6723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6724 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6725 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6727 | rm -f conftest.er1 |
| 6728 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6730 | (exit $ac_status); } && { |
| 6731 | test -z "$ac_c_werror_flag" || |
| 6732 | test ! -s conftest.err |
| 6733 | } && test -s conftest.$ac_objext; then |
| 6734 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6736 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6738 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6739 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6740 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6741 | |
| 6742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6743 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6744 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6745 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6747 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6748 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6749 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6750 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6751 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6752 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6753 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6754 | if test "${ac_cv_type_size_t+set}" = set; then |
| 6755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6756 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6757 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6758 | /* confdefs.h. */ |
| 6759 | _ACEOF |
| 6760 | cat confdefs.h >>conftest.$ac_ext |
| 6761 | cat >>conftest.$ac_ext <<_ACEOF |
| 6762 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6763 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6764 | typedef size_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6765 | int |
| 6766 | main () |
| 6767 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6768 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6769 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6770 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6771 | return 0; |
| 6772 | ; |
| 6773 | return 0; |
| 6774 | } |
| 6775 | _ACEOF |
| 6776 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6777 | if { (ac_try="$ac_compile" |
| 6778 | case "(($ac_try" in |
| 6779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6780 | *) ac_try_echo=$ac_try;; |
| 6781 | esac |
| 6782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6783 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6784 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6786 | rm -f conftest.er1 |
| 6787 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6789 | (exit $ac_status); } && { |
| 6790 | test -z "$ac_c_werror_flag" || |
| 6791 | test ! -s conftest.err |
| 6792 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6793 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6794 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6795 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6797 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6798 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6799 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6800 | |
| 6801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6802 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6803 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6804 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6805 | if test $ac_cv_type_size_t = yes; then |
| 6806 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6807 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6808 | |
| 6809 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6810 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6811 | _ACEOF |
| 6812 | |
| 6813 | fi |
| 6814 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6815 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6816 | 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] | 6817 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6819 | else |
| 6820 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6821 | /* confdefs.h. */ |
| 6822 | _ACEOF |
| 6823 | cat confdefs.h >>conftest.$ac_ext |
| 6824 | cat >>conftest.$ac_ext <<_ACEOF |
| 6825 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6826 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6827 | |
| 6828 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6829 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6830 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6831 | ac_cv_type_uid_t=yes |
| 6832 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6833 | ac_cv_type_uid_t=no |
| 6834 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6835 | rm -f conftest* |
| 6836 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6837 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6838 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6839 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6840 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6842 | cat >>confdefs.h <<\_ACEOF |
| 6843 | #define uid_t int |
| 6844 | _ACEOF |
| 6845 | |
| 6846 | |
| 6847 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6848 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6849 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6850 | |
| 6851 | fi |
| 6852 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6853 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 6854 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6855 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 6856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6857 | else |
| 6858 | cat >conftest.$ac_ext <<_ACEOF |
| 6859 | /* confdefs.h. */ |
| 6860 | _ACEOF |
| 6861 | cat confdefs.h >>conftest.$ac_ext |
| 6862 | cat >>conftest.$ac_ext <<_ACEOF |
| 6863 | /* end confdefs.h. */ |
| 6864 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6865 | typedef ssize_t ac__type_new_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6866 | int |
| 6867 | main () |
| 6868 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6869 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6870 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6871 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6872 | return 0; |
| 6873 | ; |
| 6874 | return 0; |
| 6875 | } |
| 6876 | _ACEOF |
| 6877 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6878 | if { (ac_try="$ac_compile" |
| 6879 | case "(($ac_try" in |
| 6880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6881 | *) ac_try_echo=$ac_try;; |
| 6882 | esac |
| 6883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6884 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6885 | ac_status=$? |
| 6886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6887 | rm -f conftest.er1 |
| 6888 | cat conftest.err >&5 |
| 6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6890 | (exit $ac_status); } && { |
| 6891 | test -z "$ac_c_werror_flag" || |
| 6892 | test ! -s conftest.err |
| 6893 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6894 | ac_cv_type_ssize_t=yes |
| 6895 | else |
| 6896 | echo "$as_me: failed program was:" >&5 |
| 6897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6898 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6899 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6900 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6901 | |
| 6902 | 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] | 6903 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6904 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 6905 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6906 | if test $ac_cv_type_ssize_t = yes; then |
| 6907 | |
| 6908 | cat >>confdefs.h <<\_ACEOF |
| 6909 | #define HAVE_SSIZE_T 1 |
| 6910 | _ACEOF |
| 6911 | |
| 6912 | fi |
| 6913 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6914 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6915 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6916 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6917 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 6918 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6919 | if test "${ac_cv_type_int+set}" = set; then |
| 6920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6921 | else |
| 6922 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6923 | /* confdefs.h. */ |
| 6924 | _ACEOF |
| 6925 | cat confdefs.h >>conftest.$ac_ext |
| 6926 | cat >>conftest.$ac_ext <<_ACEOF |
| 6927 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6928 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6929 | typedef int ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6930 | int |
| 6931 | main () |
| 6932 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6933 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6934 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6935 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6936 | return 0; |
| 6937 | ; |
| 6938 | return 0; |
| 6939 | } |
| 6940 | _ACEOF |
| 6941 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6942 | if { (ac_try="$ac_compile" |
| 6943 | case "(($ac_try" in |
| 6944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6945 | *) ac_try_echo=$ac_try;; |
| 6946 | esac |
| 6947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6948 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6949 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6951 | rm -f conftest.er1 |
| 6952 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6954 | (exit $ac_status); } && { |
| 6955 | test -z "$ac_c_werror_flag" || |
| 6956 | test ! -s conftest.err |
| 6957 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6958 | ac_cv_type_int=yes |
| 6959 | else |
| 6960 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6962 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6963 | ac_cv_type_int=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6964 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6965 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6967 | fi |
| 6968 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6969 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 6970 | |
| 6971 | # The cast to long int works around a bug in the HP C Compiler |
| 6972 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6973 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6974 | # This bug is HP SR number 8606223364. |
| 6975 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 6976 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6977 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6979 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6980 | if test "$cross_compiling" = yes; then |
| 6981 | # Depending upon the size, compute the lo and hi bounds. |
| 6982 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6983 | /* confdefs.h. */ |
| 6984 | _ACEOF |
| 6985 | cat confdefs.h >>conftest.$ac_ext |
| 6986 | cat >>conftest.$ac_ext <<_ACEOF |
| 6987 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6988 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6989 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6990 | int |
| 6991 | main () |
| 6992 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6993 | 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] | 6994 | test_array [0] = 0 |
| 6995 | |
| 6996 | ; |
| 6997 | return 0; |
| 6998 | } |
| 6999 | _ACEOF |
| 7000 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7001 | if { (ac_try="$ac_compile" |
| 7002 | case "(($ac_try" in |
| 7003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7004 | *) ac_try_echo=$ac_try;; |
| 7005 | esac |
| 7006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7007 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7008 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7010 | rm -f conftest.er1 |
| 7011 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7013 | (exit $ac_status); } && { |
| 7014 | test -z "$ac_c_werror_flag" || |
| 7015 | test ! -s conftest.err |
| 7016 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7017 | ac_lo=0 ac_mid=0 |
| 7018 | while :; do |
| 7019 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7020 | /* confdefs.h. */ |
| 7021 | _ACEOF |
| 7022 | cat confdefs.h >>conftest.$ac_ext |
| 7023 | cat >>conftest.$ac_ext <<_ACEOF |
| 7024 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7025 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7026 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7027 | int |
| 7028 | main () |
| 7029 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7030 | 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] | 7031 | test_array [0] = 0 |
| 7032 | |
| 7033 | ; |
| 7034 | return 0; |
| 7035 | } |
| 7036 | _ACEOF |
| 7037 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7038 | if { (ac_try="$ac_compile" |
| 7039 | case "(($ac_try" in |
| 7040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7041 | *) ac_try_echo=$ac_try;; |
| 7042 | esac |
| 7043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7044 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7045 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7047 | rm -f conftest.er1 |
| 7048 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7050 | (exit $ac_status); } && { |
| 7051 | test -z "$ac_c_werror_flag" || |
| 7052 | test ! -s conftest.err |
| 7053 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7054 | ac_hi=$ac_mid; break |
| 7055 | else |
| 7056 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7058 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7059 | ac_lo=`expr $ac_mid + 1` |
| 7060 | if test $ac_lo -le $ac_mid; then |
| 7061 | ac_lo= ac_hi= |
| 7062 | break |
| 7063 | fi |
| 7064 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7065 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7066 | |
| 7067 | 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] | 7068 | done |
| 7069 | else |
| 7070 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7072 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7073 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7074 | /* confdefs.h. */ |
| 7075 | _ACEOF |
| 7076 | cat confdefs.h >>conftest.$ac_ext |
| 7077 | cat >>conftest.$ac_ext <<_ACEOF |
| 7078 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7079 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7080 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7081 | int |
| 7082 | main () |
| 7083 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7084 | 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] | 7085 | test_array [0] = 0 |
| 7086 | |
| 7087 | ; |
| 7088 | return 0; |
| 7089 | } |
| 7090 | _ACEOF |
| 7091 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7092 | if { (ac_try="$ac_compile" |
| 7093 | case "(($ac_try" in |
| 7094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7095 | *) ac_try_echo=$ac_try;; |
| 7096 | esac |
| 7097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7098 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7099 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7101 | rm -f conftest.er1 |
| 7102 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7104 | (exit $ac_status); } && { |
| 7105 | test -z "$ac_c_werror_flag" || |
| 7106 | test ! -s conftest.err |
| 7107 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7108 | ac_hi=-1 ac_mid=-1 |
| 7109 | while :; do |
| 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. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7116 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7117 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7118 | int |
| 7119 | main () |
| 7120 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7121 | 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] | 7122 | test_array [0] = 0 |
| 7123 | |
| 7124 | ; |
| 7125 | return 0; |
| 7126 | } |
| 7127 | _ACEOF |
| 7128 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7129 | if { (ac_try="$ac_compile" |
| 7130 | case "(($ac_try" in |
| 7131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7132 | *) ac_try_echo=$ac_try;; |
| 7133 | esac |
| 7134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7135 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7136 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7138 | rm -f conftest.er1 |
| 7139 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7141 | (exit $ac_status); } && { |
| 7142 | test -z "$ac_c_werror_flag" || |
| 7143 | test ! -s conftest.err |
| 7144 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7145 | ac_lo=$ac_mid; break |
| 7146 | else |
| 7147 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7149 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7150 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7151 | if test $ac_mid -le $ac_hi; then |
| 7152 | ac_lo= ac_hi= |
| 7153 | break |
| 7154 | fi |
| 7155 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7156 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7157 | |
| 7158 | 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] | 7159 | done |
| 7160 | else |
| 7161 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7163 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7164 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7165 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7166 | |
| 7167 | 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] | 7168 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7169 | |
| 7170 | 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] | 7171 | # Binary search between lo and hi bounds. |
| 7172 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7173 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7174 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7175 | /* confdefs.h. */ |
| 7176 | _ACEOF |
| 7177 | cat confdefs.h >>conftest.$ac_ext |
| 7178 | cat >>conftest.$ac_ext <<_ACEOF |
| 7179 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7180 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7181 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7182 | int |
| 7183 | main () |
| 7184 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7185 | 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] | 7186 | test_array [0] = 0 |
| 7187 | |
| 7188 | ; |
| 7189 | return 0; |
| 7190 | } |
| 7191 | _ACEOF |
| 7192 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7193 | if { (ac_try="$ac_compile" |
| 7194 | case "(($ac_try" in |
| 7195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7196 | *) ac_try_echo=$ac_try;; |
| 7197 | esac |
| 7198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7199 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7200 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7202 | rm -f conftest.er1 |
| 7203 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7205 | (exit $ac_status); } && { |
| 7206 | test -z "$ac_c_werror_flag" || |
| 7207 | test ! -s conftest.err |
| 7208 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7209 | ac_hi=$ac_mid |
| 7210 | else |
| 7211 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7213 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7214 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7215 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7216 | |
| 7217 | 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] | 7218 | done |
| 7219 | case $ac_lo in |
| 7220 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7221 | '') if test "$ac_cv_type_int" = yes; then |
| 7222 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7223 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7224 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7225 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7226 | { (exit 77); exit 77; }; } |
| 7227 | else |
| 7228 | ac_cv_sizeof_int=0 |
| 7229 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7230 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7232 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7233 | /* confdefs.h. */ |
| 7234 | _ACEOF |
| 7235 | cat confdefs.h >>conftest.$ac_ext |
| 7236 | cat >>conftest.$ac_ext <<_ACEOF |
| 7237 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7238 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7239 | typedef int ac__type_sizeof_; |
| 7240 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7241 | 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] | 7242 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7243 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7244 | int |
| 7245 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7246 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7247 | |
| 7248 | FILE *f = fopen ("conftest.val", "w"); |
| 7249 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7250 | return 1; |
| 7251 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7252 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7253 | long int i = longval (); |
| 7254 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7255 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7256 | fprintf (f, "%ld\n", i); |
| 7257 | } |
| 7258 | else |
| 7259 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7260 | unsigned long int i = ulongval (); |
| 7261 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7262 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7263 | fprintf (f, "%lu\n", i); |
| 7264 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7265 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7266 | |
| 7267 | ; |
| 7268 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7269 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7270 | _ACEOF |
| 7271 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7272 | if { (ac_try="$ac_link" |
| 7273 | case "(($ac_try" in |
| 7274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7275 | *) ac_try_echo=$ac_try;; |
| 7276 | esac |
| 7277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7278 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7279 | ac_status=$? |
| 7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7281 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7282 | { (case "(($ac_try" in |
| 7283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7284 | *) ac_try_echo=$ac_try;; |
| 7285 | esac |
| 7286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7287 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7288 | ac_status=$? |
| 7289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7290 | (exit $ac_status); }; }; then |
| 7291 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7293 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7294 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7297 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7298 | if test "$ac_cv_type_int" = yes; then |
| 7299 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7300 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7301 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7302 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7303 | { (exit 77); exit 77; }; } |
| 7304 | else |
| 7305 | ac_cv_sizeof_int=0 |
| 7306 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7307 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7308 | 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] | 7309 | fi |
| 7310 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7311 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7312 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7313 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
| 7314 | |
| 7315 | |
| 7316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7317 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7318 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7319 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7320 | |
| 7321 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7322 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7323 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7324 | if test "${ac_cv_type_long+set}" = set; then |
| 7325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7326 | else |
| 7327 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7328 | /* confdefs.h. */ |
| 7329 | _ACEOF |
| 7330 | cat confdefs.h >>conftest.$ac_ext |
| 7331 | cat >>conftest.$ac_ext <<_ACEOF |
| 7332 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7333 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7334 | typedef long ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7335 | int |
| 7336 | main () |
| 7337 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7338 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7339 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7340 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7341 | return 0; |
| 7342 | ; |
| 7343 | return 0; |
| 7344 | } |
| 7345 | _ACEOF |
| 7346 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7347 | if { (ac_try="$ac_compile" |
| 7348 | case "(($ac_try" in |
| 7349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7350 | *) ac_try_echo=$ac_try;; |
| 7351 | esac |
| 7352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7353 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7354 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7356 | rm -f conftest.er1 |
| 7357 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7359 | (exit $ac_status); } && { |
| 7360 | test -z "$ac_c_werror_flag" || |
| 7361 | test ! -s conftest.err |
| 7362 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7363 | ac_cv_type_long=yes |
| 7364 | else |
| 7365 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7367 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7368 | ac_cv_type_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7369 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 7370 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7372 | fi |
| 7373 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7374 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 7375 | |
| 7376 | # The cast to long int works around a bug in the HP C Compiler |
| 7377 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7378 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7379 | # This bug is HP SR number 8606223364. |
| 7380 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 7381 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7382 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 7383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7384 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7385 | if test "$cross_compiling" = yes; then |
| 7386 | # Depending upon the size, compute the lo and hi bounds. |
| 7387 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7388 | /* confdefs.h. */ |
| 7389 | _ACEOF |
| 7390 | cat confdefs.h >>conftest.$ac_ext |
| 7391 | cat >>conftest.$ac_ext <<_ACEOF |
| 7392 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7393 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7394 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7395 | int |
| 7396 | main () |
| 7397 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7398 | 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] | 7399 | test_array [0] = 0 |
| 7400 | |
| 7401 | ; |
| 7402 | return 0; |
| 7403 | } |
| 7404 | _ACEOF |
| 7405 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7406 | if { (ac_try="$ac_compile" |
| 7407 | case "(($ac_try" in |
| 7408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7409 | *) ac_try_echo=$ac_try;; |
| 7410 | esac |
| 7411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7412 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7413 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7415 | rm -f conftest.er1 |
| 7416 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7418 | (exit $ac_status); } && { |
| 7419 | test -z "$ac_c_werror_flag" || |
| 7420 | test ! -s conftest.err |
| 7421 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7422 | ac_lo=0 ac_mid=0 |
| 7423 | while :; do |
| 7424 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7425 | /* confdefs.h. */ |
| 7426 | _ACEOF |
| 7427 | cat confdefs.h >>conftest.$ac_ext |
| 7428 | cat >>conftest.$ac_ext <<_ACEOF |
| 7429 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7430 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7431 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7432 | int |
| 7433 | main () |
| 7434 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7435 | 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] | 7436 | test_array [0] = 0 |
| 7437 | |
| 7438 | ; |
| 7439 | return 0; |
| 7440 | } |
| 7441 | _ACEOF |
| 7442 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7443 | if { (ac_try="$ac_compile" |
| 7444 | case "(($ac_try" in |
| 7445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7446 | *) ac_try_echo=$ac_try;; |
| 7447 | esac |
| 7448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7449 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7450 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7452 | rm -f conftest.er1 |
| 7453 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7455 | (exit $ac_status); } && { |
| 7456 | test -z "$ac_c_werror_flag" || |
| 7457 | test ! -s conftest.err |
| 7458 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7459 | ac_hi=$ac_mid; break |
| 7460 | else |
| 7461 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7463 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7464 | ac_lo=`expr $ac_mid + 1` |
| 7465 | if test $ac_lo -le $ac_mid; then |
| 7466 | ac_lo= ac_hi= |
| 7467 | break |
| 7468 | fi |
| 7469 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7470 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7471 | |
| 7472 | 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] | 7473 | done |
| 7474 | else |
| 7475 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7477 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7478 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7479 | /* confdefs.h. */ |
| 7480 | _ACEOF |
| 7481 | cat confdefs.h >>conftest.$ac_ext |
| 7482 | cat >>conftest.$ac_ext <<_ACEOF |
| 7483 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7484 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7485 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7486 | int |
| 7487 | main () |
| 7488 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7489 | 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] | 7490 | test_array [0] = 0 |
| 7491 | |
| 7492 | ; |
| 7493 | return 0; |
| 7494 | } |
| 7495 | _ACEOF |
| 7496 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7497 | if { (ac_try="$ac_compile" |
| 7498 | case "(($ac_try" in |
| 7499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7500 | *) ac_try_echo=$ac_try;; |
| 7501 | esac |
| 7502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7503 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7504 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7506 | rm -f conftest.er1 |
| 7507 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7509 | (exit $ac_status); } && { |
| 7510 | test -z "$ac_c_werror_flag" || |
| 7511 | test ! -s conftest.err |
| 7512 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7513 | ac_hi=-1 ac_mid=-1 |
| 7514 | while :; do |
| 7515 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7516 | /* confdefs.h. */ |
| 7517 | _ACEOF |
| 7518 | cat confdefs.h >>conftest.$ac_ext |
| 7519 | cat >>conftest.$ac_ext <<_ACEOF |
| 7520 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7521 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7522 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7523 | int |
| 7524 | main () |
| 7525 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7526 | 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] | 7527 | test_array [0] = 0 |
| 7528 | |
| 7529 | ; |
| 7530 | return 0; |
| 7531 | } |
| 7532 | _ACEOF |
| 7533 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7534 | if { (ac_try="$ac_compile" |
| 7535 | case "(($ac_try" in |
| 7536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7537 | *) ac_try_echo=$ac_try;; |
| 7538 | esac |
| 7539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7540 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7541 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7543 | rm -f conftest.er1 |
| 7544 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7546 | (exit $ac_status); } && { |
| 7547 | test -z "$ac_c_werror_flag" || |
| 7548 | test ! -s conftest.err |
| 7549 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7550 | ac_lo=$ac_mid; break |
| 7551 | else |
| 7552 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7554 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7555 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7556 | if test $ac_mid -le $ac_hi; then |
| 7557 | ac_lo= ac_hi= |
| 7558 | break |
| 7559 | fi |
| 7560 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7561 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7562 | |
| 7563 | 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] | 7564 | done |
| 7565 | else |
| 7566 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7568 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7569 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7573 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7574 | |
| 7575 | 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] | 7576 | # Binary search between lo and hi bounds. |
| 7577 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7578 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7579 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7580 | /* confdefs.h. */ |
| 7581 | _ACEOF |
| 7582 | cat confdefs.h >>conftest.$ac_ext |
| 7583 | cat >>conftest.$ac_ext <<_ACEOF |
| 7584 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7585 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7586 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7587 | int |
| 7588 | main () |
| 7589 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7590 | 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] | 7591 | test_array [0] = 0 |
| 7592 | |
| 7593 | ; |
| 7594 | return 0; |
| 7595 | } |
| 7596 | _ACEOF |
| 7597 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7598 | if { (ac_try="$ac_compile" |
| 7599 | case "(($ac_try" in |
| 7600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7601 | *) ac_try_echo=$ac_try;; |
| 7602 | esac |
| 7603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7604 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7605 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7607 | rm -f conftest.er1 |
| 7608 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7610 | (exit $ac_status); } && { |
| 7611 | test -z "$ac_c_werror_flag" || |
| 7612 | test ! -s conftest.err |
| 7613 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7614 | ac_hi=$ac_mid |
| 7615 | else |
| 7616 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7618 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7619 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7620 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7621 | |
| 7622 | 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] | 7623 | done |
| 7624 | case $ac_lo in |
| 7625 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7626 | '') if test "$ac_cv_type_long" = yes; then |
| 7627 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7628 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7629 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7630 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7631 | { (exit 77); exit 77; }; } |
| 7632 | else |
| 7633 | ac_cv_sizeof_long=0 |
| 7634 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7635 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7636 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7637 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7638 | /* confdefs.h. */ |
| 7639 | _ACEOF |
| 7640 | cat confdefs.h >>conftest.$ac_ext |
| 7641 | cat >>conftest.$ac_ext <<_ACEOF |
| 7642 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7643 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7644 | typedef long ac__type_sizeof_; |
| 7645 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7646 | 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] | 7647 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7648 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7649 | int |
| 7650 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7651 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7652 | |
| 7653 | FILE *f = fopen ("conftest.val", "w"); |
| 7654 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7655 | return 1; |
| 7656 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7657 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7658 | long int i = longval (); |
| 7659 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7660 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7661 | fprintf (f, "%ld\n", i); |
| 7662 | } |
| 7663 | else |
| 7664 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7665 | unsigned long int i = ulongval (); |
| 7666 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7667 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7668 | fprintf (f, "%lu\n", i); |
| 7669 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7670 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7671 | |
| 7672 | ; |
| 7673 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7674 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7675 | _ACEOF |
| 7676 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7677 | if { (ac_try="$ac_link" |
| 7678 | case "(($ac_try" in |
| 7679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7680 | *) ac_try_echo=$ac_try;; |
| 7681 | esac |
| 7682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7683 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7684 | ac_status=$? |
| 7685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7686 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7687 | { (case "(($ac_try" in |
| 7688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7689 | *) ac_try_echo=$ac_try;; |
| 7690 | esac |
| 7691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7692 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7693 | ac_status=$? |
| 7694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7695 | (exit $ac_status); }; }; then |
| 7696 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7698 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7699 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7702 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7703 | if test "$ac_cv_type_long" = yes; then |
| 7704 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7705 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7706 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7707 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7708 | { (exit 77); exit 77; }; } |
| 7709 | else |
| 7710 | ac_cv_sizeof_long=0 |
| 7711 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7712 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7713 | 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] | 7714 | fi |
| 7715 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7716 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7717 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 7718 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
| 7719 | |
| 7720 | |
| 7721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7722 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7723 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7724 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7725 | |
| 7726 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7727 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 7728 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7729 | if test "${ac_cv_type_void_p+set}" = set; then |
| 7730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7731 | else |
| 7732 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7733 | /* confdefs.h. */ |
| 7734 | _ACEOF |
| 7735 | cat confdefs.h >>conftest.$ac_ext |
| 7736 | cat >>conftest.$ac_ext <<_ACEOF |
| 7737 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7738 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7739 | typedef void * ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7740 | int |
| 7741 | main () |
| 7742 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7743 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7744 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7745 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7746 | return 0; |
| 7747 | ; |
| 7748 | return 0; |
| 7749 | } |
| 7750 | _ACEOF |
| 7751 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7752 | if { (ac_try="$ac_compile" |
| 7753 | case "(($ac_try" in |
| 7754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7755 | *) ac_try_echo=$ac_try;; |
| 7756 | esac |
| 7757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7758 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7759 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7761 | rm -f conftest.er1 |
| 7762 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7764 | (exit $ac_status); } && { |
| 7765 | test -z "$ac_c_werror_flag" || |
| 7766 | test ! -s conftest.err |
| 7767 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7768 | ac_cv_type_void_p=yes |
| 7769 | else |
| 7770 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7772 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7773 | ac_cv_type_void_p=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7774 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 7775 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7777 | fi |
| 7778 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 7779 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 7780 | |
| 7781 | # The cast to long int works around a bug in the HP C Compiler |
| 7782 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7783 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7784 | # This bug is HP SR number 8606223364. |
| 7785 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 7786 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7787 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 7788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7790 | if test "$cross_compiling" = yes; then |
| 7791 | # Depending upon the size, compute the lo and hi bounds. |
| 7792 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7793 | /* confdefs.h. */ |
| 7794 | _ACEOF |
| 7795 | cat confdefs.h >>conftest.$ac_ext |
| 7796 | cat >>conftest.$ac_ext <<_ACEOF |
| 7797 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7798 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7799 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7800 | int |
| 7801 | main () |
| 7802 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7803 | 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] | 7804 | test_array [0] = 0 |
| 7805 | |
| 7806 | ; |
| 7807 | return 0; |
| 7808 | } |
| 7809 | _ACEOF |
| 7810 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7811 | if { (ac_try="$ac_compile" |
| 7812 | case "(($ac_try" in |
| 7813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7814 | *) ac_try_echo=$ac_try;; |
| 7815 | esac |
| 7816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7817 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7820 | rm -f conftest.er1 |
| 7821 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7823 | (exit $ac_status); } && { |
| 7824 | test -z "$ac_c_werror_flag" || |
| 7825 | test ! -s conftest.err |
| 7826 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7827 | ac_lo=0 ac_mid=0 |
| 7828 | while :; do |
| 7829 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7830 | /* confdefs.h. */ |
| 7831 | _ACEOF |
| 7832 | cat confdefs.h >>conftest.$ac_ext |
| 7833 | cat >>conftest.$ac_ext <<_ACEOF |
| 7834 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7835 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7836 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7837 | int |
| 7838 | main () |
| 7839 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7840 | 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] | 7841 | test_array [0] = 0 |
| 7842 | |
| 7843 | ; |
| 7844 | return 0; |
| 7845 | } |
| 7846 | _ACEOF |
| 7847 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7848 | if { (ac_try="$ac_compile" |
| 7849 | case "(($ac_try" in |
| 7850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7851 | *) ac_try_echo=$ac_try;; |
| 7852 | esac |
| 7853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7854 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7855 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7857 | rm -f conftest.er1 |
| 7858 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7860 | (exit $ac_status); } && { |
| 7861 | test -z "$ac_c_werror_flag" || |
| 7862 | test ! -s conftest.err |
| 7863 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7864 | ac_hi=$ac_mid; break |
| 7865 | else |
| 7866 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7868 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7869 | ac_lo=`expr $ac_mid + 1` |
| 7870 | if test $ac_lo -le $ac_mid; then |
| 7871 | ac_lo= ac_hi= |
| 7872 | break |
| 7873 | fi |
| 7874 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7876 | |
| 7877 | 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] | 7878 | done |
| 7879 | else |
| 7880 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7882 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7883 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7884 | /* confdefs.h. */ |
| 7885 | _ACEOF |
| 7886 | cat confdefs.h >>conftest.$ac_ext |
| 7887 | cat >>conftest.$ac_ext <<_ACEOF |
| 7888 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7889 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7890 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7891 | int |
| 7892 | main () |
| 7893 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7894 | 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] | 7895 | test_array [0] = 0 |
| 7896 | |
| 7897 | ; |
| 7898 | return 0; |
| 7899 | } |
| 7900 | _ACEOF |
| 7901 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7902 | if { (ac_try="$ac_compile" |
| 7903 | case "(($ac_try" in |
| 7904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7905 | *) ac_try_echo=$ac_try;; |
| 7906 | esac |
| 7907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7908 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7909 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7911 | rm -f conftest.er1 |
| 7912 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7914 | (exit $ac_status); } && { |
| 7915 | test -z "$ac_c_werror_flag" || |
| 7916 | test ! -s conftest.err |
| 7917 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7918 | ac_hi=-1 ac_mid=-1 |
| 7919 | while :; do |
| 7920 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7921 | /* confdefs.h. */ |
| 7922 | _ACEOF |
| 7923 | cat confdefs.h >>conftest.$ac_ext |
| 7924 | cat >>conftest.$ac_ext <<_ACEOF |
| 7925 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7926 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7927 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7928 | int |
| 7929 | main () |
| 7930 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7931 | 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] | 7932 | test_array [0] = 0 |
| 7933 | |
| 7934 | ; |
| 7935 | return 0; |
| 7936 | } |
| 7937 | _ACEOF |
| 7938 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7939 | if { (ac_try="$ac_compile" |
| 7940 | case "(($ac_try" in |
| 7941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7942 | *) ac_try_echo=$ac_try;; |
| 7943 | esac |
| 7944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7945 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7948 | rm -f conftest.er1 |
| 7949 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7951 | (exit $ac_status); } && { |
| 7952 | test -z "$ac_c_werror_flag" || |
| 7953 | test ! -s conftest.err |
| 7954 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7955 | ac_lo=$ac_mid; break |
| 7956 | else |
| 7957 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7959 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7960 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7961 | if test $ac_mid -le $ac_hi; then |
| 7962 | ac_lo= ac_hi= |
| 7963 | break |
| 7964 | fi |
| 7965 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7966 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7967 | |
| 7968 | 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] | 7969 | done |
| 7970 | else |
| 7971 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7973 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7974 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7975 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7976 | |
| 7977 | 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] | 7978 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7979 | |
| 7980 | 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] | 7981 | # Binary search between lo and hi bounds. |
| 7982 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7983 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7984 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7985 | /* confdefs.h. */ |
| 7986 | _ACEOF |
| 7987 | cat confdefs.h >>conftest.$ac_ext |
| 7988 | cat >>conftest.$ac_ext <<_ACEOF |
| 7989 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7990 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7991 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7992 | int |
| 7993 | main () |
| 7994 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7995 | 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] | 7996 | test_array [0] = 0 |
| 7997 | |
| 7998 | ; |
| 7999 | return 0; |
| 8000 | } |
| 8001 | _ACEOF |
| 8002 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8003 | if { (ac_try="$ac_compile" |
| 8004 | case "(($ac_try" in |
| 8005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8006 | *) ac_try_echo=$ac_try;; |
| 8007 | esac |
| 8008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8009 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8010 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8012 | rm -f conftest.er1 |
| 8013 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8015 | (exit $ac_status); } && { |
| 8016 | test -z "$ac_c_werror_flag" || |
| 8017 | test ! -s conftest.err |
| 8018 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8019 | ac_hi=$ac_mid |
| 8020 | else |
| 8021 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8023 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8024 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8025 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8026 | |
| 8027 | 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] | 8028 | done |
| 8029 | case $ac_lo in |
| 8030 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8031 | '') if test "$ac_cv_type_void_p" = yes; then |
| 8032 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8033 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8034 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8035 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8036 | { (exit 77); exit 77; }; } |
| 8037 | else |
| 8038 | ac_cv_sizeof_void_p=0 |
| 8039 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8040 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8041 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8043 | /* confdefs.h. */ |
| 8044 | _ACEOF |
| 8045 | cat confdefs.h >>conftest.$ac_ext |
| 8046 | cat >>conftest.$ac_ext <<_ACEOF |
| 8047 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8048 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8049 | typedef void * ac__type_sizeof_; |
| 8050 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8051 | 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] | 8052 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8053 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8054 | int |
| 8055 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8056 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8057 | |
| 8058 | FILE *f = fopen ("conftest.val", "w"); |
| 8059 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8060 | return 1; |
| 8061 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8062 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8063 | long int i = longval (); |
| 8064 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8065 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8066 | fprintf (f, "%ld\n", i); |
| 8067 | } |
| 8068 | else |
| 8069 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8070 | unsigned long int i = ulongval (); |
| 8071 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8072 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8073 | fprintf (f, "%lu\n", i); |
| 8074 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8075 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8076 | |
| 8077 | ; |
| 8078 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8079 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8080 | _ACEOF |
| 8081 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8082 | if { (ac_try="$ac_link" |
| 8083 | case "(($ac_try" in |
| 8084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8085 | *) ac_try_echo=$ac_try;; |
| 8086 | esac |
| 8087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8088 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8089 | ac_status=$? |
| 8090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8091 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8092 | { (case "(($ac_try" in |
| 8093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8094 | *) ac_try_echo=$ac_try;; |
| 8095 | esac |
| 8096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8097 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8098 | ac_status=$? |
| 8099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8100 | (exit $ac_status); }; }; then |
| 8101 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8102 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8103 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8104 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8106 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8107 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8108 | if test "$ac_cv_type_void_p" = yes; then |
| 8109 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8110 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8111 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8112 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8113 | { (exit 77); exit 77; }; } |
| 8114 | else |
| 8115 | ac_cv_sizeof_void_p=0 |
| 8116 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8117 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8118 | 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] | 8119 | fi |
| 8120 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8121 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8122 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8123 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
| 8124 | |
| 8125 | |
| 8126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8127 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8128 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8130 | |
| 8131 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8132 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8133 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8134 | if test "${ac_cv_type_short+set}" = set; then |
| 8135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8136 | else |
| 8137 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8138 | /* confdefs.h. */ |
| 8139 | _ACEOF |
| 8140 | cat confdefs.h >>conftest.$ac_ext |
| 8141 | cat >>conftest.$ac_ext <<_ACEOF |
| 8142 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8143 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8144 | typedef short ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8145 | int |
| 8146 | main () |
| 8147 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8148 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8149 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8150 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8151 | return 0; |
| 8152 | ; |
| 8153 | return 0; |
| 8154 | } |
| 8155 | _ACEOF |
| 8156 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8157 | if { (ac_try="$ac_compile" |
| 8158 | case "(($ac_try" in |
| 8159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8160 | *) ac_try_echo=$ac_try;; |
| 8161 | esac |
| 8162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8163 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8164 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8166 | rm -f conftest.er1 |
| 8167 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8169 | (exit $ac_status); } && { |
| 8170 | test -z "$ac_c_werror_flag" || |
| 8171 | test ! -s conftest.err |
| 8172 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8173 | ac_cv_type_short=yes |
| 8174 | else |
| 8175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8177 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8178 | ac_cv_type_short=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 8180 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8182 | fi |
| 8183 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8184 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8185 | |
| 8186 | # The cast to long int works around a bug in the HP C Compiler |
| 8187 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8188 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8189 | # This bug is HP SR number 8606223364. |
| 8190 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8191 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8192 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 8193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8194 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8195 | if test "$cross_compiling" = yes; then |
| 8196 | # Depending upon the size, compute the lo and hi bounds. |
| 8197 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8198 | /* confdefs.h. */ |
| 8199 | _ACEOF |
| 8200 | cat confdefs.h >>conftest.$ac_ext |
| 8201 | cat >>conftest.$ac_ext <<_ACEOF |
| 8202 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8203 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8204 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | int |
| 8206 | main () |
| 8207 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8208 | 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] | 8209 | test_array [0] = 0 |
| 8210 | |
| 8211 | ; |
| 8212 | return 0; |
| 8213 | } |
| 8214 | _ACEOF |
| 8215 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8216 | if { (ac_try="$ac_compile" |
| 8217 | case "(($ac_try" in |
| 8218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8219 | *) ac_try_echo=$ac_try;; |
| 8220 | esac |
| 8221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8222 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8223 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8225 | rm -f conftest.er1 |
| 8226 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8228 | (exit $ac_status); } && { |
| 8229 | test -z "$ac_c_werror_flag" || |
| 8230 | test ! -s conftest.err |
| 8231 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | ac_lo=0 ac_mid=0 |
| 8233 | while :; do |
| 8234 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8235 | /* confdefs.h. */ |
| 8236 | _ACEOF |
| 8237 | cat confdefs.h >>conftest.$ac_ext |
| 8238 | cat >>conftest.$ac_ext <<_ACEOF |
| 8239 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8240 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8241 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8242 | int |
| 8243 | main () |
| 8244 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8245 | 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] | 8246 | test_array [0] = 0 |
| 8247 | |
| 8248 | ; |
| 8249 | return 0; |
| 8250 | } |
| 8251 | _ACEOF |
| 8252 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8253 | if { (ac_try="$ac_compile" |
| 8254 | case "(($ac_try" in |
| 8255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8256 | *) ac_try_echo=$ac_try;; |
| 8257 | esac |
| 8258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8259 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8260 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8262 | rm -f conftest.er1 |
| 8263 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8265 | (exit $ac_status); } && { |
| 8266 | test -z "$ac_c_werror_flag" || |
| 8267 | test ! -s conftest.err |
| 8268 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8269 | ac_hi=$ac_mid; break |
| 8270 | else |
| 8271 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8273 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8274 | ac_lo=`expr $ac_mid + 1` |
| 8275 | if test $ac_lo -le $ac_mid; then |
| 8276 | ac_lo= ac_hi= |
| 8277 | break |
| 8278 | fi |
| 8279 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8280 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8281 | |
| 8282 | 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] | 8283 | done |
| 8284 | else |
| 8285 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8287 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8288 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8289 | /* confdefs.h. */ |
| 8290 | _ACEOF |
| 8291 | cat confdefs.h >>conftest.$ac_ext |
| 8292 | cat >>conftest.$ac_ext <<_ACEOF |
| 8293 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8294 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8295 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8296 | int |
| 8297 | main () |
| 8298 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8299 | 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] | 8300 | test_array [0] = 0 |
| 8301 | |
| 8302 | ; |
| 8303 | return 0; |
| 8304 | } |
| 8305 | _ACEOF |
| 8306 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8307 | if { (ac_try="$ac_compile" |
| 8308 | case "(($ac_try" in |
| 8309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8310 | *) ac_try_echo=$ac_try;; |
| 8311 | esac |
| 8312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8313 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8314 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8316 | rm -f conftest.er1 |
| 8317 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8319 | (exit $ac_status); } && { |
| 8320 | test -z "$ac_c_werror_flag" || |
| 8321 | test ! -s conftest.err |
| 8322 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8323 | ac_hi=-1 ac_mid=-1 |
| 8324 | while :; do |
| 8325 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8326 | /* confdefs.h. */ |
| 8327 | _ACEOF |
| 8328 | cat confdefs.h >>conftest.$ac_ext |
| 8329 | cat >>conftest.$ac_ext <<_ACEOF |
| 8330 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8331 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8332 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8333 | int |
| 8334 | main () |
| 8335 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8336 | 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] | 8337 | test_array [0] = 0 |
| 8338 | |
| 8339 | ; |
| 8340 | return 0; |
| 8341 | } |
| 8342 | _ACEOF |
| 8343 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8344 | if { (ac_try="$ac_compile" |
| 8345 | case "(($ac_try" in |
| 8346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8347 | *) ac_try_echo=$ac_try;; |
| 8348 | esac |
| 8349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8350 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8351 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8353 | rm -f conftest.er1 |
| 8354 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8356 | (exit $ac_status); } && { |
| 8357 | test -z "$ac_c_werror_flag" || |
| 8358 | test ! -s conftest.err |
| 8359 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8360 | ac_lo=$ac_mid; break |
| 8361 | else |
| 8362 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8365 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8366 | if test $ac_mid -le $ac_hi; then |
| 8367 | ac_lo= ac_hi= |
| 8368 | break |
| 8369 | fi |
| 8370 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8371 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8372 | |
| 8373 | 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] | 8374 | done |
| 8375 | else |
| 8376 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8378 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8379 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8380 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8381 | |
| 8382 | 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] | 8383 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8384 | |
| 8385 | 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] | 8386 | # Binary search between lo and hi bounds. |
| 8387 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8388 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8389 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8390 | /* confdefs.h. */ |
| 8391 | _ACEOF |
| 8392 | cat confdefs.h >>conftest.$ac_ext |
| 8393 | cat >>conftest.$ac_ext <<_ACEOF |
| 8394 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8395 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8396 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8397 | int |
| 8398 | main () |
| 8399 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8400 | 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] | 8401 | test_array [0] = 0 |
| 8402 | |
| 8403 | ; |
| 8404 | return 0; |
| 8405 | } |
| 8406 | _ACEOF |
| 8407 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8408 | if { (ac_try="$ac_compile" |
| 8409 | case "(($ac_try" in |
| 8410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8411 | *) ac_try_echo=$ac_try;; |
| 8412 | esac |
| 8413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8414 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8417 | rm -f conftest.er1 |
| 8418 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8420 | (exit $ac_status); } && { |
| 8421 | test -z "$ac_c_werror_flag" || |
| 8422 | test ! -s conftest.err |
| 8423 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | ac_hi=$ac_mid |
| 8425 | else |
| 8426 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8428 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8429 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8430 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8431 | |
| 8432 | 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] | 8433 | done |
| 8434 | case $ac_lo in |
| 8435 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8436 | '') if test "$ac_cv_type_short" = yes; then |
| 8437 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8438 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8439 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8440 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8441 | { (exit 77); exit 77; }; } |
| 8442 | else |
| 8443 | ac_cv_sizeof_short=0 |
| 8444 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8445 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8446 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8447 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8448 | /* confdefs.h. */ |
| 8449 | _ACEOF |
| 8450 | cat confdefs.h >>conftest.$ac_ext |
| 8451 | cat >>conftest.$ac_ext <<_ACEOF |
| 8452 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8453 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8454 | typedef short ac__type_sizeof_; |
| 8455 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8456 | 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] | 8457 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8458 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8459 | int |
| 8460 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8461 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8462 | |
| 8463 | FILE *f = fopen ("conftest.val", "w"); |
| 8464 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8465 | return 1; |
| 8466 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8468 | long int i = longval (); |
| 8469 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8470 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | fprintf (f, "%ld\n", i); |
| 8472 | } |
| 8473 | else |
| 8474 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8475 | unsigned long int i = ulongval (); |
| 8476 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8477 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8478 | fprintf (f, "%lu\n", i); |
| 8479 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8480 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | |
| 8482 | ; |
| 8483 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8484 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8485 | _ACEOF |
| 8486 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8487 | if { (ac_try="$ac_link" |
| 8488 | case "(($ac_try" in |
| 8489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8490 | *) ac_try_echo=$ac_try;; |
| 8491 | esac |
| 8492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8493 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8494 | ac_status=$? |
| 8495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8496 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8497 | { (case "(($ac_try" in |
| 8498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8499 | *) ac_try_echo=$ac_try;; |
| 8500 | esac |
| 8501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8502 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8503 | ac_status=$? |
| 8504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8505 | (exit $ac_status); }; }; then |
| 8506 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8507 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8508 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8509 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8512 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8513 | if test "$ac_cv_type_short" = yes; then |
| 8514 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8515 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8516 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8517 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8518 | { (exit 77); exit 77; }; } |
| 8519 | else |
| 8520 | ac_cv_sizeof_short=0 |
| 8521 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8522 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8523 | 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] | 8524 | fi |
| 8525 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8526 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8527 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 8528 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
| 8529 | |
| 8530 | |
| 8531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8532 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8533 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8535 | |
| 8536 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8537 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 8538 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8539 | if test "${ac_cv_type_float+set}" = set; then |
| 8540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8541 | else |
| 8542 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8543 | /* confdefs.h. */ |
| 8544 | _ACEOF |
| 8545 | cat confdefs.h >>conftest.$ac_ext |
| 8546 | cat >>conftest.$ac_ext <<_ACEOF |
| 8547 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8548 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8549 | typedef float ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8550 | int |
| 8551 | main () |
| 8552 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8553 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8555 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8556 | return 0; |
| 8557 | ; |
| 8558 | return 0; |
| 8559 | } |
| 8560 | _ACEOF |
| 8561 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8562 | if { (ac_try="$ac_compile" |
| 8563 | case "(($ac_try" in |
| 8564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8565 | *) ac_try_echo=$ac_try;; |
| 8566 | esac |
| 8567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8568 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8569 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8571 | rm -f conftest.er1 |
| 8572 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8574 | (exit $ac_status); } && { |
| 8575 | test -z "$ac_c_werror_flag" || |
| 8576 | test ! -s conftest.err |
| 8577 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8578 | ac_cv_type_float=yes |
| 8579 | else |
| 8580 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8582 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8583 | ac_cv_type_float=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8584 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 8585 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8587 | fi |
| 8588 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 8589 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 8590 | |
| 8591 | # The cast to long int works around a bug in the HP C Compiler |
| 8592 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8593 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8594 | # This bug is HP SR number 8606223364. |
| 8595 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 8596 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8597 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 8598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8599 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8600 | if test "$cross_compiling" = yes; then |
| 8601 | # Depending upon the size, compute the lo and hi bounds. |
| 8602 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8603 | /* confdefs.h. */ |
| 8604 | _ACEOF |
| 8605 | cat confdefs.h >>conftest.$ac_ext |
| 8606 | cat >>conftest.$ac_ext <<_ACEOF |
| 8607 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8608 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8609 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8610 | int |
| 8611 | main () |
| 8612 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8613 | 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] | 8614 | test_array [0] = 0 |
| 8615 | |
| 8616 | ; |
| 8617 | return 0; |
| 8618 | } |
| 8619 | _ACEOF |
| 8620 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8621 | if { (ac_try="$ac_compile" |
| 8622 | case "(($ac_try" in |
| 8623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8624 | *) ac_try_echo=$ac_try;; |
| 8625 | esac |
| 8626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8627 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8628 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8630 | rm -f conftest.er1 |
| 8631 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8633 | (exit $ac_status); } && { |
| 8634 | test -z "$ac_c_werror_flag" || |
| 8635 | test ! -s conftest.err |
| 8636 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8637 | ac_lo=0 ac_mid=0 |
| 8638 | while :; do |
| 8639 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8640 | /* confdefs.h. */ |
| 8641 | _ACEOF |
| 8642 | cat confdefs.h >>conftest.$ac_ext |
| 8643 | cat >>conftest.$ac_ext <<_ACEOF |
| 8644 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8646 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | int |
| 8648 | main () |
| 8649 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8650 | 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] | 8651 | test_array [0] = 0 |
| 8652 | |
| 8653 | ; |
| 8654 | return 0; |
| 8655 | } |
| 8656 | _ACEOF |
| 8657 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8658 | if { (ac_try="$ac_compile" |
| 8659 | case "(($ac_try" in |
| 8660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8661 | *) ac_try_echo=$ac_try;; |
| 8662 | esac |
| 8663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8664 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8665 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8667 | rm -f conftest.er1 |
| 8668 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8670 | (exit $ac_status); } && { |
| 8671 | test -z "$ac_c_werror_flag" || |
| 8672 | test ! -s conftest.err |
| 8673 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8674 | ac_hi=$ac_mid; break |
| 8675 | else |
| 8676 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8678 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8679 | ac_lo=`expr $ac_mid + 1` |
| 8680 | if test $ac_lo -le $ac_mid; then |
| 8681 | ac_lo= ac_hi= |
| 8682 | break |
| 8683 | fi |
| 8684 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8685 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8686 | |
| 8687 | 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] | 8688 | done |
| 8689 | else |
| 8690 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8692 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8693 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8694 | /* confdefs.h. */ |
| 8695 | _ACEOF |
| 8696 | cat confdefs.h >>conftest.$ac_ext |
| 8697 | cat >>conftest.$ac_ext <<_ACEOF |
| 8698 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8700 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8701 | int |
| 8702 | main () |
| 8703 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8704 | 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] | 8705 | test_array [0] = 0 |
| 8706 | |
| 8707 | ; |
| 8708 | return 0; |
| 8709 | } |
| 8710 | _ACEOF |
| 8711 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8712 | if { (ac_try="$ac_compile" |
| 8713 | case "(($ac_try" in |
| 8714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8715 | *) ac_try_echo=$ac_try;; |
| 8716 | esac |
| 8717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8718 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8719 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8721 | rm -f conftest.er1 |
| 8722 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8724 | (exit $ac_status); } && { |
| 8725 | test -z "$ac_c_werror_flag" || |
| 8726 | test ! -s conftest.err |
| 8727 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 | ac_hi=-1 ac_mid=-1 |
| 8729 | while :; do |
| 8730 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8731 | /* confdefs.h. */ |
| 8732 | _ACEOF |
| 8733 | cat confdefs.h >>conftest.$ac_ext |
| 8734 | cat >>conftest.$ac_ext <<_ACEOF |
| 8735 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8736 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8737 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8738 | int |
| 8739 | main () |
| 8740 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8741 | 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] | 8742 | test_array [0] = 0 |
| 8743 | |
| 8744 | ; |
| 8745 | return 0; |
| 8746 | } |
| 8747 | _ACEOF |
| 8748 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8749 | if { (ac_try="$ac_compile" |
| 8750 | case "(($ac_try" in |
| 8751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8752 | *) ac_try_echo=$ac_try;; |
| 8753 | esac |
| 8754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8755 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8756 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8758 | rm -f conftest.er1 |
| 8759 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8761 | (exit $ac_status); } && { |
| 8762 | test -z "$ac_c_werror_flag" || |
| 8763 | test ! -s conftest.err |
| 8764 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8765 | ac_lo=$ac_mid; break |
| 8766 | else |
| 8767 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8769 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8770 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8771 | if test $ac_mid -le $ac_hi; then |
| 8772 | ac_lo= ac_hi= |
| 8773 | break |
| 8774 | fi |
| 8775 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8776 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8777 | |
| 8778 | 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] | 8779 | done |
| 8780 | else |
| 8781 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8783 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8784 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8785 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8786 | |
| 8787 | 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] | 8788 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8789 | |
| 8790 | 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] | 8791 | # Binary search between lo and hi bounds. |
| 8792 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8793 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8794 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8795 | /* confdefs.h. */ |
| 8796 | _ACEOF |
| 8797 | cat confdefs.h >>conftest.$ac_ext |
| 8798 | cat >>conftest.$ac_ext <<_ACEOF |
| 8799 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8800 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8801 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8802 | int |
| 8803 | main () |
| 8804 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8805 | 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] | 8806 | test_array [0] = 0 |
| 8807 | |
| 8808 | ; |
| 8809 | return 0; |
| 8810 | } |
| 8811 | _ACEOF |
| 8812 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8813 | if { (ac_try="$ac_compile" |
| 8814 | case "(($ac_try" in |
| 8815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8816 | *) ac_try_echo=$ac_try;; |
| 8817 | esac |
| 8818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8819 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8820 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8822 | rm -f conftest.er1 |
| 8823 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8825 | (exit $ac_status); } && { |
| 8826 | test -z "$ac_c_werror_flag" || |
| 8827 | test ! -s conftest.err |
| 8828 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8829 | ac_hi=$ac_mid |
| 8830 | else |
| 8831 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8833 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8834 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8835 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8836 | |
| 8837 | 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] | 8838 | done |
| 8839 | case $ac_lo in |
| 8840 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8841 | '') if test "$ac_cv_type_float" = yes; then |
| 8842 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8843 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8844 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8845 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8846 | { (exit 77); exit 77; }; } |
| 8847 | else |
| 8848 | ac_cv_sizeof_float=0 |
| 8849 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8850 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8851 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8852 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8853 | /* confdefs.h. */ |
| 8854 | _ACEOF |
| 8855 | cat confdefs.h >>conftest.$ac_ext |
| 8856 | cat >>conftest.$ac_ext <<_ACEOF |
| 8857 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8858 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8859 | typedef float ac__type_sizeof_; |
| 8860 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8861 | 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] | 8862 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8863 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8864 | int |
| 8865 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8866 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8867 | |
| 8868 | FILE *f = fopen ("conftest.val", "w"); |
| 8869 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8870 | return 1; |
| 8871 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8872 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8873 | long int i = longval (); |
| 8874 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8875 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | fprintf (f, "%ld\n", i); |
| 8877 | } |
| 8878 | else |
| 8879 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8880 | unsigned long int i = ulongval (); |
| 8881 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8882 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8883 | fprintf (f, "%lu\n", i); |
| 8884 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8885 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8886 | |
| 8887 | ; |
| 8888 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8889 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8890 | _ACEOF |
| 8891 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8892 | if { (ac_try="$ac_link" |
| 8893 | case "(($ac_try" in |
| 8894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8895 | *) ac_try_echo=$ac_try;; |
| 8896 | esac |
| 8897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8898 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8899 | ac_status=$? |
| 8900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8901 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8902 | { (case "(($ac_try" in |
| 8903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8904 | *) ac_try_echo=$ac_try;; |
| 8905 | esac |
| 8906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8907 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8908 | ac_status=$? |
| 8909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8910 | (exit $ac_status); }; }; then |
| 8911 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8913 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8914 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8917 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8918 | if test "$ac_cv_type_float" = yes; then |
| 8919 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8920 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8921 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8922 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8923 | { (exit 77); exit 77; }; } |
| 8924 | else |
| 8925 | ac_cv_sizeof_float=0 |
| 8926 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8928 | 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] | 8929 | fi |
| 8930 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8931 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8932 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8933 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
| 8934 | |
| 8935 | |
| 8936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8937 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8938 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8939 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8940 | |
| 8941 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8942 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 8943 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8944 | if test "${ac_cv_type_double+set}" = set; then |
| 8945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8946 | else |
| 8947 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8948 | /* confdefs.h. */ |
| 8949 | _ACEOF |
| 8950 | cat confdefs.h >>conftest.$ac_ext |
| 8951 | cat >>conftest.$ac_ext <<_ACEOF |
| 8952 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8953 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8954 | typedef double ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8955 | int |
| 8956 | main () |
| 8957 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8958 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8959 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8960 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8961 | return 0; |
| 8962 | ; |
| 8963 | return 0; |
| 8964 | } |
| 8965 | _ACEOF |
| 8966 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8967 | if { (ac_try="$ac_compile" |
| 8968 | case "(($ac_try" in |
| 8969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8970 | *) ac_try_echo=$ac_try;; |
| 8971 | esac |
| 8972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8973 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8974 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8976 | rm -f conftest.er1 |
| 8977 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8979 | (exit $ac_status); } && { |
| 8980 | test -z "$ac_c_werror_flag" || |
| 8981 | test ! -s conftest.err |
| 8982 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8983 | ac_cv_type_double=yes |
| 8984 | else |
| 8985 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8987 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8988 | ac_cv_type_double=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 8990 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8992 | fi |
| 8993 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8994 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 8995 | |
| 8996 | # The cast to long int works around a bug in the HP C Compiler |
| 8997 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8998 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8999 | # This bug is HP SR number 8606223364. |
| 9000 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9001 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9002 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 9003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9005 | if test "$cross_compiling" = yes; then |
| 9006 | # Depending upon the size, compute the lo and hi bounds. |
| 9007 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9008 | /* confdefs.h. */ |
| 9009 | _ACEOF |
| 9010 | cat confdefs.h >>conftest.$ac_ext |
| 9011 | cat >>conftest.$ac_ext <<_ACEOF |
| 9012 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9013 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9014 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9015 | int |
| 9016 | main () |
| 9017 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9018 | 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] | 9019 | test_array [0] = 0 |
| 9020 | |
| 9021 | ; |
| 9022 | return 0; |
| 9023 | } |
| 9024 | _ACEOF |
| 9025 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9026 | if { (ac_try="$ac_compile" |
| 9027 | case "(($ac_try" in |
| 9028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9029 | *) ac_try_echo=$ac_try;; |
| 9030 | esac |
| 9031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9032 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9033 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9035 | rm -f conftest.er1 |
| 9036 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9038 | (exit $ac_status); } && { |
| 9039 | test -z "$ac_c_werror_flag" || |
| 9040 | test ! -s conftest.err |
| 9041 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9042 | ac_lo=0 ac_mid=0 |
| 9043 | while :; do |
| 9044 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9045 | /* confdefs.h. */ |
| 9046 | _ACEOF |
| 9047 | cat confdefs.h >>conftest.$ac_ext |
| 9048 | cat >>conftest.$ac_ext <<_ACEOF |
| 9049 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9050 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9051 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9052 | int |
| 9053 | main () |
| 9054 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9055 | 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] | 9056 | test_array [0] = 0 |
| 9057 | |
| 9058 | ; |
| 9059 | return 0; |
| 9060 | } |
| 9061 | _ACEOF |
| 9062 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9063 | if { (ac_try="$ac_compile" |
| 9064 | case "(($ac_try" in |
| 9065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9066 | *) ac_try_echo=$ac_try;; |
| 9067 | esac |
| 9068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9069 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9070 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9072 | rm -f conftest.er1 |
| 9073 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9075 | (exit $ac_status); } && { |
| 9076 | test -z "$ac_c_werror_flag" || |
| 9077 | test ! -s conftest.err |
| 9078 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9079 | ac_hi=$ac_mid; break |
| 9080 | else |
| 9081 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9083 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9084 | ac_lo=`expr $ac_mid + 1` |
| 9085 | if test $ac_lo -le $ac_mid; then |
| 9086 | ac_lo= ac_hi= |
| 9087 | break |
| 9088 | fi |
| 9089 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9090 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9091 | |
| 9092 | 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] | 9093 | done |
| 9094 | else |
| 9095 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9097 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9098 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9099 | /* confdefs.h. */ |
| 9100 | _ACEOF |
| 9101 | cat confdefs.h >>conftest.$ac_ext |
| 9102 | cat >>conftest.$ac_ext <<_ACEOF |
| 9103 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9104 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9105 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9106 | int |
| 9107 | main () |
| 9108 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9109 | 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] | 9110 | test_array [0] = 0 |
| 9111 | |
| 9112 | ; |
| 9113 | return 0; |
| 9114 | } |
| 9115 | _ACEOF |
| 9116 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9117 | if { (ac_try="$ac_compile" |
| 9118 | case "(($ac_try" in |
| 9119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9120 | *) ac_try_echo=$ac_try;; |
| 9121 | esac |
| 9122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9123 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9126 | rm -f conftest.er1 |
| 9127 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9129 | (exit $ac_status); } && { |
| 9130 | test -z "$ac_c_werror_flag" || |
| 9131 | test ! -s conftest.err |
| 9132 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9133 | ac_hi=-1 ac_mid=-1 |
| 9134 | while :; do |
| 9135 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9136 | /* confdefs.h. */ |
| 9137 | _ACEOF |
| 9138 | cat confdefs.h >>conftest.$ac_ext |
| 9139 | cat >>conftest.$ac_ext <<_ACEOF |
| 9140 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9141 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9142 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9143 | int |
| 9144 | main () |
| 9145 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9146 | 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] | 9147 | test_array [0] = 0 |
| 9148 | |
| 9149 | ; |
| 9150 | return 0; |
| 9151 | } |
| 9152 | _ACEOF |
| 9153 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9154 | if { (ac_try="$ac_compile" |
| 9155 | case "(($ac_try" in |
| 9156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9157 | *) ac_try_echo=$ac_try;; |
| 9158 | esac |
| 9159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9160 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9163 | rm -f conftest.er1 |
| 9164 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9166 | (exit $ac_status); } && { |
| 9167 | test -z "$ac_c_werror_flag" || |
| 9168 | test ! -s conftest.err |
| 9169 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9170 | ac_lo=$ac_mid; break |
| 9171 | else |
| 9172 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9174 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9175 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9176 | if test $ac_mid -le $ac_hi; then |
| 9177 | ac_lo= ac_hi= |
| 9178 | break |
| 9179 | fi |
| 9180 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9181 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9182 | |
| 9183 | 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] | 9184 | done |
| 9185 | else |
| 9186 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9188 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9189 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9191 | |
| 9192 | 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] | 9193 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9194 | |
| 9195 | 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] | 9196 | # Binary search between lo and hi bounds. |
| 9197 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9198 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9199 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9200 | /* confdefs.h. */ |
| 9201 | _ACEOF |
| 9202 | cat confdefs.h >>conftest.$ac_ext |
| 9203 | cat >>conftest.$ac_ext <<_ACEOF |
| 9204 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9205 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9206 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9207 | int |
| 9208 | main () |
| 9209 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9210 | 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] | 9211 | test_array [0] = 0 |
| 9212 | |
| 9213 | ; |
| 9214 | return 0; |
| 9215 | } |
| 9216 | _ACEOF |
| 9217 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9218 | if { (ac_try="$ac_compile" |
| 9219 | case "(($ac_try" in |
| 9220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9221 | *) ac_try_echo=$ac_try;; |
| 9222 | esac |
| 9223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9224 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9225 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9227 | rm -f conftest.er1 |
| 9228 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9230 | (exit $ac_status); } && { |
| 9231 | test -z "$ac_c_werror_flag" || |
| 9232 | test ! -s conftest.err |
| 9233 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9234 | ac_hi=$ac_mid |
| 9235 | else |
| 9236 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9238 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9239 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9240 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9241 | |
| 9242 | 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] | 9243 | done |
| 9244 | case $ac_lo in |
| 9245 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9246 | '') if test "$ac_cv_type_double" = yes; then |
| 9247 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9248 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9249 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9250 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9251 | { (exit 77); exit 77; }; } |
| 9252 | else |
| 9253 | ac_cv_sizeof_double=0 |
| 9254 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9255 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9256 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9257 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9258 | /* confdefs.h. */ |
| 9259 | _ACEOF |
| 9260 | cat confdefs.h >>conftest.$ac_ext |
| 9261 | cat >>conftest.$ac_ext <<_ACEOF |
| 9262 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9263 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9264 | typedef double ac__type_sizeof_; |
| 9265 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9266 | 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] | 9267 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9268 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9269 | int |
| 9270 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9271 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9272 | |
| 9273 | FILE *f = fopen ("conftest.val", "w"); |
| 9274 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9275 | return 1; |
| 9276 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9277 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9278 | long int i = longval (); |
| 9279 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9280 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9281 | fprintf (f, "%ld\n", i); |
| 9282 | } |
| 9283 | else |
| 9284 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9285 | unsigned long int i = ulongval (); |
| 9286 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9287 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9288 | fprintf (f, "%lu\n", i); |
| 9289 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9290 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9291 | |
| 9292 | ; |
| 9293 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9294 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9295 | _ACEOF |
| 9296 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9297 | if { (ac_try="$ac_link" |
| 9298 | case "(($ac_try" in |
| 9299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9300 | *) ac_try_echo=$ac_try;; |
| 9301 | esac |
| 9302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9303 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9304 | ac_status=$? |
| 9305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9306 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9307 | { (case "(($ac_try" in |
| 9308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9309 | *) ac_try_echo=$ac_try;; |
| 9310 | esac |
| 9311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9312 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9313 | ac_status=$? |
| 9314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9315 | (exit $ac_status); }; }; then |
| 9316 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9318 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9319 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9321 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9322 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9323 | if test "$ac_cv_type_double" = yes; then |
| 9324 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9325 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9326 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9327 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9328 | { (exit 77); exit 77; }; } |
| 9329 | else |
| 9330 | ac_cv_sizeof_double=0 |
| 9331 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9332 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9333 | 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] | 9334 | fi |
| 9335 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9336 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9337 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9338 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
| 9339 | |
| 9340 | |
| 9341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9342 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9343 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9345 | |
| 9346 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9347 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 9348 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9349 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 9350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9351 | else |
| 9352 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9353 | /* confdefs.h. */ |
| 9354 | _ACEOF |
| 9355 | cat confdefs.h >>conftest.$ac_ext |
| 9356 | cat >>conftest.$ac_ext <<_ACEOF |
| 9357 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9358 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9359 | typedef fpos_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9360 | int |
| 9361 | main () |
| 9362 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9363 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9364 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9365 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9366 | return 0; |
| 9367 | ; |
| 9368 | return 0; |
| 9369 | } |
| 9370 | _ACEOF |
| 9371 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9372 | if { (ac_try="$ac_compile" |
| 9373 | case "(($ac_try" in |
| 9374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9375 | *) ac_try_echo=$ac_try;; |
| 9376 | esac |
| 9377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9378 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9379 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9381 | rm -f conftest.er1 |
| 9382 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9384 | (exit $ac_status); } && { |
| 9385 | test -z "$ac_c_werror_flag" || |
| 9386 | test ! -s conftest.err |
| 9387 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9388 | ac_cv_type_fpos_t=yes |
| 9389 | else |
| 9390 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9392 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9393 | ac_cv_type_fpos_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9394 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 9395 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9397 | fi |
| 9398 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 9399 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 9400 | |
| 9401 | # The cast to long int works around a bug in the HP C Compiler |
| 9402 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9403 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9404 | # This bug is HP SR number 8606223364. |
| 9405 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 9406 | 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] | 9407 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 9408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9409 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9410 | if test "$cross_compiling" = yes; then |
| 9411 | # Depending upon the size, compute the lo and hi bounds. |
| 9412 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9413 | /* confdefs.h. */ |
| 9414 | _ACEOF |
| 9415 | cat confdefs.h >>conftest.$ac_ext |
| 9416 | cat >>conftest.$ac_ext <<_ACEOF |
| 9417 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9418 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9419 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9420 | int |
| 9421 | main () |
| 9422 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9423 | 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] | 9424 | test_array [0] = 0 |
| 9425 | |
| 9426 | ; |
| 9427 | return 0; |
| 9428 | } |
| 9429 | _ACEOF |
| 9430 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9431 | if { (ac_try="$ac_compile" |
| 9432 | case "(($ac_try" in |
| 9433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9434 | *) ac_try_echo=$ac_try;; |
| 9435 | esac |
| 9436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9437 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9438 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9440 | rm -f conftest.er1 |
| 9441 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9443 | (exit $ac_status); } && { |
| 9444 | test -z "$ac_c_werror_flag" || |
| 9445 | test ! -s conftest.err |
| 9446 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9447 | ac_lo=0 ac_mid=0 |
| 9448 | while :; do |
| 9449 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9450 | /* confdefs.h. */ |
| 9451 | _ACEOF |
| 9452 | cat confdefs.h >>conftest.$ac_ext |
| 9453 | cat >>conftest.$ac_ext <<_ACEOF |
| 9454 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9455 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9456 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9457 | int |
| 9458 | main () |
| 9459 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9460 | 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] | 9461 | test_array [0] = 0 |
| 9462 | |
| 9463 | ; |
| 9464 | return 0; |
| 9465 | } |
| 9466 | _ACEOF |
| 9467 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9468 | if { (ac_try="$ac_compile" |
| 9469 | case "(($ac_try" in |
| 9470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9471 | *) ac_try_echo=$ac_try;; |
| 9472 | esac |
| 9473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9474 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9475 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9477 | rm -f conftest.er1 |
| 9478 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9480 | (exit $ac_status); } && { |
| 9481 | test -z "$ac_c_werror_flag" || |
| 9482 | test ! -s conftest.err |
| 9483 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9484 | ac_hi=$ac_mid; break |
| 9485 | else |
| 9486 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9488 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9489 | ac_lo=`expr $ac_mid + 1` |
| 9490 | if test $ac_lo -le $ac_mid; then |
| 9491 | ac_lo= ac_hi= |
| 9492 | break |
| 9493 | fi |
| 9494 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9496 | |
| 9497 | 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] | 9498 | done |
| 9499 | else |
| 9500 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9502 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9503 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9504 | /* confdefs.h. */ |
| 9505 | _ACEOF |
| 9506 | cat confdefs.h >>conftest.$ac_ext |
| 9507 | cat >>conftest.$ac_ext <<_ACEOF |
| 9508 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9509 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9510 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9511 | int |
| 9512 | main () |
| 9513 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9514 | 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] | 9515 | test_array [0] = 0 |
| 9516 | |
| 9517 | ; |
| 9518 | return 0; |
| 9519 | } |
| 9520 | _ACEOF |
| 9521 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9522 | if { (ac_try="$ac_compile" |
| 9523 | case "(($ac_try" in |
| 9524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9525 | *) ac_try_echo=$ac_try;; |
| 9526 | esac |
| 9527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9528 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9529 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9531 | rm -f conftest.er1 |
| 9532 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9534 | (exit $ac_status); } && { |
| 9535 | test -z "$ac_c_werror_flag" || |
| 9536 | test ! -s conftest.err |
| 9537 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9538 | ac_hi=-1 ac_mid=-1 |
| 9539 | while :; do |
| 9540 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9541 | /* confdefs.h. */ |
| 9542 | _ACEOF |
| 9543 | cat confdefs.h >>conftest.$ac_ext |
| 9544 | cat >>conftest.$ac_ext <<_ACEOF |
| 9545 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9546 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9547 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9548 | int |
| 9549 | main () |
| 9550 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9551 | 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] | 9552 | test_array [0] = 0 |
| 9553 | |
| 9554 | ; |
| 9555 | return 0; |
| 9556 | } |
| 9557 | _ACEOF |
| 9558 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9559 | if { (ac_try="$ac_compile" |
| 9560 | case "(($ac_try" in |
| 9561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9562 | *) ac_try_echo=$ac_try;; |
| 9563 | esac |
| 9564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9565 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9566 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9568 | rm -f conftest.er1 |
| 9569 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9571 | (exit $ac_status); } && { |
| 9572 | test -z "$ac_c_werror_flag" || |
| 9573 | test ! -s conftest.err |
| 9574 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9575 | ac_lo=$ac_mid; break |
| 9576 | else |
| 9577 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9580 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9581 | if test $ac_mid -le $ac_hi; then |
| 9582 | ac_lo= ac_hi= |
| 9583 | break |
| 9584 | fi |
| 9585 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9586 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9587 | |
| 9588 | 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] | 9589 | done |
| 9590 | else |
| 9591 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9593 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9594 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9595 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9596 | |
| 9597 | 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] | 9598 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9599 | |
| 9600 | 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] | 9601 | # Binary search between lo and hi bounds. |
| 9602 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9603 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9604 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9605 | /* confdefs.h. */ |
| 9606 | _ACEOF |
| 9607 | cat confdefs.h >>conftest.$ac_ext |
| 9608 | cat >>conftest.$ac_ext <<_ACEOF |
| 9609 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9610 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9611 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9612 | int |
| 9613 | main () |
| 9614 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9615 | 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] | 9616 | test_array [0] = 0 |
| 9617 | |
| 9618 | ; |
| 9619 | return 0; |
| 9620 | } |
| 9621 | _ACEOF |
| 9622 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9623 | if { (ac_try="$ac_compile" |
| 9624 | case "(($ac_try" in |
| 9625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9626 | *) ac_try_echo=$ac_try;; |
| 9627 | esac |
| 9628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9629 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9630 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9632 | rm -f conftest.er1 |
| 9633 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9635 | (exit $ac_status); } && { |
| 9636 | test -z "$ac_c_werror_flag" || |
| 9637 | test ! -s conftest.err |
| 9638 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9639 | ac_hi=$ac_mid |
| 9640 | else |
| 9641 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9643 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9644 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9645 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9646 | |
| 9647 | 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] | 9648 | done |
| 9649 | case $ac_lo in |
| 9650 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9651 | '') if test "$ac_cv_type_fpos_t" = yes; then |
| 9652 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9653 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9654 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9655 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9656 | { (exit 77); exit 77; }; } |
| 9657 | else |
| 9658 | ac_cv_sizeof_fpos_t=0 |
| 9659 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9660 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9661 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9662 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9663 | /* confdefs.h. */ |
| 9664 | _ACEOF |
| 9665 | cat confdefs.h >>conftest.$ac_ext |
| 9666 | cat >>conftest.$ac_ext <<_ACEOF |
| 9667 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9668 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9669 | typedef fpos_t ac__type_sizeof_; |
| 9670 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9671 | 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] | 9672 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9673 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9674 | int |
| 9675 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9676 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9677 | |
| 9678 | FILE *f = fopen ("conftest.val", "w"); |
| 9679 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9680 | return 1; |
| 9681 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9683 | long int i = longval (); |
| 9684 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9685 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9686 | fprintf (f, "%ld\n", i); |
| 9687 | } |
| 9688 | else |
| 9689 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9690 | unsigned long int i = ulongval (); |
| 9691 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9692 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9693 | fprintf (f, "%lu\n", i); |
| 9694 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9695 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9696 | |
| 9697 | ; |
| 9698 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9699 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9700 | _ACEOF |
| 9701 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9702 | if { (ac_try="$ac_link" |
| 9703 | case "(($ac_try" in |
| 9704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9705 | *) ac_try_echo=$ac_try;; |
| 9706 | esac |
| 9707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9708 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9709 | ac_status=$? |
| 9710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9712 | { (case "(($ac_try" in |
| 9713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9714 | *) ac_try_echo=$ac_try;; |
| 9715 | esac |
| 9716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9717 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9718 | ac_status=$? |
| 9719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9720 | (exit $ac_status); }; }; then |
| 9721 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9724 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9727 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9728 | if test "$ac_cv_type_fpos_t" = yes; then |
| 9729 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9730 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9731 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9732 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9733 | { (exit 77); exit 77; }; } |
| 9734 | else |
| 9735 | ac_cv_sizeof_fpos_t=0 |
| 9736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9737 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9738 | 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] | 9739 | fi |
| 9740 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9741 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9742 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 9743 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
| 9744 | |
| 9745 | |
| 9746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9747 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9748 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9750 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9751 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9752 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 9753 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9754 | if test "${ac_cv_type_size_t+set}" = set; then |
| 9755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9756 | else |
| 9757 | cat >conftest.$ac_ext <<_ACEOF |
| 9758 | /* confdefs.h. */ |
| 9759 | _ACEOF |
| 9760 | cat confdefs.h >>conftest.$ac_ext |
| 9761 | cat >>conftest.$ac_ext <<_ACEOF |
| 9762 | /* end confdefs.h. */ |
| 9763 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9764 | typedef size_t ac__type_new_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9765 | int |
| 9766 | main () |
| 9767 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9768 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9769 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9770 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9771 | return 0; |
| 9772 | ; |
| 9773 | return 0; |
| 9774 | } |
| 9775 | _ACEOF |
| 9776 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9777 | if { (ac_try="$ac_compile" |
| 9778 | case "(($ac_try" in |
| 9779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9780 | *) ac_try_echo=$ac_try;; |
| 9781 | esac |
| 9782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9783 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9784 | ac_status=$? |
| 9785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9786 | rm -f conftest.er1 |
| 9787 | cat conftest.err >&5 |
| 9788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9789 | (exit $ac_status); } && { |
| 9790 | test -z "$ac_c_werror_flag" || |
| 9791 | test ! -s conftest.err |
| 9792 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9793 | ac_cv_type_size_t=yes |
| 9794 | else |
| 9795 | echo "$as_me: failed program was:" >&5 |
| 9796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9797 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9798 | ac_cv_type_size_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9799 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 9800 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9802 | fi |
| 9803 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 9804 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 9805 | |
| 9806 | # The cast to long int works around a bug in the HP C Compiler |
| 9807 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9808 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9809 | # This bug is HP SR number 8606223364. |
| 9810 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 9811 | 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] | 9812 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
| 9813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9814 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9815 | if test "$cross_compiling" = yes; then |
| 9816 | # Depending upon the size, compute the lo and hi bounds. |
| 9817 | cat >conftest.$ac_ext <<_ACEOF |
| 9818 | /* confdefs.h. */ |
| 9819 | _ACEOF |
| 9820 | cat confdefs.h >>conftest.$ac_ext |
| 9821 | cat >>conftest.$ac_ext <<_ACEOF |
| 9822 | /* end confdefs.h. */ |
| 9823 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9824 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9825 | int |
| 9826 | main () |
| 9827 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9828 | 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] | 9829 | test_array [0] = 0 |
| 9830 | |
| 9831 | ; |
| 9832 | return 0; |
| 9833 | } |
| 9834 | _ACEOF |
| 9835 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9836 | if { (ac_try="$ac_compile" |
| 9837 | case "(($ac_try" in |
| 9838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9839 | *) ac_try_echo=$ac_try;; |
| 9840 | esac |
| 9841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9842 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9843 | ac_status=$? |
| 9844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9845 | rm -f conftest.er1 |
| 9846 | cat conftest.err >&5 |
| 9847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9848 | (exit $ac_status); } && { |
| 9849 | test -z "$ac_c_werror_flag" || |
| 9850 | test ! -s conftest.err |
| 9851 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9852 | ac_lo=0 ac_mid=0 |
| 9853 | while :; do |
| 9854 | cat >conftest.$ac_ext <<_ACEOF |
| 9855 | /* confdefs.h. */ |
| 9856 | _ACEOF |
| 9857 | cat confdefs.h >>conftest.$ac_ext |
| 9858 | cat >>conftest.$ac_ext <<_ACEOF |
| 9859 | /* end confdefs.h. */ |
| 9860 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9861 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9862 | int |
| 9863 | main () |
| 9864 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9865 | 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] | 9866 | test_array [0] = 0 |
| 9867 | |
| 9868 | ; |
| 9869 | return 0; |
| 9870 | } |
| 9871 | _ACEOF |
| 9872 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9873 | if { (ac_try="$ac_compile" |
| 9874 | case "(($ac_try" in |
| 9875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9876 | *) ac_try_echo=$ac_try;; |
| 9877 | esac |
| 9878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9879 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9880 | ac_status=$? |
| 9881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9882 | rm -f conftest.er1 |
| 9883 | cat conftest.err >&5 |
| 9884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9885 | (exit $ac_status); } && { |
| 9886 | test -z "$ac_c_werror_flag" || |
| 9887 | test ! -s conftest.err |
| 9888 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9889 | ac_hi=$ac_mid; break |
| 9890 | else |
| 9891 | echo "$as_me: failed program was:" >&5 |
| 9892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9893 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9894 | ac_lo=`expr $ac_mid + 1` |
| 9895 | if test $ac_lo -le $ac_mid; then |
| 9896 | ac_lo= ac_hi= |
| 9897 | break |
| 9898 | fi |
| 9899 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9900 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9901 | |
| 9902 | 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] | 9903 | done |
| 9904 | else |
| 9905 | echo "$as_me: failed program was:" >&5 |
| 9906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9907 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9908 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9909 | /* confdefs.h. */ |
| 9910 | _ACEOF |
| 9911 | cat confdefs.h >>conftest.$ac_ext |
| 9912 | cat >>conftest.$ac_ext <<_ACEOF |
| 9913 | /* end confdefs.h. */ |
| 9914 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9915 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9916 | int |
| 9917 | main () |
| 9918 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9919 | 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] | 9920 | test_array [0] = 0 |
| 9921 | |
| 9922 | ; |
| 9923 | return 0; |
| 9924 | } |
| 9925 | _ACEOF |
| 9926 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9927 | if { (ac_try="$ac_compile" |
| 9928 | case "(($ac_try" in |
| 9929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9930 | *) ac_try_echo=$ac_try;; |
| 9931 | esac |
| 9932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9933 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9934 | ac_status=$? |
| 9935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9936 | rm -f conftest.er1 |
| 9937 | cat conftest.err >&5 |
| 9938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9939 | (exit $ac_status); } && { |
| 9940 | test -z "$ac_c_werror_flag" || |
| 9941 | test ! -s conftest.err |
| 9942 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9943 | ac_hi=-1 ac_mid=-1 |
| 9944 | while :; do |
| 9945 | cat >conftest.$ac_ext <<_ACEOF |
| 9946 | /* confdefs.h. */ |
| 9947 | _ACEOF |
| 9948 | cat confdefs.h >>conftest.$ac_ext |
| 9949 | cat >>conftest.$ac_ext <<_ACEOF |
| 9950 | /* end confdefs.h. */ |
| 9951 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9952 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9953 | int |
| 9954 | main () |
| 9955 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9956 | 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] | 9957 | test_array [0] = 0 |
| 9958 | |
| 9959 | ; |
| 9960 | return 0; |
| 9961 | } |
| 9962 | _ACEOF |
| 9963 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9964 | if { (ac_try="$ac_compile" |
| 9965 | case "(($ac_try" in |
| 9966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9967 | *) ac_try_echo=$ac_try;; |
| 9968 | esac |
| 9969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9970 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9971 | ac_status=$? |
| 9972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9973 | rm -f conftest.er1 |
| 9974 | cat conftest.err >&5 |
| 9975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9976 | (exit $ac_status); } && { |
| 9977 | test -z "$ac_c_werror_flag" || |
| 9978 | test ! -s conftest.err |
| 9979 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9980 | ac_lo=$ac_mid; break |
| 9981 | else |
| 9982 | echo "$as_me: failed program was:" >&5 |
| 9983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9984 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9985 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9986 | if test $ac_mid -le $ac_hi; then |
| 9987 | ac_lo= ac_hi= |
| 9988 | break |
| 9989 | fi |
| 9990 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9991 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9992 | |
| 9993 | 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] | 9994 | done |
| 9995 | else |
| 9996 | echo "$as_me: failed program was:" >&5 |
| 9997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9998 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9999 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10000 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10001 | |
| 10002 | 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] | 10003 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10004 | |
| 10005 | 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] | 10006 | # Binary search between lo and hi bounds. |
| 10007 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10008 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10009 | cat >conftest.$ac_ext <<_ACEOF |
| 10010 | /* confdefs.h. */ |
| 10011 | _ACEOF |
| 10012 | cat confdefs.h >>conftest.$ac_ext |
| 10013 | cat >>conftest.$ac_ext <<_ACEOF |
| 10014 | /* end confdefs.h. */ |
| 10015 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10016 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10017 | int |
| 10018 | main () |
| 10019 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10020 | 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] | 10021 | test_array [0] = 0 |
| 10022 | |
| 10023 | ; |
| 10024 | return 0; |
| 10025 | } |
| 10026 | _ACEOF |
| 10027 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10028 | if { (ac_try="$ac_compile" |
| 10029 | case "(($ac_try" in |
| 10030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10031 | *) ac_try_echo=$ac_try;; |
| 10032 | esac |
| 10033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10034 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10035 | ac_status=$? |
| 10036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10037 | rm -f conftest.er1 |
| 10038 | cat conftest.err >&5 |
| 10039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10040 | (exit $ac_status); } && { |
| 10041 | test -z "$ac_c_werror_flag" || |
| 10042 | test ! -s conftest.err |
| 10043 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10044 | ac_hi=$ac_mid |
| 10045 | else |
| 10046 | echo "$as_me: failed program was:" >&5 |
| 10047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10048 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10049 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10050 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10051 | |
| 10052 | 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] | 10053 | done |
| 10054 | case $ac_lo in |
| 10055 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10056 | '') if test "$ac_cv_type_size_t" = yes; then |
| 10057 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10058 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10059 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10060 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10061 | { (exit 77); exit 77; }; } |
| 10062 | else |
| 10063 | ac_cv_sizeof_size_t=0 |
| 10064 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10065 | esac |
| 10066 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10067 | cat >conftest.$ac_ext <<_ACEOF |
| 10068 | /* confdefs.h. */ |
| 10069 | _ACEOF |
| 10070 | cat confdefs.h >>conftest.$ac_ext |
| 10071 | cat >>conftest.$ac_ext <<_ACEOF |
| 10072 | /* end confdefs.h. */ |
| 10073 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10074 | typedef size_t ac__type_sizeof_; |
| 10075 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10076 | 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] | 10077 | #include <stdio.h> |
| 10078 | #include <stdlib.h> |
| 10079 | int |
| 10080 | main () |
| 10081 | { |
| 10082 | |
| 10083 | FILE *f = fopen ("conftest.val", "w"); |
| 10084 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10085 | return 1; |
| 10086 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10087 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10088 | long int i = longval (); |
| 10089 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10090 | return 1; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10091 | fprintf (f, "%ld\n", i); |
| 10092 | } |
| 10093 | else |
| 10094 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10095 | unsigned long int i = ulongval (); |
| 10096 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10097 | return 1; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10098 | fprintf (f, "%lu\n", i); |
| 10099 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10100 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10101 | |
| 10102 | ; |
| 10103 | return 0; |
| 10104 | } |
| 10105 | _ACEOF |
| 10106 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10107 | if { (ac_try="$ac_link" |
| 10108 | case "(($ac_try" in |
| 10109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10110 | *) ac_try_echo=$ac_try;; |
| 10111 | esac |
| 10112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10113 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10114 | ac_status=$? |
| 10115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10116 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10117 | { (case "(($ac_try" in |
| 10118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10119 | *) ac_try_echo=$ac_try;; |
| 10120 | esac |
| 10121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10122 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10123 | ac_status=$? |
| 10124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10125 | (exit $ac_status); }; }; then |
| 10126 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10127 | else |
| 10128 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10129 | echo "$as_me: failed program was:" >&5 |
| 10130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10131 | |
| 10132 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10133 | if test "$ac_cv_type_size_t" = yes; then |
| 10134 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10135 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10136 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10137 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10138 | { (exit 77); exit 77; }; } |
| 10139 | else |
| 10140 | ac_cv_sizeof_size_t=0 |
| 10141 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10142 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10143 | 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] | 10144 | fi |
| 10145 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10146 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10147 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10148 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
| 10149 | |
| 10150 | |
| 10151 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10152 | cat >>confdefs.h <<_ACEOF |
| 10153 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10154 | _ACEOF |
| 10155 | |
| 10156 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10157 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10158 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 10159 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10160 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10161 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10162 | /* confdefs.h. */ |
| 10163 | _ACEOF |
| 10164 | cat confdefs.h >>conftest.$ac_ext |
| 10165 | cat >>conftest.$ac_ext <<_ACEOF |
| 10166 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10168 | int |
| 10169 | main () |
| 10170 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10171 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10172 | ; |
| 10173 | return 0; |
| 10174 | } |
| 10175 | _ACEOF |
| 10176 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10177 | if { (ac_try="$ac_compile" |
| 10178 | case "(($ac_try" in |
| 10179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10180 | *) ac_try_echo=$ac_try;; |
| 10181 | esac |
| 10182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10183 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10184 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10186 | rm -f conftest.er1 |
| 10187 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10189 | (exit $ac_status); } && { |
| 10190 | test -z "$ac_c_werror_flag" || |
| 10191 | test ! -s conftest.err |
| 10192 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10193 | |
| 10194 | |
| 10195 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10196 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10197 | _ACEOF |
| 10198 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10199 | have_long_long=yes |
| 10200 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10201 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10202 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10204 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10205 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10206 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10207 | |
| 10208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10209 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 10210 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 10211 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10212 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 10213 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10214 | if test "${ac_cv_type_long_long+set}" = set; then |
| 10215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10216 | else |
| 10217 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10218 | /* confdefs.h. */ |
| 10219 | _ACEOF |
| 10220 | cat confdefs.h >>conftest.$ac_ext |
| 10221 | cat >>conftest.$ac_ext <<_ACEOF |
| 10222 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10223 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10224 | typedef long long ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10225 | int |
| 10226 | main () |
| 10227 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10228 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10229 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10230 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10231 | return 0; |
| 10232 | ; |
| 10233 | return 0; |
| 10234 | } |
| 10235 | _ACEOF |
| 10236 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10237 | if { (ac_try="$ac_compile" |
| 10238 | case "(($ac_try" in |
| 10239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10240 | *) ac_try_echo=$ac_try;; |
| 10241 | esac |
| 10242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10243 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10244 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10246 | rm -f conftest.er1 |
| 10247 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10249 | (exit $ac_status); } && { |
| 10250 | test -z "$ac_c_werror_flag" || |
| 10251 | test ! -s conftest.err |
| 10252 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | ac_cv_type_long_long=yes |
| 10254 | else |
| 10255 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10257 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10258 | ac_cv_type_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10259 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 10260 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10262 | fi |
| 10263 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 10264 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 10265 | |
| 10266 | # The cast to long int works around a bug in the HP C Compiler |
| 10267 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10268 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10269 | # This bug is HP SR number 8606223364. |
| 10270 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 10271 | 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] | 10272 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 10273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10274 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10275 | if test "$cross_compiling" = yes; then |
| 10276 | # Depending upon the size, compute the lo and hi bounds. |
| 10277 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10278 | /* confdefs.h. */ |
| 10279 | _ACEOF |
| 10280 | cat confdefs.h >>conftest.$ac_ext |
| 10281 | cat >>conftest.$ac_ext <<_ACEOF |
| 10282 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10283 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10284 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10285 | int |
| 10286 | main () |
| 10287 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10288 | 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] | 10289 | test_array [0] = 0 |
| 10290 | |
| 10291 | ; |
| 10292 | return 0; |
| 10293 | } |
| 10294 | _ACEOF |
| 10295 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10296 | if { (ac_try="$ac_compile" |
| 10297 | case "(($ac_try" in |
| 10298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10299 | *) ac_try_echo=$ac_try;; |
| 10300 | esac |
| 10301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10302 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10303 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10305 | rm -f conftest.er1 |
| 10306 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10308 | (exit $ac_status); } && { |
| 10309 | test -z "$ac_c_werror_flag" || |
| 10310 | test ! -s conftest.err |
| 10311 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10312 | ac_lo=0 ac_mid=0 |
| 10313 | while :; do |
| 10314 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10315 | /* confdefs.h. */ |
| 10316 | _ACEOF |
| 10317 | cat confdefs.h >>conftest.$ac_ext |
| 10318 | cat >>conftest.$ac_ext <<_ACEOF |
| 10319 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10320 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10321 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 | int |
| 10323 | main () |
| 10324 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10325 | 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] | 10326 | test_array [0] = 0 |
| 10327 | |
| 10328 | ; |
| 10329 | return 0; |
| 10330 | } |
| 10331 | _ACEOF |
| 10332 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10333 | if { (ac_try="$ac_compile" |
| 10334 | case "(($ac_try" in |
| 10335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10336 | *) ac_try_echo=$ac_try;; |
| 10337 | esac |
| 10338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10339 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10340 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10342 | rm -f conftest.er1 |
| 10343 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10345 | (exit $ac_status); } && { |
| 10346 | test -z "$ac_c_werror_flag" || |
| 10347 | test ! -s conftest.err |
| 10348 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10349 | ac_hi=$ac_mid; break |
| 10350 | else |
| 10351 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10353 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10354 | ac_lo=`expr $ac_mid + 1` |
| 10355 | if test $ac_lo -le $ac_mid; then |
| 10356 | ac_lo= ac_hi= |
| 10357 | break |
| 10358 | fi |
| 10359 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10360 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10361 | |
| 10362 | 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] | 10363 | done |
| 10364 | else |
| 10365 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10367 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10368 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10369 | /* confdefs.h. */ |
| 10370 | _ACEOF |
| 10371 | cat confdefs.h >>conftest.$ac_ext |
| 10372 | cat >>conftest.$ac_ext <<_ACEOF |
| 10373 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10374 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10375 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 | int |
| 10377 | main () |
| 10378 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10379 | 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] | 10380 | test_array [0] = 0 |
| 10381 | |
| 10382 | ; |
| 10383 | return 0; |
| 10384 | } |
| 10385 | _ACEOF |
| 10386 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10387 | if { (ac_try="$ac_compile" |
| 10388 | case "(($ac_try" in |
| 10389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10390 | *) ac_try_echo=$ac_try;; |
| 10391 | esac |
| 10392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10393 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10396 | rm -f conftest.er1 |
| 10397 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10399 | (exit $ac_status); } && { |
| 10400 | test -z "$ac_c_werror_flag" || |
| 10401 | test ! -s conftest.err |
| 10402 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10403 | ac_hi=-1 ac_mid=-1 |
| 10404 | while :; do |
| 10405 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10406 | /* confdefs.h. */ |
| 10407 | _ACEOF |
| 10408 | cat confdefs.h >>conftest.$ac_ext |
| 10409 | cat >>conftest.$ac_ext <<_ACEOF |
| 10410 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10411 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10412 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | int |
| 10414 | main () |
| 10415 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10416 | 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] | 10417 | test_array [0] = 0 |
| 10418 | |
| 10419 | ; |
| 10420 | return 0; |
| 10421 | } |
| 10422 | _ACEOF |
| 10423 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10424 | if { (ac_try="$ac_compile" |
| 10425 | case "(($ac_try" in |
| 10426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10427 | *) ac_try_echo=$ac_try;; |
| 10428 | esac |
| 10429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10430 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10431 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10433 | rm -f conftest.er1 |
| 10434 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10436 | (exit $ac_status); } && { |
| 10437 | test -z "$ac_c_werror_flag" || |
| 10438 | test ! -s conftest.err |
| 10439 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10440 | ac_lo=$ac_mid; break |
| 10441 | else |
| 10442 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10444 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10445 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10446 | if test $ac_mid -le $ac_hi; then |
| 10447 | ac_lo= ac_hi= |
| 10448 | break |
| 10449 | fi |
| 10450 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10451 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10452 | |
| 10453 | 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] | 10454 | done |
| 10455 | else |
| 10456 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10458 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10459 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10460 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10461 | |
| 10462 | 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] | 10463 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10464 | |
| 10465 | 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] | 10466 | # Binary search between lo and hi bounds. |
| 10467 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10468 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10469 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10470 | /* confdefs.h. */ |
| 10471 | _ACEOF |
| 10472 | cat confdefs.h >>conftest.$ac_ext |
| 10473 | cat >>conftest.$ac_ext <<_ACEOF |
| 10474 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10475 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10476 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10477 | int |
| 10478 | main () |
| 10479 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10480 | 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] | 10481 | test_array [0] = 0 |
| 10482 | |
| 10483 | ; |
| 10484 | return 0; |
| 10485 | } |
| 10486 | _ACEOF |
| 10487 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10488 | if { (ac_try="$ac_compile" |
| 10489 | case "(($ac_try" in |
| 10490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10491 | *) ac_try_echo=$ac_try;; |
| 10492 | esac |
| 10493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10494 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10495 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10497 | rm -f conftest.er1 |
| 10498 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10500 | (exit $ac_status); } && { |
| 10501 | test -z "$ac_c_werror_flag" || |
| 10502 | test ! -s conftest.err |
| 10503 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10504 | ac_hi=$ac_mid |
| 10505 | else |
| 10506 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10508 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10509 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10510 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10511 | |
| 10512 | 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] | 10513 | done |
| 10514 | case $ac_lo in |
| 10515 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10516 | '') if test "$ac_cv_type_long_long" = yes; then |
| 10517 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10518 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10519 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10520 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10521 | { (exit 77); exit 77; }; } |
| 10522 | else |
| 10523 | ac_cv_sizeof_long_long=0 |
| 10524 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10525 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10526 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10527 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10528 | /* confdefs.h. */ |
| 10529 | _ACEOF |
| 10530 | cat confdefs.h >>conftest.$ac_ext |
| 10531 | cat >>conftest.$ac_ext <<_ACEOF |
| 10532 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10533 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10534 | typedef long long ac__type_sizeof_; |
| 10535 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10536 | 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] | 10537 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10538 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10539 | int |
| 10540 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10541 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10542 | |
| 10543 | FILE *f = fopen ("conftest.val", "w"); |
| 10544 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10545 | return 1; |
| 10546 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10547 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10548 | long int i = longval (); |
| 10549 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10550 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10551 | fprintf (f, "%ld\n", i); |
| 10552 | } |
| 10553 | else |
| 10554 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10555 | unsigned long int i = ulongval (); |
| 10556 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10557 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10558 | fprintf (f, "%lu\n", i); |
| 10559 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10560 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10561 | |
| 10562 | ; |
| 10563 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10564 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10565 | _ACEOF |
| 10566 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10567 | if { (ac_try="$ac_link" |
| 10568 | case "(($ac_try" in |
| 10569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10570 | *) ac_try_echo=$ac_try;; |
| 10571 | esac |
| 10572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10573 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10574 | ac_status=$? |
| 10575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10576 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10577 | { (case "(($ac_try" in |
| 10578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10579 | *) ac_try_echo=$ac_try;; |
| 10580 | esac |
| 10581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10582 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10583 | ac_status=$? |
| 10584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10585 | (exit $ac_status); }; }; then |
| 10586 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10587 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10588 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10589 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10592 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10593 | if test "$ac_cv_type_long_long" = yes; then |
| 10594 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10595 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10596 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10597 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10598 | { (exit 77); exit 77; }; } |
| 10599 | else |
| 10600 | ac_cv_sizeof_long_long=0 |
| 10601 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10602 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10603 | 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] | 10604 | fi |
| 10605 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10606 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10607 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 10608 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
| 10609 | |
| 10610 | |
| 10611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10612 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10613 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10614 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10615 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10616 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10617 | fi |
| 10618 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10619 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 10620 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10621 | have_c99_bool=no |
| 10622 | cat >conftest.$ac_ext <<_ACEOF |
| 10623 | /* confdefs.h. */ |
| 10624 | _ACEOF |
| 10625 | cat confdefs.h >>conftest.$ac_ext |
| 10626 | cat >>conftest.$ac_ext <<_ACEOF |
| 10627 | /* end confdefs.h. */ |
| 10628 | |
| 10629 | int |
| 10630 | main () |
| 10631 | { |
| 10632 | _Bool x; x = (_Bool)0; |
| 10633 | ; |
| 10634 | return 0; |
| 10635 | } |
| 10636 | _ACEOF |
| 10637 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10638 | if { (ac_try="$ac_compile" |
| 10639 | case "(($ac_try" in |
| 10640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10641 | *) ac_try_echo=$ac_try;; |
| 10642 | esac |
| 10643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10644 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10645 | ac_status=$? |
| 10646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10647 | rm -f conftest.er1 |
| 10648 | cat conftest.err >&5 |
| 10649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10650 | (exit $ac_status); } && { |
| 10651 | test -z "$ac_c_werror_flag" || |
| 10652 | test ! -s conftest.err |
| 10653 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10654 | |
| 10655 | |
| 10656 | cat >>confdefs.h <<\_ACEOF |
| 10657 | #define HAVE_C99_BOOL 1 |
| 10658 | _ACEOF |
| 10659 | |
| 10660 | have_c99_bool=yes |
| 10661 | |
| 10662 | else |
| 10663 | echo "$as_me: failed program was:" >&5 |
| 10664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10665 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10666 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10667 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10668 | |
| 10669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10670 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 10671 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10672 | if test "$have_c99_bool" = yes ; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10673 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 10674 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10675 | if test "${ac_cv_type__Bool+set}" = set; then |
| 10676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10677 | else |
| 10678 | cat >conftest.$ac_ext <<_ACEOF |
| 10679 | /* confdefs.h. */ |
| 10680 | _ACEOF |
| 10681 | cat confdefs.h >>conftest.$ac_ext |
| 10682 | cat >>conftest.$ac_ext <<_ACEOF |
| 10683 | /* end confdefs.h. */ |
| 10684 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10685 | typedef _Bool ac__type_new_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10686 | int |
| 10687 | main () |
| 10688 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10689 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10690 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10691 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10692 | return 0; |
| 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 |
| 10703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10704 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10705 | ac_status=$? |
| 10706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10707 | rm -f conftest.er1 |
| 10708 | cat conftest.err >&5 |
| 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 | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10714 | ac_cv_type__Bool=yes |
| 10715 | else |
| 10716 | echo "$as_me: failed program was:" >&5 |
| 10717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10718 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10719 | ac_cv_type__Bool=no |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10720 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 10721 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10723 | fi |
| 10724 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 10725 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 10726 | |
| 10727 | # The cast to long int works around a bug in the HP C Compiler |
| 10728 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10729 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10730 | # This bug is HP SR number 8606223364. |
| 10731 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 10732 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10733 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
| 10734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10735 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10736 | if test "$cross_compiling" = yes; then |
| 10737 | # Depending upon the size, compute the lo and hi bounds. |
| 10738 | cat >conftest.$ac_ext <<_ACEOF |
| 10739 | /* confdefs.h. */ |
| 10740 | _ACEOF |
| 10741 | cat confdefs.h >>conftest.$ac_ext |
| 10742 | cat >>conftest.$ac_ext <<_ACEOF |
| 10743 | /* end confdefs.h. */ |
| 10744 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10745 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10746 | int |
| 10747 | main () |
| 10748 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10749 | 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] | 10750 | test_array [0] = 0 |
| 10751 | |
| 10752 | ; |
| 10753 | return 0; |
| 10754 | } |
| 10755 | _ACEOF |
| 10756 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10757 | if { (ac_try="$ac_compile" |
| 10758 | case "(($ac_try" in |
| 10759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10760 | *) ac_try_echo=$ac_try;; |
| 10761 | esac |
| 10762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10763 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10764 | ac_status=$? |
| 10765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10766 | rm -f conftest.er1 |
| 10767 | cat conftest.err >&5 |
| 10768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10769 | (exit $ac_status); } && { |
| 10770 | test -z "$ac_c_werror_flag" || |
| 10771 | test ! -s conftest.err |
| 10772 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10773 | ac_lo=0 ac_mid=0 |
| 10774 | while :; do |
| 10775 | cat >conftest.$ac_ext <<_ACEOF |
| 10776 | /* confdefs.h. */ |
| 10777 | _ACEOF |
| 10778 | cat confdefs.h >>conftest.$ac_ext |
| 10779 | cat >>conftest.$ac_ext <<_ACEOF |
| 10780 | /* end confdefs.h. */ |
| 10781 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10782 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10783 | int |
| 10784 | main () |
| 10785 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10786 | 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] | 10787 | test_array [0] = 0 |
| 10788 | |
| 10789 | ; |
| 10790 | return 0; |
| 10791 | } |
| 10792 | _ACEOF |
| 10793 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10794 | if { (ac_try="$ac_compile" |
| 10795 | case "(($ac_try" in |
| 10796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10797 | *) ac_try_echo=$ac_try;; |
| 10798 | esac |
| 10799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10800 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10801 | ac_status=$? |
| 10802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10803 | rm -f conftest.er1 |
| 10804 | cat conftest.err >&5 |
| 10805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10806 | (exit $ac_status); } && { |
| 10807 | test -z "$ac_c_werror_flag" || |
| 10808 | test ! -s conftest.err |
| 10809 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10810 | ac_hi=$ac_mid; break |
| 10811 | else |
| 10812 | echo "$as_me: failed program was:" >&5 |
| 10813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10814 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10815 | ac_lo=`expr $ac_mid + 1` |
| 10816 | if test $ac_lo -le $ac_mid; then |
| 10817 | ac_lo= ac_hi= |
| 10818 | break |
| 10819 | fi |
| 10820 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10821 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10822 | |
| 10823 | 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] | 10824 | done |
| 10825 | else |
| 10826 | echo "$as_me: failed program was:" >&5 |
| 10827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10828 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10829 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10830 | /* confdefs.h. */ |
| 10831 | _ACEOF |
| 10832 | cat confdefs.h >>conftest.$ac_ext |
| 10833 | cat >>conftest.$ac_ext <<_ACEOF |
| 10834 | /* end confdefs.h. */ |
| 10835 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10836 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10837 | int |
| 10838 | main () |
| 10839 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10840 | 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] | 10841 | test_array [0] = 0 |
| 10842 | |
| 10843 | ; |
| 10844 | return 0; |
| 10845 | } |
| 10846 | _ACEOF |
| 10847 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10848 | if { (ac_try="$ac_compile" |
| 10849 | case "(($ac_try" in |
| 10850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10851 | *) ac_try_echo=$ac_try;; |
| 10852 | esac |
| 10853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10854 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10855 | ac_status=$? |
| 10856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10857 | rm -f conftest.er1 |
| 10858 | cat conftest.err >&5 |
| 10859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10860 | (exit $ac_status); } && { |
| 10861 | test -z "$ac_c_werror_flag" || |
| 10862 | test ! -s conftest.err |
| 10863 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10864 | ac_hi=-1 ac_mid=-1 |
| 10865 | while :; do |
| 10866 | cat >conftest.$ac_ext <<_ACEOF |
| 10867 | /* confdefs.h. */ |
| 10868 | _ACEOF |
| 10869 | cat confdefs.h >>conftest.$ac_ext |
| 10870 | cat >>conftest.$ac_ext <<_ACEOF |
| 10871 | /* end confdefs.h. */ |
| 10872 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10873 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10874 | int |
| 10875 | main () |
| 10876 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10877 | 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] | 10878 | test_array [0] = 0 |
| 10879 | |
| 10880 | ; |
| 10881 | return 0; |
| 10882 | } |
| 10883 | _ACEOF |
| 10884 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10885 | if { (ac_try="$ac_compile" |
| 10886 | case "(($ac_try" in |
| 10887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10888 | *) ac_try_echo=$ac_try;; |
| 10889 | esac |
| 10890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10891 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10892 | ac_status=$? |
| 10893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10894 | rm -f conftest.er1 |
| 10895 | cat conftest.err >&5 |
| 10896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10897 | (exit $ac_status); } && { |
| 10898 | test -z "$ac_c_werror_flag" || |
| 10899 | test ! -s conftest.err |
| 10900 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10901 | ac_lo=$ac_mid; break |
| 10902 | else |
| 10903 | echo "$as_me: failed program was:" >&5 |
| 10904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10905 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10906 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10907 | if test $ac_mid -le $ac_hi; then |
| 10908 | ac_lo= ac_hi= |
| 10909 | break |
| 10910 | fi |
| 10911 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10912 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10913 | |
| 10914 | 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] | 10915 | done |
| 10916 | else |
| 10917 | echo "$as_me: failed program was:" >&5 |
| 10918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10919 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10920 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10921 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10922 | |
| 10923 | 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] | 10924 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10925 | |
| 10926 | 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] | 10927 | # Binary search between lo and hi bounds. |
| 10928 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10929 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10930 | cat >conftest.$ac_ext <<_ACEOF |
| 10931 | /* confdefs.h. */ |
| 10932 | _ACEOF |
| 10933 | cat confdefs.h >>conftest.$ac_ext |
| 10934 | cat >>conftest.$ac_ext <<_ACEOF |
| 10935 | /* end confdefs.h. */ |
| 10936 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10937 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10938 | int |
| 10939 | main () |
| 10940 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10941 | 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] | 10942 | test_array [0] = 0 |
| 10943 | |
| 10944 | ; |
| 10945 | return 0; |
| 10946 | } |
| 10947 | _ACEOF |
| 10948 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10949 | if { (ac_try="$ac_compile" |
| 10950 | case "(($ac_try" in |
| 10951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10952 | *) ac_try_echo=$ac_try;; |
| 10953 | esac |
| 10954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10955 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10956 | ac_status=$? |
| 10957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10958 | rm -f conftest.er1 |
| 10959 | cat conftest.err >&5 |
| 10960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10961 | (exit $ac_status); } && { |
| 10962 | test -z "$ac_c_werror_flag" || |
| 10963 | test ! -s conftest.err |
| 10964 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10965 | ac_hi=$ac_mid |
| 10966 | else |
| 10967 | echo "$as_me: failed program was:" >&5 |
| 10968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10969 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10970 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10971 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10972 | |
| 10973 | 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] | 10974 | done |
| 10975 | case $ac_lo in |
| 10976 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10977 | '') if test "$ac_cv_type__Bool" = yes; then |
| 10978 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10979 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10980 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10981 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10982 | { (exit 77); exit 77; }; } |
| 10983 | else |
| 10984 | ac_cv_sizeof__Bool=0 |
| 10985 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10986 | esac |
| 10987 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 10988 | cat >conftest.$ac_ext <<_ACEOF |
| 10989 | /* confdefs.h. */ |
| 10990 | _ACEOF |
| 10991 | cat confdefs.h >>conftest.$ac_ext |
| 10992 | cat >>conftest.$ac_ext <<_ACEOF |
| 10993 | /* end confdefs.h. */ |
| 10994 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10995 | typedef _Bool ac__type_sizeof_; |
| 10996 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10997 | 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] | 10998 | #include <stdio.h> |
| 10999 | #include <stdlib.h> |
| 11000 | int |
| 11001 | main () |
| 11002 | { |
| 11003 | |
| 11004 | FILE *f = fopen ("conftest.val", "w"); |
| 11005 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11006 | return 1; |
| 11007 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 11008 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11009 | long int i = longval (); |
| 11010 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11011 | return 1; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 11012 | fprintf (f, "%ld\n", i); |
| 11013 | } |
| 11014 | else |
| 11015 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11016 | unsigned long int i = ulongval (); |
| 11017 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11018 | return 1; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 11019 | fprintf (f, "%lu\n", i); |
| 11020 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11021 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 11022 | |
| 11023 | ; |
| 11024 | return 0; |
| 11025 | } |
| 11026 | _ACEOF |
| 11027 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11028 | if { (ac_try="$ac_link" |
| 11029 | case "(($ac_try" in |
| 11030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11031 | *) ac_try_echo=$ac_try;; |
| 11032 | esac |
| 11033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11034 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 11035 | ac_status=$? |
| 11036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11037 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11038 | { (case "(($ac_try" in |
| 11039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11040 | *) ac_try_echo=$ac_try;; |
| 11041 | esac |
| 11042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11043 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 11044 | ac_status=$? |
| 11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11046 | (exit $ac_status); }; }; then |
| 11047 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 11048 | else |
| 11049 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11050 | echo "$as_me: failed program was:" >&5 |
| 11051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11052 | |
| 11053 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11054 | if test "$ac_cv_type__Bool" = yes; then |
| 11055 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 11056 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11057 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 11058 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11059 | { (exit 77); exit 77; }; } |
| 11060 | else |
| 11061 | ac_cv_sizeof__Bool=0 |
| 11062 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 11063 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11064 | 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] | 11065 | fi |
| 11066 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 11067 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11068 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 11069 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
| 11070 | |
| 11071 | |
| 11072 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 11073 | cat >>confdefs.h <<_ACEOF |
| 11074 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 11075 | _ACEOF |
| 11076 | |
| 11077 | |
| 11078 | fi |
| 11079 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11080 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 11081 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 11082 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 11083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11084 | else |
| 11085 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11086 | /* confdefs.h. */ |
| 11087 | _ACEOF |
| 11088 | cat confdefs.h >>conftest.$ac_ext |
| 11089 | cat >>conftest.$ac_ext <<_ACEOF |
| 11090 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 11091 | #ifdef HAVE_STDINT_H |
| 11092 | #include <stdint.h> |
| 11093 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11094 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11095 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11096 | int |
| 11097 | main () |
| 11098 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11099 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 11100 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11101 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 11102 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11103 | ; |
| 11104 | return 0; |
| 11105 | } |
| 11106 | _ACEOF |
| 11107 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11108 | if { (ac_try="$ac_compile" |
| 11109 | case "(($ac_try" in |
| 11110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11111 | *) ac_try_echo=$ac_try;; |
| 11112 | esac |
| 11113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11114 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11115 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11117 | rm -f conftest.er1 |
| 11118 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11120 | (exit $ac_status); } && { |
| 11121 | test -z "$ac_c_werror_flag" || |
| 11122 | test ! -s conftest.err |
| 11123 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 11124 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11125 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11126 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11128 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11129 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11130 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11131 | |
| 11132 | 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] | 11133 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11134 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 11135 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 11136 | if test $ac_cv_type_uintptr_t = yes; then |
| 11137 | |
| 11138 | cat >>confdefs.h <<_ACEOF |
| 11139 | #define HAVE_UINTPTR_T 1 |
| 11140 | _ACEOF |
| 11141 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11142 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 11143 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11144 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 11145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11146 | else |
| 11147 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11148 | /* confdefs.h. */ |
| 11149 | _ACEOF |
| 11150 | cat confdefs.h >>conftest.$ac_ext |
| 11151 | cat >>conftest.$ac_ext <<_ACEOF |
| 11152 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11153 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11154 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11155 | int |
| 11156 | main () |
| 11157 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11158 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11159 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11160 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11161 | return 0; |
| 11162 | ; |
| 11163 | return 0; |
| 11164 | } |
| 11165 | _ACEOF |
| 11166 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11167 | if { (ac_try="$ac_compile" |
| 11168 | case "(($ac_try" in |
| 11169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11170 | *) ac_try_echo=$ac_try;; |
| 11171 | esac |
| 11172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11173 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11174 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11176 | rm -f conftest.er1 |
| 11177 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11179 | (exit $ac_status); } && { |
| 11180 | test -z "$ac_c_werror_flag" || |
| 11181 | test ! -s conftest.err |
| 11182 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11183 | ac_cv_type_uintptr_t=yes |
| 11184 | else |
| 11185 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11187 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11188 | ac_cv_type_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11189 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 11190 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11192 | fi |
| 11193 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 11194 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 11195 | |
| 11196 | # The cast to long int works around a bug in the HP C Compiler |
| 11197 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11198 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11199 | # This bug is HP SR number 8606223364. |
| 11200 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 11201 | 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] | 11202 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 11203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11204 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11205 | if test "$cross_compiling" = yes; then |
| 11206 | # Depending upon the size, compute the lo and hi bounds. |
| 11207 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11208 | /* confdefs.h. */ |
| 11209 | _ACEOF |
| 11210 | cat confdefs.h >>conftest.$ac_ext |
| 11211 | cat >>conftest.$ac_ext <<_ACEOF |
| 11212 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11213 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11214 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11215 | int |
| 11216 | main () |
| 11217 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11218 | 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] | 11219 | test_array [0] = 0 |
| 11220 | |
| 11221 | ; |
| 11222 | return 0; |
| 11223 | } |
| 11224 | _ACEOF |
| 11225 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11226 | if { (ac_try="$ac_compile" |
| 11227 | case "(($ac_try" in |
| 11228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11229 | *) ac_try_echo=$ac_try;; |
| 11230 | esac |
| 11231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11232 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11235 | rm -f conftest.er1 |
| 11236 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11238 | (exit $ac_status); } && { |
| 11239 | test -z "$ac_c_werror_flag" || |
| 11240 | test ! -s conftest.err |
| 11241 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11242 | ac_lo=0 ac_mid=0 |
| 11243 | while :; do |
| 11244 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11245 | /* confdefs.h. */ |
| 11246 | _ACEOF |
| 11247 | cat confdefs.h >>conftest.$ac_ext |
| 11248 | cat >>conftest.$ac_ext <<_ACEOF |
| 11249 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11250 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11251 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11252 | int |
| 11253 | main () |
| 11254 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11255 | 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] | 11256 | test_array [0] = 0 |
| 11257 | |
| 11258 | ; |
| 11259 | return 0; |
| 11260 | } |
| 11261 | _ACEOF |
| 11262 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11263 | if { (ac_try="$ac_compile" |
| 11264 | case "(($ac_try" in |
| 11265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11266 | *) ac_try_echo=$ac_try;; |
| 11267 | esac |
| 11268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11269 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11270 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11272 | rm -f conftest.er1 |
| 11273 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11275 | (exit $ac_status); } && { |
| 11276 | test -z "$ac_c_werror_flag" || |
| 11277 | test ! -s conftest.err |
| 11278 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11279 | ac_hi=$ac_mid; break |
| 11280 | else |
| 11281 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11283 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11284 | ac_lo=`expr $ac_mid + 1` |
| 11285 | if test $ac_lo -le $ac_mid; then |
| 11286 | ac_lo= ac_hi= |
| 11287 | break |
| 11288 | fi |
| 11289 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11290 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11291 | |
| 11292 | 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] | 11293 | done |
| 11294 | else |
| 11295 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11297 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11298 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11299 | /* confdefs.h. */ |
| 11300 | _ACEOF |
| 11301 | cat confdefs.h >>conftest.$ac_ext |
| 11302 | cat >>conftest.$ac_ext <<_ACEOF |
| 11303 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11304 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11305 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11306 | int |
| 11307 | main () |
| 11308 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11309 | 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] | 11310 | test_array [0] = 0 |
| 11311 | |
| 11312 | ; |
| 11313 | return 0; |
| 11314 | } |
| 11315 | _ACEOF |
| 11316 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11317 | if { (ac_try="$ac_compile" |
| 11318 | case "(($ac_try" in |
| 11319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11320 | *) ac_try_echo=$ac_try;; |
| 11321 | esac |
| 11322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11323 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11324 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11326 | rm -f conftest.er1 |
| 11327 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11329 | (exit $ac_status); } && { |
| 11330 | test -z "$ac_c_werror_flag" || |
| 11331 | test ! -s conftest.err |
| 11332 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11333 | ac_hi=-1 ac_mid=-1 |
| 11334 | while :; do |
| 11335 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11336 | /* confdefs.h. */ |
| 11337 | _ACEOF |
| 11338 | cat confdefs.h >>conftest.$ac_ext |
| 11339 | cat >>conftest.$ac_ext <<_ACEOF |
| 11340 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11341 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11342 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11343 | int |
| 11344 | main () |
| 11345 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11346 | 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] | 11347 | test_array [0] = 0 |
| 11348 | |
| 11349 | ; |
| 11350 | return 0; |
| 11351 | } |
| 11352 | _ACEOF |
| 11353 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11354 | if { (ac_try="$ac_compile" |
| 11355 | case "(($ac_try" in |
| 11356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11357 | *) ac_try_echo=$ac_try;; |
| 11358 | esac |
| 11359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11360 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11361 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11363 | rm -f conftest.er1 |
| 11364 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11366 | (exit $ac_status); } && { |
| 11367 | test -z "$ac_c_werror_flag" || |
| 11368 | test ! -s conftest.err |
| 11369 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11370 | ac_lo=$ac_mid; break |
| 11371 | else |
| 11372 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11374 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11375 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11376 | if test $ac_mid -le $ac_hi; then |
| 11377 | ac_lo= ac_hi= |
| 11378 | break |
| 11379 | fi |
| 11380 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11381 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11382 | |
| 11383 | 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] | 11384 | done |
| 11385 | else |
| 11386 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11388 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11389 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11390 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11391 | |
| 11392 | 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] | 11393 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11394 | |
| 11395 | 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] | 11396 | # Binary search between lo and hi bounds. |
| 11397 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11398 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11399 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11400 | /* confdefs.h. */ |
| 11401 | _ACEOF |
| 11402 | cat confdefs.h >>conftest.$ac_ext |
| 11403 | cat >>conftest.$ac_ext <<_ACEOF |
| 11404 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11405 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11406 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11407 | int |
| 11408 | main () |
| 11409 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11410 | 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] | 11411 | test_array [0] = 0 |
| 11412 | |
| 11413 | ; |
| 11414 | return 0; |
| 11415 | } |
| 11416 | _ACEOF |
| 11417 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11418 | if { (ac_try="$ac_compile" |
| 11419 | case "(($ac_try" in |
| 11420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11421 | *) ac_try_echo=$ac_try;; |
| 11422 | esac |
| 11423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11424 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11425 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11427 | rm -f conftest.er1 |
| 11428 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11430 | (exit $ac_status); } && { |
| 11431 | test -z "$ac_c_werror_flag" || |
| 11432 | test ! -s conftest.err |
| 11433 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11434 | ac_hi=$ac_mid |
| 11435 | else |
| 11436 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11438 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11439 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11440 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11441 | |
| 11442 | 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] | 11443 | done |
| 11444 | case $ac_lo in |
| 11445 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11446 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
| 11447 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11448 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11449 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11450 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11451 | { (exit 77); exit 77; }; } |
| 11452 | else |
| 11453 | ac_cv_sizeof_uintptr_t=0 |
| 11454 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11455 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11456 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11457 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11458 | /* confdefs.h. */ |
| 11459 | _ACEOF |
| 11460 | cat confdefs.h >>conftest.$ac_ext |
| 11461 | cat >>conftest.$ac_ext <<_ACEOF |
| 11462 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11463 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11464 | typedef uintptr_t ac__type_sizeof_; |
| 11465 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11466 | 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] | 11467 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11468 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11469 | int |
| 11470 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11471 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11472 | |
| 11473 | FILE *f = fopen ("conftest.val", "w"); |
| 11474 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11475 | return 1; |
| 11476 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11477 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11478 | long int i = longval (); |
| 11479 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11480 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11481 | fprintf (f, "%ld\n", i); |
| 11482 | } |
| 11483 | else |
| 11484 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11485 | unsigned long int i = ulongval (); |
| 11486 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11487 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11488 | fprintf (f, "%lu\n", i); |
| 11489 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11490 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11491 | |
| 11492 | ; |
| 11493 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11494 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 | _ACEOF |
| 11496 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11497 | if { (ac_try="$ac_link" |
| 11498 | case "(($ac_try" in |
| 11499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11500 | *) ac_try_echo=$ac_try;; |
| 11501 | esac |
| 11502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11503 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11504 | ac_status=$? |
| 11505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11506 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11507 | { (case "(($ac_try" in |
| 11508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11509 | *) ac_try_echo=$ac_try;; |
| 11510 | esac |
| 11511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11512 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11513 | ac_status=$? |
| 11514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11515 | (exit $ac_status); }; }; then |
| 11516 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11517 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11518 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11519 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11521 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11522 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11523 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 11524 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11525 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11526 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11527 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11528 | { (exit 77); exit 77; }; } |
| 11529 | else |
| 11530 | ac_cv_sizeof_uintptr_t=0 |
| 11531 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11532 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11533 | 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] | 11534 | fi |
| 11535 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11536 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11537 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 11538 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
| 11539 | |
| 11540 | |
| 11541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11542 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11543 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11544 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11545 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11546 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11547 | fi |
| 11548 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 11549 | |
| 11550 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11551 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11552 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 11553 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 11555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11556 | else |
| 11557 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11558 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11560 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11561 | /* confdefs.h. */ |
| 11562 | _ACEOF |
| 11563 | cat confdefs.h >>conftest.$ac_ext |
| 11564 | cat >>conftest.$ac_ext <<_ACEOF |
| 11565 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11566 | #include <stdio.h> |
| 11567 | #include <sys/types.h> |
| 11568 | main() |
| 11569 | { |
| 11570 | FILE *f=fopen("conftestval", "w"); |
| 11571 | if (!f) exit(1); |
| 11572 | fprintf(f, "%d\n", sizeof(off_t)); |
| 11573 | exit(0); |
| 11574 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | _ACEOF |
| 11576 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11577 | if { (ac_try="$ac_link" |
| 11578 | case "(($ac_try" in |
| 11579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11580 | *) ac_try_echo=$ac_try;; |
| 11581 | esac |
| 11582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11583 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11584 | ac_status=$? |
| 11585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11586 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11587 | { (case "(($ac_try" in |
| 11588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11589 | *) ac_try_echo=$ac_try;; |
| 11590 | esac |
| 11591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11592 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11593 | ac_status=$? |
| 11594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11595 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11596 | ac_cv_sizeof_off_t=`cat conftestval` |
| 11597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11598 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11599 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11602 | ( exit $ac_status ) |
| 11603 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11604 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11605 | 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] | 11606 | fi |
| 11607 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11608 | |
| 11609 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11610 | fi |
| 11611 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11612 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 11613 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11614 | |
| 11615 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11616 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11617 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11618 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11619 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11620 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 11621 | echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11622 | if test "$have_long_long" = yes -a \ |
| 11623 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 11624 | "$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] | 11625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11626 | cat >>confdefs.h <<\_ACEOF |
| 11627 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 11628 | _ACEOF |
| 11629 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11630 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11631 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11632 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11633 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11634 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11635 | fi |
| 11636 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11637 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11638 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 11639 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 11641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11642 | else |
| 11643 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11644 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11645 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11646 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11647 | /* confdefs.h. */ |
| 11648 | _ACEOF |
| 11649 | cat confdefs.h >>conftest.$ac_ext |
| 11650 | cat >>conftest.$ac_ext <<_ACEOF |
| 11651 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11652 | #include <stdio.h> |
| 11653 | #include <time.h> |
| 11654 | main() |
| 11655 | { |
| 11656 | FILE *f=fopen("conftestval", "w"); |
| 11657 | if (!f) exit(1); |
| 11658 | fprintf(f, "%d\n", sizeof(time_t)); |
| 11659 | exit(0); |
| 11660 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11661 | _ACEOF |
| 11662 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11663 | if { (ac_try="$ac_link" |
| 11664 | case "(($ac_try" in |
| 11665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11666 | *) ac_try_echo=$ac_try;; |
| 11667 | esac |
| 11668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11669 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11670 | ac_status=$? |
| 11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11672 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11673 | { (case "(($ac_try" in |
| 11674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11675 | *) ac_try_echo=$ac_try;; |
| 11676 | esac |
| 11677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11678 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11679 | ac_status=$? |
| 11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11681 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11682 | ac_cv_sizeof_time_t=`cat conftestval` |
| 11683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11684 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11685 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11688 | ( exit $ac_status ) |
| 11689 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11690 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11691 | 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] | 11692 | fi |
| 11693 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11694 | |
| 11695 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11696 | fi |
| 11697 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11698 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 11699 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11700 | |
| 11701 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11702 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11703 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11704 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11705 | |
| 11706 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11707 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 11708 | ac_save_cc="$CC" |
| 11709 | if test "$ac_cv_kpthread" = "yes" |
| 11710 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11711 | elif test "$ac_cv_kthread" = "yes" |
| 11712 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11713 | elif test "$ac_cv_pthread" = "yes" |
| 11714 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 11715 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11716 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 11717 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11718 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11719 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11720 | /* confdefs.h. */ |
| 11721 | _ACEOF |
| 11722 | cat confdefs.h >>conftest.$ac_ext |
| 11723 | cat >>conftest.$ac_ext <<_ACEOF |
| 11724 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11725 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11726 | int |
| 11727 | main () |
| 11728 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 11729 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11730 | ; |
| 11731 | return 0; |
| 11732 | } |
| 11733 | _ACEOF |
| 11734 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11735 | if { (ac_try="$ac_compile" |
| 11736 | case "(($ac_try" in |
| 11737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11738 | *) ac_try_echo=$ac_try;; |
| 11739 | esac |
| 11740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11741 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11742 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11744 | rm -f conftest.er1 |
| 11745 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11747 | (exit $ac_status); } && { |
| 11748 | test -z "$ac_c_werror_flag" || |
| 11749 | test ! -s conftest.err |
| 11750 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11751 | have_pthread_t=yes |
| 11752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11753 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11755 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11756 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11757 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11758 | |
| 11759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11760 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 11761 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11762 | if test "$have_pthread_t" = yes ; then |
| 11763 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11764 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 11765 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11766 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 11767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11768 | else |
| 11769 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11770 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11771 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11772 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11773 | /* confdefs.h. */ |
| 11774 | _ACEOF |
| 11775 | cat confdefs.h >>conftest.$ac_ext |
| 11776 | cat >>conftest.$ac_ext <<_ACEOF |
| 11777 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11778 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11779 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11780 | main() |
| 11781 | { |
| 11782 | FILE *f=fopen("conftestval", "w"); |
| 11783 | if (!f) exit(1); |
| 11784 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 11785 | exit(0); |
| 11786 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11787 | _ACEOF |
| 11788 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11789 | if { (ac_try="$ac_link" |
| 11790 | case "(($ac_try" in |
| 11791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11792 | *) ac_try_echo=$ac_try;; |
| 11793 | esac |
| 11794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11795 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11796 | ac_status=$? |
| 11797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11798 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11799 | { (case "(($ac_try" in |
| 11800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11801 | *) ac_try_echo=$ac_try;; |
| 11802 | esac |
| 11803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11804 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11805 | ac_status=$? |
| 11806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11807 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11808 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 11809 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11810 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11811 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11814 | ( exit $ac_status ) |
| 11815 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11816 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11817 | 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] | 11818 | fi |
| 11819 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11820 | |
| 11821 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11822 | fi |
| 11823 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11824 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 11825 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11826 | |
| 11827 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11828 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11829 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11830 | |
| 11831 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 11832 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11833 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11834 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 11835 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; } |
| 11836 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11837 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11838 | enableval=$enable_toolbox_glue; |
| 11839 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11840 | |
| 11841 | |
| 11842 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11843 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11844 | case $ac_sys_system/$ac_sys_release in |
| 11845 | Darwin/*) |
| 11846 | enable_toolbox_glue="yes";; |
| 11847 | *) |
| 11848 | enable_toolbox_glue="no";; |
| 11849 | esac |
| 11850 | fi |
| 11851 | case "$enable_toolbox_glue" in |
| 11852 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11853 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 11854 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11855 | |
| 11856 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11857 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11859 | |
| 11860 | ;; |
| 11861 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11862 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 11863 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11864 | ;; |
| 11865 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11866 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 11867 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11868 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11869 | |
| 11870 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 11871 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 11872 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 11873 | ;; |
| 11874 | Darwin/*) |
| 11875 | OTHER_LIBTOOL_OPT="" |
| 11876 | ;; |
| 11877 | esac |
| 11878 | |
| 11879 | |
| 11880 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 11881 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 11882 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 11883 | if test "${enable_universalsdk}"; then |
| 11884 | : |
| 11885 | else |
| 11886 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 11887 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 11888 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 11889 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 11890 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 11891 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 11892 | if test ${gcc_version} '<' 4.0 |
| 11893 | then |
| 11894 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 11895 | else |
| 11896 | LIBTOOL_CRUFT="" |
| 11897 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 11898 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 11899 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11900 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11901 | esac |
| 11902 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11903 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 11904 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11905 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11906 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11907 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11908 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11909 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11911 | cat >>confdefs.h <<\_ACEOF |
| 11912 | #define WITH_NEXT_FRAMEWORK 1 |
| 11913 | _ACEOF |
| 11914 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11915 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11916 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11917 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11918 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11919 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11920 | fi |
| 11921 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11922 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 11923 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11924 | case $ac_sys_system/$ac_sys_release in |
| 11925 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11927 | cat >>confdefs.h <<\_ACEOF |
| 11928 | #define WITH_DYLD 1 |
| 11929 | _ACEOF |
| 11930 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11931 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 11932 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11933 | ;; |
| 11934 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11935 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11936 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11937 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11938 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11939 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11940 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11941 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11942 | |
| 11943 | |
| 11944 | |
| 11945 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11946 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 11947 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11948 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 11949 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11950 | if test -z "$SO" |
| 11951 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11952 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 11953 | hp*|HP*) |
| 11954 | case `uname -m` in |
| 11955 | ia64) SO=.so;; |
| 11956 | *) SO=.sl;; |
| 11957 | esac |
| 11958 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 11959 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11960 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11961 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 11962 | else |
| 11963 | # this might also be a termcap variable, see #610332 |
| 11964 | echo |
| 11965 | echo '=====================================================================' |
| 11966 | echo '+ +' |
| 11967 | echo '+ WARNING: You have set SO in your environment. +' |
| 11968 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 11969 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 11970 | echo '+ +' |
| 11971 | echo '=====================================================================' |
| 11972 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11973 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11974 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 11975 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 11976 | |
| 11977 | cat >>confdefs.h <<_ACEOF |
| 11978 | #define SHLIB_EXT "$SO" |
| 11979 | _ACEOF |
| 11980 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11981 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 11982 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11983 | # (Shared libraries in this instance are shared modules to be loaded into |
| 11984 | # Python, as opposed to building Python itself as a shared library.) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11985 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 11986 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11987 | if test -z "$LDSHARED" |
| 11988 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11989 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11990 | AIX*) |
| 11991 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 11992 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11993 | ;; |
| 11994 | BeOS*) |
| 11995 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 11996 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11997 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 11998 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 11999 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12000 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 12001 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 12002 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 12003 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 12004 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12005 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12006 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 12007 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12008 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 12009 | if test "$enable_framework" ; then |
| 12010 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12011 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 12012 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12013 | else |
| 12014 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 12015 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12016 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12017 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12018 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 12019 | if test "$enable_framework" ; then |
| 12020 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12021 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 12022 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12023 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 12024 | # No framework, use the Python app as bundle-loader |
| 12025 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 12026 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12027 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12028 | Darwin/*) |
| 12029 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 12030 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 12031 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 12032 | if test ${cur_target} '>' 10.2; then |
| 12033 | cur_target=10.3 |
| 12034 | fi |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 12035 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 12036 | |
| 12037 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 12038 | # environment with a value that is the same as what we'll use |
| 12039 | # in the Makefile to ensure that we'll get the same compiler |
| 12040 | # environment during configure and build time. |
| 12041 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 12042 | export MACOSX_DEPLOYMENT_TARGET |
| 12043 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 12044 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 12045 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12046 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 12047 | if test "${enable_universalsdk}"; then |
| 12048 | LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 12049 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12050 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 12051 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12052 | else |
| 12053 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 12054 | if test "$enable_framework" ; then |
| 12055 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12056 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 12057 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12058 | else |
| 12059 | # No framework, use the Python app as bundle-loader |
| 12060 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 12061 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 12062 | fi |
| 12063 | fi |
| 12064 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 12065 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 12066 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 12067 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 12068 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 12069 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 12070 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 12071 | else |
| 12072 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 12073 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 12074 | OpenBSD*) |
| 12075 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 12076 | then |
| 12077 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 12078 | else |
| 12079 | case `uname -r` in |
| 12080 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 12081 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 12082 | ;; |
| 12083 | *) |
| 12084 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 12085 | ;; |
| 12086 | esac |
| 12087 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12088 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 12089 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12090 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 12091 | then LDSHARED='$(CC) -shared' |
| 12092 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12093 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 12094 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12095 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 12096 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12097 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12098 | *) LDSHARED="ld";; |
| 12099 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12100 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12101 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 12102 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 12103 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12104 | # 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] | 12105 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12106 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 12107 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12108 | if test -z "$CCSHARED" |
| 12109 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 12110 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 12111 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 12112 | then CCSHARED="-fPIC"; |
| 12113 | elif test `uname -p` = sparc; |
| 12114 | then CCSHARED="-xcode=pic32"; |
| 12115 | else CCSHARED="-Kpic"; |
| 12116 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 12117 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 12118 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 12119 | else CCSHARED="+z"; |
| 12120 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12121 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 12122 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12123 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 12124 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12125 | if test "$GCC" = "yes" |
| 12126 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12127 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12128 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 12129 | SCO_SV*) |
| 12130 | if test "$GCC" = "yes" |
| 12131 | then CCSHARED="-fPIC" |
| 12132 | else CCSHARED="-Kpic -belf" |
| 12133 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12134 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 12135 | IRIX*/6*) case $CC in |
| 12136 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 12137 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 12138 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12139 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12140 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12141 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12142 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 12143 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12144 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12145 | # the python executable -- this is only needed for a few systems |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12146 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 12147 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12148 | if test -z "$LINKFORSHARED" |
| 12149 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 12150 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 12151 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 12152 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12153 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 12154 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 12155 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12156 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12157 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12158 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 12159 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 12160 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12161 | # not used by the core itself but which needs to be in the core so |
| 12162 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 12163 | # -prebind is no longer used, because it actually seems to give a |
| 12164 | # slowdown in stead of a speedup, maybe due to the large number of |
| 12165 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 12166 | |
| 12167 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12168 | if test "$enable_framework" |
| 12169 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12170 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12171 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 12172 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 12173 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 12174 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 12175 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12176 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 12177 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 12178 | then |
| 12179 | LINKFORSHARED="-Wl,--export-dynamic" |
| 12180 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 12181 | SunOS/5*) case $CC in |
| 12182 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 12183 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 12184 | then |
| 12185 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 12186 | fi;; |
| 12187 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 12188 | CYGWIN*) |
| 12189 | if test $enable_shared = "no" |
| 12190 | then |
| 12191 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 12192 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12193 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12194 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12195 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 12196 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12197 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12198 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12199 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 12200 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 12201 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 12202 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 12203 | case $ac_sys_system in |
| 12204 | CYGWIN*) |
| 12205 | # Cygwin needs CCSHARED when building extension DLLs |
| 12206 | # but not when building the interpreter DLL. |
| 12207 | CFLAGSFORSHARED='';; |
| 12208 | *) |
| 12209 | CFLAGSFORSHARED='$(CCSHARED)' |
| 12210 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 12211 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12212 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 12213 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 12214 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12215 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 12216 | # library (with --enable-shared). |
| 12217 | # 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] | 12218 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 12219 | # if it is not required, since it creates a dependency of the shared library |
| 12220 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 12221 | # don't need to link LIBS explicitly. The default should be only changed |
| 12222 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12223 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12224 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 12225 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12226 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12227 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 12228 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12229 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12230 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 12231 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12232 | |
| 12233 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12234 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12235 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12236 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 12237 | 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] | 12238 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 12239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12240 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12241 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12242 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12243 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12244 | /* confdefs.h. */ |
| 12245 | _ACEOF |
| 12246 | cat confdefs.h >>conftest.$ac_ext |
| 12247 | cat >>conftest.$ac_ext <<_ACEOF |
| 12248 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12249 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12250 | /* Override any GCC internal prototype to avoid an error. |
| 12251 | Use char because int might match the return type of a GCC |
| 12252 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12253 | #ifdef __cplusplus |
| 12254 | extern "C" |
| 12255 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12256 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12257 | int |
| 12258 | main () |
| 12259 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12260 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12261 | ; |
| 12262 | return 0; |
| 12263 | } |
| 12264 | _ACEOF |
| 12265 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12266 | if { (ac_try="$ac_link" |
| 12267 | case "(($ac_try" in |
| 12268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12269 | *) ac_try_echo=$ac_try;; |
| 12270 | esac |
| 12271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12272 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12273 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12275 | rm -f conftest.er1 |
| 12276 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12278 | (exit $ac_status); } && { |
| 12279 | test -z "$ac_c_werror_flag" || |
| 12280 | test ! -s conftest.err |
| 12281 | } && test -s conftest$ac_exeext && |
| 12282 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12283 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12285 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12287 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12288 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12289 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12290 | |
| 12291 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12292 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12293 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12294 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12295 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 12296 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12297 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 12298 | cat >>confdefs.h <<_ACEOF |
| 12299 | #define HAVE_LIBDL 1 |
| 12300 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12301 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12302 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12303 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12304 | fi |
| 12305 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12306 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12307 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 12308 | 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] | 12309 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 12310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12311 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12312 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12313 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12314 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12315 | /* confdefs.h. */ |
| 12316 | _ACEOF |
| 12317 | cat confdefs.h >>conftest.$ac_ext |
| 12318 | cat >>conftest.$ac_ext <<_ACEOF |
| 12319 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12320 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12321 | /* Override any GCC internal prototype to avoid an error. |
| 12322 | Use char because int might match the return type of a GCC |
| 12323 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12324 | #ifdef __cplusplus |
| 12325 | extern "C" |
| 12326 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12327 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12328 | int |
| 12329 | main () |
| 12330 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12331 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12332 | ; |
| 12333 | return 0; |
| 12334 | } |
| 12335 | _ACEOF |
| 12336 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12337 | if { (ac_try="$ac_link" |
| 12338 | case "(($ac_try" in |
| 12339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12340 | *) ac_try_echo=$ac_try;; |
| 12341 | esac |
| 12342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12343 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12344 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12346 | rm -f conftest.er1 |
| 12347 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12349 | (exit $ac_status); } && { |
| 12350 | test -z "$ac_c_werror_flag" || |
| 12351 | test ! -s conftest.err |
| 12352 | } && test -s conftest$ac_exeext && |
| 12353 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12354 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12356 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12358 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12359 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12360 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12361 | |
| 12362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12363 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12364 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12365 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12366 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 12367 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12368 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 12369 | cat >>confdefs.h <<_ACEOF |
| 12370 | #define HAVE_LIBDLD 1 |
| 12371 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12372 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12373 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12374 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12375 | fi |
| 12376 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12377 | |
| 12378 | # only check for sem_ini if thread support is requested |
| 12379 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12380 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 12381 | 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] | 12382 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 12384 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12385 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12386 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12387 | /* confdefs.h. */ |
| 12388 | _ACEOF |
| 12389 | cat confdefs.h >>conftest.$ac_ext |
| 12390 | cat >>conftest.$ac_ext <<_ACEOF |
| 12391 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12392 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12393 | /* Override any GCC internal prototype to avoid an error. |
| 12394 | Use char because int might match the return type of a GCC |
| 12395 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12396 | #ifdef __cplusplus |
| 12397 | extern "C" |
| 12398 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12399 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12400 | int |
| 12401 | main () |
| 12402 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12403 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12404 | ; |
| 12405 | return 0; |
| 12406 | } |
| 12407 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12408 | for ac_lib in '' pthread rt posix4; do |
| 12409 | if test -z "$ac_lib"; then |
| 12410 | ac_res="none required" |
| 12411 | else |
| 12412 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 12413 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12414 | fi |
| 12415 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12416 | if { (ac_try="$ac_link" |
| 12417 | case "(($ac_try" in |
| 12418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12419 | *) ac_try_echo=$ac_try;; |
| 12420 | esac |
| 12421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12422 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 12423 | ac_status=$? |
| 12424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12425 | rm -f conftest.er1 |
| 12426 | cat conftest.err >&5 |
| 12427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12428 | (exit $ac_status); } && { |
| 12429 | test -z "$ac_c_werror_flag" || |
| 12430 | test ! -s conftest.err |
| 12431 | } && test -s conftest$ac_exeext && |
| 12432 | $as_test_x conftest$ac_exeext; then |
| 12433 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 12434 | else |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 12435 | echo "$as_me: failed program was:" >&5 |
| 12436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12437 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12438 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 12439 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12440 | |
| 12441 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12442 | conftest$ac_exeext |
| 12443 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 12444 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 12445 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12446 | done |
| 12447 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 12448 | : |
| 12449 | else |
| 12450 | ac_cv_search_sem_init=no |
| 12451 | fi |
| 12452 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12453 | LIBS=$ac_func_search_save_LIBS |
| 12454 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12455 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 12456 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
| 12457 | ac_res=$ac_cv_search_sem_init |
| 12458 | if test "$ac_res" != no; then |
| 12459 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 12460 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 12461 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 12462 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12463 | # posix4 on Solaris 2.6 |
| 12464 | # pthread (first!) on Linux |
| 12465 | fi |
| 12466 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12467 | # check if we need libintl for locale functions |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12468 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 12469 | 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] | 12470 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 12471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12472 | else |
| 12473 | ac_check_lib_save_LIBS=$LIBS |
| 12474 | LIBS="-lintl $LIBS" |
| 12475 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12476 | /* confdefs.h. */ |
| 12477 | _ACEOF |
| 12478 | cat confdefs.h >>conftest.$ac_ext |
| 12479 | cat >>conftest.$ac_ext <<_ACEOF |
| 12480 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12481 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12482 | /* Override any GCC internal prototype to avoid an error. |
| 12483 | Use char because int might match the return type of a GCC |
| 12484 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12485 | #ifdef __cplusplus |
| 12486 | extern "C" |
| 12487 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12488 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12489 | int |
| 12490 | main () |
| 12491 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12492 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12493 | ; |
| 12494 | return 0; |
| 12495 | } |
| 12496 | _ACEOF |
| 12497 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12498 | if { (ac_try="$ac_link" |
| 12499 | case "(($ac_try" in |
| 12500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12501 | *) ac_try_echo=$ac_try;; |
| 12502 | esac |
| 12503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12504 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12505 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12507 | rm -f conftest.er1 |
| 12508 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12510 | (exit $ac_status); } && { |
| 12511 | test -z "$ac_c_werror_flag" || |
| 12512 | test ! -s conftest.err |
| 12513 | } && test -s conftest$ac_exeext && |
| 12514 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12515 | ac_cv_lib_intl_textdomain=yes |
| 12516 | else |
| 12517 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12519 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12520 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12521 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12522 | |
| 12523 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12524 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12525 | LIBS=$ac_check_lib_save_LIBS |
| 12526 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12527 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 12528 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12529 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 12530 | |
| 12531 | cat >>confdefs.h <<\_ACEOF |
| 12532 | #define WITH_LIBINTL 1 |
| 12533 | _ACEOF |
| 12534 | |
| 12535 | fi |
| 12536 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12537 | |
| 12538 | # checks for system dependent C++ extensions support |
| 12539 | case "$ac_sys_system" in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12540 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 12541 | 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] | 12542 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12543 | /* confdefs.h. */ |
| 12544 | _ACEOF |
| 12545 | cat confdefs.h >>conftest.$ac_ext |
| 12546 | cat >>conftest.$ac_ext <<_ACEOF |
| 12547 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12548 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12549 | int |
| 12550 | main () |
| 12551 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12552 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12553 | ; |
| 12554 | return 0; |
| 12555 | } |
| 12556 | _ACEOF |
| 12557 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12558 | if { (ac_try="$ac_link" |
| 12559 | case "(($ac_try" in |
| 12560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12561 | *) ac_try_echo=$ac_try;; |
| 12562 | esac |
| 12563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12564 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12565 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12567 | rm -f conftest.er1 |
| 12568 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12570 | (exit $ac_status); } && { |
| 12571 | test -z "$ac_c_werror_flag" || |
| 12572 | test ! -s conftest.err |
| 12573 | } && test -s conftest$ac_exeext && |
| 12574 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12576 | cat >>confdefs.h <<\_ACEOF |
| 12577 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 12578 | _ACEOF |
| 12579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12580 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12581 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12583 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12585 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12586 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12587 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12588 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12589 | |
| 12590 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12591 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12592 | *) ;; |
| 12593 | esac |
| 12594 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 12595 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12596 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12597 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 12598 | 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] | 12599 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 12600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12602 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12603 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12604 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12605 | /* confdefs.h. */ |
| 12606 | _ACEOF |
| 12607 | cat confdefs.h >>conftest.$ac_ext |
| 12608 | cat >>conftest.$ac_ext <<_ACEOF |
| 12609 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12610 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12611 | /* Override any GCC internal prototype to avoid an error. |
| 12612 | Use char because int might match the return type of a GCC |
| 12613 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12614 | #ifdef __cplusplus |
| 12615 | extern "C" |
| 12616 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12617 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12618 | int |
| 12619 | main () |
| 12620 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12621 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12622 | ; |
| 12623 | return 0; |
| 12624 | } |
| 12625 | _ACEOF |
| 12626 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12627 | if { (ac_try="$ac_link" |
| 12628 | case "(($ac_try" in |
| 12629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12630 | *) ac_try_echo=$ac_try;; |
| 12631 | esac |
| 12632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12633 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12634 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12636 | rm -f conftest.er1 |
| 12637 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12639 | (exit $ac_status); } && { |
| 12640 | test -z "$ac_c_werror_flag" || |
| 12641 | test ! -s conftest.err |
| 12642 | } && test -s conftest$ac_exeext && |
| 12643 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12644 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12645 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12646 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12648 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12649 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12650 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12651 | |
| 12652 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12653 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12654 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12655 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12656 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 12657 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12658 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12659 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12660 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 12661 | # SVR4 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12662 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 12663 | 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] | 12664 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 12665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12666 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12667 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12668 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12669 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12670 | /* confdefs.h. */ |
| 12671 | _ACEOF |
| 12672 | cat confdefs.h >>conftest.$ac_ext |
| 12673 | cat >>conftest.$ac_ext <<_ACEOF |
| 12674 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12675 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12676 | /* Override any GCC internal prototype to avoid an error. |
| 12677 | Use char because int might match the return type of a GCC |
| 12678 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12679 | #ifdef __cplusplus |
| 12680 | extern "C" |
| 12681 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12682 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12683 | int |
| 12684 | main () |
| 12685 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12686 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12687 | ; |
| 12688 | return 0; |
| 12689 | } |
| 12690 | _ACEOF |
| 12691 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12692 | if { (ac_try="$ac_link" |
| 12693 | case "(($ac_try" in |
| 12694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12695 | *) ac_try_echo=$ac_try;; |
| 12696 | esac |
| 12697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12698 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12699 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12701 | rm -f conftest.er1 |
| 12702 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12704 | (exit $ac_status); } && { |
| 12705 | test -z "$ac_c_werror_flag" || |
| 12706 | test ! -s conftest.err |
| 12707 | } && test -s conftest$ac_exeext && |
| 12708 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12709 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12710 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12711 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12713 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12714 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12715 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12716 | |
| 12717 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12718 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12719 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12720 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12721 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 12722 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12723 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12724 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12725 | fi |
| 12726 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 12727 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 12728 | case "$ac_sys_system" in |
| 12729 | BeOS*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12730 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 12731 | 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] | 12732 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 12733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12735 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12736 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12737 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12738 | /* confdefs.h. */ |
| 12739 | _ACEOF |
| 12740 | cat confdefs.h >>conftest.$ac_ext |
| 12741 | cat >>conftest.$ac_ext <<_ACEOF |
| 12742 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12743 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12744 | /* Override any GCC internal prototype to avoid an error. |
| 12745 | Use char because int might match the return type of a GCC |
| 12746 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12747 | #ifdef __cplusplus |
| 12748 | extern "C" |
| 12749 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12750 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12751 | int |
| 12752 | main () |
| 12753 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12754 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12755 | ; |
| 12756 | return 0; |
| 12757 | } |
| 12758 | _ACEOF |
| 12759 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12760 | if { (ac_try="$ac_link" |
| 12761 | case "(($ac_try" in |
| 12762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12763 | *) ac_try_echo=$ac_try;; |
| 12764 | esac |
| 12765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12766 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12767 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12769 | rm -f conftest.er1 |
| 12770 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12772 | (exit $ac_status); } && { |
| 12773 | test -z "$ac_c_werror_flag" || |
| 12774 | test ! -s conftest.err |
| 12775 | } && test -s conftest$ac_exeext && |
| 12776 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12777 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12778 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12779 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12781 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12782 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12783 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12784 | |
| 12785 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12786 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12787 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12788 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12789 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 12790 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12791 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12792 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12793 | fi |
| 12794 | # BeOS |
| 12795 | ;; |
| 12796 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 12797 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12798 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 12799 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12801 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 12802 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12803 | withval=$with_libs; |
| 12804 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 12805 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 12806 | LIBS="$withval $LIBS" |
| 12807 | |
| 12808 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12809 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12810 | echo "${ECHO_T}no" >&6; } |
| 12811 | fi |
| 12812 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12813 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 12814 | # Check for use of the system libffi library |
Matthias Klose | 9afb985 | 2007-10-24 20:00:44 +0000 | [diff] [blame] | 12815 | if test "${ac_cv_header_ffi_h+set}" = set; then |
| 12816 | { echo "$as_me:$LINENO: checking for ffi.h" >&5 |
| 12817 | echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; } |
| 12818 | if test "${ac_cv_header_ffi_h+set}" = set; then |
| 12819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12820 | fi |
| 12821 | { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5 |
| 12822 | echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; } |
| 12823 | else |
| 12824 | # Is the header compilable? |
| 12825 | { echo "$as_me:$LINENO: checking ffi.h usability" >&5 |
| 12826 | echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; } |
| 12827 | cat >conftest.$ac_ext <<_ACEOF |
| 12828 | /* confdefs.h. */ |
| 12829 | _ACEOF |
| 12830 | cat confdefs.h >>conftest.$ac_ext |
| 12831 | cat >>conftest.$ac_ext <<_ACEOF |
| 12832 | /* end confdefs.h. */ |
| 12833 | $ac_includes_default |
| 12834 | #include <ffi.h> |
| 12835 | _ACEOF |
| 12836 | rm -f conftest.$ac_objext |
| 12837 | if { (ac_try="$ac_compile" |
| 12838 | case "(($ac_try" in |
| 12839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12840 | *) ac_try_echo=$ac_try;; |
| 12841 | esac |
| 12842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12843 | (eval "$ac_compile") 2>conftest.er1 |
| 12844 | ac_status=$? |
| 12845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12846 | rm -f conftest.er1 |
| 12847 | cat conftest.err >&5 |
| 12848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12849 | (exit $ac_status); } && { |
| 12850 | test -z "$ac_c_werror_flag" || |
| 12851 | test ! -s conftest.err |
| 12852 | } && test -s conftest.$ac_objext; then |
| 12853 | ac_header_compiler=yes |
| 12854 | else |
| 12855 | echo "$as_me: failed program was:" >&5 |
| 12856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12857 | |
| 12858 | ac_header_compiler=no |
| 12859 | fi |
| 12860 | |
| 12861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12862 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12863 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12864 | |
| 12865 | # Is the header present? |
| 12866 | { echo "$as_me:$LINENO: checking ffi.h presence" >&5 |
| 12867 | echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; } |
| 12868 | cat >conftest.$ac_ext <<_ACEOF |
| 12869 | /* confdefs.h. */ |
| 12870 | _ACEOF |
| 12871 | cat confdefs.h >>conftest.$ac_ext |
| 12872 | cat >>conftest.$ac_ext <<_ACEOF |
| 12873 | /* end confdefs.h. */ |
| 12874 | #include <ffi.h> |
| 12875 | _ACEOF |
| 12876 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12877 | case "(($ac_try" in |
| 12878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12879 | *) ac_try_echo=$ac_try;; |
| 12880 | esac |
| 12881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12882 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12883 | ac_status=$? |
| 12884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12885 | rm -f conftest.er1 |
| 12886 | cat conftest.err >&5 |
| 12887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12888 | (exit $ac_status); } >/dev/null && { |
| 12889 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 12890 | test ! -s conftest.err |
| 12891 | }; then |
| 12892 | ac_header_preproc=yes |
| 12893 | else |
| 12894 | echo "$as_me: failed program was:" >&5 |
| 12895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12896 | |
| 12897 | ac_header_preproc=no |
| 12898 | fi |
| 12899 | |
| 12900 | rm -f conftest.err conftest.$ac_ext |
| 12901 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12902 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12903 | |
| 12904 | # So? What about this header? |
| 12905 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12906 | yes:no: ) |
| 12907 | { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12908 | echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12909 | { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5 |
| 12910 | echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;} |
| 12911 | ac_header_preproc=yes |
| 12912 | ;; |
| 12913 | no:yes:* ) |
| 12914 | { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5 |
| 12915 | echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;} |
| 12916 | { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5 |
| 12917 | echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;} |
| 12918 | { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5 |
| 12919 | echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;} |
| 12920 | { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12921 | echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12922 | { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5 |
| 12923 | echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;} |
| 12924 | { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5 |
| 12925 | echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;} |
| 12926 | ( cat <<\_ASBOX |
| 12927 | ## ------------------------------------------------ ## |
| 12928 | ## Report this to http://www.python.org/python-bugs ## |
| 12929 | ## ------------------------------------------------ ## |
| 12930 | _ASBOX |
| 12931 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12932 | ;; |
| 12933 | esac |
| 12934 | { echo "$as_me:$LINENO: checking for ffi.h" >&5 |
| 12935 | echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; } |
| 12936 | if test "${ac_cv_header_ffi_h+set}" = set; then |
| 12937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12938 | else |
| 12939 | ac_cv_header_ffi_h=$ac_header_preproc |
| 12940 | fi |
| 12941 | { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5 |
| 12942 | echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; } |
| 12943 | |
| 12944 | fi |
| 12945 | |
| 12946 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12947 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 12948 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 12949 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12950 | # Check whether --with-system_ffi was given. |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 12951 | if test "${with_system_ffi+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12952 | withval=$with_system_ffi; |
| 12953 | fi |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 12954 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 12955 | |
Matthias Klose | 9afb985 | 2007-10-24 20:00:44 +0000 | [diff] [blame] | 12956 | if test -z "$with_system_ffi" && test "$ac_cv_header_ffi_h" = yes; then |
| 12957 | case "$ac_sys_system/`uname -m`" in |
Thomas Heller | 486b1b0 | 2007-11-02 19:10:24 +0000 | [diff] [blame] | 12958 | Linux/alpha*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";; |
Matthias Klose | 6e183f8 | 2007-10-25 06:37:24 +0000 | [diff] [blame] | 12959 | Linux/arm*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";; |
Thomas Heller | 486b1b0 | 2007-11-02 19:10:24 +0000 | [diff] [blame] | 12960 | Linux/ppc*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";; |
| 12961 | Linux/s390*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";; |
Matthias Klose | 9afb985 | 2007-10-24 20:00:44 +0000 | [diff] [blame] | 12962 | *) with_system_ffi="no" |
| 12963 | esac |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 12964 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12965 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 12966 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 12967 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12968 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12969 | |
| 12970 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12971 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 12972 | 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] | 12973 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12974 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12975 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12976 | withval=$with_signal_module; |
| 12977 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12978 | |
| 12979 | |
| 12980 | if test -z "$with_signal_module" |
| 12981 | then with_signal_module="yes" |
| 12982 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12983 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 12984 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12985 | |
| 12986 | if test "${with_signal_module}" = "yes"; then |
| 12987 | USE_SIGNAL_MODULE="" |
| 12988 | SIGNAL_OBJS="" |
| 12989 | else |
| 12990 | USE_SIGNAL_MODULE="#" |
| 12991 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 12992 | fi |
| 12993 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 12994 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 12995 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12996 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 12997 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12998 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 12999 | 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] | 13000 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13001 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13002 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13003 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13004 | withval=$with_dec_threads; |
| 13005 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 13006 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13007 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13008 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13009 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13010 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13011 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13012 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13013 | echo "${ECHO_T}no" >&6; } |
| 13014 | fi |
| 13015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13016 | |
| 13017 | # Templates for things AC_DEFINEd more than once. |
| 13018 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13019 | |
| 13020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13021 | |
| 13022 | |
| 13023 | |
| 13024 | |
| 13025 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13026 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 13027 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13028 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13029 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13030 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13031 | withval=$with_threads; |
| 13032 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13033 | |
| 13034 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13035 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13036 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13037 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13038 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13039 | withval=$with_thread; with_threads=$with_thread |
| 13040 | fi |
| 13041 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13042 | |
| 13043 | if test -z "$with_threads" |
| 13044 | then with_threads="yes" |
| 13045 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13046 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 13047 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13048 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13049 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13050 | if test "$with_threads" = "no" |
| 13051 | then |
| 13052 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13053 | elif test "$ac_cv_pthread_is_default" = yes |
| 13054 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13055 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13056 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13057 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13058 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13059 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13060 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13061 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13062 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13063 | |
| 13064 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13065 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13066 | elif test "$ac_cv_kpthread" = "yes" |
| 13067 | then |
| 13068 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13069 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 13070 | CXX="$CXX -Kpthread" |
| 13071 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13072 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 13073 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13074 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 13075 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13076 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13077 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13078 | elif test "$ac_cv_kthread" = "yes" |
| 13079 | then |
| 13080 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13081 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 13082 | CXX="$CXX -Kthread" |
| 13083 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13084 | cat >>confdefs.h <<\_ACEOF |
| 13085 | #define WITH_THREAD 1 |
| 13086 | _ACEOF |
| 13087 | |
| 13088 | posix_threads=yes |
| 13089 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13090 | elif test "$ac_cv_pthread" = "yes" |
| 13091 | then |
| 13092 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13093 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 13094 | CXX="$CXX -pthread" |
| 13095 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13096 | cat >>confdefs.h <<\_ACEOF |
| 13097 | #define WITH_THREAD 1 |
| 13098 | _ACEOF |
| 13099 | |
| 13100 | posix_threads=yes |
| 13101 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13102 | else |
| 13103 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 13104 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 13105 | fi |
| 13106 | if test ! -z "$withval" -a -d "$withval" |
| 13107 | then LDFLAGS="$LDFLAGS -L$withval" |
| 13108 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13109 | |
| 13110 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 13111 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 13112 | # (e.g. gnu pth with pthread emulation) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13113 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 13114 | 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] | 13115 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13116 | /* confdefs.h. */ |
| 13117 | _ACEOF |
| 13118 | cat confdefs.h >>conftest.$ac_ext |
| 13119 | cat >>conftest.$ac_ext <<_ACEOF |
| 13120 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13121 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13122 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13123 | #ifdef _POSIX_THREADS |
| 13124 | yes |
| 13125 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13126 | |
| 13127 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13128 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13129 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13130 | unistd_defines_pthreads=yes |
| 13131 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13132 | unistd_defines_pthreads=no |
| 13133 | fi |
| 13134 | rm -f conftest* |
| 13135 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13136 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 13137 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13139 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 13140 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13141 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 13142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13143 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13144 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 13145 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13146 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 13147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13148 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13149 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 13150 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13152 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13153 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 13154 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13155 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13156 | /* confdefs.h. */ |
| 13157 | _ACEOF |
| 13158 | cat confdefs.h >>conftest.$ac_ext |
| 13159 | cat >>conftest.$ac_ext <<_ACEOF |
| 13160 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13161 | $ac_includes_default |
| 13162 | #include <cthreads.h> |
| 13163 | _ACEOF |
| 13164 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13165 | if { (ac_try="$ac_compile" |
| 13166 | case "(($ac_try" in |
| 13167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13168 | *) ac_try_echo=$ac_try;; |
| 13169 | esac |
| 13170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13171 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13172 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13174 | rm -f conftest.er1 |
| 13175 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13177 | (exit $ac_status); } && { |
| 13178 | test -z "$ac_c_werror_flag" || |
| 13179 | test ! -s conftest.err |
| 13180 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13181 | ac_header_compiler=yes |
| 13182 | else |
| 13183 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13185 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13186 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13187 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13188 | |
| 13189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13190 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13191 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13192 | |
| 13193 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13194 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 13195 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13196 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13197 | /* confdefs.h. */ |
| 13198 | _ACEOF |
| 13199 | cat confdefs.h >>conftest.$ac_ext |
| 13200 | cat >>conftest.$ac_ext <<_ACEOF |
| 13201 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13202 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13203 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13204 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13205 | case "(($ac_try" in |
| 13206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13207 | *) ac_try_echo=$ac_try;; |
| 13208 | esac |
| 13209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13210 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13211 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13212 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13213 | rm -f conftest.er1 |
| 13214 | cat conftest.err >&5 |
| 13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13216 | (exit $ac_status); } >/dev/null && { |
| 13217 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13218 | test ! -s conftest.err |
| 13219 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13220 | ac_header_preproc=yes |
| 13221 | else |
| 13222 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13225 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13226 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13228 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13229 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13230 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13231 | |
| 13232 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13233 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13234 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13235 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13236 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13237 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 13238 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 13239 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13240 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13241 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13242 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 13243 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13244 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 13245 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 13246 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 13247 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 13248 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13249 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13250 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 13251 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13252 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 13253 | 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] | 13254 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13255 | ## ------------------------------------------------ ## |
| 13256 | ## Report this to http://www.python.org/python-bugs ## |
| 13257 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13258 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13259 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13260 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13261 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13262 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 13263 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13264 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 13265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13266 | else |
| 13267 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13268 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13269 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 13270 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13271 | |
| 13272 | fi |
| 13273 | if test $ac_cv_header_cthreads_h = yes; then |
| 13274 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13275 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13276 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13278 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13279 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13280 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13282 | |
| 13283 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13284 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13285 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13286 | |
| 13287 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13288 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13289 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13291 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13292 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 13293 | 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] | 13294 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 13295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13296 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13297 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 13298 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13300 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13301 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 13302 | 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] | 13303 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13304 | /* confdefs.h. */ |
| 13305 | _ACEOF |
| 13306 | cat confdefs.h >>conftest.$ac_ext |
| 13307 | cat >>conftest.$ac_ext <<_ACEOF |
| 13308 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13309 | $ac_includes_default |
| 13310 | #include <mach/cthreads.h> |
| 13311 | _ACEOF |
| 13312 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13313 | if { (ac_try="$ac_compile" |
| 13314 | case "(($ac_try" in |
| 13315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13316 | *) ac_try_echo=$ac_try;; |
| 13317 | esac |
| 13318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13319 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13320 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13322 | rm -f conftest.er1 |
| 13323 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13325 | (exit $ac_status); } && { |
| 13326 | test -z "$ac_c_werror_flag" || |
| 13327 | test ! -s conftest.err |
| 13328 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13329 | ac_header_compiler=yes |
| 13330 | else |
| 13331 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13333 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13334 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13335 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13336 | |
| 13337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13338 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13339 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13340 | |
| 13341 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13342 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 13343 | 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] | 13344 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13345 | /* confdefs.h. */ |
| 13346 | _ACEOF |
| 13347 | cat confdefs.h >>conftest.$ac_ext |
| 13348 | cat >>conftest.$ac_ext <<_ACEOF |
| 13349 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13350 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13351 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13352 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13353 | case "(($ac_try" in |
| 13354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13355 | *) ac_try_echo=$ac_try;; |
| 13356 | esac |
| 13357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13358 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13359 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13360 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13361 | rm -f conftest.er1 |
| 13362 | cat conftest.err >&5 |
| 13363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13364 | (exit $ac_status); } >/dev/null && { |
| 13365 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13366 | test ! -s conftest.err |
| 13367 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13368 | ac_header_preproc=yes |
| 13369 | else |
| 13370 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13373 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13374 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13376 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13377 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13378 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13379 | |
| 13380 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13381 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13382 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13383 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13384 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13385 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 13386 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 13387 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13388 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13389 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13390 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 13391 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13392 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 13393 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 13394 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 13395 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 13396 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13397 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13398 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 13399 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13400 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 13401 | 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] | 13402 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13403 | ## ------------------------------------------------ ## |
| 13404 | ## Report this to http://www.python.org/python-bugs ## |
| 13405 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13406 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13407 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13408 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13409 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13410 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 13411 | 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] | 13412 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 13413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13414 | else |
| 13415 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13416 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13417 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 13418 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13419 | |
| 13420 | fi |
| 13421 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 13422 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13423 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13424 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13426 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13427 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13428 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 | |
| 13431 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13432 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13433 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13434 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13435 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13436 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13437 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13438 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 13439 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13440 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13441 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 13442 | if test "${with_pth+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13443 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 13444 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 13445 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13446 | #define WITH_THREAD 1 |
| 13447 | _ACEOF |
| 13448 | |
| 13449 | |
| 13450 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 13451 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13452 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 13453 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 13454 | LIBS="-lpth $LIBS" |
| 13455 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 13456 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13457 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13458 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13459 | |
| 13460 | # Just looking for pthread_create in libpthread is not enough: |
| 13461 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 13462 | # So we really have to include pthread.h, and then link. |
| 13463 | _libs=$LIBS |
| 13464 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13465 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 13466 | 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] | 13467 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13468 | /* confdefs.h. */ |
| 13469 | _ACEOF |
| 13470 | cat confdefs.h >>conftest.$ac_ext |
| 13471 | cat >>conftest.$ac_ext <<_ACEOF |
| 13472 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13473 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 13474 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13475 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13476 | int |
| 13477 | main () |
| 13478 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13479 | |
| 13480 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13481 | ; |
| 13482 | return 0; |
| 13483 | } |
| 13484 | _ACEOF |
| 13485 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13486 | if { (ac_try="$ac_link" |
| 13487 | case "(($ac_try" in |
| 13488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13489 | *) ac_try_echo=$ac_try;; |
| 13490 | esac |
| 13491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13492 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13493 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13495 | rm -f conftest.er1 |
| 13496 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13498 | (exit $ac_status); } && { |
| 13499 | test -z "$ac_c_werror_flag" || |
| 13500 | test ! -s conftest.err |
| 13501 | } && test -s conftest$ac_exeext && |
| 13502 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13503 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13504 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13505 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13506 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 13507 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13508 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 13509 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13510 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13511 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 13512 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13513 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13516 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13517 | LIBS=$_libs |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13518 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 13519 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13520 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 13521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13523 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13524 | /* confdefs.h. */ |
| 13525 | _ACEOF |
| 13526 | cat confdefs.h >>conftest.$ac_ext |
| 13527 | cat >>conftest.$ac_ext <<_ACEOF |
| 13528 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13529 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 13530 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13531 | #define pthread_detach innocuous_pthread_detach |
| 13532 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13533 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13534 | which can conflict with char pthread_detach (); below. |
| 13535 | 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] | 13536 | <limits.h> exists even on freestanding compilers. */ |
| 13537 | |
| 13538 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13539 | # include <limits.h> |
| 13540 | #else |
| 13541 | # include <assert.h> |
| 13542 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13543 | |
| 13544 | #undef pthread_detach |
| 13545 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13546 | /* Override any GCC internal prototype to avoid an error. |
| 13547 | Use char because int might match the return type of a GCC |
| 13548 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13549 | #ifdef __cplusplus |
| 13550 | extern "C" |
| 13551 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13552 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13553 | /* The GNU C library defines this for functions which it implements |
| 13554 | to always fail with ENOSYS. Some functions are actually named |
| 13555 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13556 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13557 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13558 | #endif |
| 13559 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13560 | int |
| 13561 | main () |
| 13562 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13563 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13564 | ; |
| 13565 | return 0; |
| 13566 | } |
| 13567 | _ACEOF |
| 13568 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13569 | if { (ac_try="$ac_link" |
| 13570 | case "(($ac_try" in |
| 13571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13572 | *) ac_try_echo=$ac_try;; |
| 13573 | esac |
| 13574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13575 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13576 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13578 | rm -f conftest.er1 |
| 13579 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13581 | (exit $ac_status); } && { |
| 13582 | test -z "$ac_c_werror_flag" || |
| 13583 | test ! -s conftest.err |
| 13584 | } && test -s conftest$ac_exeext && |
| 13585 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13586 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13587 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13588 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13590 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13591 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13592 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13593 | |
| 13594 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13595 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13596 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13597 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 13598 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13599 | if test $ac_cv_func_pthread_detach = yes; then |
| 13600 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13601 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13602 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13603 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13604 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13605 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13606 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13607 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13608 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13609 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 13610 | 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] | 13611 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 13612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13613 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13614 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 13615 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13616 | else |
| 13617 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13618 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 13619 | 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] | 13620 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13621 | /* confdefs.h. */ |
| 13622 | _ACEOF |
| 13623 | cat confdefs.h >>conftest.$ac_ext |
| 13624 | cat >>conftest.$ac_ext <<_ACEOF |
| 13625 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13626 | $ac_includes_default |
| 13627 | #include <atheos/threads.h> |
| 13628 | _ACEOF |
| 13629 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13630 | if { (ac_try="$ac_compile" |
| 13631 | case "(($ac_try" in |
| 13632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13633 | *) ac_try_echo=$ac_try;; |
| 13634 | esac |
| 13635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13636 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13637 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13639 | rm -f conftest.er1 |
| 13640 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13642 | (exit $ac_status); } && { |
| 13643 | test -z "$ac_c_werror_flag" || |
| 13644 | test ! -s conftest.err |
| 13645 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13646 | ac_header_compiler=yes |
| 13647 | else |
| 13648 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13650 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13651 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13652 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13653 | |
| 13654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13655 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13656 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13657 | |
| 13658 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13659 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 13660 | 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] | 13661 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13662 | /* confdefs.h. */ |
| 13663 | _ACEOF |
| 13664 | cat confdefs.h >>conftest.$ac_ext |
| 13665 | cat >>conftest.$ac_ext <<_ACEOF |
| 13666 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13667 | #include <atheos/threads.h> |
| 13668 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13669 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13670 | case "(($ac_try" in |
| 13671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13672 | *) ac_try_echo=$ac_try;; |
| 13673 | esac |
| 13674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13675 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13676 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13677 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13678 | rm -f conftest.er1 |
| 13679 | cat conftest.err >&5 |
| 13680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13681 | (exit $ac_status); } >/dev/null && { |
| 13682 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13683 | test ! -s conftest.err |
| 13684 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13685 | ac_header_preproc=yes |
| 13686 | else |
| 13687 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13689 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13690 | ac_header_preproc=no |
| 13691 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13692 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13693 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13694 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13695 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13696 | |
| 13697 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13698 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13699 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13700 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13701 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13702 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 13703 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 13704 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13705 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13706 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13707 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 13708 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13709 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 13710 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 13711 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 13712 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 13713 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13714 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13715 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 13716 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13717 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 13718 | 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] | 13719 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13720 | ## ------------------------------------------------ ## |
| 13721 | ## Report this to http://www.python.org/python-bugs ## |
| 13722 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13723 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13724 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13725 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13726 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13727 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 13728 | 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] | 13729 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 13730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13731 | else |
| 13732 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 13733 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13734 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 13735 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13736 | |
| 13737 | fi |
| 13738 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 13739 | cat >>confdefs.h <<\_ACEOF |
| 13740 | #define WITH_THREAD 1 |
| 13741 | _ACEOF |
| 13742 | |
| 13743 | |
| 13744 | cat >>confdefs.h <<\_ACEOF |
| 13745 | #define ATHEOS_THREADS 1 |
| 13746 | _ACEOF |
| 13747 | |
| 13748 | THREADOBJ="Python/thread.o" |
| 13749 | else |
| 13750 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13751 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13752 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 13753 | 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] | 13754 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 13755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13756 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13757 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 13758 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13760 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13761 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 13762 | 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] | 13763 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13764 | /* confdefs.h. */ |
| 13765 | _ACEOF |
| 13766 | cat confdefs.h >>conftest.$ac_ext |
| 13767 | cat >>conftest.$ac_ext <<_ACEOF |
| 13768 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13769 | $ac_includes_default |
| 13770 | #include <kernel/OS.h> |
| 13771 | _ACEOF |
| 13772 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13773 | if { (ac_try="$ac_compile" |
| 13774 | case "(($ac_try" in |
| 13775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13776 | *) ac_try_echo=$ac_try;; |
| 13777 | esac |
| 13778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13779 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13780 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13782 | rm -f conftest.er1 |
| 13783 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13785 | (exit $ac_status); } && { |
| 13786 | test -z "$ac_c_werror_flag" || |
| 13787 | test ! -s conftest.err |
| 13788 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13789 | ac_header_compiler=yes |
| 13790 | else |
| 13791 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13793 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13794 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13795 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13796 | |
| 13797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13798 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13799 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13800 | |
| 13801 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13802 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 13803 | 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] | 13804 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13805 | /* confdefs.h. */ |
| 13806 | _ACEOF |
| 13807 | cat confdefs.h >>conftest.$ac_ext |
| 13808 | cat >>conftest.$ac_ext <<_ACEOF |
| 13809 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13810 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13811 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13812 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13813 | case "(($ac_try" in |
| 13814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13815 | *) ac_try_echo=$ac_try;; |
| 13816 | esac |
| 13817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13818 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13819 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13820 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13821 | rm -f conftest.er1 |
| 13822 | cat conftest.err >&5 |
| 13823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13824 | (exit $ac_status); } >/dev/null && { |
| 13825 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13826 | test ! -s conftest.err |
| 13827 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13828 | ac_header_preproc=yes |
| 13829 | else |
| 13830 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13833 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13834 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13836 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13837 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13838 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13840 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13842 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13843 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13844 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13845 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 13846 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 13847 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13848 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13849 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13850 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 13851 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13852 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 13853 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 13854 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 13855 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 13856 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13857 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13858 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 13859 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13860 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 13861 | 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] | 13862 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13863 | ## ------------------------------------------------ ## |
| 13864 | ## Report this to http://www.python.org/python-bugs ## |
| 13865 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13866 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13867 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13868 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13869 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13870 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 13871 | 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] | 13872 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 13873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13874 | else |
| 13875 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 13876 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13877 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 13878 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13879 | |
| 13880 | fi |
| 13881 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 13882 | cat >>confdefs.h <<\_ACEOF |
| 13883 | #define WITH_THREAD 1 |
| 13884 | _ACEOF |
| 13885 | |
| 13886 | |
| 13887 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13888 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13889 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13890 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13891 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13892 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13893 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13894 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 13895 | 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] | 13896 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 13897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13898 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13899 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13900 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13901 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13902 | /* confdefs.h. */ |
| 13903 | _ACEOF |
| 13904 | cat confdefs.h >>conftest.$ac_ext |
| 13905 | cat >>conftest.$ac_ext <<_ACEOF |
| 13906 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13907 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13908 | /* Override any GCC internal prototype to avoid an error. |
| 13909 | Use char because int might match the return type of a GCC |
| 13910 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13911 | #ifdef __cplusplus |
| 13912 | extern "C" |
| 13913 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13914 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13915 | int |
| 13916 | main () |
| 13917 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13918 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13919 | ; |
| 13920 | return 0; |
| 13921 | } |
| 13922 | _ACEOF |
| 13923 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13924 | if { (ac_try="$ac_link" |
| 13925 | case "(($ac_try" in |
| 13926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13927 | *) ac_try_echo=$ac_try;; |
| 13928 | esac |
| 13929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13930 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13931 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13933 | rm -f conftest.er1 |
| 13934 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13936 | (exit $ac_status); } && { |
| 13937 | test -z "$ac_c_werror_flag" || |
| 13938 | test ! -s conftest.err |
| 13939 | } && test -s conftest$ac_exeext && |
| 13940 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13941 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13942 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13943 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13945 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13946 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13947 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13948 | |
| 13949 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13950 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13951 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13952 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13953 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 13954 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13955 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 13956 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13957 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13958 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13959 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13960 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13961 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13962 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13963 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13964 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13965 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 13966 | 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] | 13967 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 13968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13970 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13971 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13972 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13973 | /* confdefs.h. */ |
| 13974 | _ACEOF |
| 13975 | cat confdefs.h >>conftest.$ac_ext |
| 13976 | cat >>conftest.$ac_ext <<_ACEOF |
| 13977 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13978 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13979 | /* Override any GCC internal prototype to avoid an error. |
| 13980 | Use char because int might match the return type of a GCC |
| 13981 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13982 | #ifdef __cplusplus |
| 13983 | extern "C" |
| 13984 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13985 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13986 | int |
| 13987 | main () |
| 13988 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13989 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13990 | ; |
| 13991 | return 0; |
| 13992 | } |
| 13993 | _ACEOF |
| 13994 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13995 | if { (ac_try="$ac_link" |
| 13996 | case "(($ac_try" in |
| 13997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13998 | *) ac_try_echo=$ac_try;; |
| 13999 | esac |
| 14000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14001 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14002 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14004 | rm -f conftest.er1 |
| 14005 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14007 | (exit $ac_status); } && { |
| 14008 | test -z "$ac_c_werror_flag" || |
| 14009 | test ! -s conftest.err |
| 14010 | } && test -s conftest$ac_exeext && |
| 14011 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14012 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14014 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14016 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14017 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14018 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14019 | |
| 14020 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14021 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14022 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14023 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14024 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 14025 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14026 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 14027 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14028 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14029 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14030 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14031 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14032 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14033 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 14034 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 14035 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14036 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 14037 | 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] | 14038 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 14039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14040 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14041 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14042 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14043 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14044 | /* confdefs.h. */ |
| 14045 | _ACEOF |
| 14046 | cat confdefs.h >>conftest.$ac_ext |
| 14047 | cat >>conftest.$ac_ext <<_ACEOF |
| 14048 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14049 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14050 | /* Override any GCC internal prototype to avoid an error. |
| 14051 | Use char because int might match the return type of a GCC |
| 14052 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14053 | #ifdef __cplusplus |
| 14054 | extern "C" |
| 14055 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14056 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14057 | int |
| 14058 | main () |
| 14059 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14060 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14061 | ; |
| 14062 | return 0; |
| 14063 | } |
| 14064 | _ACEOF |
| 14065 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14066 | if { (ac_try="$ac_link" |
| 14067 | case "(($ac_try" in |
| 14068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14069 | *) ac_try_echo=$ac_try;; |
| 14070 | esac |
| 14071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14072 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14073 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14075 | rm -f conftest.er1 |
| 14076 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14078 | (exit $ac_status); } && { |
| 14079 | test -z "$ac_c_werror_flag" || |
| 14080 | test ! -s conftest.err |
| 14081 | } && test -s conftest$ac_exeext && |
| 14082 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14083 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14084 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14085 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14087 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14088 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14089 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14090 | |
| 14091 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14092 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14093 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14094 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14095 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 14096 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14097 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 14098 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14099 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14100 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14101 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14102 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14103 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14104 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14105 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14106 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14107 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 14108 | 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] | 14109 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 14110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14112 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14113 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14114 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14115 | /* confdefs.h. */ |
| 14116 | _ACEOF |
| 14117 | cat confdefs.h >>conftest.$ac_ext |
| 14118 | cat >>conftest.$ac_ext <<_ACEOF |
| 14119 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14120 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14121 | /* Override any GCC internal prototype to avoid an error. |
| 14122 | Use char because int might match the return type of a GCC |
| 14123 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14124 | #ifdef __cplusplus |
| 14125 | extern "C" |
| 14126 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14127 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14128 | int |
| 14129 | main () |
| 14130 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14131 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14132 | ; |
| 14133 | return 0; |
| 14134 | } |
| 14135 | _ACEOF |
| 14136 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14137 | if { (ac_try="$ac_link" |
| 14138 | case "(($ac_try" in |
| 14139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14140 | *) ac_try_echo=$ac_try;; |
| 14141 | esac |
| 14142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14143 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14144 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14146 | rm -f conftest.er1 |
| 14147 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14149 | (exit $ac_status); } && { |
| 14150 | test -z "$ac_c_werror_flag" || |
| 14151 | test ! -s conftest.err |
| 14152 | } && test -s conftest$ac_exeext && |
| 14153 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14154 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14156 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14158 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14159 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14160 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14161 | |
| 14162 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14163 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14164 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14165 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14166 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 14167 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14168 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 14169 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14170 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14171 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14172 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14173 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14174 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14175 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14176 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 14177 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14178 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 14179 | fi |
| 14180 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14181 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14182 | fi |
| 14183 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 14184 | fi |
| 14185 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14186 | fi |
| 14187 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14188 | fi |
| 14189 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 14190 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14191 | fi |
| 14192 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14193 | |
| 14194 | fi |
| 14195 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14196 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14197 | |
| 14198 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14199 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14200 | fi |
| 14201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14202 | fi |
| 14203 | |
| 14204 | |
| 14205 | fi |
| 14206 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14207 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14208 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14209 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 14210 | 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] | 14211 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 14212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14214 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14215 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14216 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14217 | /* confdefs.h. */ |
| 14218 | _ACEOF |
| 14219 | cat confdefs.h >>conftest.$ac_ext |
| 14220 | cat >>conftest.$ac_ext <<_ACEOF |
| 14221 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14222 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14223 | /* Override any GCC internal prototype to avoid an error. |
| 14224 | Use char because int might match the return type of a GCC |
| 14225 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14226 | #ifdef __cplusplus |
| 14227 | extern "C" |
| 14228 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14229 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14230 | int |
| 14231 | main () |
| 14232 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14233 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14234 | ; |
| 14235 | return 0; |
| 14236 | } |
| 14237 | _ACEOF |
| 14238 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14239 | if { (ac_try="$ac_link" |
| 14240 | case "(($ac_try" in |
| 14241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14242 | *) ac_try_echo=$ac_try;; |
| 14243 | esac |
| 14244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14245 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14246 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14248 | rm -f conftest.er1 |
| 14249 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14251 | (exit $ac_status); } && { |
| 14252 | test -z "$ac_c_werror_flag" || |
| 14253 | test ! -s conftest.err |
| 14254 | } && test -s conftest$ac_exeext && |
| 14255 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14256 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14258 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14260 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14261 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14262 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14263 | |
| 14264 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14265 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14266 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14267 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14268 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 14269 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14270 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 14271 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14272 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14273 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14274 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14275 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14276 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14277 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14278 | fi |
| 14279 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14280 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 14281 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14282 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 14283 | 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] | 14284 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 14285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14287 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14288 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14289 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14290 | /* confdefs.h. */ |
| 14291 | _ACEOF |
| 14292 | cat confdefs.h >>conftest.$ac_ext |
| 14293 | cat >>conftest.$ac_ext <<_ACEOF |
| 14294 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14295 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14296 | /* Override any GCC internal prototype to avoid an error. |
| 14297 | Use char because int might match the return type of a GCC |
| 14298 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14299 | #ifdef __cplusplus |
| 14300 | extern "C" |
| 14301 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14302 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14303 | int |
| 14304 | main () |
| 14305 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14306 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14307 | ; |
| 14308 | return 0; |
| 14309 | } |
| 14310 | _ACEOF |
| 14311 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14312 | if { (ac_try="$ac_link" |
| 14313 | case "(($ac_try" in |
| 14314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14315 | *) ac_try_echo=$ac_try;; |
| 14316 | esac |
| 14317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14318 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14319 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14321 | rm -f conftest.er1 |
| 14322 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14324 | (exit $ac_status); } && { |
| 14325 | test -z "$ac_c_werror_flag" || |
| 14326 | test ! -s conftest.err |
| 14327 | } && test -s conftest$ac_exeext && |
| 14328 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14329 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14331 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14333 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14334 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14335 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14336 | |
| 14337 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14338 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14339 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14340 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14341 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 14342 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14343 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 14344 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14345 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14346 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14347 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14348 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14349 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14350 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14351 | fi |
| 14352 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14353 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14354 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14355 | if test "$USE_THREAD_MODULE" != "#" |
| 14356 | then |
| 14357 | # If the above checks didn't disable threads, (at least) OSF1 |
| 14358 | # needs this '-threads' argument during linking. |
| 14359 | case $ac_sys_system in |
| 14360 | OSF1) LDLAST=-threads;; |
| 14361 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 14362 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14363 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14364 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14365 | if test "$posix_threads" = "yes"; then |
| 14366 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14367 | |
| 14368 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14369 | #define _POSIX_THREADS 1 |
| 14370 | _ACEOF |
| 14371 | |
| 14372 | fi |
| 14373 | |
| 14374 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 14375 | case $ac_sys_system/$ac_sys_release in |
| 14376 | SunOS/5.6) |
| 14377 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14378 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 14379 | _ACEOF |
| 14380 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14381 | ;; |
| 14382 | SunOS/5.8) |
| 14383 | cat >>confdefs.h <<\_ACEOF |
| 14384 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 14385 | _ACEOF |
| 14386 | |
| 14387 | ;; |
| 14388 | esac |
| 14389 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14390 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 14391 | 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] | 14392 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 14393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14394 | else |
| 14395 | if test "$cross_compiling" = yes; then |
| 14396 | ac_cv_pthread_system_supported=no |
| 14397 | else |
| 14398 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14399 | /* confdefs.h. */ |
| 14400 | _ACEOF |
| 14401 | cat confdefs.h >>conftest.$ac_ext |
| 14402 | cat >>conftest.$ac_ext <<_ACEOF |
| 14403 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14404 | #include <pthread.h> |
| 14405 | void *foo(void *parm) { |
| 14406 | return NULL; |
| 14407 | } |
| 14408 | main() { |
| 14409 | pthread_attr_t attr; |
| 14410 | pthread_t id; |
| 14411 | if (pthread_attr_init(&attr)) exit(-1); |
| 14412 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 14413 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 14414 | exit(0); |
| 14415 | } |
| 14416 | _ACEOF |
| 14417 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14418 | if { (ac_try="$ac_link" |
| 14419 | case "(($ac_try" in |
| 14420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14421 | *) ac_try_echo=$ac_try;; |
| 14422 | esac |
| 14423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14424 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14425 | ac_status=$? |
| 14426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14427 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14428 | { (case "(($ac_try" in |
| 14429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14430 | *) ac_try_echo=$ac_try;; |
| 14431 | esac |
| 14432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14433 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14434 | ac_status=$? |
| 14435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14436 | (exit $ac_status); }; }; then |
| 14437 | ac_cv_pthread_system_supported=yes |
| 14438 | else |
| 14439 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14440 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14442 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14443 | ( exit $ac_status ) |
| 14444 | ac_cv_pthread_system_supported=no |
| 14445 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14446 | 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] | 14447 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14448 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14449 | |
| 14450 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14451 | fi |
| 14452 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14453 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 14454 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14455 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 14456 | |
| 14457 | cat >>confdefs.h <<\_ACEOF |
| 14458 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 14459 | _ACEOF |
| 14460 | |
| 14461 | fi |
| 14462 | |
| 14463 | for ac_func in pthread_sigmask |
| 14464 | do |
| 14465 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14466 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14467 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14468 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14470 | else |
| 14471 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14472 | /* confdefs.h. */ |
| 14473 | _ACEOF |
| 14474 | cat confdefs.h >>conftest.$ac_ext |
| 14475 | cat >>conftest.$ac_ext <<_ACEOF |
| 14476 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14477 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14478 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14479 | #define $ac_func innocuous_$ac_func |
| 14480 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14481 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14482 | which can conflict with char $ac_func (); below. |
| 14483 | 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] | 14484 | <limits.h> exists even on freestanding compilers. */ |
| 14485 | |
| 14486 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14487 | # include <limits.h> |
| 14488 | #else |
| 14489 | # include <assert.h> |
| 14490 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14491 | |
| 14492 | #undef $ac_func |
| 14493 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14494 | /* Override any GCC internal prototype to avoid an error. |
| 14495 | Use char because int might match the return type of a GCC |
| 14496 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14497 | #ifdef __cplusplus |
| 14498 | extern "C" |
| 14499 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14500 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14501 | /* The GNU C library defines this for functions which it implements |
| 14502 | to always fail with ENOSYS. Some functions are actually named |
| 14503 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14504 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14505 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14506 | #endif |
| 14507 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14508 | int |
| 14509 | main () |
| 14510 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14511 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14512 | ; |
| 14513 | return 0; |
| 14514 | } |
| 14515 | _ACEOF |
| 14516 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14517 | if { (ac_try="$ac_link" |
| 14518 | case "(($ac_try" in |
| 14519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14520 | *) ac_try_echo=$ac_try;; |
| 14521 | esac |
| 14522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14523 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14524 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14526 | rm -f conftest.er1 |
| 14527 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14529 | (exit $ac_status); } && { |
| 14530 | test -z "$ac_c_werror_flag" || |
| 14531 | test ! -s conftest.err |
| 14532 | } && test -s conftest$ac_exeext && |
| 14533 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14534 | eval "$as_ac_var=yes" |
| 14535 | else |
| 14536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14538 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14539 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14540 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14541 | |
| 14542 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14543 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14544 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14545 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14546 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14547 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14548 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14549 | cat >>confdefs.h <<_ACEOF |
| 14550 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14551 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 14552 | case $ac_sys_system in |
| 14553 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14554 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 14555 | cat >>confdefs.h <<\_ACEOF |
| 14556 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 14557 | _ACEOF |
| 14558 | |
| 14559 | ;; |
| 14560 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14561 | fi |
| 14562 | done |
| 14563 | |
| 14564 | fi |
| 14565 | |
| 14566 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14567 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14568 | |
| 14569 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14570 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 14571 | echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; } |
| 14572 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14573 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14574 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14575 | no) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14576 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14577 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14578 | ipv6=no |
| 14579 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14580 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 14581 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14582 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14583 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14584 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14585 | |
| 14586 | ipv6=yes |
| 14587 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14588 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14590 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14591 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14592 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14593 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14594 | ipv6=no |
| 14595 | |
| 14596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14597 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14598 | /* confdefs.h. */ |
| 14599 | _ACEOF |
| 14600 | cat confdefs.h >>conftest.$ac_ext |
| 14601 | cat >>conftest.$ac_ext <<_ACEOF |
| 14602 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14603 | /* AF_INET6 available check */ |
| 14604 | #include <sys/types.h> |
| 14605 | #include <sys/socket.h> |
| 14606 | main() |
| 14607 | { |
| 14608 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 14609 | exit(1); |
| 14610 | else |
| 14611 | exit(0); |
| 14612 | } |
| 14613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14614 | _ACEOF |
| 14615 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14616 | if { (ac_try="$ac_link" |
| 14617 | case "(($ac_try" in |
| 14618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14619 | *) ac_try_echo=$ac_try;; |
| 14620 | esac |
| 14621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14622 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | ac_status=$? |
| 14624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14625 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14626 | { (case "(($ac_try" in |
| 14627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14628 | *) ac_try_echo=$ac_try;; |
| 14629 | esac |
| 14630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14631 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14632 | ac_status=$? |
| 14633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14634 | (exit $ac_status); }; }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14635 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14636 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14637 | ipv6=yes |
| 14638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14639 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14640 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14643 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14644 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14645 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14646 | ipv6=no |
| 14647 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14648 | 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] | 14649 | fi |
| 14650 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14651 | |
| 14652 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14653 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14654 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 14655 | 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] | 14656 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14657 | /* confdefs.h. */ |
| 14658 | _ACEOF |
| 14659 | cat confdefs.h >>conftest.$ac_ext |
| 14660 | cat >>conftest.$ac_ext <<_ACEOF |
| 14661 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14662 | #include <sys/types.h> |
| 14663 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14664 | int |
| 14665 | main () |
| 14666 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14667 | struct sockaddr_in6 x; |
| 14668 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14669 | ; |
| 14670 | return 0; |
| 14671 | } |
| 14672 | _ACEOF |
| 14673 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14674 | if { (ac_try="$ac_compile" |
| 14675 | case "(($ac_try" in |
| 14676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14677 | *) ac_try_echo=$ac_try;; |
| 14678 | esac |
| 14679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14680 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14681 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14683 | rm -f conftest.er1 |
| 14684 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14686 | (exit $ac_status); } && { |
| 14687 | test -z "$ac_c_werror_flag" || |
| 14688 | test ! -s conftest.err |
| 14689 | } && test -s conftest.$ac_objext; then |
| 14690 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14691 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14692 | ipv6=yes |
| 14693 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14694 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14696 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14697 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14698 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14699 | ipv6=no |
| 14700 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14701 | |
| 14702 | 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] | 14703 | fi |
| 14704 | |
| 14705 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14706 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14707 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14708 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14709 | |
| 14710 | fi |
| 14711 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14712 | fi |
| 14713 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14714 | |
| 14715 | ipv6type=unknown |
| 14716 | ipv6lib=none |
| 14717 | ipv6trylibc=no |
| 14718 | |
| 14719 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14720 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 14721 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 14722 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 14723 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14724 | case $i in |
| 14725 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14726 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14727 | /* confdefs.h. */ |
| 14728 | _ACEOF |
| 14729 | cat confdefs.h >>conftest.$ac_ext |
| 14730 | cat >>conftest.$ac_ext <<_ACEOF |
| 14731 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14732 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14733 | #include <netinet/in.h> |
| 14734 | #ifdef IPV6_INRIA_VERSION |
| 14735 | yes |
| 14736 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14737 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14738 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14739 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 14740 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14741 | fi |
| 14742 | rm -f conftest* |
| 14743 | |
| 14744 | ;; |
| 14745 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14746 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14747 | /* confdefs.h. */ |
| 14748 | _ACEOF |
| 14749 | cat confdefs.h >>conftest.$ac_ext |
| 14750 | cat >>conftest.$ac_ext <<_ACEOF |
| 14751 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14752 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14753 | #include <netinet/in.h> |
| 14754 | #ifdef __KAME__ |
| 14755 | yes |
| 14756 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14757 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14758 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14759 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14760 | ipv6type=$i; |
| 14761 | ipv6lib=inet6 |
| 14762 | ipv6libdir=/usr/local/v6/lib |
| 14763 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14764 | fi |
| 14765 | rm -f conftest* |
| 14766 | |
| 14767 | ;; |
| 14768 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14769 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14770 | /* confdefs.h. */ |
| 14771 | _ACEOF |
| 14772 | cat confdefs.h >>conftest.$ac_ext |
| 14773 | cat >>conftest.$ac_ext <<_ACEOF |
| 14774 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14775 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14776 | #include <features.h> |
| 14777 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 14778 | yes |
| 14779 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14780 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14781 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14782 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14783 | ipv6type=$i; |
| 14784 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14785 | fi |
| 14786 | rm -f conftest* |
| 14787 | |
| 14788 | ;; |
| 14789 | linux-inet6) |
| 14790 | if test -d /usr/inet6; then |
| 14791 | ipv6type=$i |
| 14792 | ipv6lib=inet6 |
| 14793 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14794 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14795 | fi |
| 14796 | ;; |
| 14797 | solaris) |
| 14798 | if test -f /etc/netconfig; then |
| 14799 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 14800 | ipv6type=$i |
| 14801 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14802 | fi |
| 14803 | fi |
| 14804 | ;; |
| 14805 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14806 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14807 | /* confdefs.h. */ |
| 14808 | _ACEOF |
| 14809 | cat confdefs.h >>conftest.$ac_ext |
| 14810 | cat >>conftest.$ac_ext <<_ACEOF |
| 14811 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14812 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14813 | #include <sys/param.h> |
| 14814 | #ifdef _TOSHIBA_INET6 |
| 14815 | yes |
| 14816 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14817 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14818 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14819 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14820 | ipv6type=$i; |
| 14821 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 14822 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14823 | fi |
| 14824 | rm -f conftest* |
| 14825 | |
| 14826 | ;; |
| 14827 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14828 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14829 | /* confdefs.h. */ |
| 14830 | _ACEOF |
| 14831 | cat confdefs.h >>conftest.$ac_ext |
| 14832 | cat >>conftest.$ac_ext <<_ACEOF |
| 14833 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14834 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14835 | #include </usr/local/v6/include/sys/v6config.h> |
| 14836 | #ifdef __V6D__ |
| 14837 | yes |
| 14838 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14839 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14841 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14842 | ipv6type=$i; |
| 14843 | ipv6lib=v6; |
| 14844 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14845 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14846 | fi |
| 14847 | rm -f conftest* |
| 14848 | |
| 14849 | ;; |
| 14850 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14851 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14852 | /* confdefs.h. */ |
| 14853 | _ACEOF |
| 14854 | cat confdefs.h >>conftest.$ac_ext |
| 14855 | cat >>conftest.$ac_ext <<_ACEOF |
| 14856 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14857 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14858 | #include <sys/param.h> |
| 14859 | #ifdef _ZETA_MINAMI_INET6 |
| 14860 | yes |
| 14861 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14862 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14863 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14864 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14865 | ipv6type=$i; |
| 14866 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 14867 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14868 | fi |
| 14869 | rm -f conftest* |
| 14870 | |
| 14871 | ;; |
| 14872 | esac |
| 14873 | if test "$ipv6type" != "unknown"; then |
| 14874 | break |
| 14875 | fi |
| 14876 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14877 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 14878 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14879 | fi |
| 14880 | |
| 14881 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 14882 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 14883 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 14884 | echo "using lib$ipv6lib" |
| 14885 | else |
| 14886 | if test $ipv6trylibc = "yes"; then |
| 14887 | echo "using libc" |
| 14888 | else |
| 14889 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 14890 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 14891 | echo 'ipv6 kit and compile beforehand.' |
| 14892 | exit 1 |
| 14893 | fi |
| 14894 | fi |
| 14895 | fi |
| 14896 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14897 | # Check for --with-doc-strings |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14898 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 14899 | 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] | 14900 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14901 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14902 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14903 | withval=$with_doc_strings; |
| 14904 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14905 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14906 | |
| 14907 | if test -z "$with_doc_strings" |
| 14908 | then with_doc_strings="yes" |
| 14909 | fi |
| 14910 | if test "$with_doc_strings" != "no" |
| 14911 | then |
| 14912 | |
| 14913 | cat >>confdefs.h <<\_ACEOF |
| 14914 | #define WITH_DOC_STRINGS 1 |
| 14915 | _ACEOF |
| 14916 | |
| 14917 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14918 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 14919 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14920 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 14921 | # Check for Python-specific malloc support |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14922 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 14923 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 14924 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14925 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 14926 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14927 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 14928 | if test "$withval" != no |
| 14929 | then |
| 14930 | |
| 14931 | cat >>confdefs.h <<\_ACEOF |
| 14932 | #define WITH_TSC 1 |
| 14933 | _ACEOF |
| 14934 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14935 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14936 | echo "${ECHO_T}yes" >&6; } |
| 14937 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 14938 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 14939 | fi |
| 14940 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14941 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14942 | echo "${ECHO_T}no" >&6; } |
| 14943 | fi |
| 14944 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 14945 | |
| 14946 | # Check for Python-specific malloc support |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14947 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 14948 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14949 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14950 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 14951 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14952 | withval=$with_pymalloc; |
| 14953 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14954 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 14955 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 14956 | if test -z "$with_pymalloc" |
| 14957 | then with_pymalloc="yes" |
| 14958 | fi |
| 14959 | if test "$with_pymalloc" != "no" |
| 14960 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14961 | |
| 14962 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 14963 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14964 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 14965 | |
| 14966 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14967 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 14968 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 14969 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14970 | # Check for --with-wctype-functions |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14971 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 14972 | 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] | 14973 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14974 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14975 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14976 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14977 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14978 | then |
| 14979 | |
| 14980 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14981 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14982 | _ACEOF |
| 14983 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14984 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14985 | echo "${ECHO_T}yes" >&6; } |
| 14986 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 14987 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14988 | fi |
| 14989 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14990 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14991 | echo "${ECHO_T}no" >&6; } |
| 14992 | fi |
| 14993 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14994 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14995 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14996 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 14997 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14998 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14999 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 15000 | # 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] | 15001 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15002 | for ac_func in dlopen |
| 15003 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15004 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15005 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15006 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15007 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15010 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15011 | /* confdefs.h. */ |
| 15012 | _ACEOF |
| 15013 | cat confdefs.h >>conftest.$ac_ext |
| 15014 | cat >>conftest.$ac_ext <<_ACEOF |
| 15015 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15016 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15017 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15018 | #define $ac_func innocuous_$ac_func |
| 15019 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15020 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15021 | which can conflict with char $ac_func (); below. |
| 15022 | 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] | 15023 | <limits.h> exists even on freestanding compilers. */ |
| 15024 | |
| 15025 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15026 | # include <limits.h> |
| 15027 | #else |
| 15028 | # include <assert.h> |
| 15029 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15030 | |
| 15031 | #undef $ac_func |
| 15032 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15033 | /* Override any GCC internal prototype to avoid an error. |
| 15034 | Use char because int might match the return type of a GCC |
| 15035 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15036 | #ifdef __cplusplus |
| 15037 | extern "C" |
| 15038 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15039 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15040 | /* The GNU C library defines this for functions which it implements |
| 15041 | to always fail with ENOSYS. Some functions are actually named |
| 15042 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15043 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15044 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15045 | #endif |
| 15046 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15047 | int |
| 15048 | main () |
| 15049 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15050 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15051 | ; |
| 15052 | return 0; |
| 15053 | } |
| 15054 | _ACEOF |
| 15055 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15056 | if { (ac_try="$ac_link" |
| 15057 | case "(($ac_try" in |
| 15058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15059 | *) ac_try_echo=$ac_try;; |
| 15060 | esac |
| 15061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15062 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15063 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15065 | rm -f conftest.er1 |
| 15066 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15068 | (exit $ac_status); } && { |
| 15069 | test -z "$ac_c_werror_flag" || |
| 15070 | test ! -s conftest.err |
| 15071 | } && test -s conftest$ac_exeext && |
| 15072 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15075 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15077 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15078 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15079 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15080 | |
| 15081 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15082 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15083 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15084 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15085 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15086 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15087 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15088 | cat >>confdefs.h <<_ACEOF |
| 15089 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15090 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15091 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15092 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15093 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15094 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15095 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15096 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 15097 | # loading of modules. |
| 15098 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15099 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 15100 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15101 | if test -z "$DYNLOADFILE" |
| 15102 | then |
| 15103 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 15104 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 15105 | if test "$ac_cv_func_dlopen" = yes |
| 15106 | then DYNLOADFILE="dynload_shlib.o" |
| 15107 | else DYNLOADFILE="dynload_aix.o" |
| 15108 | fi |
| 15109 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15110 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 15111 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 15112 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 15113 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15114 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15115 | *) |
| 15116 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 15117 | # out any dynamic loading |
| 15118 | if test "$ac_cv_func_dlopen" = yes |
| 15119 | then DYNLOADFILE="dynload_shlib.o" |
| 15120 | else DYNLOADFILE="dynload_stub.o" |
| 15121 | fi |
| 15122 | ;; |
| 15123 | esac |
| 15124 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15125 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 15126 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15127 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 15128 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | |
| 15130 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15131 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15132 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15133 | |
| 15134 | fi |
| 15135 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 15136 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 15137 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15138 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15139 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 15140 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 15141 | if test -z "$MACHDEP_OBJS" |
| 15142 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 15143 | MACHDEP_OBJS=$extra_machdep_objs |
| 15144 | else |
| 15145 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 15146 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15147 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 15148 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 15149 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15150 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15151 | |
| 15152 | |
| 15153 | |
| 15154 | |
| 15155 | |
| 15156 | |
| 15157 | |
| 15158 | |
| 15159 | |
| 15160 | |
| 15161 | |
| 15162 | |
| 15163 | |
| 15164 | |
| 15165 | |
| 15166 | |
| 15167 | |
| 15168 | |
| 15169 | |
| 15170 | |
| 15171 | |
| 15172 | |
| 15173 | |
| 15174 | |
| 15175 | |
| 15176 | |
| 15177 | |
| 15178 | |
| 15179 | |
| 15180 | |
| 15181 | |
| 15182 | |
| 15183 | |
| 15184 | |
| 15185 | |
| 15186 | |
| 15187 | |
| 15188 | |
| 15189 | |
| 15190 | |
| 15191 | |
| 15192 | |
| 15193 | |
| 15194 | |
| 15195 | |
| 15196 | |
| 15197 | |
| 15198 | |
| 15199 | |
| 15200 | |
| 15201 | |
| 15202 | |
| 15203 | |
| 15204 | |
| 15205 | |
| 15206 | |
| 15207 | |
| 15208 | |
| 15209 | |
| 15210 | |
| 15211 | |
| 15212 | |
| 15213 | |
| 15214 | |
| 15215 | |
| 15216 | |
| 15217 | |
| 15218 | |
| 15219 | |
| 15220 | |
| 15221 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 15222 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 15223 | |
| 15224 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 15225 | |
| 15226 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 15227 | |
| 15228 | |
| 15229 | for ac_func in alarm bind_textdomain_codeset chflags chown clock confstr \ |
| 15230 | ctermid execv fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 15231 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 15232 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 15233 | kill killpg lchflags lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 15234 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 15235 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15236 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 15237 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 15238 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 15239 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 15240 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15241 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15242 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15243 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15244 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15245 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15247 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15248 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15249 | /* confdefs.h. */ |
| 15250 | _ACEOF |
| 15251 | cat confdefs.h >>conftest.$ac_ext |
| 15252 | cat >>conftest.$ac_ext <<_ACEOF |
| 15253 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15254 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15256 | #define $ac_func innocuous_$ac_func |
| 15257 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15258 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15259 | which can conflict with char $ac_func (); below. |
| 15260 | 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] | 15261 | <limits.h> exists even on freestanding compilers. */ |
| 15262 | |
| 15263 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15264 | # include <limits.h> |
| 15265 | #else |
| 15266 | # include <assert.h> |
| 15267 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15268 | |
| 15269 | #undef $ac_func |
| 15270 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15271 | /* Override any GCC internal prototype to avoid an error. |
| 15272 | Use char because int might match the return type of a GCC |
| 15273 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15274 | #ifdef __cplusplus |
| 15275 | extern "C" |
| 15276 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15277 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15278 | /* The GNU C library defines this for functions which it implements |
| 15279 | to always fail with ENOSYS. Some functions are actually named |
| 15280 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15281 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15282 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15283 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15284 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15285 | int |
| 15286 | main () |
| 15287 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15288 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15289 | ; |
| 15290 | return 0; |
| 15291 | } |
| 15292 | _ACEOF |
| 15293 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15294 | if { (ac_try="$ac_link" |
| 15295 | case "(($ac_try" in |
| 15296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15297 | *) ac_try_echo=$ac_try;; |
| 15298 | esac |
| 15299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15300 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15301 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15303 | rm -f conftest.er1 |
| 15304 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15306 | (exit $ac_status); } && { |
| 15307 | test -z "$ac_c_werror_flag" || |
| 15308 | test ! -s conftest.err |
| 15309 | } && test -s conftest$ac_exeext && |
| 15310 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15311 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15312 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15313 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15315 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15316 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15317 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15318 | |
| 15319 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15320 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15321 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15322 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15323 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15324 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15325 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15326 | cat >>confdefs.h <<_ACEOF |
| 15327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15328 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15329 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15330 | fi |
| 15331 | done |
| 15332 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15333 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15334 | # For some functions, having a definition is not sufficient, since |
| 15335 | # we want to take their address. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15336 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 15337 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15338 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15339 | /* confdefs.h. */ |
| 15340 | _ACEOF |
| 15341 | cat confdefs.h >>conftest.$ac_ext |
| 15342 | cat >>conftest.$ac_ext <<_ACEOF |
| 15343 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15344 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15345 | int |
| 15346 | main () |
| 15347 | { |
| 15348 | void *x=chroot |
| 15349 | ; |
| 15350 | return 0; |
| 15351 | } |
| 15352 | _ACEOF |
| 15353 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15354 | if { (ac_try="$ac_compile" |
| 15355 | case "(($ac_try" in |
| 15356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15357 | *) ac_try_echo=$ac_try;; |
| 15358 | esac |
| 15359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15360 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15361 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15363 | rm -f conftest.er1 |
| 15364 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15366 | (exit $ac_status); } && { |
| 15367 | test -z "$ac_c_werror_flag" || |
| 15368 | test ! -s conftest.err |
| 15369 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15370 | |
| 15371 | cat >>confdefs.h <<\_ACEOF |
| 15372 | #define HAVE_CHROOT 1 |
| 15373 | _ACEOF |
| 15374 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15375 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15376 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15377 | else |
| 15378 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15380 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15381 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15382 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15383 | |
| 15384 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15385 | |
| 15386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15387 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 15388 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15389 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15390 | /* confdefs.h. */ |
| 15391 | _ACEOF |
| 15392 | cat confdefs.h >>conftest.$ac_ext |
| 15393 | cat >>conftest.$ac_ext <<_ACEOF |
| 15394 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15395 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15396 | int |
| 15397 | main () |
| 15398 | { |
| 15399 | void *x=link |
| 15400 | ; |
| 15401 | return 0; |
| 15402 | } |
| 15403 | _ACEOF |
| 15404 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15405 | if { (ac_try="$ac_compile" |
| 15406 | case "(($ac_try" in |
| 15407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15408 | *) ac_try_echo=$ac_try;; |
| 15409 | esac |
| 15410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15411 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15412 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15414 | rm -f conftest.er1 |
| 15415 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15417 | (exit $ac_status); } && { |
| 15418 | test -z "$ac_c_werror_flag" || |
| 15419 | test ! -s conftest.err |
| 15420 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15421 | |
| 15422 | cat >>confdefs.h <<\_ACEOF |
| 15423 | #define HAVE_LINK 1 |
| 15424 | _ACEOF |
| 15425 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15426 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15427 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15428 | else |
| 15429 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15431 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15432 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15433 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15434 | |
| 15435 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15436 | |
| 15437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15438 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 15439 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15440 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15441 | /* confdefs.h. */ |
| 15442 | _ACEOF |
| 15443 | cat confdefs.h >>conftest.$ac_ext |
| 15444 | cat >>conftest.$ac_ext <<_ACEOF |
| 15445 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15446 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15447 | int |
| 15448 | main () |
| 15449 | { |
| 15450 | void *x=symlink |
| 15451 | ; |
| 15452 | return 0; |
| 15453 | } |
| 15454 | _ACEOF |
| 15455 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15456 | if { (ac_try="$ac_compile" |
| 15457 | case "(($ac_try" in |
| 15458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15459 | *) ac_try_echo=$ac_try;; |
| 15460 | esac |
| 15461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15462 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15463 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15465 | rm -f conftest.er1 |
| 15466 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15468 | (exit $ac_status); } && { |
| 15469 | test -z "$ac_c_werror_flag" || |
| 15470 | test ! -s conftest.err |
| 15471 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15472 | |
| 15473 | cat >>confdefs.h <<\_ACEOF |
| 15474 | #define HAVE_SYMLINK 1 |
| 15475 | _ACEOF |
| 15476 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15477 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15478 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15479 | else |
| 15480 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15482 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15483 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15484 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15485 | |
| 15486 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15487 | |
| 15488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15489 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 15490 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15491 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15492 | /* confdefs.h. */ |
| 15493 | _ACEOF |
| 15494 | cat confdefs.h >>conftest.$ac_ext |
| 15495 | cat >>conftest.$ac_ext <<_ACEOF |
| 15496 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15497 | #include <unistd.h> |
| 15498 | int |
| 15499 | main () |
| 15500 | { |
| 15501 | void *x=fchdir |
| 15502 | ; |
| 15503 | return 0; |
| 15504 | } |
| 15505 | _ACEOF |
| 15506 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15507 | if { (ac_try="$ac_compile" |
| 15508 | case "(($ac_try" in |
| 15509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15510 | *) ac_try_echo=$ac_try;; |
| 15511 | esac |
| 15512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15513 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15514 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15516 | rm -f conftest.er1 |
| 15517 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15519 | (exit $ac_status); } && { |
| 15520 | test -z "$ac_c_werror_flag" || |
| 15521 | test ! -s conftest.err |
| 15522 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15523 | |
| 15524 | cat >>confdefs.h <<\_ACEOF |
| 15525 | #define HAVE_FCHDIR 1 |
| 15526 | _ACEOF |
| 15527 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15528 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15529 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15530 | else |
| 15531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15533 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15534 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15535 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15536 | |
| 15537 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15538 | |
| 15539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15540 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 15541 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +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 | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15548 | #include <unistd.h> |
| 15549 | int |
| 15550 | main () |
| 15551 | { |
| 15552 | void *x=fsync |
| 15553 | ; |
| 15554 | return 0; |
| 15555 | } |
| 15556 | _ACEOF |
| 15557 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15558 | if { (ac_try="$ac_compile" |
| 15559 | case "(($ac_try" in |
| 15560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15561 | *) ac_try_echo=$ac_try;; |
| 15562 | esac |
| 15563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15564 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15565 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15567 | rm -f conftest.er1 |
| 15568 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15570 | (exit $ac_status); } && { |
| 15571 | test -z "$ac_c_werror_flag" || |
| 15572 | test ! -s conftest.err |
| 15573 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15574 | |
| 15575 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15576 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15577 | _ACEOF |
| 15578 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15579 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15580 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15581 | else |
| 15582 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15584 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15585 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15586 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15587 | |
| 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.$ac_ext |
| 15591 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 15592 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15594 | /* confdefs.h. */ |
| 15595 | _ACEOF |
| 15596 | cat confdefs.h >>conftest.$ac_ext |
| 15597 | cat >>conftest.$ac_ext <<_ACEOF |
| 15598 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15599 | #include <unistd.h> |
| 15600 | int |
| 15601 | main () |
| 15602 | { |
| 15603 | void *x=fdatasync |
| 15604 | ; |
| 15605 | return 0; |
| 15606 | } |
| 15607 | _ACEOF |
| 15608 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15609 | if { (ac_try="$ac_compile" |
| 15610 | case "(($ac_try" in |
| 15611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15612 | *) ac_try_echo=$ac_try;; |
| 15613 | esac |
| 15614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15615 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15618 | rm -f conftest.er1 |
| 15619 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15621 | (exit $ac_status); } && { |
| 15622 | test -z "$ac_c_werror_flag" || |
| 15623 | test ! -s conftest.err |
| 15624 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15625 | |
| 15626 | cat >>confdefs.h <<\_ACEOF |
| 15627 | #define HAVE_FDATASYNC 1 |
| 15628 | _ACEOF |
| 15629 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15630 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15631 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15632 | else |
| 15633 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15635 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15636 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15637 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15638 | |
| 15639 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15640 | |
| 15641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15642 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15643 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 15644 | # functions ctermid_r, setgroups in the library, but no prototype |
| 15645 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 15646 | # address to avoid compiler warnings and potential miscompilations |
| 15647 | # because of the missing prototypes. |
| 15648 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15649 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 15650 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15651 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15652 | /* confdefs.h. */ |
| 15653 | _ACEOF |
| 15654 | cat confdefs.h >>conftest.$ac_ext |
| 15655 | cat >>conftest.$ac_ext <<_ACEOF |
| 15656 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15657 | |
| 15658 | #include "confdefs.h" |
| 15659 | #include <stdio.h> |
| 15660 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15661 | int |
| 15662 | main () |
| 15663 | { |
| 15664 | void* p = ctermid_r |
| 15665 | ; |
| 15666 | return 0; |
| 15667 | } |
| 15668 | _ACEOF |
| 15669 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15670 | if { (ac_try="$ac_compile" |
| 15671 | case "(($ac_try" in |
| 15672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15673 | *) ac_try_echo=$ac_try;; |
| 15674 | esac |
| 15675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15676 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15677 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15679 | rm -f conftest.er1 |
| 15680 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15682 | (exit $ac_status); } && { |
| 15683 | test -z "$ac_c_werror_flag" || |
| 15684 | test ! -s conftest.err |
| 15685 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15686 | |
| 15687 | cat >>confdefs.h <<\_ACEOF |
| 15688 | #define HAVE_CTERMID_R 1 |
| 15689 | _ACEOF |
| 15690 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15691 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15692 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15693 | else |
| 15694 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15696 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15697 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15698 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15699 | |
| 15700 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15701 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15703 | |
| 15704 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 15705 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15706 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15707 | /* confdefs.h. */ |
| 15708 | _ACEOF |
| 15709 | cat confdefs.h >>conftest.$ac_ext |
| 15710 | cat >>conftest.$ac_ext <<_ACEOF |
| 15711 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15712 | |
| 15713 | #include "confdefs.h" |
| 15714 | #include <sys/file.h> |
| 15715 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15716 | int |
| 15717 | main () |
| 15718 | { |
| 15719 | void* p = flock |
| 15720 | ; |
| 15721 | return 0; |
| 15722 | } |
| 15723 | _ACEOF |
| 15724 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15725 | if { (ac_try="$ac_compile" |
| 15726 | case "(($ac_try" in |
| 15727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15728 | *) ac_try_echo=$ac_try;; |
| 15729 | esac |
| 15730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15731 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15732 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15734 | rm -f conftest.er1 |
| 15735 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15737 | (exit $ac_status); } && { |
| 15738 | test -z "$ac_c_werror_flag" || |
| 15739 | test ! -s conftest.err |
| 15740 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15741 | |
| 15742 | cat >>confdefs.h <<\_ACEOF |
| 15743 | #define HAVE_FLOCK 1 |
| 15744 | _ACEOF |
| 15745 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15746 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15747 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15748 | else |
| 15749 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15751 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15752 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15753 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15754 | |
| 15755 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15756 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15758 | |
| 15759 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 15760 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15761 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15762 | /* confdefs.h. */ |
| 15763 | _ACEOF |
| 15764 | cat confdefs.h >>conftest.$ac_ext |
| 15765 | cat >>conftest.$ac_ext <<_ACEOF |
| 15766 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15767 | |
| 15768 | #include "confdefs.h" |
| 15769 | #include <unistd.h> |
| 15770 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15771 | int |
| 15772 | main () |
| 15773 | { |
| 15774 | void* p = getpagesize |
| 15775 | ; |
| 15776 | return 0; |
| 15777 | } |
| 15778 | _ACEOF |
| 15779 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15780 | if { (ac_try="$ac_compile" |
| 15781 | case "(($ac_try" in |
| 15782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15783 | *) ac_try_echo=$ac_try;; |
| 15784 | esac |
| 15785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15786 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15787 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15789 | rm -f conftest.er1 |
| 15790 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15792 | (exit $ac_status); } && { |
| 15793 | test -z "$ac_c_werror_flag" || |
| 15794 | test ! -s conftest.err |
| 15795 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15796 | |
| 15797 | cat >>confdefs.h <<\_ACEOF |
| 15798 | #define HAVE_GETPAGESIZE 1 |
| 15799 | _ACEOF |
| 15800 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15801 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15802 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15803 | else |
| 15804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15806 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15807 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15808 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15809 | |
| 15810 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15811 | |
| 15812 | 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] | 15813 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15814 | for ac_prog in true |
| 15815 | do |
| 15816 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 15817 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15818 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15819 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15820 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 15821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15822 | else |
| 15823 | if test -n "$TRUE"; then |
| 15824 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 15825 | else |
| 15826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15827 | for as_dir in $PATH |
| 15828 | do |
| 15829 | IFS=$as_save_IFS |
| 15830 | test -z "$as_dir" && as_dir=. |
| 15831 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15832 | 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] | 15833 | ac_cv_prog_TRUE="$ac_prog" |
| 15834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15835 | break 2 |
| 15836 | fi |
| 15837 | done |
| 15838 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15839 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15840 | |
| 15841 | fi |
| 15842 | fi |
| 15843 | TRUE=$ac_cv_prog_TRUE |
| 15844 | if test -n "$TRUE"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15845 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 15846 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15847 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15848 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15849 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15850 | fi |
| 15851 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15852 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15853 | test -n "$TRUE" && break |
| 15854 | done |
| 15855 | test -n "$TRUE" || TRUE="/bin/true" |
| 15856 | |
| 15857 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15858 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 15859 | 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] | 15860 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 15861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15862 | else |
| 15863 | ac_check_lib_save_LIBS=$LIBS |
| 15864 | LIBS="-lc $LIBS" |
| 15865 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15866 | /* confdefs.h. */ |
| 15867 | _ACEOF |
| 15868 | cat confdefs.h >>conftest.$ac_ext |
| 15869 | cat >>conftest.$ac_ext <<_ACEOF |
| 15870 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15871 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15872 | /* Override any GCC internal prototype to avoid an error. |
| 15873 | Use char because int might match the return type of a GCC |
| 15874 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15875 | #ifdef __cplusplus |
| 15876 | extern "C" |
| 15877 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15878 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15879 | int |
| 15880 | main () |
| 15881 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15882 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15883 | ; |
| 15884 | return 0; |
| 15885 | } |
| 15886 | _ACEOF |
| 15887 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15888 | if { (ac_try="$ac_link" |
| 15889 | case "(($ac_try" in |
| 15890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15891 | *) ac_try_echo=$ac_try;; |
| 15892 | esac |
| 15893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15894 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15895 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15897 | rm -f conftest.er1 |
| 15898 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15900 | (exit $ac_status); } && { |
| 15901 | test -z "$ac_c_werror_flag" || |
| 15902 | test ! -s conftest.err |
| 15903 | } && test -s conftest$ac_exeext && |
| 15904 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15905 | ac_cv_lib_c_inet_aton=yes |
| 15906 | else |
| 15907 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15909 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15910 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15911 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15912 | |
| 15913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15914 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15915 | LIBS=$ac_check_lib_save_LIBS |
| 15916 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15917 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 15918 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15919 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15920 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15921 | else |
| 15922 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15923 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 15924 | 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] | 15925 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 15926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15927 | else |
| 15928 | ac_check_lib_save_LIBS=$LIBS |
| 15929 | LIBS="-lresolv $LIBS" |
| 15930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15931 | /* confdefs.h. */ |
| 15932 | _ACEOF |
| 15933 | cat confdefs.h >>conftest.$ac_ext |
| 15934 | cat >>conftest.$ac_ext <<_ACEOF |
| 15935 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15936 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15937 | /* Override any GCC internal prototype to avoid an error. |
| 15938 | Use char because int might match the return type of a GCC |
| 15939 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15940 | #ifdef __cplusplus |
| 15941 | extern "C" |
| 15942 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15943 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15944 | int |
| 15945 | main () |
| 15946 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15947 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15948 | ; |
| 15949 | return 0; |
| 15950 | } |
| 15951 | _ACEOF |
| 15952 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15953 | if { (ac_try="$ac_link" |
| 15954 | case "(($ac_try" in |
| 15955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15956 | *) ac_try_echo=$ac_try;; |
| 15957 | esac |
| 15958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15959 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15960 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15962 | rm -f conftest.er1 |
| 15963 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15965 | (exit $ac_status); } && { |
| 15966 | test -z "$ac_c_werror_flag" || |
| 15967 | test ! -s conftest.err |
| 15968 | } && test -s conftest$ac_exeext && |
| 15969 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15970 | ac_cv_lib_resolv_inet_aton=yes |
| 15971 | else |
| 15972 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15974 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15975 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15976 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15977 | |
| 15978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15979 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15980 | LIBS=$ac_check_lib_save_LIBS |
| 15981 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15982 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 15983 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15984 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 15985 | cat >>confdefs.h <<_ACEOF |
| 15986 | #define HAVE_LIBRESOLV 1 |
| 15987 | _ACEOF |
| 15988 | |
| 15989 | LIBS="-lresolv $LIBS" |
| 15990 | |
| 15991 | fi |
| 15992 | |
| 15993 | |
| 15994 | fi |
| 15995 | |
| 15996 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 15997 | case $ac_sys_system/$ac_sys_release in |
| 15998 | Darwin/*) |
| 15999 | _CUR_CFLAGS="${CFLAGS}" |
| 16000 | _CUR_LDFLAGS="${LDFLAGS}" |
| 16001 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 16002 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 16003 | ;; |
| 16004 | esac |
| 16005 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16006 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 16007 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 16008 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
| 16009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16010 | else |
| 16011 | ac_check_lib_save_LIBS=$LIBS |
| 16012 | LIBS="-lz $LIBS" |
| 16013 | cat >conftest.$ac_ext <<_ACEOF |
| 16014 | /* confdefs.h. */ |
| 16015 | _ACEOF |
| 16016 | cat confdefs.h >>conftest.$ac_ext |
| 16017 | cat >>conftest.$ac_ext <<_ACEOF |
| 16018 | /* end confdefs.h. */ |
| 16019 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16020 | /* Override any GCC internal prototype to avoid an error. |
| 16021 | Use char because int might match the return type of a GCC |
| 16022 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 16023 | #ifdef __cplusplus |
| 16024 | extern "C" |
| 16025 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 16026 | char inflateCopy (); |
| 16027 | int |
| 16028 | main () |
| 16029 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16030 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 16031 | ; |
| 16032 | return 0; |
| 16033 | } |
| 16034 | _ACEOF |
| 16035 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16036 | if { (ac_try="$ac_link" |
| 16037 | case "(($ac_try" in |
| 16038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16039 | *) ac_try_echo=$ac_try;; |
| 16040 | esac |
| 16041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16042 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 16043 | ac_status=$? |
| 16044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16045 | rm -f conftest.er1 |
| 16046 | cat conftest.err >&5 |
| 16047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16048 | (exit $ac_status); } && { |
| 16049 | test -z "$ac_c_werror_flag" || |
| 16050 | test ! -s conftest.err |
| 16051 | } && test -s conftest$ac_exeext && |
| 16052 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 16053 | ac_cv_lib_z_inflateCopy=yes |
| 16054 | else |
| 16055 | echo "$as_me: failed program was:" >&5 |
| 16056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16057 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16058 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 16059 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16060 | |
| 16061 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 16062 | conftest$ac_exeext conftest.$ac_ext |
| 16063 | LIBS=$ac_check_lib_save_LIBS |
| 16064 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16065 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 16066 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 16067 | if test $ac_cv_lib_z_inflateCopy = yes; then |
| 16068 | |
| 16069 | cat >>confdefs.h <<\_ACEOF |
| 16070 | #define HAVE_ZLIB_COPY 1 |
| 16071 | _ACEOF |
| 16072 | |
| 16073 | fi |
| 16074 | |
| 16075 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 16076 | case $ac_sys_system/$ac_sys_release in |
| 16077 | Darwin/*) |
| 16078 | CFLAGS="${_CUR_CFLAGS}" |
| 16079 | LDFLAGS="${_CUR_LDFLAGS}" |
| 16080 | ;; |
| 16081 | esac |
| 16082 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16083 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 16084 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16085 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16086 | /* confdefs.h. */ |
| 16087 | _ACEOF |
| 16088 | cat confdefs.h >>conftest.$ac_ext |
| 16089 | cat >>conftest.$ac_ext <<_ACEOF |
| 16090 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16091 | |
| 16092 | #include "confdefs.h" |
| 16093 | #include <netdb.h> |
| 16094 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16095 | int |
| 16096 | main () |
| 16097 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16098 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16099 | ; |
| 16100 | return 0; |
| 16101 | } |
| 16102 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16103 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16104 | if { (ac_try="$ac_link" |
| 16105 | case "(($ac_try" in |
| 16106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16107 | *) ac_try_echo=$ac_try;; |
| 16108 | esac |
| 16109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16110 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16111 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16113 | rm -f conftest.er1 |
| 16114 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16116 | (exit $ac_status); } && { |
| 16117 | test -z "$ac_c_werror_flag" || |
| 16118 | test ! -s conftest.err |
| 16119 | } && test -s conftest$ac_exeext && |
| 16120 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16121 | |
| 16122 | cat >>confdefs.h <<\_ACEOF |
| 16123 | #define HAVE_HSTRERROR 1 |
| 16124 | _ACEOF |
| 16125 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16126 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16127 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16128 | else |
| 16129 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16131 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16132 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16133 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16134 | |
| 16135 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16136 | |
| 16137 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16138 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16139 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16140 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 16141 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16142 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16143 | /* confdefs.h. */ |
| 16144 | _ACEOF |
| 16145 | cat confdefs.h >>conftest.$ac_ext |
| 16146 | cat >>conftest.$ac_ext <<_ACEOF |
| 16147 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16148 | |
| 16149 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 16150 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16151 | #include <sys/socket.h> |
| 16152 | #include <netinet/in.h> |
| 16153 | #include <arpa/inet.h> |
| 16154 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16155 | int |
| 16156 | main () |
| 16157 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16158 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16159 | ; |
| 16160 | return 0; |
| 16161 | } |
| 16162 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16163 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16164 | if { (ac_try="$ac_link" |
| 16165 | case "(($ac_try" in |
| 16166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16167 | *) ac_try_echo=$ac_try;; |
| 16168 | esac |
| 16169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16170 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16171 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16173 | rm -f conftest.er1 |
| 16174 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16176 | (exit $ac_status); } && { |
| 16177 | test -z "$ac_c_werror_flag" || |
| 16178 | test ! -s conftest.err |
| 16179 | } && test -s conftest$ac_exeext && |
| 16180 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16181 | |
| 16182 | cat >>confdefs.h <<\_ACEOF |
| 16183 | #define HAVE_INET_ATON 1 |
| 16184 | _ACEOF |
| 16185 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16186 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16187 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16188 | else |
| 16189 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16191 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16192 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16193 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16194 | |
| 16195 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16196 | |
| 16197 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16198 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16199 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16200 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 16201 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16202 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16203 | /* confdefs.h. */ |
| 16204 | _ACEOF |
| 16205 | cat confdefs.h >>conftest.$ac_ext |
| 16206 | cat >>conftest.$ac_ext <<_ACEOF |
| 16207 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16208 | |
| 16209 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 16210 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16211 | #include <sys/socket.h> |
| 16212 | #include <netinet/in.h> |
| 16213 | #include <arpa/inet.h> |
| 16214 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16215 | int |
| 16216 | main () |
| 16217 | { |
| 16218 | void* p = inet_pton |
| 16219 | ; |
| 16220 | return 0; |
| 16221 | } |
| 16222 | _ACEOF |
| 16223 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16224 | if { (ac_try="$ac_compile" |
| 16225 | case "(($ac_try" in |
| 16226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16227 | *) ac_try_echo=$ac_try;; |
| 16228 | esac |
| 16229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16230 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16231 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16233 | rm -f conftest.er1 |
| 16234 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16236 | (exit $ac_status); } && { |
| 16237 | test -z "$ac_c_werror_flag" || |
| 16238 | test ! -s conftest.err |
| 16239 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16240 | |
| 16241 | cat >>confdefs.h <<\_ACEOF |
| 16242 | #define HAVE_INET_PTON 1 |
| 16243 | _ACEOF |
| 16244 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16245 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16246 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16247 | else |
| 16248 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16250 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16251 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16252 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16253 | |
| 16254 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16255 | |
| 16256 | 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] | 16257 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 16258 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16259 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 16260 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16261 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16262 | /* confdefs.h. */ |
| 16263 | _ACEOF |
| 16264 | cat confdefs.h >>conftest.$ac_ext |
| 16265 | cat >>conftest.$ac_ext <<_ACEOF |
| 16266 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16267 | |
| 16268 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 16269 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 16270 | #ifdef HAVE_GRP_H |
| 16271 | #include <grp.h> |
| 16272 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16273 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16274 | int |
| 16275 | main () |
| 16276 | { |
| 16277 | void* p = setgroups |
| 16278 | ; |
| 16279 | return 0; |
| 16280 | } |
| 16281 | _ACEOF |
| 16282 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16283 | if { (ac_try="$ac_compile" |
| 16284 | case "(($ac_try" in |
| 16285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16286 | *) ac_try_echo=$ac_try;; |
| 16287 | esac |
| 16288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16289 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16290 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16292 | rm -f conftest.er1 |
| 16293 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16295 | (exit $ac_status); } && { |
| 16296 | test -z "$ac_c_werror_flag" || |
| 16297 | test ! -s conftest.err |
| 16298 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16299 | |
| 16300 | cat >>confdefs.h <<\_ACEOF |
| 16301 | #define HAVE_SETGROUPS 1 |
| 16302 | _ACEOF |
| 16303 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16304 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16305 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16306 | else |
| 16307 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16309 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16310 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16311 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16312 | |
| 16313 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16314 | |
| 16315 | 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] | 16316 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16317 | # check for openpty and forkpty |
| 16318 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16319 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16320 | for ac_func in openpty |
| 16321 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16322 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16323 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16324 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16325 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16327 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16328 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16329 | /* confdefs.h. */ |
| 16330 | _ACEOF |
| 16331 | cat confdefs.h >>conftest.$ac_ext |
| 16332 | cat >>conftest.$ac_ext <<_ACEOF |
| 16333 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16334 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16335 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16336 | #define $ac_func innocuous_$ac_func |
| 16337 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16338 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16339 | which can conflict with char $ac_func (); below. |
| 16340 | 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] | 16341 | <limits.h> exists even on freestanding compilers. */ |
| 16342 | |
| 16343 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16344 | # include <limits.h> |
| 16345 | #else |
| 16346 | # include <assert.h> |
| 16347 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16348 | |
| 16349 | #undef $ac_func |
| 16350 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16351 | /* Override any GCC internal prototype to avoid an error. |
| 16352 | Use char because int might match the return type of a GCC |
| 16353 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16354 | #ifdef __cplusplus |
| 16355 | extern "C" |
| 16356 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16357 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16358 | /* The GNU C library defines this for functions which it implements |
| 16359 | to always fail with ENOSYS. Some functions are actually named |
| 16360 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16361 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16362 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16363 | #endif |
| 16364 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16365 | int |
| 16366 | main () |
| 16367 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16368 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16369 | ; |
| 16370 | return 0; |
| 16371 | } |
| 16372 | _ACEOF |
| 16373 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16374 | if { (ac_try="$ac_link" |
| 16375 | case "(($ac_try" in |
| 16376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16377 | *) ac_try_echo=$ac_try;; |
| 16378 | esac |
| 16379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16380 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16381 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16383 | rm -f conftest.er1 |
| 16384 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16386 | (exit $ac_status); } && { |
| 16387 | test -z "$ac_c_werror_flag" || |
| 16388 | test ! -s conftest.err |
| 16389 | } && test -s conftest$ac_exeext && |
| 16390 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16391 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16393 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16395 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16396 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16397 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16398 | |
| 16399 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16400 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16401 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16402 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16403 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16404 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16405 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16406 | cat >>confdefs.h <<_ACEOF |
| 16407 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16408 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16409 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16410 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16411 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 16412 | 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] | 16413 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 16414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16415 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16416 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16417 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16418 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16419 | /* confdefs.h. */ |
| 16420 | _ACEOF |
| 16421 | cat confdefs.h >>conftest.$ac_ext |
| 16422 | cat >>conftest.$ac_ext <<_ACEOF |
| 16423 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16424 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16425 | /* Override any GCC internal prototype to avoid an error. |
| 16426 | Use char because int might match the return type of a GCC |
| 16427 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16428 | #ifdef __cplusplus |
| 16429 | extern "C" |
| 16430 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16431 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16432 | int |
| 16433 | main () |
| 16434 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16435 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16436 | ; |
| 16437 | return 0; |
| 16438 | } |
| 16439 | _ACEOF |
| 16440 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16441 | if { (ac_try="$ac_link" |
| 16442 | case "(($ac_try" in |
| 16443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16444 | *) ac_try_echo=$ac_try;; |
| 16445 | esac |
| 16446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16447 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16448 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16450 | rm -f conftest.er1 |
| 16451 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16453 | (exit $ac_status); } && { |
| 16454 | test -z "$ac_c_werror_flag" || |
| 16455 | test ! -s conftest.err |
| 16456 | } && test -s conftest$ac_exeext && |
| 16457 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16458 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16460 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16462 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16463 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16464 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16465 | |
| 16466 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16467 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16468 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16469 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16470 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 16471 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16472 | if test $ac_cv_lib_util_openpty = yes; then |
| 16473 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16474 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16475 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16476 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16477 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16478 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 16479 | 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] | 16480 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
| 16481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16482 | else |
| 16483 | ac_check_lib_save_LIBS=$LIBS |
| 16484 | LIBS="-lbsd $LIBS" |
| 16485 | cat >conftest.$ac_ext <<_ACEOF |
| 16486 | /* confdefs.h. */ |
| 16487 | _ACEOF |
| 16488 | cat confdefs.h >>conftest.$ac_ext |
| 16489 | cat >>conftest.$ac_ext <<_ACEOF |
| 16490 | /* end confdefs.h. */ |
| 16491 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16492 | /* Override any GCC internal prototype to avoid an error. |
| 16493 | Use char because int might match the return type of a GCC |
| 16494 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16495 | #ifdef __cplusplus |
| 16496 | extern "C" |
| 16497 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16498 | char openpty (); |
| 16499 | int |
| 16500 | main () |
| 16501 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16502 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16503 | ; |
| 16504 | return 0; |
| 16505 | } |
| 16506 | _ACEOF |
| 16507 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16508 | if { (ac_try="$ac_link" |
| 16509 | case "(($ac_try" in |
| 16510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16511 | *) ac_try_echo=$ac_try;; |
| 16512 | esac |
| 16513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16514 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16515 | ac_status=$? |
| 16516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16517 | rm -f conftest.er1 |
| 16518 | cat conftest.err >&5 |
| 16519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16520 | (exit $ac_status); } && { |
| 16521 | test -z "$ac_c_werror_flag" || |
| 16522 | test ! -s conftest.err |
| 16523 | } && test -s conftest$ac_exeext && |
| 16524 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16525 | ac_cv_lib_bsd_openpty=yes |
| 16526 | else |
| 16527 | echo "$as_me: failed program was:" >&5 |
| 16528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16529 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16530 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16531 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16532 | |
| 16533 | 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] | 16534 | conftest$ac_exeext conftest.$ac_ext |
| 16535 | LIBS=$ac_check_lib_save_LIBS |
| 16536 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16537 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 16538 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16539 | if test $ac_cv_lib_bsd_openpty = yes; then |
| 16540 | cat >>confdefs.h <<\_ACEOF |
| 16541 | #define HAVE_OPENPTY 1 |
| 16542 | _ACEOF |
| 16543 | LIBS="$LIBS -lbsd" |
| 16544 | fi |
| 16545 | |
| 16546 | |
| 16547 | fi |
| 16548 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16549 | |
| 16550 | fi |
| 16551 | done |
| 16552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16553 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16554 | for ac_func in forkpty |
| 16555 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16556 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16557 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16558 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16559 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16562 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16563 | /* confdefs.h. */ |
| 16564 | _ACEOF |
| 16565 | cat confdefs.h >>conftest.$ac_ext |
| 16566 | cat >>conftest.$ac_ext <<_ACEOF |
| 16567 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16568 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16569 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16570 | #define $ac_func innocuous_$ac_func |
| 16571 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16572 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16573 | which can conflict with char $ac_func (); below. |
| 16574 | 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] | 16575 | <limits.h> exists even on freestanding compilers. */ |
| 16576 | |
| 16577 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16578 | # include <limits.h> |
| 16579 | #else |
| 16580 | # include <assert.h> |
| 16581 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16582 | |
| 16583 | #undef $ac_func |
| 16584 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16585 | /* Override any GCC internal prototype to avoid an error. |
| 16586 | Use char because int might match the return type of a GCC |
| 16587 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16588 | #ifdef __cplusplus |
| 16589 | extern "C" |
| 16590 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16591 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16592 | /* The GNU C library defines this for functions which it implements |
| 16593 | to always fail with ENOSYS. Some functions are actually named |
| 16594 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16595 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16596 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16597 | #endif |
| 16598 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16599 | int |
| 16600 | main () |
| 16601 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16602 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16603 | ; |
| 16604 | return 0; |
| 16605 | } |
| 16606 | _ACEOF |
| 16607 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16608 | if { (ac_try="$ac_link" |
| 16609 | case "(($ac_try" in |
| 16610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16611 | *) ac_try_echo=$ac_try;; |
| 16612 | esac |
| 16613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16614 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16615 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16617 | rm -f conftest.er1 |
| 16618 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16620 | (exit $ac_status); } && { |
| 16621 | test -z "$ac_c_werror_flag" || |
| 16622 | test ! -s conftest.err |
| 16623 | } && test -s conftest$ac_exeext && |
| 16624 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16625 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16626 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16627 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16629 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16630 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16631 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16632 | |
| 16633 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16634 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16635 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16636 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16637 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16638 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16639 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16640 | cat >>confdefs.h <<_ACEOF |
| 16641 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16642 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16643 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16644 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16645 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 16646 | 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] | 16647 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 16648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16650 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16651 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16652 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16653 | /* confdefs.h. */ |
| 16654 | _ACEOF |
| 16655 | cat confdefs.h >>conftest.$ac_ext |
| 16656 | cat >>conftest.$ac_ext <<_ACEOF |
| 16657 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16658 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16659 | /* Override any GCC internal prototype to avoid an error. |
| 16660 | Use char because int might match the return type of a GCC |
| 16661 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16662 | #ifdef __cplusplus |
| 16663 | extern "C" |
| 16664 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16665 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16666 | int |
| 16667 | main () |
| 16668 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16669 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16670 | ; |
| 16671 | return 0; |
| 16672 | } |
| 16673 | _ACEOF |
| 16674 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16675 | if { (ac_try="$ac_link" |
| 16676 | case "(($ac_try" in |
| 16677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16678 | *) ac_try_echo=$ac_try;; |
| 16679 | esac |
| 16680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16681 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16682 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16684 | rm -f conftest.er1 |
| 16685 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16687 | (exit $ac_status); } && { |
| 16688 | test -z "$ac_c_werror_flag" || |
| 16689 | test ! -s conftest.err |
| 16690 | } && test -s conftest$ac_exeext && |
| 16691 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16692 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16693 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16694 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16696 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16697 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16698 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16699 | |
| 16700 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16701 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16702 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16703 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16704 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 16705 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16706 | if test $ac_cv_lib_util_forkpty = yes; then |
| 16707 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16708 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16709 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16710 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16711 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16712 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 16713 | 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] | 16714 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
| 16715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16716 | else |
| 16717 | ac_check_lib_save_LIBS=$LIBS |
| 16718 | LIBS="-lbsd $LIBS" |
| 16719 | cat >conftest.$ac_ext <<_ACEOF |
| 16720 | /* confdefs.h. */ |
| 16721 | _ACEOF |
| 16722 | cat confdefs.h >>conftest.$ac_ext |
| 16723 | cat >>conftest.$ac_ext <<_ACEOF |
| 16724 | /* end confdefs.h. */ |
| 16725 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16726 | /* Override any GCC internal prototype to avoid an error. |
| 16727 | Use char because int might match the return type of a GCC |
| 16728 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16729 | #ifdef __cplusplus |
| 16730 | extern "C" |
| 16731 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16732 | char forkpty (); |
| 16733 | int |
| 16734 | main () |
| 16735 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16736 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16737 | ; |
| 16738 | return 0; |
| 16739 | } |
| 16740 | _ACEOF |
| 16741 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16742 | if { (ac_try="$ac_link" |
| 16743 | case "(($ac_try" in |
| 16744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16745 | *) ac_try_echo=$ac_try;; |
| 16746 | esac |
| 16747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16748 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16749 | ac_status=$? |
| 16750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16751 | rm -f conftest.er1 |
| 16752 | cat conftest.err >&5 |
| 16753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16754 | (exit $ac_status); } && { |
| 16755 | test -z "$ac_c_werror_flag" || |
| 16756 | test ! -s conftest.err |
| 16757 | } && test -s conftest$ac_exeext && |
| 16758 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16759 | ac_cv_lib_bsd_forkpty=yes |
| 16760 | else |
| 16761 | echo "$as_me: failed program was:" >&5 |
| 16762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16763 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16764 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16765 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16766 | |
| 16767 | 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] | 16768 | conftest$ac_exeext conftest.$ac_ext |
| 16769 | LIBS=$ac_check_lib_save_LIBS |
| 16770 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16771 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 16772 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16773 | if test $ac_cv_lib_bsd_forkpty = yes; then |
| 16774 | cat >>confdefs.h <<\_ACEOF |
| 16775 | #define HAVE_FORKPTY 1 |
| 16776 | _ACEOF |
| 16777 | LIBS="$LIBS -lbsd" |
| 16778 | fi |
| 16779 | |
| 16780 | |
| 16781 | fi |
| 16782 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16783 | |
| 16784 | fi |
| 16785 | done |
| 16786 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16787 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16788 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16789 | |
| 16790 | |
| 16791 | |
| 16792 | |
| 16793 | |
| 16794 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16795 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 16796 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16797 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16798 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16799 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16800 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16802 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16803 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16804 | /* confdefs.h. */ |
| 16805 | _ACEOF |
| 16806 | cat confdefs.h >>conftest.$ac_ext |
| 16807 | cat >>conftest.$ac_ext <<_ACEOF |
| 16808 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16809 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16810 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16811 | #define $ac_func innocuous_$ac_func |
| 16812 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16813 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16814 | which can conflict with char $ac_func (); below. |
| 16815 | 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] | 16816 | <limits.h> exists even on freestanding compilers. */ |
| 16817 | |
| 16818 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16819 | # include <limits.h> |
| 16820 | #else |
| 16821 | # include <assert.h> |
| 16822 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16823 | |
| 16824 | #undef $ac_func |
| 16825 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16826 | /* Override any GCC internal prototype to avoid an error. |
| 16827 | Use char because int might match the return type of a GCC |
| 16828 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16829 | #ifdef __cplusplus |
| 16830 | extern "C" |
| 16831 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16832 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16833 | /* The GNU C library defines this for functions which it implements |
| 16834 | to always fail with ENOSYS. Some functions are actually named |
| 16835 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16836 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16837 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16838 | #endif |
| 16839 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16840 | int |
| 16841 | main () |
| 16842 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16843 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16844 | ; |
| 16845 | return 0; |
| 16846 | } |
| 16847 | _ACEOF |
| 16848 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16849 | if { (ac_try="$ac_link" |
| 16850 | case "(($ac_try" in |
| 16851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16852 | *) ac_try_echo=$ac_try;; |
| 16853 | esac |
| 16854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16855 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16856 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16858 | rm -f conftest.er1 |
| 16859 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16861 | (exit $ac_status); } && { |
| 16862 | test -z "$ac_c_werror_flag" || |
| 16863 | test ! -s conftest.err |
| 16864 | } && test -s conftest$ac_exeext && |
| 16865 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16866 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16867 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16868 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16870 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16871 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16872 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16873 | |
| 16874 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16875 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16876 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16877 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16878 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16879 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16880 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16881 | cat >>confdefs.h <<_ACEOF |
| 16882 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16883 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16884 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16885 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16886 | done |
| 16887 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16889 | |
| 16890 | |
| 16891 | |
| 16892 | |
| 16893 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16894 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16895 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16896 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16897 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16898 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16899 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16902 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16903 | /* confdefs.h. */ |
| 16904 | _ACEOF |
| 16905 | cat confdefs.h >>conftest.$ac_ext |
| 16906 | cat >>conftest.$ac_ext <<_ACEOF |
| 16907 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16908 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16909 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16910 | #define $ac_func innocuous_$ac_func |
| 16911 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16912 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16913 | which can conflict with char $ac_func (); below. |
| 16914 | 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] | 16915 | <limits.h> exists even on freestanding compilers. */ |
| 16916 | |
| 16917 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16918 | # include <limits.h> |
| 16919 | #else |
| 16920 | # include <assert.h> |
| 16921 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16922 | |
| 16923 | #undef $ac_func |
| 16924 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16925 | /* Override any GCC internal prototype to avoid an error. |
| 16926 | Use char because int might match the return type of a GCC |
| 16927 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16928 | #ifdef __cplusplus |
| 16929 | extern "C" |
| 16930 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16931 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16932 | /* The GNU C library defines this for functions which it implements |
| 16933 | to always fail with ENOSYS. Some functions are actually named |
| 16934 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16935 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16936 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16937 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16938 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16939 | int |
| 16940 | main () |
| 16941 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16942 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16943 | ; |
| 16944 | return 0; |
| 16945 | } |
| 16946 | _ACEOF |
| 16947 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16948 | if { (ac_try="$ac_link" |
| 16949 | case "(($ac_try" in |
| 16950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16951 | *) ac_try_echo=$ac_try;; |
| 16952 | esac |
| 16953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16954 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16955 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16957 | rm -f conftest.er1 |
| 16958 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16960 | (exit $ac_status); } && { |
| 16961 | test -z "$ac_c_werror_flag" || |
| 16962 | test ! -s conftest.err |
| 16963 | } && test -s conftest$ac_exeext && |
| 16964 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16965 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16966 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16967 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16969 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16970 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16971 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16972 | |
| 16973 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16974 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16975 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16976 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16977 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16978 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16979 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16980 | cat >>confdefs.h <<_ACEOF |
| 16981 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16982 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16983 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16984 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16985 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16986 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16987 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 16988 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16989 | esac |
| 16990 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16991 | fi |
| 16992 | done |
| 16993 | |
| 16994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16995 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16996 | for ac_func in getpgrp |
| 16997 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16998 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16999 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17000 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17001 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17005 | /* confdefs.h. */ |
| 17006 | _ACEOF |
| 17007 | cat confdefs.h >>conftest.$ac_ext |
| 17008 | cat >>conftest.$ac_ext <<_ACEOF |
| 17009 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17010 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17011 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17012 | #define $ac_func innocuous_$ac_func |
| 17013 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17014 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17015 | which can conflict with char $ac_func (); below. |
| 17016 | 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] | 17017 | <limits.h> exists even on freestanding compilers. */ |
| 17018 | |
| 17019 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17020 | # include <limits.h> |
| 17021 | #else |
| 17022 | # include <assert.h> |
| 17023 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17024 | |
| 17025 | #undef $ac_func |
| 17026 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17027 | /* Override any GCC internal prototype to avoid an error. |
| 17028 | Use char because int might match the return type of a GCC |
| 17029 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17030 | #ifdef __cplusplus |
| 17031 | extern "C" |
| 17032 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17033 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17034 | /* The GNU C library defines this for functions which it implements |
| 17035 | to always fail with ENOSYS. Some functions are actually named |
| 17036 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17037 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17038 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17039 | #endif |
| 17040 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17041 | int |
| 17042 | main () |
| 17043 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17044 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17045 | ; |
| 17046 | return 0; |
| 17047 | } |
| 17048 | _ACEOF |
| 17049 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17050 | if { (ac_try="$ac_link" |
| 17051 | case "(($ac_try" in |
| 17052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17053 | *) ac_try_echo=$ac_try;; |
| 17054 | esac |
| 17055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17056 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17057 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17059 | rm -f conftest.er1 |
| 17060 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17062 | (exit $ac_status); } && { |
| 17063 | test -z "$ac_c_werror_flag" || |
| 17064 | test ! -s conftest.err |
| 17065 | } && test -s conftest$ac_exeext && |
| 17066 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17067 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17069 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17071 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17072 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17073 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17074 | |
| 17075 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17076 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17077 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17078 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17079 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17080 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17081 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17082 | cat >>confdefs.h <<_ACEOF |
| 17083 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17084 | _ACEOF |
| 17085 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17086 | /* confdefs.h. */ |
| 17087 | _ACEOF |
| 17088 | cat confdefs.h >>conftest.$ac_ext |
| 17089 | cat >>conftest.$ac_ext <<_ACEOF |
| 17090 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17091 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17092 | int |
| 17093 | main () |
| 17094 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17095 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17096 | ; |
| 17097 | return 0; |
| 17098 | } |
| 17099 | _ACEOF |
| 17100 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17101 | if { (ac_try="$ac_compile" |
| 17102 | case "(($ac_try" in |
| 17103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17104 | *) ac_try_echo=$ac_try;; |
| 17105 | esac |
| 17106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17107 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17108 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17110 | rm -f conftest.er1 |
| 17111 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17113 | (exit $ac_status); } && { |
| 17114 | test -z "$ac_c_werror_flag" || |
| 17115 | test ! -s conftest.err |
| 17116 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17117 | |
| 17118 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17119 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17120 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17122 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17123 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17124 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17126 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17127 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17128 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17129 | |
| 17130 | 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] | 17131 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17132 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17133 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17134 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17135 | |
| 17136 | for ac_func in setpgrp |
| 17137 | do |
| 17138 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17139 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17140 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17141 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17144 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17145 | /* confdefs.h. */ |
| 17146 | _ACEOF |
| 17147 | cat confdefs.h >>conftest.$ac_ext |
| 17148 | cat >>conftest.$ac_ext <<_ACEOF |
| 17149 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17150 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17152 | #define $ac_func innocuous_$ac_func |
| 17153 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17154 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17155 | which can conflict with char $ac_func (); below. |
| 17156 | 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] | 17157 | <limits.h> exists even on freestanding compilers. */ |
| 17158 | |
| 17159 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17160 | # include <limits.h> |
| 17161 | #else |
| 17162 | # include <assert.h> |
| 17163 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17164 | |
| 17165 | #undef $ac_func |
| 17166 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17167 | /* Override any GCC internal prototype to avoid an error. |
| 17168 | Use char because int might match the return type of a GCC |
| 17169 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17170 | #ifdef __cplusplus |
| 17171 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17172 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17173 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17174 | /* The GNU C library defines this for functions which it implements |
| 17175 | to always fail with ENOSYS. Some functions are actually named |
| 17176 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17177 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17178 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17179 | #endif |
| 17180 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17181 | int |
| 17182 | main () |
| 17183 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17184 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17185 | ; |
| 17186 | return 0; |
| 17187 | } |
| 17188 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17189 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17190 | if { (ac_try="$ac_link" |
| 17191 | case "(($ac_try" in |
| 17192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17193 | *) ac_try_echo=$ac_try;; |
| 17194 | esac |
| 17195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17196 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17197 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17199 | rm -f conftest.er1 |
| 17200 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17202 | (exit $ac_status); } && { |
| 17203 | test -z "$ac_c_werror_flag" || |
| 17204 | test ! -s conftest.err |
| 17205 | } && test -s conftest$ac_exeext && |
| 17206 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17207 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17208 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17209 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17211 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17212 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17213 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17214 | |
| 17215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17216 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17217 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17218 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17219 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17220 | echo "${ECHO_T}$ac_res" >&6; } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17221 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17222 | cat >>confdefs.h <<_ACEOF |
| 17223 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17224 | _ACEOF |
| 17225 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17226 | /* confdefs.h. */ |
| 17227 | _ACEOF |
| 17228 | cat confdefs.h >>conftest.$ac_ext |
| 17229 | cat >>conftest.$ac_ext <<_ACEOF |
| 17230 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17231 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17232 | int |
| 17233 | main () |
| 17234 | { |
| 17235 | setpgrp(0,0); |
| 17236 | ; |
| 17237 | return 0; |
| 17238 | } |
| 17239 | _ACEOF |
| 17240 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17241 | if { (ac_try="$ac_compile" |
| 17242 | case "(($ac_try" in |
| 17243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17244 | *) ac_try_echo=$ac_try;; |
| 17245 | esac |
| 17246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17247 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17248 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17250 | rm -f conftest.er1 |
| 17251 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17253 | (exit $ac_status); } && { |
| 17254 | test -z "$ac_c_werror_flag" || |
| 17255 | test ! -s conftest.err |
| 17256 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17257 | |
| 17258 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17259 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17260 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 17261 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17262 | |
| 17263 | else |
| 17264 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17266 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17267 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 17268 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17269 | |
| 17270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17271 | |
| 17272 | fi |
| 17273 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 17274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17275 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17276 | for ac_func in gettimeofday |
| 17277 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17278 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17279 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17280 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17281 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17283 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17284 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17285 | /* confdefs.h. */ |
| 17286 | _ACEOF |
| 17287 | cat confdefs.h >>conftest.$ac_ext |
| 17288 | cat >>conftest.$ac_ext <<_ACEOF |
| 17289 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17290 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17291 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17292 | #define $ac_func innocuous_$ac_func |
| 17293 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17294 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17295 | which can conflict with char $ac_func (); below. |
| 17296 | 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] | 17297 | <limits.h> exists even on freestanding compilers. */ |
| 17298 | |
| 17299 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17300 | # include <limits.h> |
| 17301 | #else |
| 17302 | # include <assert.h> |
| 17303 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17304 | |
| 17305 | #undef $ac_func |
| 17306 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17307 | /* Override any GCC internal prototype to avoid an error. |
| 17308 | Use char because int might match the return type of a GCC |
| 17309 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17310 | #ifdef __cplusplus |
| 17311 | extern "C" |
| 17312 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17313 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17314 | /* The GNU C library defines this for functions which it implements |
| 17315 | to always fail with ENOSYS. Some functions are actually named |
| 17316 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17317 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17318 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17319 | #endif |
| 17320 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17321 | int |
| 17322 | main () |
| 17323 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17324 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17325 | ; |
| 17326 | return 0; |
| 17327 | } |
| 17328 | _ACEOF |
| 17329 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17330 | if { (ac_try="$ac_link" |
| 17331 | case "(($ac_try" in |
| 17332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17333 | *) ac_try_echo=$ac_try;; |
| 17334 | esac |
| 17335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17336 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17337 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17339 | rm -f conftest.er1 |
| 17340 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17342 | (exit $ac_status); } && { |
| 17343 | test -z "$ac_c_werror_flag" || |
| 17344 | test ! -s conftest.err |
| 17345 | } && test -s conftest$ac_exeext && |
| 17346 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17347 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17348 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17349 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17351 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17352 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17353 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17354 | |
| 17355 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17356 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17357 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17358 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17359 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17360 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17361 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17362 | cat >>confdefs.h <<_ACEOF |
| 17363 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17364 | _ACEOF |
| 17365 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17366 | /* confdefs.h. */ |
| 17367 | _ACEOF |
| 17368 | cat confdefs.h >>conftest.$ac_ext |
| 17369 | cat >>conftest.$ac_ext <<_ACEOF |
| 17370 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17371 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17372 | int |
| 17373 | main () |
| 17374 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17375 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17376 | ; |
| 17377 | return 0; |
| 17378 | } |
| 17379 | _ACEOF |
| 17380 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17381 | if { (ac_try="$ac_compile" |
| 17382 | case "(($ac_try" in |
| 17383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17384 | *) ac_try_echo=$ac_try;; |
| 17385 | esac |
| 17386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17387 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17388 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17390 | rm -f conftest.er1 |
| 17391 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17393 | (exit $ac_status); } && { |
| 17394 | test -z "$ac_c_werror_flag" || |
| 17395 | test ! -s conftest.err |
| 17396 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17397 | : |
| 17398 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17399 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17402 | |
| 17403 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17404 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17405 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17407 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17408 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17409 | |
| 17410 | 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] | 17411 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17412 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17413 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17414 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17415 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17416 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 17417 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17418 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17419 | /* confdefs.h. */ |
| 17420 | _ACEOF |
| 17421 | cat confdefs.h >>conftest.$ac_ext |
| 17422 | cat >>conftest.$ac_ext <<_ACEOF |
| 17423 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17424 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 17425 | #if defined(MAJOR_IN_MKDEV) |
| 17426 | #include <sys/mkdev.h> |
| 17427 | #elif defined(MAJOR_IN_SYSMACROS) |
| 17428 | #include <sys/sysmacros.h> |
| 17429 | #else |
| 17430 | #include <sys/types.h> |
| 17431 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17432 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17433 | int |
| 17434 | main () |
| 17435 | { |
| 17436 | |
| 17437 | makedev(major(0),minor(0)); |
| 17438 | |
| 17439 | ; |
| 17440 | return 0; |
| 17441 | } |
| 17442 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 17443 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17444 | if { (ac_try="$ac_link" |
| 17445 | case "(($ac_try" in |
| 17446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17447 | *) ac_try_echo=$ac_try;; |
| 17448 | esac |
| 17449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17450 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17451 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17453 | rm -f conftest.er1 |
| 17454 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17456 | (exit $ac_status); } && { |
| 17457 | test -z "$ac_c_werror_flag" || |
| 17458 | test ! -s conftest.err |
| 17459 | } && test -s conftest$ac_exeext && |
| 17460 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17461 | |
| 17462 | |
| 17463 | cat >>confdefs.h <<\_ACEOF |
| 17464 | #define HAVE_DEVICE_MACROS 1 |
| 17465 | _ACEOF |
| 17466 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17467 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17468 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17469 | |
| 17470 | else |
| 17471 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17473 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17474 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17475 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17476 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17477 | |
| 17478 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17479 | |
| 17480 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17481 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17482 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17483 | # 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] | 17484 | # for [no]getaddrinfo in netdb.h. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17485 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 17486 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17487 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17488 | /* confdefs.h. */ |
| 17489 | _ACEOF |
| 17490 | cat confdefs.h >>conftest.$ac_ext |
| 17491 | cat >>conftest.$ac_ext <<_ACEOF |
| 17492 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17493 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 17494 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17495 | #include <sys/socket.h> |
| 17496 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 17497 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17499 | int |
| 17500 | main () |
| 17501 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17502 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17503 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17505 | ; |
| 17506 | return 0; |
| 17507 | } |
| 17508 | _ACEOF |
| 17509 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17510 | if { (ac_try="$ac_link" |
| 17511 | case "(($ac_try" in |
| 17512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17513 | *) ac_try_echo=$ac_try;; |
| 17514 | esac |
| 17515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17516 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17517 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17519 | rm -f conftest.er1 |
| 17520 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17522 | (exit $ac_status); } && { |
| 17523 | test -z "$ac_c_werror_flag" || |
| 17524 | test ! -s conftest.err |
| 17525 | } && test -s conftest$ac_exeext && |
| 17526 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17527 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17528 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17529 | echo "${ECHO_T}yes" >&6; } |
| 17530 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 17531 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17532 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17533 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 17534 | echo "${ECHO_T}buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17535 | buggygetaddrinfo=yes |
| 17536 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17537 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17538 | /* confdefs.h. */ |
| 17539 | _ACEOF |
| 17540 | cat confdefs.h >>conftest.$ac_ext |
| 17541 | cat >>conftest.$ac_ext <<_ACEOF |
| 17542 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17543 | |
| 17544 | #include <sys/types.h> |
| 17545 | #include <netdb.h> |
| 17546 | #include <string.h> |
| 17547 | #include <sys/socket.h> |
| 17548 | #include <netinet/in.h> |
| 17549 | |
| 17550 | main() |
| 17551 | { |
| 17552 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 17553 | struct addrinfo hints, *ai, *aitop; |
| 17554 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 17555 | |
| 17556 | for (passive = 0; passive <= 1; passive++) { |
| 17557 | memset(&hints, 0, sizeof(hints)); |
| 17558 | hints.ai_family = AF_UNSPEC; |
| 17559 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 17560 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 17561 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17562 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 17563 | (void)gai_strerror(gaierr); |
| 17564 | goto bad; |
| 17565 | } |
| 17566 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 17567 | if (ai->ai_addr == NULL || |
| 17568 | ai->ai_addrlen == 0 || |
| 17569 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 17570 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 17571 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 17572 | goto bad; |
| 17573 | } |
| 17574 | switch (ai->ai_family) { |
| 17575 | case AF_INET: |
| 17576 | if (strcmp(strport, "54321") != 0) { |
| 17577 | goto bad; |
| 17578 | } |
| 17579 | if (passive) { |
| 17580 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 17581 | goto bad; |
| 17582 | } |
| 17583 | } else { |
| 17584 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 17585 | goto bad; |
| 17586 | } |
| 17587 | } |
| 17588 | inet4++; |
| 17589 | break; |
| 17590 | case AF_INET6: |
| 17591 | if (strcmp(strport, "54321") != 0) { |
| 17592 | goto bad; |
| 17593 | } |
| 17594 | if (passive) { |
| 17595 | if (strcmp(straddr, "::") != 0) { |
| 17596 | goto bad; |
| 17597 | } |
| 17598 | } else { |
| 17599 | if (strcmp(straddr, "::1") != 0) { |
| 17600 | goto bad; |
| 17601 | } |
| 17602 | } |
| 17603 | inet6++; |
| 17604 | break; |
| 17605 | case AF_UNSPEC: |
| 17606 | goto bad; |
| 17607 | break; |
| 17608 | default: |
| 17609 | /* another family support? */ |
| 17610 | break; |
| 17611 | } |
| 17612 | } |
| 17613 | } |
| 17614 | |
| 17615 | if (!(inet4 == 0 || inet4 == 2)) |
| 17616 | goto bad; |
| 17617 | if (!(inet6 == 0 || inet6 == 2)) |
| 17618 | goto bad; |
| 17619 | |
| 17620 | if (aitop) |
| 17621 | freeaddrinfo(aitop); |
| 17622 | exit(0); |
| 17623 | |
| 17624 | bad: |
| 17625 | if (aitop) |
| 17626 | freeaddrinfo(aitop); |
| 17627 | exit(1); |
| 17628 | } |
| 17629 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17630 | _ACEOF |
| 17631 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17632 | if { (ac_try="$ac_link" |
| 17633 | case "(($ac_try" in |
| 17634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17635 | *) ac_try_echo=$ac_try;; |
| 17636 | esac |
| 17637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17638 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17639 | ac_status=$? |
| 17640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17641 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17642 | { (case "(($ac_try" in |
| 17643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17644 | *) ac_try_echo=$ac_try;; |
| 17645 | esac |
| 17646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17647 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17648 | ac_status=$? |
| 17649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17650 | (exit $ac_status); }; }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17651 | { echo "$as_me:$LINENO: result: good" >&5 |
| 17652 | echo "${ECHO_T}good" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17653 | buggygetaddrinfo=no |
| 17654 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17655 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17656 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17659 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17660 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 17661 | echo "${ECHO_T}buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17662 | buggygetaddrinfo=yes |
| 17663 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17664 | 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] | 17665 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17666 | |
| 17667 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17669 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17672 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17673 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17674 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17675 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17676 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17677 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17678 | |
| 17679 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17680 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17681 | |
| 17682 | if test "$buggygetaddrinfo" = "yes"; then |
| 17683 | if test "$ipv6" = "yes"; then |
| 17684 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 17685 | echo ' or you can specify "--disable-ipv6"'. |
| 17686 | exit 1 |
| 17687 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17688 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17689 | |
| 17690 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17691 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17692 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17693 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17694 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17695 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 17696 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17697 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17698 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17699 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17700 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17701 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17704 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17705 | /* confdefs.h. */ |
| 17706 | _ACEOF |
| 17707 | cat confdefs.h >>conftest.$ac_ext |
| 17708 | cat >>conftest.$ac_ext <<_ACEOF |
| 17709 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17710 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17711 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17712 | #define $ac_func innocuous_$ac_func |
| 17713 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17714 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17715 | which can conflict with char $ac_func (); below. |
| 17716 | 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] | 17717 | <limits.h> exists even on freestanding compilers. */ |
| 17718 | |
| 17719 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17720 | # include <limits.h> |
| 17721 | #else |
| 17722 | # include <assert.h> |
| 17723 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17724 | |
| 17725 | #undef $ac_func |
| 17726 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17727 | /* Override any GCC internal prototype to avoid an error. |
| 17728 | Use char because int might match the return type of a GCC |
| 17729 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17730 | #ifdef __cplusplus |
| 17731 | extern "C" |
| 17732 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17733 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17734 | /* The GNU C library defines this for functions which it implements |
| 17735 | to always fail with ENOSYS. Some functions are actually named |
| 17736 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17737 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17738 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17739 | #endif |
| 17740 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17741 | int |
| 17742 | main () |
| 17743 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17744 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17745 | ; |
| 17746 | return 0; |
| 17747 | } |
| 17748 | _ACEOF |
| 17749 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17750 | if { (ac_try="$ac_link" |
| 17751 | case "(($ac_try" in |
| 17752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17753 | *) ac_try_echo=$ac_try;; |
| 17754 | esac |
| 17755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17756 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17759 | rm -f conftest.er1 |
| 17760 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17762 | (exit $ac_status); } && { |
| 17763 | test -z "$ac_c_werror_flag" || |
| 17764 | test ! -s conftest.err |
| 17765 | } && test -s conftest$ac_exeext && |
| 17766 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17767 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17768 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17769 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17771 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17772 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17773 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17774 | |
| 17775 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17776 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17777 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17778 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17779 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17780 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17781 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17782 | cat >>confdefs.h <<_ACEOF |
| 17783 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17784 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17785 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17786 | fi |
| 17787 | done |
| 17788 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17789 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17790 | # checks for structures |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17791 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 17792 | 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] | 17793 | if test "${ac_cv_header_time+set}" = set; then |
| 17794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17795 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17796 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17797 | /* confdefs.h. */ |
| 17798 | _ACEOF |
| 17799 | cat confdefs.h >>conftest.$ac_ext |
| 17800 | cat >>conftest.$ac_ext <<_ACEOF |
| 17801 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17802 | #include <sys/types.h> |
| 17803 | #include <sys/time.h> |
| 17804 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17806 | int |
| 17807 | main () |
| 17808 | { |
| 17809 | if ((struct tm *) 0) |
| 17810 | return 0; |
| 17811 | ; |
| 17812 | return 0; |
| 17813 | } |
| 17814 | _ACEOF |
| 17815 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17816 | if { (ac_try="$ac_compile" |
| 17817 | case "(($ac_try" in |
| 17818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17819 | *) ac_try_echo=$ac_try;; |
| 17820 | esac |
| 17821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17822 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17823 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17825 | rm -f conftest.er1 |
| 17826 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17828 | (exit $ac_status); } && { |
| 17829 | test -z "$ac_c_werror_flag" || |
| 17830 | test ! -s conftest.err |
| 17831 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17832 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17833 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17834 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17836 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17837 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17838 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17839 | |
| 17840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17841 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17842 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 17843 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17844 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17845 | |
| 17846 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17847 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17848 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17849 | |
| 17850 | fi |
| 17851 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17852 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17853 | 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] | 17854 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17856 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17857 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17858 | /* confdefs.h. */ |
| 17859 | _ACEOF |
| 17860 | cat confdefs.h >>conftest.$ac_ext |
| 17861 | cat >>conftest.$ac_ext <<_ACEOF |
| 17862 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17863 | #include <sys/types.h> |
| 17864 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17866 | int |
| 17867 | main () |
| 17868 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17869 | struct tm tm; |
| 17870 | int *p = &tm.tm_sec; |
| 17871 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17872 | ; |
| 17873 | return 0; |
| 17874 | } |
| 17875 | _ACEOF |
| 17876 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17877 | if { (ac_try="$ac_compile" |
| 17878 | case "(($ac_try" in |
| 17879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17880 | *) ac_try_echo=$ac_try;; |
| 17881 | esac |
| 17882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17883 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17884 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17886 | rm -f conftest.er1 |
| 17887 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17889 | (exit $ac_status); } && { |
| 17890 | test -z "$ac_c_werror_flag" || |
| 17891 | test ! -s conftest.err |
| 17892 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17893 | ac_cv_struct_tm=time.h |
| 17894 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17895 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17897 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17898 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17899 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17900 | |
| 17901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17902 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17903 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17904 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17905 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17906 | |
| 17907 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17908 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17909 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17910 | |
| 17911 | fi |
| 17912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17913 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 17914 | 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] | 17915 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 17916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17917 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17918 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17919 | /* confdefs.h. */ |
| 17920 | _ACEOF |
| 17921 | cat confdefs.h >>conftest.$ac_ext |
| 17922 | cat >>conftest.$ac_ext <<_ACEOF |
| 17923 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17924 | #include <sys/types.h> |
| 17925 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17926 | |
| 17927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17928 | int |
| 17929 | main () |
| 17930 | { |
| 17931 | static struct tm ac_aggr; |
| 17932 | if (ac_aggr.tm_zone) |
| 17933 | return 0; |
| 17934 | ; |
| 17935 | return 0; |
| 17936 | } |
| 17937 | _ACEOF |
| 17938 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17939 | if { (ac_try="$ac_compile" |
| 17940 | case "(($ac_try" in |
| 17941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17942 | *) ac_try_echo=$ac_try;; |
| 17943 | esac |
| 17944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17945 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17946 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17948 | rm -f conftest.er1 |
| 17949 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17951 | (exit $ac_status); } && { |
| 17952 | test -z "$ac_c_werror_flag" || |
| 17953 | test ! -s conftest.err |
| 17954 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17955 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17957 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17959 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17960 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17961 | /* confdefs.h. */ |
| 17962 | _ACEOF |
| 17963 | cat confdefs.h >>conftest.$ac_ext |
| 17964 | cat >>conftest.$ac_ext <<_ACEOF |
| 17965 | /* end confdefs.h. */ |
| 17966 | #include <sys/types.h> |
| 17967 | #include <$ac_cv_struct_tm> |
| 17968 | |
| 17969 | |
| 17970 | int |
| 17971 | main () |
| 17972 | { |
| 17973 | static struct tm ac_aggr; |
| 17974 | if (sizeof ac_aggr.tm_zone) |
| 17975 | return 0; |
| 17976 | ; |
| 17977 | return 0; |
| 17978 | } |
| 17979 | _ACEOF |
| 17980 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17981 | if { (ac_try="$ac_compile" |
| 17982 | case "(($ac_try" in |
| 17983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17984 | *) ac_try_echo=$ac_try;; |
| 17985 | esac |
| 17986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17987 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17988 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17990 | rm -f conftest.er1 |
| 17991 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17993 | (exit $ac_status); } && { |
| 17994 | test -z "$ac_c_werror_flag" || |
| 17995 | test ! -s conftest.err |
| 17996 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17997 | ac_cv_member_struct_tm_tm_zone=yes |
| 17998 | else |
| 17999 | echo "$as_me: failed program was:" >&5 |
| 18000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18001 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18002 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18003 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18004 | |
| 18005 | 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] | 18006 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18007 | |
| 18008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18009 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18010 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 18011 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18012 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 18013 | |
| 18014 | cat >>confdefs.h <<_ACEOF |
| 18015 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 18016 | _ACEOF |
| 18017 | |
| 18018 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18019 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18021 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 18022 | |
| 18023 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18024 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18025 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18026 | |
| 18027 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18028 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 18029 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
| 18030 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
| 18031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18032 | else |
| 18033 | cat >conftest.$ac_ext <<_ACEOF |
| 18034 | /* confdefs.h. */ |
| 18035 | _ACEOF |
| 18036 | cat confdefs.h >>conftest.$ac_ext |
| 18037 | cat >>conftest.$ac_ext <<_ACEOF |
| 18038 | /* end confdefs.h. */ |
| 18039 | #include <time.h> |
| 18040 | |
| 18041 | int |
| 18042 | main () |
| 18043 | { |
| 18044 | #ifndef tzname |
| 18045 | (void) tzname; |
| 18046 | #endif |
| 18047 | |
| 18048 | ; |
| 18049 | return 0; |
| 18050 | } |
| 18051 | _ACEOF |
| 18052 | rm -f conftest.$ac_objext |
| 18053 | if { (ac_try="$ac_compile" |
| 18054 | case "(($ac_try" in |
| 18055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18056 | *) ac_try_echo=$ac_try;; |
| 18057 | esac |
| 18058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18059 | (eval "$ac_compile") 2>conftest.er1 |
| 18060 | ac_status=$? |
| 18061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18062 | rm -f conftest.er1 |
| 18063 | cat conftest.err >&5 |
| 18064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18065 | (exit $ac_status); } && { |
| 18066 | test -z "$ac_c_werror_flag" || |
| 18067 | test ! -s conftest.err |
| 18068 | } && test -s conftest.$ac_objext; then |
| 18069 | ac_cv_have_decl_tzname=yes |
| 18070 | else |
| 18071 | echo "$as_me: failed program was:" >&5 |
| 18072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18073 | |
| 18074 | ac_cv_have_decl_tzname=no |
| 18075 | fi |
| 18076 | |
| 18077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18078 | fi |
| 18079 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 18080 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 18081 | if test $ac_cv_have_decl_tzname = yes; then |
| 18082 | |
| 18083 | cat >>confdefs.h <<_ACEOF |
| 18084 | #define HAVE_DECL_TZNAME 1 |
| 18085 | _ACEOF |
| 18086 | |
| 18087 | |
| 18088 | else |
| 18089 | cat >>confdefs.h <<_ACEOF |
| 18090 | #define HAVE_DECL_TZNAME 0 |
| 18091 | _ACEOF |
| 18092 | |
| 18093 | |
| 18094 | fi |
| 18095 | |
| 18096 | |
| 18097 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 18098 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18099 | if test "${ac_cv_var_tzname+set}" = set; then |
| 18100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18102 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18103 | /* confdefs.h. */ |
| 18104 | _ACEOF |
| 18105 | cat confdefs.h >>conftest.$ac_ext |
| 18106 | cat >>conftest.$ac_ext <<_ACEOF |
| 18107 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18108 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18109 | #if !HAVE_DECL_TZNAME |
| 18110 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18111 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18113 | int |
| 18114 | main () |
| 18115 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18116 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18117 | ; |
| 18118 | return 0; |
| 18119 | } |
| 18120 | _ACEOF |
| 18121 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18122 | if { (ac_try="$ac_link" |
| 18123 | case "(($ac_try" in |
| 18124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18125 | *) ac_try_echo=$ac_try;; |
| 18126 | esac |
| 18127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18128 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18129 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18131 | rm -f conftest.er1 |
| 18132 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18134 | (exit $ac_status); } && { |
| 18135 | test -z "$ac_c_werror_flag" || |
| 18136 | test ! -s conftest.err |
| 18137 | } && test -s conftest$ac_exeext && |
| 18138 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18139 | ac_cv_var_tzname=yes |
| 18140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18141 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18143 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18144 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18145 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18146 | |
| 18147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18148 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18149 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18150 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 18151 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18152 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18153 | |
| 18154 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18155 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18156 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18157 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18158 | fi |
| 18159 | fi |
| 18160 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18161 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 18162 | 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] | 18163 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 18164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18165 | else |
| 18166 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18167 | /* confdefs.h. */ |
| 18168 | _ACEOF |
| 18169 | cat confdefs.h >>conftest.$ac_ext |
| 18170 | cat >>conftest.$ac_ext <<_ACEOF |
| 18171 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18172 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18173 | int |
| 18174 | main () |
| 18175 | { |
| 18176 | static struct stat ac_aggr; |
| 18177 | if (ac_aggr.st_rdev) |
| 18178 | return 0; |
| 18179 | ; |
| 18180 | return 0; |
| 18181 | } |
| 18182 | _ACEOF |
| 18183 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18184 | if { (ac_try="$ac_compile" |
| 18185 | case "(($ac_try" in |
| 18186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18187 | *) ac_try_echo=$ac_try;; |
| 18188 | esac |
| 18189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18190 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18191 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18193 | rm -f conftest.er1 |
| 18194 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18196 | (exit $ac_status); } && { |
| 18197 | test -z "$ac_c_werror_flag" || |
| 18198 | test ! -s conftest.err |
| 18199 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18200 | ac_cv_member_struct_stat_st_rdev=yes |
| 18201 | else |
| 18202 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18204 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18205 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18206 | /* confdefs.h. */ |
| 18207 | _ACEOF |
| 18208 | cat confdefs.h >>conftest.$ac_ext |
| 18209 | cat >>conftest.$ac_ext <<_ACEOF |
| 18210 | /* end confdefs.h. */ |
| 18211 | $ac_includes_default |
| 18212 | int |
| 18213 | main () |
| 18214 | { |
| 18215 | static struct stat ac_aggr; |
| 18216 | if (sizeof ac_aggr.st_rdev) |
| 18217 | return 0; |
| 18218 | ; |
| 18219 | return 0; |
| 18220 | } |
| 18221 | _ACEOF |
| 18222 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18223 | if { (ac_try="$ac_compile" |
| 18224 | case "(($ac_try" in |
| 18225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18226 | *) ac_try_echo=$ac_try;; |
| 18227 | esac |
| 18228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18229 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18230 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18232 | rm -f conftest.er1 |
| 18233 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18235 | (exit $ac_status); } && { |
| 18236 | test -z "$ac_c_werror_flag" || |
| 18237 | test ! -s conftest.err |
| 18238 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18239 | ac_cv_member_struct_stat_st_rdev=yes |
| 18240 | else |
| 18241 | echo "$as_me: failed program was:" >&5 |
| 18242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18243 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18244 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18245 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18246 | |
| 18247 | 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] | 18248 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18249 | |
| 18250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18251 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18252 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 18253 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18254 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 18255 | |
| 18256 | cat >>confdefs.h <<_ACEOF |
| 18257 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 18258 | _ACEOF |
| 18259 | |
| 18260 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18261 | fi |
| 18262 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18263 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 18264 | 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] | 18265 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 18266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18267 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18268 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18269 | /* confdefs.h. */ |
| 18270 | _ACEOF |
| 18271 | cat confdefs.h >>conftest.$ac_ext |
| 18272 | cat >>conftest.$ac_ext <<_ACEOF |
| 18273 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18274 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18275 | int |
| 18276 | main () |
| 18277 | { |
| 18278 | static struct stat ac_aggr; |
| 18279 | if (ac_aggr.st_blksize) |
| 18280 | return 0; |
| 18281 | ; |
| 18282 | return 0; |
| 18283 | } |
| 18284 | _ACEOF |
| 18285 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18286 | if { (ac_try="$ac_compile" |
| 18287 | case "(($ac_try" in |
| 18288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18289 | *) ac_try_echo=$ac_try;; |
| 18290 | esac |
| 18291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18292 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18293 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18295 | rm -f conftest.er1 |
| 18296 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18298 | (exit $ac_status); } && { |
| 18299 | test -z "$ac_c_werror_flag" || |
| 18300 | test ! -s conftest.err |
| 18301 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18302 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18304 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18306 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18307 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18308 | /* confdefs.h. */ |
| 18309 | _ACEOF |
| 18310 | cat confdefs.h >>conftest.$ac_ext |
| 18311 | cat >>conftest.$ac_ext <<_ACEOF |
| 18312 | /* end confdefs.h. */ |
| 18313 | $ac_includes_default |
| 18314 | int |
| 18315 | main () |
| 18316 | { |
| 18317 | static struct stat ac_aggr; |
| 18318 | if (sizeof ac_aggr.st_blksize) |
| 18319 | return 0; |
| 18320 | ; |
| 18321 | return 0; |
| 18322 | } |
| 18323 | _ACEOF |
| 18324 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18325 | if { (ac_try="$ac_compile" |
| 18326 | case "(($ac_try" in |
| 18327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18328 | *) ac_try_echo=$ac_try;; |
| 18329 | esac |
| 18330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18331 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18332 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18334 | rm -f conftest.er1 |
| 18335 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18337 | (exit $ac_status); } && { |
| 18338 | test -z "$ac_c_werror_flag" || |
| 18339 | test ! -s conftest.err |
| 18340 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18341 | ac_cv_member_struct_stat_st_blksize=yes |
| 18342 | else |
| 18343 | echo "$as_me: failed program was:" >&5 |
| 18344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18345 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18346 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18347 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18348 | |
| 18349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18350 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18351 | |
| 18352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18353 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18354 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 18355 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18356 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18358 | cat >>confdefs.h <<_ACEOF |
| 18359 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 18360 | _ACEOF |
| 18361 | |
| 18362 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18363 | fi |
| 18364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18365 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 18366 | 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] | 18367 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| 18368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18369 | else |
| 18370 | cat >conftest.$ac_ext <<_ACEOF |
| 18371 | /* confdefs.h. */ |
| 18372 | _ACEOF |
| 18373 | cat confdefs.h >>conftest.$ac_ext |
| 18374 | cat >>conftest.$ac_ext <<_ACEOF |
| 18375 | /* end confdefs.h. */ |
| 18376 | $ac_includes_default |
| 18377 | int |
| 18378 | main () |
| 18379 | { |
| 18380 | static struct stat ac_aggr; |
| 18381 | if (ac_aggr.st_flags) |
| 18382 | return 0; |
| 18383 | ; |
| 18384 | return 0; |
| 18385 | } |
| 18386 | _ACEOF |
| 18387 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18388 | if { (ac_try="$ac_compile" |
| 18389 | case "(($ac_try" in |
| 18390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18391 | *) ac_try_echo=$ac_try;; |
| 18392 | esac |
| 18393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18394 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18395 | ac_status=$? |
| 18396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18397 | rm -f conftest.er1 |
| 18398 | cat conftest.err >&5 |
| 18399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18400 | (exit $ac_status); } && { |
| 18401 | test -z "$ac_c_werror_flag" || |
| 18402 | test ! -s conftest.err |
| 18403 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18404 | ac_cv_member_struct_stat_st_flags=yes |
| 18405 | else |
| 18406 | echo "$as_me: failed program was:" >&5 |
| 18407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18408 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18409 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18410 | /* confdefs.h. */ |
| 18411 | _ACEOF |
| 18412 | cat confdefs.h >>conftest.$ac_ext |
| 18413 | cat >>conftest.$ac_ext <<_ACEOF |
| 18414 | /* end confdefs.h. */ |
| 18415 | $ac_includes_default |
| 18416 | int |
| 18417 | main () |
| 18418 | { |
| 18419 | static struct stat ac_aggr; |
| 18420 | if (sizeof ac_aggr.st_flags) |
| 18421 | return 0; |
| 18422 | ; |
| 18423 | return 0; |
| 18424 | } |
| 18425 | _ACEOF |
| 18426 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18427 | if { (ac_try="$ac_compile" |
| 18428 | case "(($ac_try" in |
| 18429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18430 | *) ac_try_echo=$ac_try;; |
| 18431 | esac |
| 18432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18433 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18434 | ac_status=$? |
| 18435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18436 | rm -f conftest.er1 |
| 18437 | cat conftest.err >&5 |
| 18438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18439 | (exit $ac_status); } && { |
| 18440 | test -z "$ac_c_werror_flag" || |
| 18441 | test ! -s conftest.err |
| 18442 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18443 | ac_cv_member_struct_stat_st_flags=yes |
| 18444 | else |
| 18445 | echo "$as_me: failed program was:" >&5 |
| 18446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18447 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18448 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18449 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18450 | |
| 18451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18452 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18453 | |
| 18454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18455 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18456 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 18457 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18458 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
| 18459 | |
| 18460 | cat >>confdefs.h <<_ACEOF |
| 18461 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 18462 | _ACEOF |
| 18463 | |
| 18464 | |
| 18465 | fi |
| 18466 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18467 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 18468 | 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] | 18469 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
| 18470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18471 | else |
| 18472 | cat >conftest.$ac_ext <<_ACEOF |
| 18473 | /* confdefs.h. */ |
| 18474 | _ACEOF |
| 18475 | cat confdefs.h >>conftest.$ac_ext |
| 18476 | cat >>conftest.$ac_ext <<_ACEOF |
| 18477 | /* end confdefs.h. */ |
| 18478 | $ac_includes_default |
| 18479 | int |
| 18480 | main () |
| 18481 | { |
| 18482 | static struct stat ac_aggr; |
| 18483 | if (ac_aggr.st_gen) |
| 18484 | return 0; |
| 18485 | ; |
| 18486 | return 0; |
| 18487 | } |
| 18488 | _ACEOF |
| 18489 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18490 | if { (ac_try="$ac_compile" |
| 18491 | case "(($ac_try" in |
| 18492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18493 | *) ac_try_echo=$ac_try;; |
| 18494 | esac |
| 18495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18496 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18497 | ac_status=$? |
| 18498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18499 | rm -f conftest.er1 |
| 18500 | cat conftest.err >&5 |
| 18501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18502 | (exit $ac_status); } && { |
| 18503 | test -z "$ac_c_werror_flag" || |
| 18504 | test ! -s conftest.err |
| 18505 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18506 | ac_cv_member_struct_stat_st_gen=yes |
| 18507 | else |
| 18508 | echo "$as_me: failed program was:" >&5 |
| 18509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18510 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18511 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18512 | /* confdefs.h. */ |
| 18513 | _ACEOF |
| 18514 | cat confdefs.h >>conftest.$ac_ext |
| 18515 | cat >>conftest.$ac_ext <<_ACEOF |
| 18516 | /* end confdefs.h. */ |
| 18517 | $ac_includes_default |
| 18518 | int |
| 18519 | main () |
| 18520 | { |
| 18521 | static struct stat ac_aggr; |
| 18522 | if (sizeof ac_aggr.st_gen) |
| 18523 | return 0; |
| 18524 | ; |
| 18525 | return 0; |
| 18526 | } |
| 18527 | _ACEOF |
| 18528 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18529 | if { (ac_try="$ac_compile" |
| 18530 | case "(($ac_try" in |
| 18531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18532 | *) ac_try_echo=$ac_try;; |
| 18533 | esac |
| 18534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18535 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18536 | ac_status=$? |
| 18537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18538 | rm -f conftest.er1 |
| 18539 | cat conftest.err >&5 |
| 18540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18541 | (exit $ac_status); } && { |
| 18542 | test -z "$ac_c_werror_flag" || |
| 18543 | test ! -s conftest.err |
| 18544 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18545 | ac_cv_member_struct_stat_st_gen=yes |
| 18546 | else |
| 18547 | echo "$as_me: failed program was:" >&5 |
| 18548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18549 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18550 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18551 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18552 | |
| 18553 | 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] | 18554 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18555 | |
| 18556 | 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] | 18557 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18558 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 18559 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18560 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
| 18561 | |
| 18562 | cat >>confdefs.h <<_ACEOF |
| 18563 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 18564 | _ACEOF |
| 18565 | |
| 18566 | |
| 18567 | fi |
| 18568 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18569 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 18570 | 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] | 18571 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
| 18572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18573 | else |
| 18574 | cat >conftest.$ac_ext <<_ACEOF |
| 18575 | /* confdefs.h. */ |
| 18576 | _ACEOF |
| 18577 | cat confdefs.h >>conftest.$ac_ext |
| 18578 | cat >>conftest.$ac_ext <<_ACEOF |
| 18579 | /* end confdefs.h. */ |
| 18580 | $ac_includes_default |
| 18581 | int |
| 18582 | main () |
| 18583 | { |
| 18584 | static struct stat ac_aggr; |
| 18585 | if (ac_aggr.st_birthtime) |
| 18586 | return 0; |
| 18587 | ; |
| 18588 | return 0; |
| 18589 | } |
| 18590 | _ACEOF |
| 18591 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18592 | if { (ac_try="$ac_compile" |
| 18593 | case "(($ac_try" in |
| 18594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18595 | *) ac_try_echo=$ac_try;; |
| 18596 | esac |
| 18597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18598 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18599 | ac_status=$? |
| 18600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18601 | rm -f conftest.er1 |
| 18602 | cat conftest.err >&5 |
| 18603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18604 | (exit $ac_status); } && { |
| 18605 | test -z "$ac_c_werror_flag" || |
| 18606 | test ! -s conftest.err |
| 18607 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18608 | ac_cv_member_struct_stat_st_birthtime=yes |
| 18609 | else |
| 18610 | echo "$as_me: failed program was:" >&5 |
| 18611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18612 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18613 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18614 | /* confdefs.h. */ |
| 18615 | _ACEOF |
| 18616 | cat confdefs.h >>conftest.$ac_ext |
| 18617 | cat >>conftest.$ac_ext <<_ACEOF |
| 18618 | /* end confdefs.h. */ |
| 18619 | $ac_includes_default |
| 18620 | int |
| 18621 | main () |
| 18622 | { |
| 18623 | static struct stat ac_aggr; |
| 18624 | if (sizeof ac_aggr.st_birthtime) |
| 18625 | return 0; |
| 18626 | ; |
| 18627 | return 0; |
| 18628 | } |
| 18629 | _ACEOF |
| 18630 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18631 | if { (ac_try="$ac_compile" |
| 18632 | case "(($ac_try" in |
| 18633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18634 | *) ac_try_echo=$ac_try;; |
| 18635 | esac |
| 18636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18637 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18638 | ac_status=$? |
| 18639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18640 | rm -f conftest.er1 |
| 18641 | cat conftest.err >&5 |
| 18642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18643 | (exit $ac_status); } && { |
| 18644 | test -z "$ac_c_werror_flag" || |
| 18645 | test ! -s conftest.err |
| 18646 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18647 | ac_cv_member_struct_stat_st_birthtime=yes |
| 18648 | else |
| 18649 | echo "$as_me: failed program was:" >&5 |
| 18650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18651 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18652 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18653 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18654 | |
| 18655 | 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] | 18656 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18657 | |
| 18658 | 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] | 18659 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18660 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 18661 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18662 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
| 18663 | |
| 18664 | cat >>confdefs.h <<_ACEOF |
| 18665 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 18666 | _ACEOF |
| 18667 | |
| 18668 | |
| 18669 | fi |
| 18670 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18671 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 18672 | 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] | 18673 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 18674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18676 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18677 | /* confdefs.h. */ |
| 18678 | _ACEOF |
| 18679 | cat confdefs.h >>conftest.$ac_ext |
| 18680 | cat >>conftest.$ac_ext <<_ACEOF |
| 18681 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18682 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18683 | int |
| 18684 | main () |
| 18685 | { |
| 18686 | static struct stat ac_aggr; |
| 18687 | if (ac_aggr.st_blocks) |
| 18688 | return 0; |
| 18689 | ; |
| 18690 | return 0; |
| 18691 | } |
| 18692 | _ACEOF |
| 18693 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18694 | if { (ac_try="$ac_compile" |
| 18695 | case "(($ac_try" in |
| 18696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18697 | *) ac_try_echo=$ac_try;; |
| 18698 | esac |
| 18699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18700 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18701 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18703 | rm -f conftest.er1 |
| 18704 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18706 | (exit $ac_status); } && { |
| 18707 | test -z "$ac_c_werror_flag" || |
| 18708 | test ! -s conftest.err |
| 18709 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18710 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18712 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18714 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18715 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18716 | /* confdefs.h. */ |
| 18717 | _ACEOF |
| 18718 | cat confdefs.h >>conftest.$ac_ext |
| 18719 | cat >>conftest.$ac_ext <<_ACEOF |
| 18720 | /* end confdefs.h. */ |
| 18721 | $ac_includes_default |
| 18722 | int |
| 18723 | main () |
| 18724 | { |
| 18725 | static struct stat ac_aggr; |
| 18726 | if (sizeof ac_aggr.st_blocks) |
| 18727 | return 0; |
| 18728 | ; |
| 18729 | return 0; |
| 18730 | } |
| 18731 | _ACEOF |
| 18732 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18733 | if { (ac_try="$ac_compile" |
| 18734 | case "(($ac_try" in |
| 18735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18736 | *) ac_try_echo=$ac_try;; |
| 18737 | esac |
| 18738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18739 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18740 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18742 | rm -f conftest.er1 |
| 18743 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18745 | (exit $ac_status); } && { |
| 18746 | test -z "$ac_c_werror_flag" || |
| 18747 | test ! -s conftest.err |
| 18748 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18749 | ac_cv_member_struct_stat_st_blocks=yes |
| 18750 | else |
| 18751 | echo "$as_me: failed program was:" >&5 |
| 18752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18753 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18754 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18755 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18756 | |
| 18757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18758 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18759 | |
| 18760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18761 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18762 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 18763 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18764 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18766 | cat >>confdefs.h <<_ACEOF |
| 18767 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 18768 | _ACEOF |
| 18769 | |
| 18770 | |
| 18771 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18772 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18773 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18774 | |
| 18775 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18776 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18777 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18778 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 18779 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18780 | esac |
| 18781 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18782 | fi |
| 18783 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18785 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18786 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 18787 | 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] | 18788 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 18789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18790 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18791 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18792 | /* confdefs.h. */ |
| 18793 | _ACEOF |
| 18794 | cat confdefs.h >>conftest.$ac_ext |
| 18795 | cat >>conftest.$ac_ext <<_ACEOF |
| 18796 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18797 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18798 | int |
| 18799 | main () |
| 18800 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18801 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18802 | ; |
| 18803 | return 0; |
| 18804 | } |
| 18805 | _ACEOF |
| 18806 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18807 | if { (ac_try="$ac_compile" |
| 18808 | case "(($ac_try" in |
| 18809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18810 | *) ac_try_echo=$ac_try;; |
| 18811 | esac |
| 18812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18813 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18814 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18816 | rm -f conftest.er1 |
| 18817 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18819 | (exit $ac_status); } && { |
| 18820 | test -z "$ac_c_werror_flag" || |
| 18821 | test ! -s conftest.err |
| 18822 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18823 | ac_cv_header_time_altzone=yes |
| 18824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18825 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18827 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18828 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18829 | fi |
| 18830 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18832 | fi |
| 18833 | |
| 18834 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 18835 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18836 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18837 | |
| 18838 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18839 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18840 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18841 | |
| 18842 | fi |
| 18843 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18844 | was_it_defined=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18845 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 18846 | 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] | 18847 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18848 | /* confdefs.h. */ |
| 18849 | _ACEOF |
| 18850 | cat confdefs.h >>conftest.$ac_ext |
| 18851 | cat >>conftest.$ac_ext <<_ACEOF |
| 18852 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18853 | |
| 18854 | #include <sys/types.h> |
| 18855 | #include <sys/select.h> |
| 18856 | #include <sys/time.h> |
| 18857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18858 | int |
| 18859 | main () |
| 18860 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18861 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18862 | ; |
| 18863 | return 0; |
| 18864 | } |
| 18865 | _ACEOF |
| 18866 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18867 | if { (ac_try="$ac_compile" |
| 18868 | case "(($ac_try" in |
| 18869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18870 | *) ac_try_echo=$ac_try;; |
| 18871 | esac |
| 18872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18873 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18874 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18876 | rm -f conftest.er1 |
| 18877 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18879 | (exit $ac_status); } && { |
| 18880 | test -z "$ac_c_werror_flag" || |
| 18881 | test ! -s conftest.err |
| 18882 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18883 | |
| 18884 | |
| 18885 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18886 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18887 | _ACEOF |
| 18888 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18889 | was_it_defined=yes |
| 18890 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18892 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18894 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 18895 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18896 | fi |
| 18897 | |
| 18898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18899 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 18900 | echo "${ECHO_T}$was_it_defined" >&6; } |
| 18901 | |
| 18902 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 18903 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18904 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 18905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18907 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18908 | /* confdefs.h. */ |
| 18909 | _ACEOF |
| 18910 | cat confdefs.h >>conftest.$ac_ext |
| 18911 | cat >>conftest.$ac_ext <<_ACEOF |
| 18912 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18913 | |
| 18914 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18915 | int |
| 18916 | main () |
| 18917 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18918 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18919 | ; |
| 18920 | return 0; |
| 18921 | } |
| 18922 | _ACEOF |
| 18923 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18924 | if { (ac_try="$ac_compile" |
| 18925 | case "(($ac_try" in |
| 18926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18927 | *) ac_try_echo=$ac_try;; |
| 18928 | esac |
| 18929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18930 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18931 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18933 | rm -f conftest.er1 |
| 18934 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18936 | (exit $ac_status); } && { |
| 18937 | test -z "$ac_c_werror_flag" || |
| 18938 | test ! -s conftest.err |
| 18939 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18940 | ac_cv_struct_addrinfo=yes |
| 18941 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18942 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18944 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18945 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18946 | fi |
| 18947 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18949 | fi |
| 18950 | |
| 18951 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 18952 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18953 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18954 | |
| 18955 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18956 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18957 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18958 | |
| 18959 | fi |
| 18960 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18961 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 18962 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18963 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 18964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18966 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18967 | /* confdefs.h. */ |
| 18968 | _ACEOF |
| 18969 | cat confdefs.h >>conftest.$ac_ext |
| 18970 | cat >>conftest.$ac_ext <<_ACEOF |
| 18971 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18972 | |
| 18973 | # include <sys/types.h> |
| 18974 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18975 | int |
| 18976 | main () |
| 18977 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18978 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18979 | ; |
| 18980 | return 0; |
| 18981 | } |
| 18982 | _ACEOF |
| 18983 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18984 | if { (ac_try="$ac_compile" |
| 18985 | case "(($ac_try" in |
| 18986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18987 | *) ac_try_echo=$ac_try;; |
| 18988 | esac |
| 18989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18990 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18991 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18993 | rm -f conftest.er1 |
| 18994 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18996 | (exit $ac_status); } && { |
| 18997 | test -z "$ac_c_werror_flag" || |
| 18998 | test ! -s conftest.err |
| 18999 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19000 | ac_cv_struct_sockaddr_storage=yes |
| 19001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19002 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19004 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19005 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19006 | fi |
| 19007 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19009 | fi |
| 19010 | |
| 19011 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 19012 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19013 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19014 | |
| 19015 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19016 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19017 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19018 | |
| 19019 | fi |
| 19020 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19021 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19022 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19023 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19024 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 19025 | 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] | 19026 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 19027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19028 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19029 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19030 | /* confdefs.h. */ |
| 19031 | _ACEOF |
| 19032 | cat confdefs.h >>conftest.$ac_ext |
| 19033 | cat >>conftest.$ac_ext <<_ACEOF |
| 19034 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19035 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19036 | int |
| 19037 | main () |
| 19038 | { |
| 19039 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 19040 | test_array [0] = 0 |
| 19041 | |
| 19042 | ; |
| 19043 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19044 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19045 | _ACEOF |
| 19046 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19047 | if { (ac_try="$ac_compile" |
| 19048 | case "(($ac_try" in |
| 19049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19050 | *) ac_try_echo=$ac_try;; |
| 19051 | esac |
| 19052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19053 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19054 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19056 | rm -f conftest.er1 |
| 19057 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19059 | (exit $ac_status); } && { |
| 19060 | test -z "$ac_c_werror_flag" || |
| 19061 | test ! -s conftest.err |
| 19062 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19063 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19064 | else |
| 19065 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19067 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19068 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19069 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19070 | |
| 19071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19072 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19073 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 19074 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19075 | 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] | 19076 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19077 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19078 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19079 | |
| 19080 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19081 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19082 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 19083 | 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] | 19084 | if test "${ac_cv_c_const+set}" = set; then |
| 19085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19086 | else |
| 19087 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19088 | /* confdefs.h. */ |
| 19089 | _ACEOF |
| 19090 | cat confdefs.h >>conftest.$ac_ext |
| 19091 | cat >>conftest.$ac_ext <<_ACEOF |
| 19092 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19093 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19094 | int |
| 19095 | main () |
| 19096 | { |
| 19097 | /* FIXME: Include the comments suggested by Paul. */ |
| 19098 | #ifndef __cplusplus |
| 19099 | /* Ultrix mips cc rejects this. */ |
| 19100 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19101 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19102 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19103 | char const *const *pcpcc; |
| 19104 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19105 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 19106 | struct point {int x, y;}; |
| 19107 | static struct point const zero = {0,0}; |
| 19108 | /* AIX XL C 1.02.0.0 rejects this. |
| 19109 | It does not let you subtract one const X* pointer from another in |
| 19110 | an arm of an if-expression whose if-part is not a constant |
| 19111 | expression */ |
| 19112 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19113 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19114 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19115 | ++pcpcc; |
| 19116 | ppc = (char**) pcpcc; |
| 19117 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19118 | { /* SCO 3.2v4 cc rejects this. */ |
| 19119 | char *t; |
| 19120 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19122 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19123 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19124 | } |
| 19125 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 19126 | int x[] = {25, 17}; |
| 19127 | const int *foo = &x[0]; |
| 19128 | ++foo; |
| 19129 | } |
| 19130 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 19131 | typedef const int *iptr; |
| 19132 | iptr p = 0; |
| 19133 | ++p; |
| 19134 | } |
| 19135 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 19136 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 19137 | struct s { int j; const int *ap[3]; }; |
| 19138 | struct s *b; b->j = 5; |
| 19139 | } |
| 19140 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 19141 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19142 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19143 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19144 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19145 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19147 | ; |
| 19148 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19149 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19150 | _ACEOF |
| 19151 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19152 | if { (ac_try="$ac_compile" |
| 19153 | case "(($ac_try" in |
| 19154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19155 | *) ac_try_echo=$ac_try;; |
| 19156 | esac |
| 19157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19158 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19159 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19161 | rm -f conftest.er1 |
| 19162 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19164 | (exit $ac_status); } && { |
| 19165 | test -z "$ac_c_werror_flag" || |
| 19166 | test ! -s conftest.err |
| 19167 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19168 | ac_cv_c_const=yes |
| 19169 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19170 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19172 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19173 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19174 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19175 | |
| 19176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19177 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19178 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 19179 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19180 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19181 | |
| 19182 | cat >>confdefs.h <<\_ACEOF |
| 19183 | #define const |
| 19184 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19185 | |
| 19186 | fi |
| 19187 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19188 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19189 | works=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19190 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 19191 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19192 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19193 | /* confdefs.h. */ |
| 19194 | _ACEOF |
| 19195 | cat confdefs.h >>conftest.$ac_ext |
| 19196 | cat >>conftest.$ac_ext <<_ACEOF |
| 19197 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19199 | int |
| 19200 | main () |
| 19201 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19202 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19203 | ; |
| 19204 | return 0; |
| 19205 | } |
| 19206 | _ACEOF |
| 19207 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19208 | if { (ac_try="$ac_compile" |
| 19209 | case "(($ac_try" in |
| 19210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19211 | *) ac_try_echo=$ac_try;; |
| 19212 | esac |
| 19213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19214 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19215 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19217 | rm -f conftest.er1 |
| 19218 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19220 | (exit $ac_status); } && { |
| 19221 | test -z "$ac_c_werror_flag" || |
| 19222 | test ! -s conftest.err |
| 19223 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19224 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19226 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19229 | |
| 19230 | cat >>confdefs.h <<\_ACEOF |
| 19231 | #define volatile |
| 19232 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19233 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19234 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19235 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19236 | |
| 19237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19238 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 19239 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19240 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19241 | works=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19242 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 19243 | 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] | 19244 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19245 | /* confdefs.h. */ |
| 19246 | _ACEOF |
| 19247 | cat confdefs.h >>conftest.$ac_ext |
| 19248 | cat >>conftest.$ac_ext <<_ACEOF |
| 19249 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 19250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19251 | int |
| 19252 | main () |
| 19253 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19254 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19255 | ; |
| 19256 | return 0; |
| 19257 | } |
| 19258 | _ACEOF |
| 19259 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19260 | if { (ac_try="$ac_compile" |
| 19261 | case "(($ac_try" in |
| 19262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19263 | *) ac_try_echo=$ac_try;; |
| 19264 | esac |
| 19265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19266 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19267 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19269 | rm -f conftest.er1 |
| 19270 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19272 | (exit $ac_status); } && { |
| 19273 | test -z "$ac_c_werror_flag" || |
| 19274 | test ! -s conftest.err |
| 19275 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19276 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 19277 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19281 | |
| 19282 | cat >>confdefs.h <<\_ACEOF |
| 19283 | #define signed |
| 19284 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19285 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19286 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19287 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19288 | |
| 19289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19290 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 19291 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19292 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19293 | have_prototypes=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19294 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 19295 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19296 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19297 | /* confdefs.h. */ |
| 19298 | _ACEOF |
| 19299 | cat confdefs.h >>conftest.$ac_ext |
| 19300 | cat >>conftest.$ac_ext <<_ACEOF |
| 19301 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19302 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19303 | int |
| 19304 | main () |
| 19305 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19306 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19307 | ; |
| 19308 | return 0; |
| 19309 | } |
| 19310 | _ACEOF |
| 19311 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19312 | if { (ac_try="$ac_compile" |
| 19313 | case "(($ac_try" in |
| 19314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19315 | *) ac_try_echo=$ac_try;; |
| 19316 | esac |
| 19317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19318 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19319 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19321 | rm -f conftest.er1 |
| 19322 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19324 | (exit $ac_status); } && { |
| 19325 | test -z "$ac_c_werror_flag" || |
| 19326 | test ! -s conftest.err |
| 19327 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19328 | |
| 19329 | |
| 19330 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19331 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19332 | _ACEOF |
| 19333 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19334 | have_prototypes=yes |
| 19335 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 19336 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19337 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19339 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19340 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19341 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19342 | |
| 19343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19344 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 19345 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19346 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19347 | works=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19348 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 19349 | 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] | 19350 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19351 | /* confdefs.h. */ |
| 19352 | _ACEOF |
| 19353 | cat confdefs.h >>conftest.$ac_ext |
| 19354 | cat >>conftest.$ac_ext <<_ACEOF |
| 19355 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19356 | |
| 19357 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 19358 | int foo(int x, ...) { |
| 19359 | va_list va; |
| 19360 | va_start(va, x); |
| 19361 | va_arg(va, int); |
| 19362 | va_arg(va, char *); |
| 19363 | va_arg(va, double); |
| 19364 | return 0; |
| 19365 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19367 | int |
| 19368 | main () |
| 19369 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 19370 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19371 | ; |
| 19372 | return 0; |
| 19373 | } |
| 19374 | _ACEOF |
| 19375 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19376 | if { (ac_try="$ac_compile" |
| 19377 | case "(($ac_try" in |
| 19378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19379 | *) ac_try_echo=$ac_try;; |
| 19380 | esac |
| 19381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19382 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19383 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19385 | rm -f conftest.er1 |
| 19386 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19388 | (exit $ac_status); } && { |
| 19389 | test -z "$ac_c_werror_flag" || |
| 19390 | test ! -s conftest.err |
| 19391 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19392 | |
| 19393 | |
| 19394 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19395 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19396 | _ACEOF |
| 19397 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19398 | works=yes |
| 19399 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 19400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19401 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19403 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19404 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19405 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19406 | |
| 19407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19408 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 19409 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19410 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19411 | # check for socketpair |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19412 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 19413 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19414 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19415 | /* confdefs.h. */ |
| 19416 | _ACEOF |
| 19417 | cat confdefs.h >>conftest.$ac_ext |
| 19418 | cat >>conftest.$ac_ext <<_ACEOF |
| 19419 | /* end confdefs.h. */ |
| 19420 | |
| 19421 | #include <sys/types.h> |
| 19422 | #include <sys/socket.h> |
| 19423 | |
| 19424 | int |
| 19425 | main () |
| 19426 | { |
| 19427 | void *x=socketpair |
| 19428 | ; |
| 19429 | return 0; |
| 19430 | } |
| 19431 | _ACEOF |
| 19432 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19433 | if { (ac_try="$ac_compile" |
| 19434 | case "(($ac_try" in |
| 19435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19436 | *) ac_try_echo=$ac_try;; |
| 19437 | esac |
| 19438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19439 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19440 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19442 | rm -f conftest.er1 |
| 19443 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19445 | (exit $ac_status); } && { |
| 19446 | test -z "$ac_c_werror_flag" || |
| 19447 | test ! -s conftest.err |
| 19448 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19449 | |
| 19450 | cat >>confdefs.h <<\_ACEOF |
| 19451 | #define HAVE_SOCKETPAIR 1 |
| 19452 | _ACEOF |
| 19453 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19454 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19455 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19456 | else |
| 19457 | echo "$as_me: failed program was:" >&5 |
| 19458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19459 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19460 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19461 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19462 | |
| 19463 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19464 | |
| 19465 | 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] | 19466 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19467 | # check if sockaddr has sa_len member |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19468 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 19469 | 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] | 19470 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19471 | /* confdefs.h. */ |
| 19472 | _ACEOF |
| 19473 | cat confdefs.h >>conftest.$ac_ext |
| 19474 | cat >>conftest.$ac_ext <<_ACEOF |
| 19475 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19476 | #include <sys/types.h> |
| 19477 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19478 | int |
| 19479 | main () |
| 19480 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19481 | struct sockaddr x; |
| 19482 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19483 | ; |
| 19484 | return 0; |
| 19485 | } |
| 19486 | _ACEOF |
| 19487 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19488 | if { (ac_try="$ac_compile" |
| 19489 | case "(($ac_try" in |
| 19490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19491 | *) ac_try_echo=$ac_try;; |
| 19492 | esac |
| 19493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19494 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19495 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19497 | rm -f conftest.er1 |
| 19498 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19500 | (exit $ac_status); } && { |
| 19501 | test -z "$ac_c_werror_flag" || |
| 19502 | test ! -s conftest.err |
| 19503 | } && test -s conftest.$ac_objext; then |
| 19504 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19505 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19506 | |
| 19507 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19508 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19509 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19510 | |
| 19511 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19512 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19514 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19515 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19516 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19517 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19518 | |
| 19519 | 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] | 19520 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19521 | va_list_is_array=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19522 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 19523 | 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] | 19524 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19525 | /* confdefs.h. */ |
| 19526 | _ACEOF |
| 19527 | cat confdefs.h >>conftest.$ac_ext |
| 19528 | cat >>conftest.$ac_ext <<_ACEOF |
| 19529 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19530 | |
| 19531 | #ifdef HAVE_STDARG_PROTOTYPES |
| 19532 | #include <stdarg.h> |
| 19533 | #else |
| 19534 | #include <varargs.h> |
| 19535 | #endif |
| 19536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19537 | int |
| 19538 | main () |
| 19539 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19540 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19541 | ; |
| 19542 | return 0; |
| 19543 | } |
| 19544 | _ACEOF |
| 19545 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19546 | if { (ac_try="$ac_compile" |
| 19547 | case "(($ac_try" in |
| 19548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19549 | *) ac_try_echo=$ac_try;; |
| 19550 | esac |
| 19551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19552 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19553 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19555 | rm -f conftest.er1 |
| 19556 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19558 | (exit $ac_status); } && { |
| 19559 | test -z "$ac_c_werror_flag" || |
| 19560 | test ! -s conftest.err |
| 19561 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19562 | : |
| 19563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19564 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19567 | |
| 19568 | |
| 19569 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19570 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19571 | _ACEOF |
| 19572 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19573 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19574 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19575 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19576 | |
| 19577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19578 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 19579 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19580 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19581 | # 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] | 19582 | |
| 19583 | |
| 19584 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19585 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 19586 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19587 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 19588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19590 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19591 | /* confdefs.h. */ |
| 19592 | _ACEOF |
| 19593 | cat confdefs.h >>conftest.$ac_ext |
| 19594 | cat >>conftest.$ac_ext <<_ACEOF |
| 19595 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19596 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 19597 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19598 | #define gethostbyname_r innocuous_gethostbyname_r |
| 19599 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19600 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19601 | which can conflict with char gethostbyname_r (); below. |
| 19602 | 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] | 19603 | <limits.h> exists even on freestanding compilers. */ |
| 19604 | |
| 19605 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19606 | # include <limits.h> |
| 19607 | #else |
| 19608 | # include <assert.h> |
| 19609 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19610 | |
| 19611 | #undef gethostbyname_r |
| 19612 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19613 | /* Override any GCC internal prototype to avoid an error. |
| 19614 | Use char because int might match the return type of a GCC |
| 19615 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19616 | #ifdef __cplusplus |
| 19617 | extern "C" |
| 19618 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19619 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19620 | /* The GNU C library defines this for functions which it implements |
| 19621 | to always fail with ENOSYS. Some functions are actually named |
| 19622 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19623 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19624 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19625 | #endif |
| 19626 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19627 | int |
| 19628 | main () |
| 19629 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19630 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19631 | ; |
| 19632 | return 0; |
| 19633 | } |
| 19634 | _ACEOF |
| 19635 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19636 | if { (ac_try="$ac_link" |
| 19637 | case "(($ac_try" in |
| 19638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19639 | *) ac_try_echo=$ac_try;; |
| 19640 | esac |
| 19641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19642 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19643 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19645 | rm -f conftest.er1 |
| 19646 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19648 | (exit $ac_status); } && { |
| 19649 | test -z "$ac_c_werror_flag" || |
| 19650 | test ! -s conftest.err |
| 19651 | } && test -s conftest$ac_exeext && |
| 19652 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19653 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19654 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19655 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19657 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19658 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19659 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19660 | |
| 19661 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19662 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19663 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19664 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 19665 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19666 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19668 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19669 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19670 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19671 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19672 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 19673 | 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] | 19674 | OLD_CFLAGS=$CFLAGS |
| 19675 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19676 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19677 | /* confdefs.h. */ |
| 19678 | _ACEOF |
| 19679 | cat confdefs.h >>conftest.$ac_ext |
| 19680 | cat >>conftest.$ac_ext <<_ACEOF |
| 19681 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19682 | |
| 19683 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19685 | int |
| 19686 | main () |
| 19687 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19688 | |
| 19689 | char *name; |
| 19690 | struct hostent *he, *res; |
| 19691 | char buffer[2048]; |
| 19692 | int buflen = 2048; |
| 19693 | int h_errnop; |
| 19694 | |
| 19695 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19696 | |
| 19697 | ; |
| 19698 | return 0; |
| 19699 | } |
| 19700 | _ACEOF |
| 19701 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19702 | if { (ac_try="$ac_compile" |
| 19703 | case "(($ac_try" in |
| 19704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19705 | *) ac_try_echo=$ac_try;; |
| 19706 | esac |
| 19707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19708 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19709 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19711 | rm -f conftest.er1 |
| 19712 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19714 | (exit $ac_status); } && { |
| 19715 | test -z "$ac_c_werror_flag" || |
| 19716 | test ! -s conftest.err |
| 19717 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19718 | |
| 19719 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19720 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19721 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19723 | |
| 19724 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19725 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19726 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19727 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19728 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19729 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19730 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19732 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19735 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19736 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19737 | echo "${ECHO_T}no" >&6; } |
| 19738 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 19739 | 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] | 19740 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19741 | /* confdefs.h. */ |
| 19742 | _ACEOF |
| 19743 | cat confdefs.h >>conftest.$ac_ext |
| 19744 | cat >>conftest.$ac_ext <<_ACEOF |
| 19745 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19746 | |
| 19747 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19749 | int |
| 19750 | main () |
| 19751 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19752 | |
| 19753 | char *name; |
| 19754 | struct hostent *he; |
| 19755 | char buffer[2048]; |
| 19756 | int buflen = 2048; |
| 19757 | int h_errnop; |
| 19758 | |
| 19759 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19760 | |
| 19761 | ; |
| 19762 | return 0; |
| 19763 | } |
| 19764 | _ACEOF |
| 19765 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19766 | if { (ac_try="$ac_compile" |
| 19767 | case "(($ac_try" in |
| 19768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19769 | *) ac_try_echo=$ac_try;; |
| 19770 | esac |
| 19771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19772 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19773 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19775 | rm -f conftest.er1 |
| 19776 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19778 | (exit $ac_status); } && { |
| 19779 | test -z "$ac_c_werror_flag" || |
| 19780 | test ! -s conftest.err |
| 19781 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19782 | |
| 19783 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19784 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19785 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19787 | |
| 19788 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19789 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19790 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19791 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19792 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19793 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19794 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19795 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19796 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19798 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19799 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19800 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19801 | echo "${ECHO_T}no" >&6; } |
| 19802 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 19803 | 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] | 19804 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19805 | /* confdefs.h. */ |
| 19806 | _ACEOF |
| 19807 | cat confdefs.h >>conftest.$ac_ext |
| 19808 | cat >>conftest.$ac_ext <<_ACEOF |
| 19809 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19810 | |
| 19811 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19813 | int |
| 19814 | main () |
| 19815 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19816 | |
| 19817 | char *name; |
| 19818 | struct hostent *he; |
| 19819 | struct hostent_data data; |
| 19820 | |
| 19821 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19822 | |
| 19823 | ; |
| 19824 | return 0; |
| 19825 | } |
| 19826 | _ACEOF |
| 19827 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19828 | if { (ac_try="$ac_compile" |
| 19829 | case "(($ac_try" in |
| 19830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19831 | *) ac_try_echo=$ac_try;; |
| 19832 | esac |
| 19833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19834 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19835 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19837 | rm -f conftest.er1 |
| 19838 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19840 | (exit $ac_status); } && { |
| 19841 | test -z "$ac_c_werror_flag" || |
| 19842 | test ! -s conftest.err |
| 19843 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19844 | |
| 19845 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19846 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19847 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19849 | |
| 19850 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19851 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19852 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19853 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19854 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19855 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19856 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19858 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19861 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19862 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19863 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19864 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19865 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19866 | |
| 19867 | 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] | 19868 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19869 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19870 | |
| 19871 | 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] | 19872 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19873 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19874 | |
| 19875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19876 | CFLAGS=$OLD_CFLAGS |
| 19877 | |
| 19878 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19879 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19880 | |
| 19881 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19882 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19883 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19884 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19885 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19886 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19889 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19890 | /* confdefs.h. */ |
| 19891 | _ACEOF |
| 19892 | cat confdefs.h >>conftest.$ac_ext |
| 19893 | cat >>conftest.$ac_ext <<_ACEOF |
| 19894 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19895 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19896 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19897 | #define $ac_func innocuous_$ac_func |
| 19898 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19899 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19900 | which can conflict with char $ac_func (); below. |
| 19901 | 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] | 19902 | <limits.h> exists even on freestanding compilers. */ |
| 19903 | |
| 19904 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19905 | # include <limits.h> |
| 19906 | #else |
| 19907 | # include <assert.h> |
| 19908 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19909 | |
| 19910 | #undef $ac_func |
| 19911 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19912 | /* Override any GCC internal prototype to avoid an error. |
| 19913 | Use char because int might match the return type of a GCC |
| 19914 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19915 | #ifdef __cplusplus |
| 19916 | extern "C" |
| 19917 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19918 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19919 | /* The GNU C library defines this for functions which it implements |
| 19920 | to always fail with ENOSYS. Some functions are actually named |
| 19921 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19922 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19923 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19924 | #endif |
| 19925 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19926 | int |
| 19927 | main () |
| 19928 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19929 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19930 | ; |
| 19931 | return 0; |
| 19932 | } |
| 19933 | _ACEOF |
| 19934 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19935 | if { (ac_try="$ac_link" |
| 19936 | case "(($ac_try" in |
| 19937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19938 | *) ac_try_echo=$ac_try;; |
| 19939 | esac |
| 19940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19941 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19942 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19944 | rm -f conftest.er1 |
| 19945 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19947 | (exit $ac_status); } && { |
| 19948 | test -z "$ac_c_werror_flag" || |
| 19949 | test ! -s conftest.err |
| 19950 | } && test -s conftest$ac_exeext && |
| 19951 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19952 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19956 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19957 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19958 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19959 | |
| 19960 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19961 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19962 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19963 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19964 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19965 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19966 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 19967 | cat >>confdefs.h <<_ACEOF |
| 19968 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19969 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19970 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19971 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19972 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19973 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19974 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19975 | fi |
| 19976 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19977 | |
| 19978 | |
| 19979 | |
| 19980 | |
| 19981 | |
| 19982 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19983 | # checks for system services |
| 19984 | # (none yet) |
| 19985 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19986 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19987 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 19988 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19989 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 19990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19991 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19992 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19993 | /* confdefs.h. */ |
| 19994 | _ACEOF |
| 19995 | cat confdefs.h >>conftest.$ac_ext |
| 19996 | cat >>conftest.$ac_ext <<_ACEOF |
| 19997 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19998 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 19999 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20000 | #define __fpu_control innocuous___fpu_control |
| 20001 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20002 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20003 | which can conflict with char __fpu_control (); below. |
| 20004 | 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] | 20005 | <limits.h> exists even on freestanding compilers. */ |
| 20006 | |
| 20007 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20008 | # include <limits.h> |
| 20009 | #else |
| 20010 | # include <assert.h> |
| 20011 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20012 | |
| 20013 | #undef __fpu_control |
| 20014 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20015 | /* Override any GCC internal prototype to avoid an error. |
| 20016 | Use char because int might match the return type of a GCC |
| 20017 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20018 | #ifdef __cplusplus |
| 20019 | extern "C" |
| 20020 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20021 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20022 | /* The GNU C library defines this for functions which it implements |
| 20023 | to always fail with ENOSYS. Some functions are actually named |
| 20024 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20025 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20026 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20027 | #endif |
| 20028 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20029 | int |
| 20030 | main () |
| 20031 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20032 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20033 | ; |
| 20034 | return 0; |
| 20035 | } |
| 20036 | _ACEOF |
| 20037 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20038 | if { (ac_try="$ac_link" |
| 20039 | case "(($ac_try" in |
| 20040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20041 | *) ac_try_echo=$ac_try;; |
| 20042 | esac |
| 20043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20044 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20045 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20047 | rm -f conftest.er1 |
| 20048 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20050 | (exit $ac_status); } && { |
| 20051 | test -z "$ac_c_werror_flag" || |
| 20052 | test ! -s conftest.err |
| 20053 | } && test -s conftest$ac_exeext && |
| 20054 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20055 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20057 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20059 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20060 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20061 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20062 | |
| 20063 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20064 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20065 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20066 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 20067 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20068 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20069 | : |
| 20070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20071 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20072 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 20073 | 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] | 20074 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 20075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20077 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20078 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20079 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20080 | /* confdefs.h. */ |
| 20081 | _ACEOF |
| 20082 | cat confdefs.h >>conftest.$ac_ext |
| 20083 | cat >>conftest.$ac_ext <<_ACEOF |
| 20084 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20085 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20086 | /* Override any GCC internal prototype to avoid an error. |
| 20087 | Use char because int might match the return type of a GCC |
| 20088 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20089 | #ifdef __cplusplus |
| 20090 | extern "C" |
| 20091 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20092 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20093 | int |
| 20094 | main () |
| 20095 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20096 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20097 | ; |
| 20098 | return 0; |
| 20099 | } |
| 20100 | _ACEOF |
| 20101 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20102 | if { (ac_try="$ac_link" |
| 20103 | case "(($ac_try" in |
| 20104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20105 | *) ac_try_echo=$ac_try;; |
| 20106 | esac |
| 20107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20108 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20109 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20111 | rm -f conftest.er1 |
| 20112 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20114 | (exit $ac_status); } && { |
| 20115 | test -z "$ac_c_werror_flag" || |
| 20116 | test ! -s conftest.err |
| 20117 | } && test -s conftest$ac_exeext && |
| 20118 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20119 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20120 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20121 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20123 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20124 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20125 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20126 | |
| 20127 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20128 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20129 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20130 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20131 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 20132 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20133 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 20134 | cat >>confdefs.h <<_ACEOF |
| 20135 | #define HAVE_LIBIEEE 1 |
| 20136 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20137 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20138 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20139 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20140 | fi |
| 20141 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20142 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20143 | fi |
| 20144 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20145 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20146 | # Check for --with-fpectl |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20147 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 20148 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20149 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20150 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20151 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20152 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20153 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20154 | then |
| 20155 | |
| 20156 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20157 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20158 | _ACEOF |
| 20159 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20160 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20161 | echo "${ECHO_T}yes" >&6; } |
| 20162 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 20163 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20164 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20165 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20166 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20167 | echo "${ECHO_T}no" >&6; } |
| 20168 | fi |
| 20169 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20170 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20171 | # check for --with-libm=... |
| 20172 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 20173 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 20174 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 20175 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 20176 | *) LIBM=-lm |
| 20177 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20178 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 20179 | 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] | 20180 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20181 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 20182 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20183 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20184 | if test "$withval" = no |
| 20185 | then LIBM= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20186 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 20187 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20188 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20189 | then LIBM=$withval |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20190 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 20191 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20192 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 20193 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 20194 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20195 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20196 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20197 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 20198 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
| 20199 | fi |
| 20200 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20201 | |
| 20202 | # check for --with-libc=... |
| 20203 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20204 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 20205 | 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] | 20206 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20207 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 20208 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20209 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20210 | if test "$withval" = no |
| 20211 | then LIBC= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20212 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 20213 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20214 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20215 | then LIBC=$withval |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20216 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 20217 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20218 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 20219 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 20220 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20221 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20222 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20223 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 20224 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
| 20225 | fi |
| 20226 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20227 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20228 | # check for hypot() in math library |
| 20229 | LIBS_SAVE=$LIBS |
| 20230 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20231 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20232 | for ac_func in hypot |
| 20233 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20234 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20235 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20236 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20237 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20239 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20240 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20241 | /* confdefs.h. */ |
| 20242 | _ACEOF |
| 20243 | cat confdefs.h >>conftest.$ac_ext |
| 20244 | cat >>conftest.$ac_ext <<_ACEOF |
| 20245 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20246 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20247 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20248 | #define $ac_func innocuous_$ac_func |
| 20249 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20250 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20251 | which can conflict with char $ac_func (); below. |
| 20252 | 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] | 20253 | <limits.h> exists even on freestanding compilers. */ |
| 20254 | |
| 20255 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20256 | # include <limits.h> |
| 20257 | #else |
| 20258 | # include <assert.h> |
| 20259 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20260 | |
| 20261 | #undef $ac_func |
| 20262 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20263 | /* Override any GCC internal prototype to avoid an error. |
| 20264 | Use char because int might match the return type of a GCC |
| 20265 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20266 | #ifdef __cplusplus |
| 20267 | extern "C" |
| 20268 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20269 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20270 | /* The GNU C library defines this for functions which it implements |
| 20271 | to always fail with ENOSYS. Some functions are actually named |
| 20272 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20273 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20274 | choke me |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20275 | #endif |
| 20276 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20277 | int |
| 20278 | main () |
| 20279 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20280 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20281 | ; |
| 20282 | return 0; |
| 20283 | } |
| 20284 | _ACEOF |
| 20285 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20286 | if { (ac_try="$ac_link" |
| 20287 | case "(($ac_try" in |
| 20288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20289 | *) ac_try_echo=$ac_try;; |
| 20290 | esac |
| 20291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20292 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20293 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20295 | rm -f conftest.er1 |
| 20296 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20298 | (exit $ac_status); } && { |
| 20299 | test -z "$ac_c_werror_flag" || |
| 20300 | test ! -s conftest.err |
| 20301 | } && test -s conftest$ac_exeext && |
| 20302 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20303 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 20304 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20305 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20307 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20308 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20309 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20310 | |
| 20311 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20312 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20313 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20314 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20315 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20316 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20317 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20318 | cat >>confdefs.h <<_ACEOF |
| 20319 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20320 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20321 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20322 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20323 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20324 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20325 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 20326 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20327 | esac |
| 20328 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 20329 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 20330 | done |
| 20331 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20332 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20333 | LIBS=$LIBS_SAVE |
| 20334 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20335 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20336 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20337 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 20338 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20339 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 20340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20341 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20342 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 20343 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20345 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20346 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 20347 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20348 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20349 | /* confdefs.h. */ |
| 20350 | _ACEOF |
| 20351 | cat confdefs.h >>conftest.$ac_ext |
| 20352 | cat >>conftest.$ac_ext <<_ACEOF |
| 20353 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20354 | $ac_includes_default |
| 20355 | #include <wchar.h> |
| 20356 | _ACEOF |
| 20357 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20358 | if { (ac_try="$ac_compile" |
| 20359 | case "(($ac_try" in |
| 20360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20361 | *) ac_try_echo=$ac_try;; |
| 20362 | esac |
| 20363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20364 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20365 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20367 | rm -f conftest.er1 |
| 20368 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20370 | (exit $ac_status); } && { |
| 20371 | test -z "$ac_c_werror_flag" || |
| 20372 | test ! -s conftest.err |
| 20373 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20374 | ac_header_compiler=yes |
| 20375 | else |
| 20376 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20378 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20379 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20380 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20381 | |
| 20382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20383 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20384 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20385 | |
| 20386 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20387 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 20388 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20389 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20390 | /* confdefs.h. */ |
| 20391 | _ACEOF |
| 20392 | cat confdefs.h >>conftest.$ac_ext |
| 20393 | cat >>conftest.$ac_ext <<_ACEOF |
| 20394 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20395 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20396 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20397 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20398 | case "(($ac_try" in |
| 20399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20400 | *) ac_try_echo=$ac_try;; |
| 20401 | esac |
| 20402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20403 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20404 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20405 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20406 | rm -f conftest.er1 |
| 20407 | cat conftest.err >&5 |
| 20408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20409 | (exit $ac_status); } >/dev/null && { |
| 20410 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 20411 | test ! -s conftest.err |
| 20412 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20413 | ac_header_preproc=yes |
| 20414 | else |
| 20415 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20417 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20418 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20419 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20421 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20422 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20423 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20424 | |
| 20425 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20426 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20427 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20428 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20429 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20430 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 20431 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 20432 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20433 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20434 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20435 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 20436 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20437 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 20438 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 20439 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 20440 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 20441 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 20442 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20443 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 20444 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20445 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 20446 | 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] | 20447 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20448 | ## ------------------------------------------------ ## |
| 20449 | ## Report this to http://www.python.org/python-bugs ## |
| 20450 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20451 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20452 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20453 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20454 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20455 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 20456 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20457 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 20458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20459 | else |
| 20460 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20461 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20462 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 20463 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20464 | |
| 20465 | fi |
| 20466 | if test $ac_cv_header_wchar_h = yes; then |
| 20467 | |
| 20468 | |
| 20469 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20470 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20471 | _ACEOF |
| 20472 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20473 | wchar_h="yes" |
| 20474 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20476 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20477 | |
| 20478 | fi |
| 20479 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20481 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20482 | # determine wchar_t size |
| 20483 | if test "$wchar_h" = yes |
| 20484 | then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20485 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 20486 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20487 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 20488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20489 | else |
| 20490 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20491 | /* confdefs.h. */ |
| 20492 | _ACEOF |
| 20493 | cat confdefs.h >>conftest.$ac_ext |
| 20494 | cat >>conftest.$ac_ext <<_ACEOF |
| 20495 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20496 | #include <wchar.h> |
| 20497 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20498 | typedef wchar_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20499 | int |
| 20500 | main () |
| 20501 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20502 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20503 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20504 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20505 | return 0; |
| 20506 | ; |
| 20507 | return 0; |
| 20508 | } |
| 20509 | _ACEOF |
| 20510 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20511 | if { (ac_try="$ac_compile" |
| 20512 | case "(($ac_try" in |
| 20513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20514 | *) ac_try_echo=$ac_try;; |
| 20515 | esac |
| 20516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20517 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20518 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20520 | rm -f conftest.er1 |
| 20521 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20523 | (exit $ac_status); } && { |
| 20524 | test -z "$ac_c_werror_flag" || |
| 20525 | test ! -s conftest.err |
| 20526 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20527 | ac_cv_type_wchar_t=yes |
| 20528 | else |
| 20529 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20531 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20532 | ac_cv_type_wchar_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20533 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 20534 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20536 | fi |
| 20537 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 20538 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 20539 | |
| 20540 | # The cast to long int works around a bug in the HP C Compiler |
| 20541 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20542 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20543 | # This bug is HP SR number 8606223364. |
| 20544 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 20545 | 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] | 20546 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 20547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20549 | if test "$cross_compiling" = yes; then |
| 20550 | # Depending upon the size, compute the lo and hi bounds. |
| 20551 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20552 | /* confdefs.h. */ |
| 20553 | _ACEOF |
| 20554 | cat confdefs.h >>conftest.$ac_ext |
| 20555 | cat >>conftest.$ac_ext <<_ACEOF |
| 20556 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20557 | #include <wchar.h> |
| 20558 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20559 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20560 | int |
| 20561 | main () |
| 20562 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20563 | 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] | 20564 | test_array [0] = 0 |
| 20565 | |
| 20566 | ; |
| 20567 | return 0; |
| 20568 | } |
| 20569 | _ACEOF |
| 20570 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20571 | if { (ac_try="$ac_compile" |
| 20572 | case "(($ac_try" in |
| 20573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20574 | *) ac_try_echo=$ac_try;; |
| 20575 | esac |
| 20576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20577 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20578 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20580 | rm -f conftest.er1 |
| 20581 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20583 | (exit $ac_status); } && { |
| 20584 | test -z "$ac_c_werror_flag" || |
| 20585 | test ! -s conftest.err |
| 20586 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20587 | ac_lo=0 ac_mid=0 |
| 20588 | while :; do |
| 20589 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20590 | /* confdefs.h. */ |
| 20591 | _ACEOF |
| 20592 | cat confdefs.h >>conftest.$ac_ext |
| 20593 | cat >>conftest.$ac_ext <<_ACEOF |
| 20594 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20595 | #include <wchar.h> |
| 20596 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20597 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20598 | int |
| 20599 | main () |
| 20600 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20601 | 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] | 20602 | test_array [0] = 0 |
| 20603 | |
| 20604 | ; |
| 20605 | return 0; |
| 20606 | } |
| 20607 | _ACEOF |
| 20608 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20609 | if { (ac_try="$ac_compile" |
| 20610 | case "(($ac_try" in |
| 20611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20612 | *) ac_try_echo=$ac_try;; |
| 20613 | esac |
| 20614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20615 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20618 | rm -f conftest.er1 |
| 20619 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20621 | (exit $ac_status); } && { |
| 20622 | test -z "$ac_c_werror_flag" || |
| 20623 | test ! -s conftest.err |
| 20624 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20625 | ac_hi=$ac_mid; break |
| 20626 | else |
| 20627 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20629 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20630 | ac_lo=`expr $ac_mid + 1` |
| 20631 | if test $ac_lo -le $ac_mid; then |
| 20632 | ac_lo= ac_hi= |
| 20633 | break |
| 20634 | fi |
| 20635 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20636 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20637 | |
| 20638 | 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] | 20639 | done |
| 20640 | else |
| 20641 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20643 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20644 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20645 | /* confdefs.h. */ |
| 20646 | _ACEOF |
| 20647 | cat confdefs.h >>conftest.$ac_ext |
| 20648 | cat >>conftest.$ac_ext <<_ACEOF |
| 20649 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20650 | #include <wchar.h> |
| 20651 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20652 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20653 | int |
| 20654 | main () |
| 20655 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20656 | 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] | 20657 | test_array [0] = 0 |
| 20658 | |
| 20659 | ; |
| 20660 | return 0; |
| 20661 | } |
| 20662 | _ACEOF |
| 20663 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20664 | if { (ac_try="$ac_compile" |
| 20665 | case "(($ac_try" in |
| 20666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20667 | *) ac_try_echo=$ac_try;; |
| 20668 | esac |
| 20669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20670 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20671 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20673 | rm -f conftest.er1 |
| 20674 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20676 | (exit $ac_status); } && { |
| 20677 | test -z "$ac_c_werror_flag" || |
| 20678 | test ! -s conftest.err |
| 20679 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20680 | ac_hi=-1 ac_mid=-1 |
| 20681 | while :; do |
| 20682 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20683 | /* confdefs.h. */ |
| 20684 | _ACEOF |
| 20685 | cat confdefs.h >>conftest.$ac_ext |
| 20686 | cat >>conftest.$ac_ext <<_ACEOF |
| 20687 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20688 | #include <wchar.h> |
| 20689 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20690 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20691 | int |
| 20692 | main () |
| 20693 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20694 | 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] | 20695 | test_array [0] = 0 |
| 20696 | |
| 20697 | ; |
| 20698 | return 0; |
| 20699 | } |
| 20700 | _ACEOF |
| 20701 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20702 | if { (ac_try="$ac_compile" |
| 20703 | case "(($ac_try" in |
| 20704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20705 | *) ac_try_echo=$ac_try;; |
| 20706 | esac |
| 20707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20708 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20709 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20711 | rm -f conftest.er1 |
| 20712 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20714 | (exit $ac_status); } && { |
| 20715 | test -z "$ac_c_werror_flag" || |
| 20716 | test ! -s conftest.err |
| 20717 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20718 | ac_lo=$ac_mid; break |
| 20719 | else |
| 20720 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20722 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20723 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 20724 | if test $ac_mid -le $ac_hi; then |
| 20725 | ac_lo= ac_hi= |
| 20726 | break |
| 20727 | fi |
| 20728 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20729 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20730 | |
| 20731 | 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] | 20732 | done |
| 20733 | else |
| 20734 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20736 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20737 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20738 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20739 | |
| 20740 | 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] | 20741 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20742 | |
| 20743 | 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] | 20744 | # Binary search between lo and hi bounds. |
| 20745 | while test "x$ac_lo" != "x$ac_hi"; do |
| 20746 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 20747 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20748 | /* confdefs.h. */ |
| 20749 | _ACEOF |
| 20750 | cat confdefs.h >>conftest.$ac_ext |
| 20751 | cat >>conftest.$ac_ext <<_ACEOF |
| 20752 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20753 | #include <wchar.h> |
| 20754 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20755 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20756 | int |
| 20757 | main () |
| 20758 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20759 | 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] | 20760 | test_array [0] = 0 |
| 20761 | |
| 20762 | ; |
| 20763 | return 0; |
| 20764 | } |
| 20765 | _ACEOF |
| 20766 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20767 | if { (ac_try="$ac_compile" |
| 20768 | case "(($ac_try" in |
| 20769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20770 | *) ac_try_echo=$ac_try;; |
| 20771 | esac |
| 20772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20773 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20774 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20776 | rm -f conftest.er1 |
| 20777 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20779 | (exit $ac_status); } && { |
| 20780 | test -z "$ac_c_werror_flag" || |
| 20781 | test ! -s conftest.err |
| 20782 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20783 | ac_hi=$ac_mid |
| 20784 | else |
| 20785 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20787 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20788 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20789 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20790 | |
| 20791 | 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] | 20792 | done |
| 20793 | case $ac_lo in |
| 20794 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20795 | '') if test "$ac_cv_type_wchar_t" = yes; then |
| 20796 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20797 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20798 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20799 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20800 | { (exit 77); exit 77; }; } |
| 20801 | else |
| 20802 | ac_cv_sizeof_wchar_t=0 |
| 20803 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20804 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20806 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20807 | /* confdefs.h. */ |
| 20808 | _ACEOF |
| 20809 | cat confdefs.h >>conftest.$ac_ext |
| 20810 | cat >>conftest.$ac_ext <<_ACEOF |
| 20811 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20812 | #include <wchar.h> |
| 20813 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20814 | typedef wchar_t ac__type_sizeof_; |
| 20815 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 20816 | 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] | 20817 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20818 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20819 | int |
| 20820 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20821 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20822 | |
| 20823 | FILE *f = fopen ("conftest.val", "w"); |
| 20824 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20825 | return 1; |
| 20826 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20827 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20828 | long int i = longval (); |
| 20829 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 20830 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20831 | fprintf (f, "%ld\n", i); |
| 20832 | } |
| 20833 | else |
| 20834 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20835 | unsigned long int i = ulongval (); |
| 20836 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 20837 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20838 | fprintf (f, "%lu\n", i); |
| 20839 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20840 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20841 | |
| 20842 | ; |
| 20843 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20844 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20845 | _ACEOF |
| 20846 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20847 | if { (ac_try="$ac_link" |
| 20848 | case "(($ac_try" in |
| 20849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20850 | *) ac_try_echo=$ac_try;; |
| 20851 | esac |
| 20852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20853 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20854 | ac_status=$? |
| 20855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20856 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20857 | { (case "(($ac_try" in |
| 20858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20859 | *) ac_try_echo=$ac_try;; |
| 20860 | esac |
| 20861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20862 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20863 | ac_status=$? |
| 20864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20865 | (exit $ac_status); }; }; then |
| 20866 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20867 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20868 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20869 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20872 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20873 | if test "$ac_cv_type_wchar_t" = yes; then |
| 20874 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20875 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20876 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20877 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20878 | { (exit 77); exit 77; }; } |
| 20879 | else |
| 20880 | ac_cv_sizeof_wchar_t=0 |
| 20881 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20882 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20883 | 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] | 20884 | fi |
| 20885 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20886 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20887 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 20888 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
| 20889 | |
| 20890 | |
| 20891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20892 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20893 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20894 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20895 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20896 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20897 | fi |
| 20898 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20899 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 20900 | 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] | 20901 | have_ucs4_tcl=no |
| 20902 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20903 | /* confdefs.h. */ |
| 20904 | _ACEOF |
| 20905 | cat confdefs.h >>conftest.$ac_ext |
| 20906 | cat >>conftest.$ac_ext <<_ACEOF |
| 20907 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20908 | |
| 20909 | #include <tcl.h> |
| 20910 | #if TCL_UTF_MAX != 6 |
| 20911 | # error "NOT UCS4_TCL" |
| 20912 | #endif |
| 20913 | int |
| 20914 | main () |
| 20915 | { |
| 20916 | |
| 20917 | ; |
| 20918 | return 0; |
| 20919 | } |
| 20920 | _ACEOF |
| 20921 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20922 | if { (ac_try="$ac_compile" |
| 20923 | case "(($ac_try" in |
| 20924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20925 | *) ac_try_echo=$ac_try;; |
| 20926 | esac |
| 20927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20928 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20929 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20931 | rm -f conftest.er1 |
| 20932 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20934 | (exit $ac_status); } && { |
| 20935 | test -z "$ac_c_werror_flag" || |
| 20936 | test ! -s conftest.err |
| 20937 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20938 | |
| 20939 | |
| 20940 | cat >>confdefs.h <<\_ACEOF |
| 20941 | #define HAVE_UCS4_TCL 1 |
| 20942 | _ACEOF |
| 20943 | |
| 20944 | have_ucs4_tcl=yes |
| 20945 | |
| 20946 | else |
| 20947 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20949 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20950 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20951 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20952 | |
| 20953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20954 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 20955 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20956 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20957 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20958 | if test "$wchar_h" = yes |
| 20959 | then |
| 20960 | # check whether wchar_t is signed or not |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20961 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 20962 | 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] | 20963 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 20964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20965 | else |
| 20966 | |
| 20967 | if test "$cross_compiling" = yes; then |
| 20968 | ac_cv_wchar_t_signed=yes |
| 20969 | else |
| 20970 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20971 | /* confdefs.h. */ |
| 20972 | _ACEOF |
| 20973 | cat confdefs.h >>conftest.$ac_ext |
| 20974 | cat >>conftest.$ac_ext <<_ACEOF |
| 20975 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20976 | |
| 20977 | #include <wchar.h> |
| 20978 | int main() |
| 20979 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 20980 | /* Success: exit code 0 */ |
| 20981 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20982 | } |
| 20983 | |
| 20984 | _ACEOF |
| 20985 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20986 | if { (ac_try="$ac_link" |
| 20987 | case "(($ac_try" in |
| 20988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20989 | *) ac_try_echo=$ac_try;; |
| 20990 | esac |
| 20991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20992 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20993 | ac_status=$? |
| 20994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20995 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20996 | { (case "(($ac_try" in |
| 20997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20998 | *) ac_try_echo=$ac_try;; |
| 20999 | esac |
| 21000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21001 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21002 | ac_status=$? |
| 21003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21004 | (exit $ac_status); }; }; then |
| 21005 | ac_cv_wchar_t_signed=yes |
| 21006 | else |
| 21007 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21008 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21010 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21011 | ( exit $ac_status ) |
| 21012 | ac_cv_wchar_t_signed=no |
| 21013 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21014 | 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] | 21015 | fi |
| 21016 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21017 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21018 | fi |
| 21019 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21020 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 21021 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
| 21022 | fi |
| 21023 | |
| 21024 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 21025 | echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; } |
| 21026 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21027 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21028 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21029 | else |
| 21030 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21031 | fi |
| 21032 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21033 | |
| 21034 | if test $enable_unicode = yes |
| 21035 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 21036 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 21037 | case "$have_ucs4_tcl" in |
| 21038 | yes) enable_unicode="ucs4" |
| 21039 | ;; |
| 21040 | *) enable_unicode="ucs2" |
| 21041 | ;; |
| 21042 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21043 | fi |
| 21044 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 21045 | |
| 21046 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21047 | case "$enable_unicode" in |
| 21048 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21049 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21050 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21051 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21052 | |
| 21053 | ;; |
| 21054 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21055 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21056 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21057 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21058 | |
| 21059 | ;; |
| 21060 | esac |
| 21061 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21063 | |
| 21064 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 21065 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21066 | if test "$enable_unicode" = "no" |
| 21067 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 21068 | UNICODE_OBJS="" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21069 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 21070 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21071 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 21072 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21073 | |
| 21074 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21075 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21076 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21077 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21078 | |
| 21079 | # wchar_t is only usable if it maps to an unsigned type |
| 21080 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 21081 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21082 | then |
| 21083 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21085 | cat >>confdefs.h <<\_ACEOF |
| 21086 | #define HAVE_USABLE_WCHAR_T 1 |
| 21087 | _ACEOF |
| 21088 | |
| 21089 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21090 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21091 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21092 | |
| 21093 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 21094 | then |
| 21095 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21096 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21097 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21098 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21099 | |
| 21100 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 21101 | then |
| 21102 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21103 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21104 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21105 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21106 | |
| 21107 | else |
| 21108 | PY_UNICODE_TYPE="no type found" |
| 21109 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21110 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 21111 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21112 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21113 | |
| 21114 | # check for endianness |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21115 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 21116 | 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] | 21117 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 21118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21119 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21120 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 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. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21127 | #include <sys/types.h> |
| 21128 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21130 | int |
| 21131 | main () |
| 21132 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21133 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 21134 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21135 | bogus endian macros |
| 21136 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21137 | |
| 21138 | ; |
| 21139 | return 0; |
| 21140 | } |
| 21141 | _ACEOF |
| 21142 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21143 | if { (ac_try="$ac_compile" |
| 21144 | case "(($ac_try" in |
| 21145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21146 | *) ac_try_echo=$ac_try;; |
| 21147 | esac |
| 21148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21149 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21150 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21152 | rm -f conftest.er1 |
| 21153 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21155 | (exit $ac_status); } && { |
| 21156 | test -z "$ac_c_werror_flag" || |
| 21157 | test ! -s conftest.err |
| 21158 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21159 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21160 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21161 | /* confdefs.h. */ |
| 21162 | _ACEOF |
| 21163 | cat confdefs.h >>conftest.$ac_ext |
| 21164 | cat >>conftest.$ac_ext <<_ACEOF |
| 21165 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21166 | #include <sys/types.h> |
| 21167 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21168 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21169 | int |
| 21170 | main () |
| 21171 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21172 | #if BYTE_ORDER != BIG_ENDIAN |
| 21173 | not big endian |
| 21174 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21175 | |
| 21176 | ; |
| 21177 | return 0; |
| 21178 | } |
| 21179 | _ACEOF |
| 21180 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21181 | if { (ac_try="$ac_compile" |
| 21182 | case "(($ac_try" in |
| 21183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21184 | *) ac_try_echo=$ac_try;; |
| 21185 | esac |
| 21186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21187 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21188 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21190 | rm -f conftest.er1 |
| 21191 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21193 | (exit $ac_status); } && { |
| 21194 | test -z "$ac_c_werror_flag" || |
| 21195 | test ! -s conftest.err |
| 21196 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21197 | ac_cv_c_bigendian=yes |
| 21198 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21199 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21201 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21202 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21203 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21204 | |
| 21205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21206 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21207 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21209 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21210 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21211 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21212 | # try to guess the endianness by grepping values into an object file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21213 | ac_cv_c_bigendian=unknown |
| 21214 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21215 | /* confdefs.h. */ |
| 21216 | _ACEOF |
| 21217 | cat confdefs.h >>conftest.$ac_ext |
| 21218 | cat >>conftest.$ac_ext <<_ACEOF |
| 21219 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21220 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 21221 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21222 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21223 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 21224 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21225 | 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] | 21226 | int |
| 21227 | main () |
| 21228 | { |
| 21229 | _ascii (); _ebcdic (); |
| 21230 | ; |
| 21231 | return 0; |
| 21232 | } |
| 21233 | _ACEOF |
| 21234 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21235 | if { (ac_try="$ac_compile" |
| 21236 | case "(($ac_try" in |
| 21237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21238 | *) ac_try_echo=$ac_try;; |
| 21239 | esac |
| 21240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21241 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21242 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21244 | rm -f conftest.er1 |
| 21245 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21247 | (exit $ac_status); } && { |
| 21248 | test -z "$ac_c_werror_flag" || |
| 21249 | test ! -s conftest.err |
| 21250 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21251 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21252 | ac_cv_c_bigendian=yes |
| 21253 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21254 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21255 | if test "$ac_cv_c_bigendian" = unknown; then |
| 21256 | ac_cv_c_bigendian=no |
| 21257 | else |
| 21258 | # finding both strings is unlikely to happen, but who knows? |
| 21259 | ac_cv_c_bigendian=unknown |
| 21260 | fi |
| 21261 | fi |
| 21262 | else |
| 21263 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21265 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21267 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21268 | |
| 21269 | 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] | 21270 | else |
| 21271 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21272 | /* confdefs.h. */ |
| 21273 | _ACEOF |
| 21274 | cat confdefs.h >>conftest.$ac_ext |
| 21275 | cat >>conftest.$ac_ext <<_ACEOF |
| 21276 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21277 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21278 | int |
| 21279 | main () |
| 21280 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21281 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21282 | /* Are we little or big endian? From Harbison&Steele. */ |
| 21283 | union |
| 21284 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21285 | long int l; |
| 21286 | char c[sizeof (long int)]; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21287 | } u; |
| 21288 | u.l = 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21289 | return u.c[sizeof (long int) - 1] == 1; |
| 21290 | |
| 21291 | ; |
| 21292 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21293 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21294 | _ACEOF |
| 21295 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21296 | if { (ac_try="$ac_link" |
| 21297 | case "(($ac_try" in |
| 21298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21299 | *) ac_try_echo=$ac_try;; |
| 21300 | esac |
| 21301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21302 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21303 | ac_status=$? |
| 21304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21305 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21306 | { (case "(($ac_try" in |
| 21307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21308 | *) ac_try_echo=$ac_try;; |
| 21309 | esac |
| 21310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21311 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21312 | ac_status=$? |
| 21313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21314 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21315 | ac_cv_c_bigendian=no |
| 21316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21317 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21318 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21321 | ( exit $ac_status ) |
| 21322 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21323 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21324 | 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] | 21325 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21326 | |
| 21327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21328 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21329 | |
| 21330 | 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] | 21331 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21332 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 21333 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21334 | case $ac_cv_c_bigendian in |
| 21335 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21337 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21338 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21339 | _ACEOF |
| 21340 | ;; |
| 21341 | no) |
| 21342 | ;; |
| 21343 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21344 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21345 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21346 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21347 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 21348 | { (exit 1); exit 1; }; } ;; |
| 21349 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21350 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21351 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 21352 | |
| 21353 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21354 | # Check whether right shifting a negative integer extends the sign bit |
| 21355 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21356 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 21357 | 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] | 21358 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 21359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21360 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21361 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21362 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 21363 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21364 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21365 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21366 | /* confdefs.h. */ |
| 21367 | _ACEOF |
| 21368 | cat confdefs.h >>conftest.$ac_ext |
| 21369 | cat >>conftest.$ac_ext <<_ACEOF |
| 21370 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21371 | |
| 21372 | int main() |
| 21373 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21374 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21375 | } |
| 21376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21377 | _ACEOF |
| 21378 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21379 | if { (ac_try="$ac_link" |
| 21380 | case "(($ac_try" in |
| 21381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21382 | *) ac_try_echo=$ac_try;; |
| 21383 | esac |
| 21384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21385 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21386 | ac_status=$? |
| 21387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21389 | { (case "(($ac_try" in |
| 21390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21391 | *) ac_try_echo=$ac_try;; |
| 21392 | esac |
| 21393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21394 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21395 | ac_status=$? |
| 21396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21397 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21398 | ac_cv_rshift_extends_sign=yes |
| 21399 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21400 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21401 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21404 | ( exit $ac_status ) |
| 21405 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21406 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21407 | 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] | 21408 | fi |
| 21409 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21410 | |
| 21411 | fi |
| 21412 | |
| 21413 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 21414 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21415 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21416 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21417 | |
| 21418 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21419 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21420 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21421 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21422 | fi |
| 21423 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21424 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21425 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 21426 | 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] | 21427 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 21428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21430 | |
| 21431 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21432 | /* confdefs.h. */ |
| 21433 | _ACEOF |
| 21434 | cat confdefs.h >>conftest.$ac_ext |
| 21435 | cat >>conftest.$ac_ext <<_ACEOF |
| 21436 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21437 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21438 | int |
| 21439 | main () |
| 21440 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21441 | |
| 21442 | FILE *f = fopen("/dev/null", "r"); |
| 21443 | flockfile(f); |
| 21444 | getc_unlocked(f); |
| 21445 | funlockfile(f); |
| 21446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21447 | ; |
| 21448 | return 0; |
| 21449 | } |
| 21450 | _ACEOF |
| 21451 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21452 | if { (ac_try="$ac_link" |
| 21453 | case "(($ac_try" in |
| 21454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21455 | *) ac_try_echo=$ac_try;; |
| 21456 | esac |
| 21457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21458 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21459 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21461 | rm -f conftest.er1 |
| 21462 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21464 | (exit $ac_status); } && { |
| 21465 | test -z "$ac_c_werror_flag" || |
| 21466 | test ! -s conftest.err |
| 21467 | } && test -s conftest$ac_exeext && |
| 21468 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21469 | ac_cv_have_getc_unlocked=yes |
| 21470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21471 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21473 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21474 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21475 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21476 | |
| 21477 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21478 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21479 | fi |
| 21480 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21481 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 21482 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21483 | if test "$ac_cv_have_getc_unlocked" = yes |
| 21484 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21485 | |
| 21486 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21487 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21488 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21489 | |
| 21490 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21491 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21492 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 21493 | # save the value of LIBS so we don't actually link Python with readline |
| 21494 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21495 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21496 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 21497 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21498 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 21499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21500 | else |
| 21501 | ac_check_lib_save_LIBS=$LIBS |
| 21502 | LIBS="-lreadline $LIBS" |
| 21503 | cat >conftest.$ac_ext <<_ACEOF |
| 21504 | /* confdefs.h. */ |
| 21505 | _ACEOF |
| 21506 | cat confdefs.h >>conftest.$ac_ext |
| 21507 | cat >>conftest.$ac_ext <<_ACEOF |
| 21508 | /* end confdefs.h. */ |
| 21509 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21510 | /* Override any GCC internal prototype to avoid an error. |
| 21511 | Use char because int might match the return type of a GCC |
| 21512 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21513 | #ifdef __cplusplus |
| 21514 | extern "C" |
| 21515 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21516 | char readline (); |
| 21517 | int |
| 21518 | main () |
| 21519 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21520 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21521 | ; |
| 21522 | return 0; |
| 21523 | } |
| 21524 | _ACEOF |
| 21525 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21526 | if { (ac_try="$ac_link" |
| 21527 | case "(($ac_try" in |
| 21528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21529 | *) ac_try_echo=$ac_try;; |
| 21530 | esac |
| 21531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21532 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21533 | ac_status=$? |
| 21534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21535 | rm -f conftest.er1 |
| 21536 | cat conftest.err >&5 |
| 21537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21538 | (exit $ac_status); } && { |
| 21539 | test -z "$ac_c_werror_flag" || |
| 21540 | test ! -s conftest.err |
| 21541 | } && test -s conftest$ac_exeext && |
| 21542 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21543 | ac_cv_lib_readline_readline=yes |
| 21544 | else |
| 21545 | echo "$as_me: failed program was:" >&5 |
| 21546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21547 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21548 | ac_cv_lib_readline_readline=no |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21549 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21550 | |
| 21551 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21552 | conftest$ac_exeext conftest.$ac_ext |
| 21553 | LIBS=$ac_check_lib_save_LIBS |
| 21554 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21555 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 21556 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21557 | if test $ac_cv_lib_readline_readline = yes; then |
| 21558 | cat >>confdefs.h <<_ACEOF |
| 21559 | #define HAVE_LIBREADLINE 1 |
| 21560 | _ACEOF |
| 21561 | |
| 21562 | LIBS="-lreadline $LIBS" |
| 21563 | |
| 21564 | fi |
| 21565 | |
| 21566 | if test "$ac_cv_have_readline_readline" = no |
| 21567 | then |
| 21568 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21569 | { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5 |
| 21570 | echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21571 | if test "${ac_cv_lib_termcap_readline+set}" = set; then |
| 21572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21573 | else |
| 21574 | ac_check_lib_save_LIBS=$LIBS |
| 21575 | LIBS="-ltermcap $LIBS" |
| 21576 | cat >conftest.$ac_ext <<_ACEOF |
| 21577 | /* confdefs.h. */ |
| 21578 | _ACEOF |
| 21579 | cat confdefs.h >>conftest.$ac_ext |
| 21580 | cat >>conftest.$ac_ext <<_ACEOF |
| 21581 | /* end confdefs.h. */ |
| 21582 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21583 | /* Override any GCC internal prototype to avoid an error. |
| 21584 | Use char because int might match the return type of a GCC |
| 21585 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21586 | #ifdef __cplusplus |
| 21587 | extern "C" |
| 21588 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21589 | char readline (); |
| 21590 | int |
| 21591 | main () |
| 21592 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21593 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21594 | ; |
| 21595 | return 0; |
| 21596 | } |
| 21597 | _ACEOF |
| 21598 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21599 | if { (ac_try="$ac_link" |
| 21600 | case "(($ac_try" in |
| 21601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21602 | *) ac_try_echo=$ac_try;; |
| 21603 | esac |
| 21604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21605 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21606 | ac_status=$? |
| 21607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21608 | rm -f conftest.er1 |
| 21609 | cat conftest.err >&5 |
| 21610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21611 | (exit $ac_status); } && { |
| 21612 | test -z "$ac_c_werror_flag" || |
| 21613 | test ! -s conftest.err |
| 21614 | } && test -s conftest$ac_exeext && |
| 21615 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21616 | ac_cv_lib_termcap_readline=yes |
| 21617 | else |
| 21618 | echo "$as_me: failed program was:" >&5 |
| 21619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21620 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21621 | ac_cv_lib_termcap_readline=no |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21622 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21623 | |
| 21624 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21625 | conftest$ac_exeext conftest.$ac_ext |
| 21626 | LIBS=$ac_check_lib_save_LIBS |
| 21627 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21628 | { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5 |
| 21629 | echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21630 | if test $ac_cv_lib_termcap_readline = yes; then |
| 21631 | cat >>confdefs.h <<_ACEOF |
| 21632 | #define HAVE_LIBTERMCAP 1 |
| 21633 | _ACEOF |
| 21634 | |
| 21635 | LIBS="-ltermcap $LIBS" |
| 21636 | |
| 21637 | fi |
| 21638 | |
| 21639 | fi |
| 21640 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21641 | # check for readline 2.1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21642 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 21643 | 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] | 21644 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 21645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21646 | else |
| 21647 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21648 | LIBS="-lreadline $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21649 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21650 | /* confdefs.h. */ |
| 21651 | _ACEOF |
| 21652 | cat confdefs.h >>conftest.$ac_ext |
| 21653 | cat >>conftest.$ac_ext <<_ACEOF |
| 21654 | /* end confdefs.h. */ |
| 21655 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21656 | /* Override any GCC internal prototype to avoid an error. |
| 21657 | Use char because int might match the return type of a GCC |
| 21658 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21659 | #ifdef __cplusplus |
| 21660 | extern "C" |
| 21661 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21662 | char rl_callback_handler_install (); |
| 21663 | int |
| 21664 | main () |
| 21665 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21666 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21667 | ; |
| 21668 | return 0; |
| 21669 | } |
| 21670 | _ACEOF |
| 21671 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21672 | if { (ac_try="$ac_link" |
| 21673 | case "(($ac_try" in |
| 21674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21675 | *) ac_try_echo=$ac_try;; |
| 21676 | esac |
| 21677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21678 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21679 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21681 | rm -f conftest.er1 |
| 21682 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21684 | (exit $ac_status); } && { |
| 21685 | test -z "$ac_c_werror_flag" || |
| 21686 | test ! -s conftest.err |
| 21687 | } && test -s conftest$ac_exeext && |
| 21688 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21689 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 21690 | else |
| 21691 | echo "$as_me: failed program was:" >&5 |
| 21692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21693 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21694 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21695 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21696 | |
| 21697 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21698 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21699 | LIBS=$ac_check_lib_save_LIBS |
| 21700 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21701 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 21702 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21703 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 21704 | |
| 21705 | cat >>confdefs.h <<\_ACEOF |
| 21706 | #define HAVE_RL_CALLBACK 1 |
| 21707 | _ACEOF |
| 21708 | |
| 21709 | fi |
| 21710 | |
| 21711 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21712 | # check for readline 2.2 |
| 21713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21714 | /* confdefs.h. */ |
| 21715 | _ACEOF |
| 21716 | cat confdefs.h >>conftest.$ac_ext |
| 21717 | cat >>conftest.$ac_ext <<_ACEOF |
| 21718 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21719 | #include <readline/readline.h> |
| 21720 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21721 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21722 | case "(($ac_try" in |
| 21723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21724 | *) ac_try_echo=$ac_try;; |
| 21725 | esac |
| 21726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21727 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21728 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21729 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21730 | rm -f conftest.er1 |
| 21731 | cat conftest.err >&5 |
| 21732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21733 | (exit $ac_status); } >/dev/null && { |
| 21734 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 21735 | test ! -s conftest.err |
| 21736 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21737 | have_readline=yes |
| 21738 | else |
| 21739 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21741 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21742 | have_readline=no |
| 21743 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21744 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21745 | rm -f conftest.err conftest.$ac_ext |
| 21746 | if test $have_readline = yes |
| 21747 | then |
| 21748 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21749 | /* confdefs.h. */ |
| 21750 | _ACEOF |
| 21751 | cat confdefs.h >>conftest.$ac_ext |
| 21752 | cat >>conftest.$ac_ext <<_ACEOF |
| 21753 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21754 | #include <readline/readline.h> |
| 21755 | |
| 21756 | _ACEOF |
| 21757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21758 | $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] | 21759 | |
| 21760 | cat >>confdefs.h <<\_ACEOF |
| 21761 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 21762 | _ACEOF |
| 21763 | |
| 21764 | fi |
| 21765 | rm -f conftest* |
| 21766 | |
| 21767 | fi |
| 21768 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21769 | # check for readline 4.0 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21770 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 21771 | 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] | 21772 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 21773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21774 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21775 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21776 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21783 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21784 | /* Override any GCC internal prototype to avoid an error. |
| 21785 | Use char because int might match the return type of a GCC |
| 21786 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21787 | #ifdef __cplusplus |
| 21788 | extern "C" |
| 21789 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21790 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21791 | int |
| 21792 | main () |
| 21793 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21794 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21795 | ; |
| 21796 | return 0; |
| 21797 | } |
| 21798 | _ACEOF |
| 21799 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21800 | if { (ac_try="$ac_link" |
| 21801 | case "(($ac_try" in |
| 21802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21803 | *) ac_try_echo=$ac_try;; |
| 21804 | esac |
| 21805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21806 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21807 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21809 | rm -f conftest.er1 |
| 21810 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21812 | (exit $ac_status); } && { |
| 21813 | test -z "$ac_c_werror_flag" || |
| 21814 | test ! -s conftest.err |
| 21815 | } && test -s conftest$ac_exeext && |
| 21816 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21817 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21818 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21819 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21821 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21822 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21823 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21824 | |
| 21825 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21826 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21827 | LIBS=$ac_check_lib_save_LIBS |
| 21828 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21829 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 21830 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21831 | 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] | 21832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21833 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21834 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21835 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21836 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21837 | fi |
| 21838 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21839 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 21840 | # also in 4.0 |
| 21841 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 21842 | echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; } |
| 21843 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then |
| 21844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21845 | else |
| 21846 | ac_check_lib_save_LIBS=$LIBS |
| 21847 | LIBS="-lreadline $LIBS" |
| 21848 | cat >conftest.$ac_ext <<_ACEOF |
| 21849 | /* confdefs.h. */ |
| 21850 | _ACEOF |
| 21851 | cat confdefs.h >>conftest.$ac_ext |
| 21852 | cat >>conftest.$ac_ext <<_ACEOF |
| 21853 | /* end confdefs.h. */ |
| 21854 | |
| 21855 | /* Override any GCC internal prototype to avoid an error. |
| 21856 | Use char because int might match the return type of a GCC |
| 21857 | builtin and then its argument prototype would still apply. */ |
| 21858 | #ifdef __cplusplus |
| 21859 | extern "C" |
| 21860 | #endif |
| 21861 | char rl_completion_display_matches_hook (); |
| 21862 | int |
| 21863 | main () |
| 21864 | { |
| 21865 | return rl_completion_display_matches_hook (); |
| 21866 | ; |
| 21867 | return 0; |
| 21868 | } |
| 21869 | _ACEOF |
| 21870 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21871 | if { (ac_try="$ac_link" |
| 21872 | case "(($ac_try" in |
| 21873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21874 | *) ac_try_echo=$ac_try;; |
| 21875 | esac |
| 21876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21877 | (eval "$ac_link") 2>conftest.er1 |
| 21878 | ac_status=$? |
| 21879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21880 | rm -f conftest.er1 |
| 21881 | cat conftest.err >&5 |
| 21882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21883 | (exit $ac_status); } && { |
| 21884 | test -z "$ac_c_werror_flag" || |
| 21885 | test ! -s conftest.err |
| 21886 | } && test -s conftest$ac_exeext && |
| 21887 | $as_test_x conftest$ac_exeext; then |
| 21888 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 21889 | else |
| 21890 | echo "$as_me: failed program was:" >&5 |
| 21891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21892 | |
| 21893 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 21894 | fi |
| 21895 | |
| 21896 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21897 | conftest$ac_exeext conftest.$ac_ext |
| 21898 | LIBS=$ac_check_lib_save_LIBS |
| 21899 | fi |
| 21900 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 21901 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 21902 | if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then |
| 21903 | |
| 21904 | cat >>confdefs.h <<\_ACEOF |
| 21905 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 21906 | _ACEOF |
| 21907 | |
| 21908 | fi |
| 21909 | |
| 21910 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21911 | # check for readline 4.2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21912 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 21913 | 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] | 21914 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 21915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21917 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21918 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21919 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21920 | /* confdefs.h. */ |
| 21921 | _ACEOF |
| 21922 | cat confdefs.h >>conftest.$ac_ext |
| 21923 | cat >>conftest.$ac_ext <<_ACEOF |
| 21924 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21925 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21926 | /* Override any GCC internal prototype to avoid an error. |
| 21927 | Use char because int might match the return type of a GCC |
| 21928 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21929 | #ifdef __cplusplus |
| 21930 | extern "C" |
| 21931 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21932 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21933 | int |
| 21934 | main () |
| 21935 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21936 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21937 | ; |
| 21938 | return 0; |
| 21939 | } |
| 21940 | _ACEOF |
| 21941 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21942 | if { (ac_try="$ac_link" |
| 21943 | case "(($ac_try" in |
| 21944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21945 | *) ac_try_echo=$ac_try;; |
| 21946 | esac |
| 21947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21948 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21949 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21951 | rm -f conftest.er1 |
| 21952 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21954 | (exit $ac_status); } && { |
| 21955 | test -z "$ac_c_werror_flag" || |
| 21956 | test ! -s conftest.err |
| 21957 | } && test -s conftest$ac_exeext && |
| 21958 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21959 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21961 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21963 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21964 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21965 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21966 | |
| 21967 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21968 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21969 | LIBS=$ac_check_lib_save_LIBS |
| 21970 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21971 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 21972 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21973 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21975 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21976 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21977 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21978 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21979 | fi |
| 21980 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21981 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21982 | # also in readline 4.2 |
| 21983 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21984 | /* confdefs.h. */ |
| 21985 | _ACEOF |
| 21986 | cat confdefs.h >>conftest.$ac_ext |
| 21987 | cat >>conftest.$ac_ext <<_ACEOF |
| 21988 | /* end confdefs.h. */ |
| 21989 | #include <readline/readline.h> |
| 21990 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21991 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21992 | case "(($ac_try" in |
| 21993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21994 | *) ac_try_echo=$ac_try;; |
| 21995 | esac |
| 21996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21997 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21998 | ac_status=$? |
| 21999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22000 | rm -f conftest.er1 |
| 22001 | cat conftest.err >&5 |
| 22002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22003 | (exit $ac_status); } >/dev/null && { |
| 22004 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 22005 | test ! -s conftest.err |
| 22006 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22007 | have_readline=yes |
| 22008 | else |
| 22009 | echo "$as_me: failed program was:" >&5 |
| 22010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22011 | |
| 22012 | have_readline=no |
| 22013 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22014 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22015 | rm -f conftest.err conftest.$ac_ext |
| 22016 | if test $have_readline = yes |
| 22017 | then |
| 22018 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22019 | /* confdefs.h. */ |
| 22020 | _ACEOF |
| 22021 | cat confdefs.h >>conftest.$ac_ext |
| 22022 | cat >>conftest.$ac_ext <<_ACEOF |
| 22023 | /* end confdefs.h. */ |
| 22024 | #include <readline/readline.h> |
| 22025 | |
| 22026 | _ACEOF |
| 22027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22028 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 22029 | |
| 22030 | cat >>confdefs.h <<\_ACEOF |
| 22031 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 22032 | _ACEOF |
| 22033 | |
| 22034 | fi |
| 22035 | rm -f conftest* |
| 22036 | |
| 22037 | fi |
| 22038 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 22039 | # End of readline checks: restore LIBS |
| 22040 | LIBS=$LIBS_no_readline |
| 22041 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22042 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 22043 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22044 | if test "${ac_cv_broken_nice+set}" = set; then |
| 22045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22046 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22047 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22048 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 22049 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22051 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22052 | /* confdefs.h. */ |
| 22053 | _ACEOF |
| 22054 | cat confdefs.h >>conftest.$ac_ext |
| 22055 | cat >>conftest.$ac_ext <<_ACEOF |
| 22056 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22057 | |
| 22058 | int main() |
| 22059 | { |
| 22060 | int val1 = nice(1); |
| 22061 | if (val1 != -1 && val1 == nice(2)) |
| 22062 | exit(0); |
| 22063 | exit(1); |
| 22064 | } |
| 22065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22066 | _ACEOF |
| 22067 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22068 | if { (ac_try="$ac_link" |
| 22069 | case "(($ac_try" in |
| 22070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22071 | *) ac_try_echo=$ac_try;; |
| 22072 | esac |
| 22073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22074 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22075 | ac_status=$? |
| 22076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22077 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22078 | { (case "(($ac_try" in |
| 22079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22080 | *) ac_try_echo=$ac_try;; |
| 22081 | esac |
| 22082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22083 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22084 | ac_status=$? |
| 22085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22086 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22087 | ac_cv_broken_nice=yes |
| 22088 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22089 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22090 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22093 | ( exit $ac_status ) |
| 22094 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22095 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22096 | 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] | 22097 | fi |
| 22098 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22099 | |
| 22100 | fi |
| 22101 | |
| 22102 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 22103 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22104 | if test "$ac_cv_broken_nice" = yes |
| 22105 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22106 | |
| 22107 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22108 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22109 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22110 | |
| 22111 | fi |
| 22112 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22113 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 22114 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22115 | if test "$cross_compiling" = yes; then |
| 22116 | ac_cv_broken_poll=no |
| 22117 | else |
| 22118 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22119 | /* confdefs.h. */ |
| 22120 | _ACEOF |
| 22121 | cat confdefs.h >>conftest.$ac_ext |
| 22122 | cat >>conftest.$ac_ext <<_ACEOF |
| 22123 | /* end confdefs.h. */ |
| 22124 | |
| 22125 | #include <poll.h> |
| 22126 | |
| 22127 | int main (void) |
| 22128 | { |
| 22129 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 22130 | |
| 22131 | close (42); |
| 22132 | |
| 22133 | int poll_test = poll (&poll_struct, 1, 0); |
| 22134 | |
| 22135 | if (poll_test < 0) |
| 22136 | { |
| 22137 | exit(0); |
| 22138 | } |
| 22139 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 22140 | { |
| 22141 | exit(0); |
| 22142 | } |
| 22143 | else |
| 22144 | { |
| 22145 | exit(1); |
| 22146 | } |
| 22147 | } |
| 22148 | |
| 22149 | _ACEOF |
| 22150 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22151 | if { (ac_try="$ac_link" |
| 22152 | case "(($ac_try" in |
| 22153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22154 | *) ac_try_echo=$ac_try;; |
| 22155 | esac |
| 22156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22157 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22158 | ac_status=$? |
| 22159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22160 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22161 | { (case "(($ac_try" in |
| 22162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22163 | *) ac_try_echo=$ac_try;; |
| 22164 | esac |
| 22165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22166 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22167 | ac_status=$? |
| 22168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22169 | (exit $ac_status); }; }; then |
| 22170 | ac_cv_broken_poll=yes |
| 22171 | else |
| 22172 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22173 | echo "$as_me: failed program was:" >&5 |
| 22174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22175 | |
| 22176 | ( exit $ac_status ) |
| 22177 | ac_cv_broken_poll=no |
| 22178 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22179 | 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] | 22180 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22181 | |
| 22182 | |
| 22183 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 22184 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22185 | if test "$ac_cv_broken_poll" = yes |
| 22186 | then |
| 22187 | |
| 22188 | cat >>confdefs.h <<\_ACEOF |
| 22189 | #define HAVE_BROKEN_POLL 1 |
| 22190 | _ACEOF |
| 22191 | |
| 22192 | fi |
| 22193 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22194 | # 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] | 22195 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 22196 | # tzname[] |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22197 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 22198 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22199 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 22200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22201 | else |
| 22202 | cat >conftest.$ac_ext <<_ACEOF |
| 22203 | /* confdefs.h. */ |
| 22204 | _ACEOF |
| 22205 | cat confdefs.h >>conftest.$ac_ext |
| 22206 | cat >>conftest.$ac_ext <<_ACEOF |
| 22207 | /* end confdefs.h. */ |
| 22208 | #include <sys/types.h> |
| 22209 | #include <$ac_cv_struct_tm> |
| 22210 | |
| 22211 | |
| 22212 | int |
| 22213 | main () |
| 22214 | { |
| 22215 | static struct tm ac_aggr; |
| 22216 | if (ac_aggr.tm_zone) |
| 22217 | return 0; |
| 22218 | ; |
| 22219 | return 0; |
| 22220 | } |
| 22221 | _ACEOF |
| 22222 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22223 | if { (ac_try="$ac_compile" |
| 22224 | case "(($ac_try" in |
| 22225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22226 | *) ac_try_echo=$ac_try;; |
| 22227 | esac |
| 22228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22229 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22230 | ac_status=$? |
| 22231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22232 | rm -f conftest.er1 |
| 22233 | cat conftest.err >&5 |
| 22234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22235 | (exit $ac_status); } && { |
| 22236 | test -z "$ac_c_werror_flag" || |
| 22237 | test ! -s conftest.err |
| 22238 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22239 | ac_cv_member_struct_tm_tm_zone=yes |
| 22240 | else |
| 22241 | echo "$as_me: failed program was:" >&5 |
| 22242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22243 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22244 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22245 | /* confdefs.h. */ |
| 22246 | _ACEOF |
| 22247 | cat confdefs.h >>conftest.$ac_ext |
| 22248 | cat >>conftest.$ac_ext <<_ACEOF |
| 22249 | /* end confdefs.h. */ |
| 22250 | #include <sys/types.h> |
| 22251 | #include <$ac_cv_struct_tm> |
| 22252 | |
| 22253 | |
| 22254 | int |
| 22255 | main () |
| 22256 | { |
| 22257 | static struct tm ac_aggr; |
| 22258 | if (sizeof ac_aggr.tm_zone) |
| 22259 | return 0; |
| 22260 | ; |
| 22261 | return 0; |
| 22262 | } |
| 22263 | _ACEOF |
| 22264 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22265 | if { (ac_try="$ac_compile" |
| 22266 | case "(($ac_try" in |
| 22267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22268 | *) ac_try_echo=$ac_try;; |
| 22269 | esac |
| 22270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22271 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22272 | ac_status=$? |
| 22273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22274 | rm -f conftest.er1 |
| 22275 | cat conftest.err >&5 |
| 22276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22277 | (exit $ac_status); } && { |
| 22278 | test -z "$ac_c_werror_flag" || |
| 22279 | test ! -s conftest.err |
| 22280 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22281 | ac_cv_member_struct_tm_tm_zone=yes |
| 22282 | else |
| 22283 | echo "$as_me: failed program was:" >&5 |
| 22284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22285 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22286 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22287 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22288 | |
| 22289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22290 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22291 | |
| 22292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22293 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22294 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 22295 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22296 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 22297 | |
| 22298 | cat >>confdefs.h <<_ACEOF |
| 22299 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 22300 | _ACEOF |
| 22301 | |
| 22302 | |
| 22303 | fi |
| 22304 | |
| 22305 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 22306 | |
| 22307 | cat >>confdefs.h <<\_ACEOF |
| 22308 | #define HAVE_TM_ZONE 1 |
| 22309 | _ACEOF |
| 22310 | |
| 22311 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22312 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 22313 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
| 22314 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
| 22315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22316 | else |
| 22317 | cat >conftest.$ac_ext <<_ACEOF |
| 22318 | /* confdefs.h. */ |
| 22319 | _ACEOF |
| 22320 | cat confdefs.h >>conftest.$ac_ext |
| 22321 | cat >>conftest.$ac_ext <<_ACEOF |
| 22322 | /* end confdefs.h. */ |
| 22323 | #include <time.h> |
| 22324 | |
| 22325 | int |
| 22326 | main () |
| 22327 | { |
| 22328 | #ifndef tzname |
| 22329 | (void) tzname; |
| 22330 | #endif |
| 22331 | |
| 22332 | ; |
| 22333 | return 0; |
| 22334 | } |
| 22335 | _ACEOF |
| 22336 | rm -f conftest.$ac_objext |
| 22337 | if { (ac_try="$ac_compile" |
| 22338 | case "(($ac_try" in |
| 22339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22340 | *) ac_try_echo=$ac_try;; |
| 22341 | esac |
| 22342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22343 | (eval "$ac_compile") 2>conftest.er1 |
| 22344 | ac_status=$? |
| 22345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22346 | rm -f conftest.er1 |
| 22347 | cat conftest.err >&5 |
| 22348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22349 | (exit $ac_status); } && { |
| 22350 | test -z "$ac_c_werror_flag" || |
| 22351 | test ! -s conftest.err |
| 22352 | } && test -s conftest.$ac_objext; then |
| 22353 | ac_cv_have_decl_tzname=yes |
| 22354 | else |
| 22355 | echo "$as_me: failed program was:" >&5 |
| 22356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22357 | |
| 22358 | ac_cv_have_decl_tzname=no |
| 22359 | fi |
| 22360 | |
| 22361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22362 | fi |
| 22363 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 22364 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 22365 | if test $ac_cv_have_decl_tzname = yes; then |
| 22366 | |
| 22367 | cat >>confdefs.h <<_ACEOF |
| 22368 | #define HAVE_DECL_TZNAME 1 |
| 22369 | _ACEOF |
| 22370 | |
| 22371 | |
| 22372 | else |
| 22373 | cat >>confdefs.h <<_ACEOF |
| 22374 | #define HAVE_DECL_TZNAME 0 |
| 22375 | _ACEOF |
| 22376 | |
| 22377 | |
| 22378 | fi |
| 22379 | |
| 22380 | |
| 22381 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 22382 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22383 | if test "${ac_cv_var_tzname+set}" = set; then |
| 22384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22385 | else |
| 22386 | cat >conftest.$ac_ext <<_ACEOF |
| 22387 | /* confdefs.h. */ |
| 22388 | _ACEOF |
| 22389 | cat confdefs.h >>conftest.$ac_ext |
| 22390 | cat >>conftest.$ac_ext <<_ACEOF |
| 22391 | /* end confdefs.h. */ |
| 22392 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22393 | #if !HAVE_DECL_TZNAME |
| 22394 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22395 | #endif |
| 22396 | |
| 22397 | int |
| 22398 | main () |
| 22399 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22400 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22401 | ; |
| 22402 | return 0; |
| 22403 | } |
| 22404 | _ACEOF |
| 22405 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22406 | if { (ac_try="$ac_link" |
| 22407 | case "(($ac_try" in |
| 22408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22409 | *) ac_try_echo=$ac_try;; |
| 22410 | esac |
| 22411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22412 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22413 | ac_status=$? |
| 22414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22415 | rm -f conftest.er1 |
| 22416 | cat conftest.err >&5 |
| 22417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22418 | (exit $ac_status); } && { |
| 22419 | test -z "$ac_c_werror_flag" || |
| 22420 | test ! -s conftest.err |
| 22421 | } && test -s conftest$ac_exeext && |
| 22422 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22423 | ac_cv_var_tzname=yes |
| 22424 | else |
| 22425 | echo "$as_me: failed program was:" >&5 |
| 22426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22427 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22428 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22429 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22430 | |
| 22431 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22432 | conftest$ac_exeext conftest.$ac_ext |
| 22433 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22434 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 22435 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22436 | if test $ac_cv_var_tzname = yes; then |
| 22437 | |
| 22438 | cat >>confdefs.h <<\_ACEOF |
| 22439 | #define HAVE_TZNAME 1 |
| 22440 | _ACEOF |
| 22441 | |
| 22442 | fi |
| 22443 | fi |
| 22444 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22445 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22446 | # check tzset(3) exists and works like we expect it to |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22447 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 22448 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22449 | if test "${ac_cv_working_tzset+set}" = set; then |
| 22450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22451 | else |
| 22452 | |
| 22453 | if test "$cross_compiling" = yes; then |
| 22454 | ac_cv_working_tzset=no |
| 22455 | else |
| 22456 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22457 | /* confdefs.h. */ |
| 22458 | _ACEOF |
| 22459 | cat confdefs.h >>conftest.$ac_ext |
| 22460 | cat >>conftest.$ac_ext <<_ACEOF |
| 22461 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22462 | |
| 22463 | #include <stdlib.h> |
| 22464 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22465 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22466 | |
| 22467 | #if HAVE_TZNAME |
| 22468 | extern char *tzname[]; |
| 22469 | #endif |
| 22470 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22471 | int main() |
| 22472 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22473 | /* Note that we need to ensure that not only does tzset(3) |
| 22474 | do 'something' with localtime, but it works as documented |
| 22475 | 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] | 22476 | This includes making sure that tzname is set properly if |
| 22477 | tm->tm_zone does not exist since it is the alternative way |
| 22478 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22479 | |
| 22480 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22481 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22482 | */ |
| 22483 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22484 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22485 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 22486 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 22487 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22488 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22489 | if (localtime(&groundhogday)->tm_hour != 0) |
| 22490 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22491 | #if HAVE_TZNAME |
| 22492 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 22493 | if (strcmp(tzname[0], "UTC") || |
| 22494 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 22495 | exit(1); |
| 22496 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22497 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 22498 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22499 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22500 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22501 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22502 | #if HAVE_TZNAME |
| 22503 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 22504 | exit(1); |
| 22505 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22506 | |
| 22507 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 22508 | tzset(); |
| 22509 | if (localtime(&groundhogday)->tm_hour != 11) |
| 22510 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22511 | #if HAVE_TZNAME |
| 22512 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 22513 | exit(1); |
| 22514 | #endif |
| 22515 | |
| 22516 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22517 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 22518 | exit(1); |
| 22519 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 22520 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22521 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22522 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22523 | exit(0); |
| 22524 | } |
| 22525 | |
| 22526 | _ACEOF |
| 22527 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22528 | if { (ac_try="$ac_link" |
| 22529 | case "(($ac_try" in |
| 22530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22531 | *) ac_try_echo=$ac_try;; |
| 22532 | esac |
| 22533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22534 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22535 | ac_status=$? |
| 22536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22537 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22538 | { (case "(($ac_try" in |
| 22539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22540 | *) ac_try_echo=$ac_try;; |
| 22541 | esac |
| 22542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22543 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22544 | ac_status=$? |
| 22545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22546 | (exit $ac_status); }; }; then |
| 22547 | ac_cv_working_tzset=yes |
| 22548 | else |
| 22549 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22550 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22552 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22553 | ( exit $ac_status ) |
| 22554 | ac_cv_working_tzset=no |
| 22555 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22556 | 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] | 22557 | fi |
| 22558 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22559 | |
| 22560 | fi |
| 22561 | |
| 22562 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 22563 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22564 | if test "$ac_cv_working_tzset" = yes |
| 22565 | then |
| 22566 | |
| 22567 | cat >>confdefs.h <<\_ACEOF |
| 22568 | #define HAVE_WORKING_TZSET 1 |
| 22569 | _ACEOF |
| 22570 | |
| 22571 | fi |
| 22572 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22573 | # Look for subsecond timestamps in struct stat |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22574 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 22575 | 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] | 22576 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 22577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22578 | else |
| 22579 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22580 | /* confdefs.h. */ |
| 22581 | _ACEOF |
| 22582 | cat confdefs.h >>conftest.$ac_ext |
| 22583 | cat >>conftest.$ac_ext <<_ACEOF |
| 22584 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22585 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22586 | int |
| 22587 | main () |
| 22588 | { |
| 22589 | |
| 22590 | struct stat st; |
| 22591 | st.st_mtim.tv_nsec = 1; |
| 22592 | |
| 22593 | ; |
| 22594 | return 0; |
| 22595 | } |
| 22596 | _ACEOF |
| 22597 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22598 | if { (ac_try="$ac_compile" |
| 22599 | case "(($ac_try" in |
| 22600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22601 | *) ac_try_echo=$ac_try;; |
| 22602 | esac |
| 22603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22604 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22605 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22607 | rm -f conftest.er1 |
| 22608 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22610 | (exit $ac_status); } && { |
| 22611 | test -z "$ac_c_werror_flag" || |
| 22612 | test ! -s conftest.err |
| 22613 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 22614 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22615 | else |
| 22616 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22618 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22619 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22620 | fi |
| 22621 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22623 | fi |
| 22624 | |
| 22625 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 22626 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22627 | if test "$ac_cv_stat_tv_nsec" = yes |
| 22628 | then |
| 22629 | |
| 22630 | cat >>confdefs.h <<\_ACEOF |
| 22631 | #define HAVE_STAT_TV_NSEC 1 |
| 22632 | _ACEOF |
| 22633 | |
| 22634 | fi |
| 22635 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22636 | # Look for BSD style subsecond timestamps in struct stat |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22637 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 22638 | 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] | 22639 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
| 22640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22641 | else |
| 22642 | cat >conftest.$ac_ext <<_ACEOF |
| 22643 | /* confdefs.h. */ |
| 22644 | _ACEOF |
| 22645 | cat confdefs.h >>conftest.$ac_ext |
| 22646 | cat >>conftest.$ac_ext <<_ACEOF |
| 22647 | /* end confdefs.h. */ |
| 22648 | #include <sys/stat.h> |
| 22649 | int |
| 22650 | main () |
| 22651 | { |
| 22652 | |
| 22653 | struct stat st; |
| 22654 | st.st_mtimespec.tv_nsec = 1; |
| 22655 | |
| 22656 | ; |
| 22657 | return 0; |
| 22658 | } |
| 22659 | _ACEOF |
| 22660 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22661 | if { (ac_try="$ac_compile" |
| 22662 | case "(($ac_try" in |
| 22663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22664 | *) ac_try_echo=$ac_try;; |
| 22665 | esac |
| 22666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22667 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22668 | ac_status=$? |
| 22669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22670 | rm -f conftest.er1 |
| 22671 | cat conftest.err >&5 |
| 22672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22673 | (exit $ac_status); } && { |
| 22674 | test -z "$ac_c_werror_flag" || |
| 22675 | test ! -s conftest.err |
| 22676 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22677 | ac_cv_stat_tv_nsec2=yes |
| 22678 | else |
| 22679 | echo "$as_me: failed program was:" >&5 |
| 22680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22681 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22682 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22683 | fi |
| 22684 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22686 | fi |
| 22687 | |
| 22688 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 22689 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22690 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 22691 | then |
| 22692 | |
| 22693 | cat >>confdefs.h <<\_ACEOF |
| 22694 | #define HAVE_STAT_TV_NSEC2 1 |
| 22695 | _ACEOF |
| 22696 | |
| 22697 | fi |
| 22698 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22699 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22700 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 22701 | 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] | 22702 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 22703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22704 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22705 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22706 | /* confdefs.h. */ |
| 22707 | _ACEOF |
| 22708 | cat confdefs.h >>conftest.$ac_ext |
| 22709 | cat >>conftest.$ac_ext <<_ACEOF |
| 22710 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22711 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22712 | int |
| 22713 | main () |
| 22714 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22715 | |
| 22716 | int rtn; |
| 22717 | rtn = mvwdelch(0,0,0); |
| 22718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22719 | ; |
| 22720 | return 0; |
| 22721 | } |
| 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 |
| 22729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22740 | ac_cv_mvwdelch_is_expression=yes |
| 22741 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22746 | fi |
| 22747 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22749 | fi |
| 22750 | |
| 22751 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 22752 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22753 | |
| 22754 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 22755 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22756 | |
| 22757 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22758 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22759 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22760 | |
| 22761 | fi |
| 22762 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22763 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 22764 | 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] | 22765 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 22766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22769 | /* confdefs.h. */ |
| 22770 | _ACEOF |
| 22771 | cat confdefs.h >>conftest.$ac_ext |
| 22772 | cat >>conftest.$ac_ext <<_ACEOF |
| 22773 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22774 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22775 | int |
| 22776 | main () |
| 22777 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22778 | |
| 22779 | WINDOW *w; |
| 22780 | w->_flags = 0; |
| 22781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22782 | ; |
| 22783 | return 0; |
| 22784 | } |
| 22785 | _ACEOF |
| 22786 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22787 | if { (ac_try="$ac_compile" |
| 22788 | case "(($ac_try" in |
| 22789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22790 | *) ac_try_echo=$ac_try;; |
| 22791 | esac |
| 22792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22793 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22794 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22796 | rm -f conftest.er1 |
| 22797 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22799 | (exit $ac_status); } && { |
| 22800 | test -z "$ac_c_werror_flag" || |
| 22801 | test ! -s conftest.err |
| 22802 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22803 | ac_cv_window_has_flags=yes |
| 22804 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22805 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22807 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22808 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22809 | fi |
| 22810 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22812 | fi |
| 22813 | |
| 22814 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 22815 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22816 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22817 | |
| 22818 | if test "$ac_cv_window_has_flags" = yes |
| 22819 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22820 | |
| 22821 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22822 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22823 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22824 | |
| 22825 | fi |
| 22826 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22827 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 22828 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22829 | cat >conftest.$ac_ext <<_ACEOF |
| 22830 | /* confdefs.h. */ |
| 22831 | _ACEOF |
| 22832 | cat confdefs.h >>conftest.$ac_ext |
| 22833 | cat >>conftest.$ac_ext <<_ACEOF |
| 22834 | /* end confdefs.h. */ |
| 22835 | #include <curses.h> |
| 22836 | int |
| 22837 | main () |
| 22838 | { |
| 22839 | void *x=is_term_resized |
| 22840 | ; |
| 22841 | return 0; |
| 22842 | } |
| 22843 | _ACEOF |
| 22844 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22845 | if { (ac_try="$ac_compile" |
| 22846 | case "(($ac_try" in |
| 22847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22848 | *) ac_try_echo=$ac_try;; |
| 22849 | esac |
| 22850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22851 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22852 | ac_status=$? |
| 22853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22854 | rm -f conftest.er1 |
| 22855 | cat conftest.err >&5 |
| 22856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22857 | (exit $ac_status); } && { |
| 22858 | test -z "$ac_c_werror_flag" || |
| 22859 | test ! -s conftest.err |
| 22860 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22861 | |
| 22862 | cat >>confdefs.h <<\_ACEOF |
| 22863 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 22864 | _ACEOF |
| 22865 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22866 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22867 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22868 | else |
| 22869 | echo "$as_me: failed program was:" >&5 |
| 22870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22871 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22872 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22873 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22874 | |
| 22875 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22876 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22878 | |
| 22879 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 22880 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22881 | cat >conftest.$ac_ext <<_ACEOF |
| 22882 | /* confdefs.h. */ |
| 22883 | _ACEOF |
| 22884 | cat confdefs.h >>conftest.$ac_ext |
| 22885 | cat >>conftest.$ac_ext <<_ACEOF |
| 22886 | /* end confdefs.h. */ |
| 22887 | #include <curses.h> |
| 22888 | int |
| 22889 | main () |
| 22890 | { |
| 22891 | void *x=resize_term |
| 22892 | ; |
| 22893 | return 0; |
| 22894 | } |
| 22895 | _ACEOF |
| 22896 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22897 | if { (ac_try="$ac_compile" |
| 22898 | case "(($ac_try" in |
| 22899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22900 | *) ac_try_echo=$ac_try;; |
| 22901 | esac |
| 22902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22903 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22904 | ac_status=$? |
| 22905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22906 | rm -f conftest.er1 |
| 22907 | cat conftest.err >&5 |
| 22908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22909 | (exit $ac_status); } && { |
| 22910 | test -z "$ac_c_werror_flag" || |
| 22911 | test ! -s conftest.err |
| 22912 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22913 | |
| 22914 | cat >>confdefs.h <<\_ACEOF |
| 22915 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 22916 | _ACEOF |
| 22917 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22918 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22919 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22920 | else |
| 22921 | echo "$as_me: failed program was:" >&5 |
| 22922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22923 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22924 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22925 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22926 | |
| 22927 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22928 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22930 | |
| 22931 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 22932 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22933 | cat >conftest.$ac_ext <<_ACEOF |
| 22934 | /* confdefs.h. */ |
| 22935 | _ACEOF |
| 22936 | cat confdefs.h >>conftest.$ac_ext |
| 22937 | cat >>conftest.$ac_ext <<_ACEOF |
| 22938 | /* end confdefs.h. */ |
| 22939 | #include <curses.h> |
| 22940 | int |
| 22941 | main () |
| 22942 | { |
| 22943 | void *x=resizeterm |
| 22944 | ; |
| 22945 | return 0; |
| 22946 | } |
| 22947 | _ACEOF |
| 22948 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22949 | if { (ac_try="$ac_compile" |
| 22950 | case "(($ac_try" in |
| 22951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22952 | *) ac_try_echo=$ac_try;; |
| 22953 | esac |
| 22954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22955 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22956 | ac_status=$? |
| 22957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22958 | rm -f conftest.er1 |
| 22959 | cat conftest.err >&5 |
| 22960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22961 | (exit $ac_status); } && { |
| 22962 | test -z "$ac_c_werror_flag" || |
| 22963 | test ! -s conftest.err |
| 22964 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22965 | |
| 22966 | cat >>confdefs.h <<\_ACEOF |
| 22967 | #define HAVE_CURSES_RESIZETERM 1 |
| 22968 | _ACEOF |
| 22969 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22970 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22971 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22972 | else |
| 22973 | echo "$as_me: failed program was:" >&5 |
| 22974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22975 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22976 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22977 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22978 | |
| 22979 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 22980 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22982 | |
| 22983 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 22984 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 22985 | |
| 22986 | if test -r /dev/ptmx |
| 22987 | then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22988 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22989 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 22990 | |
| 22991 | cat >>confdefs.h <<\_ACEOF |
| 22992 | #define HAVE_DEV_PTMX 1 |
| 22993 | _ACEOF |
| 22994 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 22995 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22996 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22997 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 22998 | fi |
| 22999 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23000 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 23001 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 23002 | |
| 23003 | if test -r /dev/ptc |
| 23004 | then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23005 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23006 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 23007 | |
| 23008 | cat >>confdefs.h <<\_ACEOF |
| 23009 | #define HAVE_DEV_PTC 1 |
| 23010 | _ACEOF |
| 23011 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 23012 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23013 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23014 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 23015 | fi |
| 23016 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23017 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 23018 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 23019 | if test "$cross_compiling" = yes; then |
| 23020 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 23021 | See \`config.log' for more details." >&5 |
| 23022 | echo "$as_me: error: cannot run test program while cross compiling |
| 23023 | See \`config.log' for more details." >&2;} |
| 23024 | { (exit 1); exit 1; }; } |
| 23025 | else |
| 23026 | cat >conftest.$ac_ext <<_ACEOF |
| 23027 | /* confdefs.h. */ |
| 23028 | _ACEOF |
| 23029 | cat confdefs.h >>conftest.$ac_ext |
| 23030 | cat >>conftest.$ac_ext <<_ACEOF |
| 23031 | /* end confdefs.h. */ |
| 23032 | #include <stdio.h> |
| 23033 | #include <stddef.h> |
| 23034 | #include <string.h> |
| 23035 | |
| 23036 | int main() |
| 23037 | { |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 23038 | char buffer[256]; |
| 23039 | |
| 23040 | #ifdef HAVE_SSIZE_T |
| 23041 | typedef ssize_t Py_ssize_t; |
| 23042 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 23043 | typedef long Py_ssize_t; |
| 23044 | #else |
| 23045 | typedef int Py_ssize_t; |
| 23046 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 23047 | |
| 23048 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 23049 | return 1; |
| 23050 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 23051 | if (strcmp(buffer, "123")) |
| 23052 | return 1; |
| 23053 | |
| 23054 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 23055 | return 1; |
| 23056 | |
| 23057 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 23058 | return 1; |
| 23059 | |
| 23060 | return 0; |
| 23061 | } |
| 23062 | _ACEOF |
| 23063 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23064 | if { (ac_try="$ac_link" |
| 23065 | case "(($ac_try" in |
| 23066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23067 | *) ac_try_echo=$ac_try;; |
| 23068 | esac |
| 23069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23070 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 23071 | ac_status=$? |
| 23072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23073 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23074 | { (case "(($ac_try" in |
| 23075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23076 | *) ac_try_echo=$ac_try;; |
| 23077 | esac |
| 23078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23079 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 23080 | ac_status=$? |
| 23081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23082 | (exit $ac_status); }; }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23083 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23084 | echo "${ECHO_T}yes" >&6; } |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 23085 | |
| 23086 | cat >>confdefs.h <<\_ACEOF |
| 23087 | #define PY_FORMAT_SIZE_T "z" |
| 23088 | _ACEOF |
| 23089 | |
| 23090 | else |
| 23091 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23092 | echo "$as_me: failed program was:" >&5 |
| 23093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23094 | |
| 23095 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23096 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23097 | echo "${ECHO_T}no" >&6; } |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 23098 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23099 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 23100 | fi |
| 23101 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23102 | |
| 23103 | |
| 23104 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 23105 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23106 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 23107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 23108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23109 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23110 | /* confdefs.h. */ |
| 23111 | _ACEOF |
| 23112 | cat confdefs.h >>conftest.$ac_ext |
| 23113 | cat >>conftest.$ac_ext <<_ACEOF |
| 23114 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 23115 | |
| 23116 | #ifdef HAVE_SYS_TYPES_H |
| 23117 | #include <sys/types.h> |
| 23118 | #endif |
| 23119 | #ifdef HAVE_SYS_SOCKET_H |
| 23120 | #include <sys/socket.h> |
| 23121 | #endif |
| 23122 | |
| 23123 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23124 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23125 | int |
| 23126 | main () |
| 23127 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23128 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23129 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23130 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23131 | return 0; |
| 23132 | ; |
| 23133 | return 0; |
| 23134 | } |
| 23135 | _ACEOF |
| 23136 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23137 | if { (ac_try="$ac_compile" |
| 23138 | case "(($ac_try" in |
| 23139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23140 | *) ac_try_echo=$ac_try;; |
| 23141 | esac |
| 23142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23143 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23144 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23146 | rm -f conftest.er1 |
| 23147 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23149 | (exit $ac_status); } && { |
| 23150 | test -z "$ac_c_werror_flag" || |
| 23151 | test ! -s conftest.err |
| 23152 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 23153 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 23154 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23155 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23157 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23158 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 23159 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23160 | |
| 23161 | 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] | 23162 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23163 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 23164 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23165 | if test $ac_cv_type_socklen_t = yes; then |
| 23166 | : |
| 23167 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 23168 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 23169 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 23170 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23171 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 23172 | |
| 23173 | fi |
| 23174 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23175 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23176 | |
| 23177 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 23178 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 23179 | do |
| 23180 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 23181 | done |
| 23182 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23183 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 23184 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23185 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 23186 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 23187 | for dir in $SRCDIRS; do |
| 23188 | if test ! -d $dir; then |
| 23189 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 23190 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 23191 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23192 | { echo "$as_me:$LINENO: result: done" >&5 |
| 23193 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 23194 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23195 | # generate output files |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23196 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 23197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23198 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23199 | # This file is a shell script that caches the results of configure |
| 23200 | # 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] | 23201 | # scripts and configure runs, see configure's option --config-cache. |
| 23202 | # It is not useful on other systems. If it contains results you don't |
| 23203 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23204 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23205 | # config.status only pays attention to the cache file if you give it |
| 23206 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23207 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23208 | # `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] | 23209 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 23210 | # following values. |
| 23211 | |
| 23212 | _ACEOF |
| 23213 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 23214 | # The following way of writing the cache mishandles newlines in values, |
| 23215 | # 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] | 23216 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23217 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 23218 | # 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] | 23219 | ( |
| 23220 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 23221 | eval ac_val=\$$ac_var |
| 23222 | case $ac_val in #( |
| 23223 | *${as_nl}*) |
| 23224 | case $ac_var in #( |
| 23225 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 23226 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 23227 | esac |
| 23228 | case $ac_var in #( |
| 23229 | _ | IFS | as_nl) ;; #( |
| 23230 | *) $as_unset $ac_var ;; |
| 23231 | esac ;; |
| 23232 | esac |
| 23233 | done |
| 23234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23235 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23236 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 23237 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23238 | # `set' does not quote correctly, so add quotes (double-quote |
| 23239 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 23240 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23241 | "s/'/'\\\\''/g; |
| 23242 | 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] | 23243 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23244 | *) |
| 23245 | # `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] | 23246 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23247 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23248 | esac | |
| 23249 | sort |
| 23250 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23251 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23252 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23253 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23254 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23255 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 23256 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23257 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 23258 | :end' >>confcache |
| 23259 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 23260 | if test -w "$cache_file"; then |
| 23261 | test "x$cache_file" != "x/dev/null" && |
| 23262 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 23263 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23264 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23265 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23266 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 23267 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23268 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23269 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23270 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 23271 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23272 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 23273 | # Let make expand exec_prefix. |
| 23274 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 23275 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23276 | DEFS=-DHAVE_CONFIG_H |
| 23277 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23278 | ac_libobjs= |
| 23279 | ac_ltlibobjs= |
| 23280 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 23281 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23282 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 23283 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 23284 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 23285 | # will be set to the directory where LIBOBJS objects are built. |
| 23286 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 23287 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23288 | done |
| 23289 | LIBOBJS=$ac_libobjs |
| 23290 | |
| 23291 | LTLIBOBJS=$ac_ltlibobjs |
| 23292 | |
| 23293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23294 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23295 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23296 | ac_clean_files_save=$ac_clean_files |
| 23297 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 23298 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 23299 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 23300 | cat >$CONFIG_STATUS <<_ACEOF |
| 23301 | #! $SHELL |
| 23302 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23303 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23304 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23305 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23307 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23308 | ac_cs_recheck=false |
| 23309 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23310 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 23311 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23312 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23313 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23314 | ## --------------------- ## |
| 23315 | ## M4sh Initialization. ## |
| 23316 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23317 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23318 | # Be more Bourne compatible |
| 23319 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23320 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 23321 | emulate sh |
| 23322 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23323 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 23324 | # is contrary to our usage. Disable this feature. |
| 23325 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23326 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 23327 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23328 | case `(set -o) 2>/dev/null` in |
| 23329 | *posix*) set -o posix ;; |
| 23330 | esac |
| 23331 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23332 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23333 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23335 | |
| 23336 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23337 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23338 | # Avoid depending upon Character Ranges. |
| 23339 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 23340 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 23341 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 23342 | as_cr_digits='0123456789' |
| 23343 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 23344 | |
| 23345 | # The user is always right. |
| 23346 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23347 | echo "#! /bin/sh" >conf$$.sh |
| 23348 | echo "exit 0" >>conf$$.sh |
| 23349 | chmod +x conf$$.sh |
| 23350 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23351 | PATH_SEPARATOR=';' |
| 23352 | else |
| 23353 | PATH_SEPARATOR=: |
| 23354 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23355 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23356 | fi |
| 23357 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23358 | # Support unset when possible. |
| 23359 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 23360 | as_unset=unset |
| 23361 | else |
| 23362 | as_unset=false |
| 23363 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23365 | |
| 23366 | # IFS |
| 23367 | # We need space, tab and new line, in precisely that order. Quoting is |
| 23368 | # there to prevent editors from complaining about space-tab. |
| 23369 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 23370 | # splitting by setting IFS to empty value.) |
| 23371 | as_nl=' |
| 23372 | ' |
| 23373 | IFS=" "" $as_nl" |
| 23374 | |
| 23375 | # Find who we are. Look in the path if we contain no directory separator. |
| 23376 | case $0 in |
| 23377 | *[\\/]* ) as_myself=$0 ;; |
| 23378 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23379 | for as_dir in $PATH |
| 23380 | do |
| 23381 | IFS=$as_save_IFS |
| 23382 | test -z "$as_dir" && as_dir=. |
| 23383 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 23384 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23385 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23386 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23387 | ;; |
| 23388 | esac |
| 23389 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 23390 | # in which case we are not to be found in the path. |
| 23391 | if test "x$as_myself" = x; then |
| 23392 | as_myself=$0 |
| 23393 | fi |
| 23394 | if test ! -f "$as_myself"; then |
| 23395 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 23396 | { (exit 1); exit 1; } |
| 23397 | fi |
| 23398 | |
| 23399 | # Work around bugs in pre-3.0 UWIN ksh. |
| 23400 | for as_var in ENV MAIL MAILPATH |
| 23401 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 23402 | done |
| 23403 | PS1='$ ' |
| 23404 | PS2='> ' |
| 23405 | PS4='+ ' |
| 23406 | |
| 23407 | # NLS nuisances. |
| 23408 | for as_var in \ |
| 23409 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 23410 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 23411 | LC_TELEPHONE LC_TIME |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 23412 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23413 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 23414 | eval $as_var=C; export $as_var |
| 23415 | else |
| 23416 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 23417 | fi |
| 23418 | done |
| 23419 | |
| 23420 | # Required to use basename. |
| 23421 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23422 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 23423 | as_expr=expr |
| 23424 | else |
| 23425 | as_expr=false |
| 23426 | fi |
| 23427 | |
| 23428 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 23429 | as_basename=basename |
| 23430 | else |
| 23431 | as_basename=false |
| 23432 | fi |
| 23433 | |
| 23434 | |
| 23435 | # Name of the executable. |
| 23436 | as_me=`$as_basename -- "$0" || |
| 23437 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 23438 | X"$0" : 'X\(//\)$' \| \ |
| 23439 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 23440 | echo X/"$0" | |
| 23441 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 23442 | s//\1/ |
| 23443 | q |
| 23444 | } |
| 23445 | /^X\/\(\/\/\)$/{ |
| 23446 | s//\1/ |
| 23447 | q |
| 23448 | } |
| 23449 | /^X\/\(\/\).*/{ |
| 23450 | s//\1/ |
| 23451 | q |
| 23452 | } |
| 23453 | s/.*/./; q'` |
| 23454 | |
| 23455 | # CDPATH. |
| 23456 | $as_unset CDPATH |
| 23457 | |
| 23458 | |
| 23459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23460 | as_lineno_1=$LINENO |
| 23461 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23462 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23463 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23465 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 23466 | # 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] | 23467 | # line-number line after each line using $LINENO; the second 'sed' |
| 23468 | # does the real work. The second script uses 'N' to pair each |
| 23469 | # line-number line with the line containing $LINENO, and appends |
| 23470 | # trailing '-' during substitution so that $LINENO is not a special |
| 23471 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23472 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23473 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 23474 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 23475 | sed -n ' |
| 23476 | p |
| 23477 | /[$]LINENO/= |
| 23478 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23479 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23480 | s/[$]LINENO.*/&-/ |
| 23481 | t lineno |
| 23482 | b |
| 23483 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23484 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23485 | :loop |
| 23486 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23487 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23488 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23489 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23490 | chmod +x "$as_me.lineno" || |
| 23491 | { 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] | 23492 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23494 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 23495 | # (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] | 23496 | # original and so on. Autoconf is especially sensitive to this). |
| 23497 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23498 | # Exit status is that of the last command. |
| 23499 | exit |
| 23500 | } |
| 23501 | |
| 23502 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23503 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 23504 | as_dirname=dirname |
| 23505 | else |
| 23506 | as_dirname=false |
| 23507 | fi |
| 23508 | |
| 23509 | ECHO_C= ECHO_N= ECHO_T= |
| 23510 | case `echo -n x` in |
| 23511 | -n*) |
| 23512 | case `echo 'x\c'` in |
| 23513 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 23514 | *) ECHO_C='\c';; |
| 23515 | esac;; |
| 23516 | *) |
| 23517 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23518 | esac |
| 23519 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23520 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23521 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23522 | as_expr=expr |
| 23523 | else |
| 23524 | as_expr=false |
| 23525 | fi |
| 23526 | |
| 23527 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23528 | if test -d conf$$.dir; then |
| 23529 | rm -f conf$$.dir/conf$$.file |
| 23530 | else |
| 23531 | rm -f conf$$.dir |
| 23532 | mkdir conf$$.dir |
| 23533 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23534 | echo >conf$$.file |
| 23535 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23536 | as_ln_s='ln -s' |
| 23537 | # ... but there are two gotchas: |
| 23538 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 23539 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 23540 | # In both cases, we have to default to `cp -p'. |
| 23541 | 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] | 23542 | as_ln_s='cp -p' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23543 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 23544 | as_ln_s=ln |
| 23545 | else |
| 23546 | as_ln_s='cp -p' |
| 23547 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 23549 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23550 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23551 | if mkdir -p . 2>/dev/null; then |
| 23552 | as_mkdir_p=: |
| 23553 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23554 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23555 | as_mkdir_p=false |
| 23556 | fi |
| 23557 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23558 | if test -x / >/dev/null 2>&1; then |
| 23559 | as_test_x='test -x' |
| 23560 | else |
| 23561 | if ls -dL / >/dev/null 2>&1; then |
| 23562 | as_ls_L_option=L |
| 23563 | else |
| 23564 | as_ls_L_option= |
| 23565 | fi |
| 23566 | as_test_x=' |
| 23567 | eval sh -c '\'' |
| 23568 | if test -d "$1"; then |
| 23569 | test -d "$1/."; |
| 23570 | else |
| 23571 | case $1 in |
| 23572 | -*)set "./$1";; |
| 23573 | esac; |
| 23574 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 23575 | ???[sx]*):;;*)false;;esac;fi |
| 23576 | '\'' sh |
| 23577 | ' |
| 23578 | fi |
| 23579 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23580 | |
| 23581 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23582 | 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] | 23583 | |
| 23584 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23585 | 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] | 23586 | |
| 23587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23588 | exec 6>&1 |
| 23589 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23590 | # 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] | 23591 | # 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] | 23592 | # values after options handling. |
| 23593 | ac_log=" |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 23594 | This file was extended by python $as_me 2.6, which was |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23595 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23596 | |
| 23597 | CONFIG_FILES = $CONFIG_FILES |
| 23598 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 23599 | CONFIG_LINKS = $CONFIG_LINKS |
| 23600 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 23601 | $ $0 $@ |
| 23602 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23603 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 23604 | " |
| 23605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23606 | _ACEOF |
| 23607 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23608 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23609 | # Files that config.status was made for. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23610 | config_files="$ac_config_files" |
| 23611 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23612 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23613 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23614 | |
| 23615 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23616 | ac_cs_usage="\ |
| 23617 | \`$as_me' instantiates files from templates according to the |
| 23618 | current configuration. |
| 23619 | |
| 23620 | Usage: $0 [OPTIONS] [FILE]... |
| 23621 | |
| 23622 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23623 | -V, --version print version number and configuration settings, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23624 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23625 | -d, --debug don't remove temporary files |
| 23626 | --recheck update $as_me by reconfiguring in the same conditions |
| 23627 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23628 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23629 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23630 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23631 | |
| 23632 | Configuration files: |
| 23633 | $config_files |
| 23634 | |
| 23635 | Configuration headers: |
| 23636 | $config_headers |
| 23637 | |
| 23638 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 23639 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23640 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23641 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23642 | ac_cs_version="\\ |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 23643 | python config.status 2.6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23644 | configured by $0, generated by GNU Autoconf 2.61, |
| 23645 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23646 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23647 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23648 | This config.status script is free software; the Free Software Foundation |
| 23649 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23650 | |
| 23651 | ac_pwd='$ac_pwd' |
| 23652 | srcdir='$srcdir' |
| 23653 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23654 | _ACEOF |
| 23655 | |
| 23656 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23657 | # If no file are specified by the user, then we need to provide default |
| 23658 | # value. By we need to know if files were specified by the user. |
| 23659 | ac_need_defaults=: |
| 23660 | while test $# != 0 |
| 23661 | do |
| 23662 | case $1 in |
| 23663 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23664 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 23665 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23666 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23667 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23668 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23669 | ac_option=$1 |
| 23670 | ac_optarg=$2 |
| 23671 | ac_shift=shift |
| 23672 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23673 | esac |
| 23674 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23675 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23676 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23677 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 23678 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23679 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 23680 | echo "$ac_cs_version"; exit ;; |
| 23681 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23682 | debug=: ;; |
| 23683 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23684 | $ac_shift |
| 23685 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23686 | ac_need_defaults=false;; |
| 23687 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23688 | $ac_shift |
| 23689 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23690 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23691 | --he | --h) |
| 23692 | # Conflict between --help and --header |
| 23693 | { echo "$as_me: error: ambiguous option: $1 |
| 23694 | Try \`$0 --help' for more information." >&2 |
| 23695 | { (exit 1); exit 1; }; };; |
| 23696 | --help | --hel | -h ) |
| 23697 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23698 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 23699 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 23700 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23701 | |
| 23702 | # This is an error. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23703 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 23704 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23705 | { (exit 1); exit 1; }; } ;; |
| 23706 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23707 | *) ac_config_targets="$ac_config_targets $1" |
| 23708 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23709 | |
| 23710 | esac |
| 23711 | shift |
| 23712 | done |
| 23713 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23714 | ac_configure_extra_args= |
| 23715 | |
| 23716 | if $ac_cs_silent; then |
| 23717 | exec 6>/dev/null |
| 23718 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23719 | fi |
| 23720 | |
| 23721 | _ACEOF |
| 23722 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23723 | if \$ac_cs_recheck; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23724 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 23725 | CONFIG_SHELL=$SHELL |
| 23726 | export CONFIG_SHELL |
| 23727 | 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] | 23728 | fi |
| 23729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23730 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23731 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23732 | exec 5>>config.log |
| 23733 | { |
| 23734 | echo |
| 23735 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 23736 | ## Running $as_me. ## |
| 23737 | _ASBOX |
| 23738 | echo "$ac_log" |
| 23739 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23740 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23741 | _ACEOF |
| 23742 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23743 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23744 | |
| 23745 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23746 | |
| 23747 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23748 | for ac_config_target in $ac_config_targets |
| 23749 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23750 | case $ac_config_target in |
| 23751 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 23752 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 23753 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 23754 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
| 23755 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 23756 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 23757 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23758 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 23759 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 23760 | { (exit 1); exit 1; }; };; |
| 23761 | esac |
| 23762 | done |
| 23763 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23764 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23765 | # If the user did not use the arguments to specify the items to instantiate, |
| 23766 | # then the envvar interface is used. Set only those that are not. |
| 23767 | # We use the long form for the default assignment because of an extremely |
| 23768 | # bizarre bug on SunOS 4.1.3. |
| 23769 | if $ac_need_defaults; then |
| 23770 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 23771 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 23772 | fi |
| 23773 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23774 | # 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] | 23775 | # 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] | 23776 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23777 | # Hook for its removal unless debugging. |
| 23778 | # Note that there is a small window in which the directory will not be cleaned: |
| 23779 | # 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] | 23780 | $debug || |
| 23781 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23782 | tmp= |
| 23783 | trap 'exit_status=$? |
| 23784 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 23785 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23786 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 23787 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23788 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23790 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23791 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23792 | test -n "$tmp" && test -d "$tmp" |
| 23793 | } || |
| 23794 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23795 | tmp=./conf$$-$RANDOM |
| 23796 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23797 | } || |
| 23798 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23799 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23800 | { (exit 1); exit 1; } |
| 23801 | } |
| 23802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23803 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23804 | # Set up the sed scripts for CONFIG_FILES section. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23805 | # |
| 23806 | |
| 23807 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 23808 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23809 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23810 | |
| 23811 | _ACEOF |
| 23812 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23813 | |
| 23814 | |
| 23815 | ac_delim='%!_!# ' |
| 23816 | for ac_last_try in false false false false false :; do |
| 23817 | cat >conf$$subs.sed <<_ACEOF |
| 23818 | SHELL!$SHELL$ac_delim |
| 23819 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 23820 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 23821 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 23822 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 23823 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 23824 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 23825 | exec_prefix!$exec_prefix$ac_delim |
| 23826 | prefix!$prefix$ac_delim |
| 23827 | program_transform_name!$program_transform_name$ac_delim |
| 23828 | bindir!$bindir$ac_delim |
| 23829 | sbindir!$sbindir$ac_delim |
| 23830 | libexecdir!$libexecdir$ac_delim |
| 23831 | datarootdir!$datarootdir$ac_delim |
| 23832 | datadir!$datadir$ac_delim |
| 23833 | sysconfdir!$sysconfdir$ac_delim |
| 23834 | sharedstatedir!$sharedstatedir$ac_delim |
| 23835 | localstatedir!$localstatedir$ac_delim |
| 23836 | includedir!$includedir$ac_delim |
| 23837 | oldincludedir!$oldincludedir$ac_delim |
| 23838 | docdir!$docdir$ac_delim |
| 23839 | infodir!$infodir$ac_delim |
| 23840 | htmldir!$htmldir$ac_delim |
| 23841 | dvidir!$dvidir$ac_delim |
| 23842 | pdfdir!$pdfdir$ac_delim |
| 23843 | psdir!$psdir$ac_delim |
| 23844 | libdir!$libdir$ac_delim |
| 23845 | localedir!$localedir$ac_delim |
| 23846 | mandir!$mandir$ac_delim |
| 23847 | DEFS!$DEFS$ac_delim |
| 23848 | ECHO_C!$ECHO_C$ac_delim |
| 23849 | ECHO_N!$ECHO_N$ac_delim |
| 23850 | ECHO_T!$ECHO_T$ac_delim |
| 23851 | LIBS!$LIBS$ac_delim |
| 23852 | build_alias!$build_alias$ac_delim |
| 23853 | host_alias!$host_alias$ac_delim |
| 23854 | target_alias!$target_alias$ac_delim |
| 23855 | VERSION!$VERSION$ac_delim |
| 23856 | SOVERSION!$SOVERSION$ac_delim |
| 23857 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 23858 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 23859 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 23860 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 23861 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 23862 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 23863 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 23864 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 23865 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 23866 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 23867 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 23868 | MACHDEP!$MACHDEP$ac_delim |
| 23869 | SGI_ABI!$SGI_ABI$ac_delim |
| 23870 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 23871 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 23872 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 23873 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 23874 | CC!$CC$ac_delim |
| 23875 | CFLAGS!$CFLAGS$ac_delim |
| 23876 | LDFLAGS!$LDFLAGS$ac_delim |
| 23877 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 23878 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 23879 | EXEEXT!$EXEEXT$ac_delim |
| 23880 | OBJEXT!$OBJEXT$ac_delim |
| 23881 | CXX!$CXX$ac_delim |
| 23882 | MAINCC!$MAINCC$ac_delim |
| 23883 | CPP!$CPP$ac_delim |
| 23884 | GREP!$GREP$ac_delim |
| 23885 | EGREP!$EGREP$ac_delim |
| 23886 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 23887 | LIBRARY!$LIBRARY$ac_delim |
| 23888 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 23889 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 23890 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 23891 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 23892 | INSTSONAME!$INSTSONAME$ac_delim |
| 23893 | RUNSHARED!$RUNSHARED$ac_delim |
| 23894 | LINKCC!$LINKCC$ac_delim |
| 23895 | RANLIB!$RANLIB$ac_delim |
| 23896 | AR!$AR$ac_delim |
| 23897 | SVNVERSION!$SVNVERSION$ac_delim |
| 23898 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 23899 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 23900 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 23901 | LN!$LN$ac_delim |
| 23902 | OPT!$OPT$ac_delim |
| 23903 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 23904 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 23905 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 23906 | SO!$SO$ac_delim |
| 23907 | LDSHARED!$LDSHARED$ac_delim |
| 23908 | BLDSHARED!$BLDSHARED$ac_delim |
| 23909 | CCSHARED!$CCSHARED$ac_delim |
| 23910 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 23911 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 23912 | SHLIBS!$SHLIBS$ac_delim |
| 23913 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 23914 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 23915 | _ACEOF |
| 23916 | |
| 23917 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 23918 | break |
| 23919 | elif $ac_last_try; then |
| 23920 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23921 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23922 | { (exit 1); exit 1; }; } |
| 23923 | else |
| 23924 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23925 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23926 | done |
| 23927 | |
| 23928 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23929 | if test -n "$ac_eof"; then |
| 23930 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23931 | ac_eof=`expr $ac_eof + 1` |
| 23932 | fi |
| 23933 | |
| 23934 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23935 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 23936 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 23937 | _ACEOF |
| 23938 | sed ' |
| 23939 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 23940 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 23941 | :n |
| 23942 | t n |
| 23943 | s/'"$ac_delim"'$/,g/; t |
| 23944 | s/$/\\/; p |
| 23945 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 23946 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 23947 | rm -f conf$$subs.sed |
| 23948 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23949 | CEOF$ac_eof |
| 23950 | _ACEOF |
| 23951 | |
| 23952 | |
| 23953 | ac_delim='%!_!# ' |
| 23954 | for ac_last_try in false false false false false :; do |
| 23955 | cat >conf$$subs.sed <<_ACEOF |
| 23956 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 23957 | LDLAST!$LDLAST$ac_delim |
| 23958 | THREADOBJ!$THREADOBJ$ac_delim |
| 23959 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 23960 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 23961 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 23962 | TRUE!$TRUE$ac_delim |
| 23963 | LIBOBJS!$LIBOBJS$ac_delim |
| 23964 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 23965 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 23966 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 23967 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 23968 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 23969 | LIBM!$LIBM$ac_delim |
| 23970 | LIBC!$LIBC$ac_delim |
| 23971 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 23972 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 23973 | SRCDIRS!$SRCDIRS$ac_delim |
| 23974 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 23975 | _ACEOF |
| 23976 | |
| 23977 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then |
| 23978 | break |
| 23979 | elif $ac_last_try; then |
| 23980 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23981 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23982 | { (exit 1); exit 1; }; } |
| 23983 | else |
| 23984 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 23985 | fi |
| 23986 | done |
| 23987 | |
| 23988 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23989 | if test -n "$ac_eof"; then |
| 23990 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23991 | ac_eof=`expr $ac_eof + 1` |
| 23992 | fi |
| 23993 | |
| 23994 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23995 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 23996 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 23997 | _ACEOF |
| 23998 | sed ' |
| 23999 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 24000 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 24001 | :n |
| 24002 | t n |
| 24003 | s/'"$ac_delim"'$/,g/; t |
| 24004 | s/$/\\/; p |
| 24005 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 24006 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 24007 | rm -f conf$$subs.sed |
| 24008 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24009 | :end |
| 24010 | s/|#_!!_#|//g |
| 24011 | CEOF$ac_eof |
| 24012 | _ACEOF |
| 24013 | |
| 24014 | |
| 24015 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 24016 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 24017 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 24018 | # (actually we leave an empty line to preserve line numbers). |
| 24019 | if test "x$srcdir" = x.; then |
| 24020 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 24021 | s/:*\$(srcdir):*/:/ |
| 24022 | s/:*\${srcdir}:*/:/ |
| 24023 | s/:*@srcdir@:*/:/ |
| 24024 | s/^\([^=]*=[ ]*\):*/\1/ |
| 24025 | s/:*$// |
| 24026 | s/^[^=]*=[ ]*$// |
| 24027 | }' |
| 24028 | fi |
| 24029 | |
| 24030 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24031 | fi # test -n "$CONFIG_FILES" |
| 24032 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24033 | |
| 24034 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
| 24035 | do |
| 24036 | case $ac_tag in |
| 24037 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 24038 | esac |
| 24039 | case $ac_mode$ac_tag in |
| 24040 | :[FHL]*:*);; |
| 24041 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 24042 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 24043 | { (exit 1); exit 1; }; };; |
| 24044 | :[FH]-) ac_tag=-:-;; |
| 24045 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 24046 | esac |
| 24047 | ac_save_IFS=$IFS |
| 24048 | IFS=: |
| 24049 | set x $ac_tag |
| 24050 | IFS=$ac_save_IFS |
| 24051 | shift |
| 24052 | ac_file=$1 |
| 24053 | shift |
| 24054 | |
| 24055 | case $ac_mode in |
| 24056 | :L) ac_source=$1;; |
| 24057 | :[FH]) |
| 24058 | ac_file_inputs= |
| 24059 | for ac_f |
| 24060 | do |
| 24061 | case $ac_f in |
| 24062 | -) ac_f="$tmp/stdin";; |
| 24063 | *) # Look for the file first in the build tree, then in the source tree |
| 24064 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 24065 | # because $ac_f cannot contain `:'. |
| 24066 | test -f "$ac_f" || |
| 24067 | case $ac_f in |
| 24068 | [\\/$]*) false;; |
| 24069 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 24070 | esac || |
| 24071 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 24072 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 24073 | { (exit 1); exit 1; }; };; |
| 24074 | esac |
| 24075 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 24076 | done |
| 24077 | |
| 24078 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 24079 | # use $as_me), people would be surprised to read: |
| 24080 | # /* config.h. Generated by config.status. */ |
| 24081 | configure_input="Generated from "`IFS=: |
| 24082 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 24083 | if test x"$ac_file" != x-; then |
| 24084 | configure_input="$ac_file. $configure_input" |
| 24085 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 24086 | echo "$as_me: creating $ac_file" >&6;} |
| 24087 | fi |
| 24088 | |
| 24089 | case $ac_tag in |
| 24090 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 24091 | esac |
| 24092 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24093 | esac |
| 24094 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24095 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24096 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24097 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 24098 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24099 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24100 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24101 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24102 | s//\1/ |
| 24103 | q |
| 24104 | } |
| 24105 | /^X\(\/\/\)[^/].*/{ |
| 24106 | s//\1/ |
| 24107 | q |
| 24108 | } |
| 24109 | /^X\(\/\/\)$/{ |
| 24110 | s//\1/ |
| 24111 | q |
| 24112 | } |
| 24113 | /^X\(\/\).*/{ |
| 24114 | s//\1/ |
| 24115 | q |
| 24116 | } |
| 24117 | s/.*/./; q'` |
| 24118 | { as_dir="$ac_dir" |
| 24119 | case $as_dir in #( |
| 24120 | -*) as_dir=./$as_dir;; |
| 24121 | esac |
| 24122 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24123 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24124 | while :; do |
| 24125 | case $as_dir in #( |
| 24126 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 24127 | *) as_qdir=$as_dir;; |
| 24128 | esac |
| 24129 | as_dirs="'$as_qdir' $as_dirs" |
| 24130 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24131 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24132 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24133 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24134 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24135 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24136 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24137 | s//\1/ |
| 24138 | q |
| 24139 | } |
| 24140 | /^X\(\/\/\)[^/].*/{ |
| 24141 | s//\1/ |
| 24142 | q |
| 24143 | } |
| 24144 | /^X\(\/\/\)$/{ |
| 24145 | s//\1/ |
| 24146 | q |
| 24147 | } |
| 24148 | /^X\(\/\).*/{ |
| 24149 | s//\1/ |
| 24150 | q |
| 24151 | } |
| 24152 | s/.*/./; q'` |
| 24153 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24154 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24155 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 24156 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 24157 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24158 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24159 | ac_builddir=. |
| 24160 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24161 | case "$ac_dir" in |
| 24162 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24163 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24164 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24165 | # A ".." for each directory in $ac_dir_suffix. |
| 24166 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 24167 | case $ac_top_builddir_sub in |
| 24168 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24169 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 24170 | esac ;; |
| 24171 | esac |
| 24172 | ac_abs_top_builddir=$ac_pwd |
| 24173 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 24174 | # for backward compatibility: |
| 24175 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24176 | |
| 24177 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24178 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24179 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24180 | ac_top_srcdir=$ac_top_builddir_sub |
| 24181 | ac_abs_top_srcdir=$ac_pwd ;; |
| 24182 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24183 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24184 | ac_top_srcdir=$srcdir |
| 24185 | ac_abs_top_srcdir=$srcdir ;; |
| 24186 | *) # Relative name. |
| 24187 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 24188 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 24189 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24190 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24191 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24193 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24194 | case $ac_mode in |
| 24195 | :F) |
| 24196 | # |
| 24197 | # CONFIG_FILE |
| 24198 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24199 | |
| 24200 | case $INSTALL in |
| 24201 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24202 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24203 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 24204 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24205 | |
| 24206 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24207 | # If the template does not know about datarootdir, expand it. |
| 24208 | # FIXME: This hack should be removed a few years after 2.60. |
| 24209 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 24210 | |
| 24211 | case `sed -n '/datarootdir/ { |
| 24212 | p |
| 24213 | q |
| 24214 | } |
| 24215 | /@datadir@/p |
| 24216 | /@docdir@/p |
| 24217 | /@infodir@/p |
| 24218 | /@localedir@/p |
| 24219 | /@mandir@/p |
| 24220 | ' $ac_file_inputs` in |
| 24221 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 24222 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 24223 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 24224 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 24225 | _ACEOF |
| 24226 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24227 | ac_datarootdir_hack=' |
| 24228 | s&@datadir@&$datadir&g |
| 24229 | s&@docdir@&$docdir&g |
| 24230 | s&@infodir@&$infodir&g |
| 24231 | s&@localedir@&$localedir&g |
| 24232 | s&@mandir@&$mandir&g |
| 24233 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 24234 | esac |
| 24235 | _ACEOF |
| 24236 | |
| 24237 | # Neutralize VPATH when `$srcdir' = `.'. |
| 24238 | # Shell code in configure.ac might set extrasub. |
| 24239 | # FIXME: do we really want to maintain this feature? |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 24240 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24241 | sed "$ac_vpsub |
| 24242 | $extrasub |
| 24243 | _ACEOF |
| 24244 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24245 | :t |
| 24246 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24247 | s&@configure_input@&$configure_input&;t t |
| 24248 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 24249 | s&@srcdir@&$ac_srcdir&;t t |
| 24250 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 24251 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 24252 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 24253 | s&@builddir@&$ac_builddir&;t t |
| 24254 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 24255 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 24256 | s&@INSTALL@&$ac_INSTALL&;t t |
| 24257 | $ac_datarootdir_hack |
| 24258 | " $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] | 24259 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24260 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 24261 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 24262 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 24263 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 24264 | which seems to be undefined. Please make sure it is defined." >&5 |
| 24265 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 24266 | 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] | 24267 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24268 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24269 | case $ac_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24270 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 24271 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24272 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24273 | ;; |
| 24274 | :H) |
| 24275 | # |
| 24276 | # CONFIG_HEADER |
| 24277 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24278 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24279 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24280 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 24281 | # substitutes the proper values into config.h.in to produce config.h. |
| 24282 | rm -f conftest.defines conftest.tail |
| 24283 | # First, append a space to every undef/define line, to ease matching. |
| 24284 | echo 's/$/ /' >conftest.defines |
| 24285 | # Then, protect against being on the right side of a sed subst, or in |
| 24286 | # an unquoted here document, in config.status. If some macros were |
| 24287 | # called several times there might be several #defines for the same |
| 24288 | # symbol, which is useless. But do not sort them, since the last |
| 24289 | # AC_DEFINE must be honored. |
| 24290 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 24291 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 24292 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 24293 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 24294 | # just an empty string. |
| 24295 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 24296 | ac_dB='\\)[ (].*,\\1define\\2' |
| 24297 | ac_dC=' ' |
| 24298 | ac_dD=' ,' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24299 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24300 | uniq confdefs.h | |
| 24301 | sed -n ' |
| 24302 | t rset |
| 24303 | :rset |
| 24304 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 24305 | t ok |
| 24306 | d |
| 24307 | :ok |
| 24308 | s/[\\&,]/\\&/g |
| 24309 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 24310 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 24311 | ' >>conftest.defines |
| 24312 | |
| 24313 | # Remove the space that was appended to ease matching. |
| 24314 | # Then replace #undef with comments. This is necessary, for |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24315 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 24316 | # on some systems where configure will not decide to define it. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24317 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 24318 | echo 's/ $// |
| 24319 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 24320 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24321 | # Break up conftest.defines: |
| 24322 | ac_max_sed_lines=50 |
| 24323 | |
| 24324 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 24325 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 24326 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 24327 | # et cetera. |
| 24328 | ac_in='$ac_file_inputs' |
| 24329 | ac_out='"$tmp/out1"' |
| 24330 | ac_nxt='"$tmp/out2"' |
| 24331 | |
| 24332 | while : |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 24333 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24334 | # Write a here document: |
| 24335 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24336 | # First, check the format of the line: |
| 24337 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 24338 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 24339 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 24340 | b |
| 24341 | :def |
| 24342 | _ACEOF |
| 24343 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24344 | echo 'CEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24345 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 24346 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 24347 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 24348 | grep . conftest.tail >/dev/null || break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24349 | rm -f conftest.defines |
| 24350 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24351 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24352 | rm -f conftest.defines conftest.tail |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24353 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24354 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24355 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24356 | if test x"$ac_file" != x-; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24357 | echo "/* $configure_input */" >"$tmp/config.h" |
| 24358 | cat "$ac_result" >>"$tmp/config.h" |
| 24359 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24360 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 24361 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 24362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24363 | rm -f $ac_file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24364 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24365 | fi |
| 24366 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24367 | echo "/* $configure_input */" |
| 24368 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24369 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24370 | rm -f "$tmp/out12" |
| 24371 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 24372 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24373 | |
| 24374 | esac |
| 24375 | |
| 24376 | done # for ac_tag |
| 24377 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 24378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24379 | { (exit 0); exit 0; } |
| 24380 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24381 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24382 | ac_clean_files=$ac_clean_files_save |
| 24383 | |
| 24384 | |
| 24385 | # configure is writing to config.log, and then calls config.status. |
| 24386 | # config.status does its own redirection, appending to config.log. |
| 24387 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 24388 | # by configure, so config.status won't be able to write to it; its |
| 24389 | # output is simply discarded. So we exec the FD to /dev/null, |
| 24390 | # effectively closing config.log, so it can be properly (re)opened and |
| 24391 | # appended to by config.status. When coming back to configure, we |
| 24392 | # need to make the FD available again. |
| 24393 | if test "$no_create" != yes; then |
| 24394 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24395 | ac_config_status_args= |
| 24396 | test "$silent" = yes && |
| 24397 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24398 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24399 | $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] | 24400 | exec 5>>config.log |
| 24401 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 24402 | # would make configure fail if this is the last instruction. |
| 24403 | $ac_cs_success || { (exit 1); exit 1; } |
| 24404 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 24405 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 24406 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 24407 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 24408 | if test ! -f Modules/Setup |
| 24409 | then |
| 24410 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 24411 | fi |
| 24412 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 24413 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 24414 | if test ! -f Modules/Setup.local |
| 24415 | then |
| 24416 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 24417 | fi |
| 24418 | |
| 24419 | echo "creating Makefile" |
| 24420 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 24421 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 24422 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 24423 | |
| 24424 | case $ac_sys_system in |
| 24425 | BeOS) |
| 24426 | { echo "$as_me:$LINENO: WARNING: |
| 24427 | |
| 24428 | Support for BeOS is deprecated as of Python 2.6. |
| 24429 | See PEP 11 for the gory details. |
| 24430 | " >&5 |
| 24431 | echo "$as_me: WARNING: |
| 24432 | |
| 24433 | Support for BeOS is deprecated as of Python 2.6. |
| 24434 | See PEP 11 for the gory details. |
| 24435 | " >&2;} |
| 24436 | ;; |
| 24437 | *) ;; |
| 24438 | esac |
| 24439 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 24440 | mv config.c Modules |