Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 58054 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 for python 3.0. |
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 | # |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 25 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 31 | |
| 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 34 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 83 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 226 | do |
| 227 | IFS=$as_save_IFS |
| 228 | test -z "$as_dir" && as_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 229 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | /*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 454 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 566 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 567 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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' |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='3.0' |
| 579 | PACKAGE_STRING='python 3.0' |
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> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 611 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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='' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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; }; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1217 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1221 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1247 | \`configure' configures python 3.0 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] |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1308 | short | recursive ) echo "Configuration of python 3.0:";; |
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] |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +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 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +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 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +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> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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,^\.[\\/],,'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1427 | python configure 3.0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1435 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1436 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1441 | It was created by python $as_me 3.0, which was |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1578 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1579 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1580 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1581 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1582 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1583 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1810 | VERSION=3.0 |
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 | |
Guido van Rossum | 806c246 | 2007-08-06 23:33:07 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1863 | # Check whether --enable-universalsdk was given. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1864 | if test "${enable_universalsdk+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1865 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1880 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1881 | else |
| 1882 | |
| 1883 | UNIVERSALSDK= |
| 1884 | enable_universalsdk= |
| 1885 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1886 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1887 | |
| 1888 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1889 | |
| 1890 | # Check whether --enable-framework was given. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1891 | if test "${enable_framework+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1903 | FRAMEWORKINSTALLFIRST= |
| 1904 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1905 | FRAMEWORKALTINSTALLFIRST= |
| 1906 | FRAMEWORKALTINSTALLLAST= |
| 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 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1919 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
| 1920 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1921 | FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall" |
| 1922 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 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 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1929 | |
| 1930 | # Add makefiles for Mac specific code to the list of output |
| 1931 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1932 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1933 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1934 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1935 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1936 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +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= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1946 | FRAMEWORKINSTALLFIRST= |
| 1947 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1948 | FRAMEWORKALTINSTALLFIRST= |
| 1949 | FRAMEWORKALTINSTALLLAST= |
| 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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1957 | fi |
| 1958 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1959 | |
| 1960 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1961 | |
| 1962 | |
| 1963 | |
| 1964 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1965 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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. |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2014 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0]) |
| 2015 | define_xopen_source=no;; |
| 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) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 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 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2050 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2051 | # disables platform specific features beyond repair. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 2052 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 2053 | # has no effect, don't bother defining them |
| 2054 | Darwin/[789].*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2055 | define_xopen_source=no |
| 2056 | ;; |
| 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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2153 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2154 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +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? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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=;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2186 | Monterey*) |
| 2187 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2188 | without_gcc=;; |
| 2189 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2190 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2191 | fi |
| 2192 | |
| 2193 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2194 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2195 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2196 | # If the user switches compilers, we can't believe the cache |
| 2197 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2198 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2199 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 2200 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 2201 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 2202 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2203 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2204 | fi |
| 2205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2206 | ac_ext=c |
| 2207 | ac_cpp='$CPP $CPPFLAGS' |
| 2208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2211 | if test -n "$ac_tool_prefix"; then |
| 2212 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2213 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2214 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2215 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2216 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2218 | else |
| 2219 | if test -n "$CC"; then |
| 2220 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2221 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2223 | for as_dir in $PATH |
| 2224 | do |
| 2225 | IFS=$as_save_IFS |
| 2226 | test -z "$as_dir" && as_dir=. |
| 2227 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2228 | 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] | 2229 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2230 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2231 | break 2 |
| 2232 | fi |
| 2233 | done |
| 2234 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2235 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2236 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2237 | fi |
| 2238 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2239 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2240 | if test -n "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2241 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2242 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2243 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2244 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2245 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2246 | fi |
| 2247 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2249 | fi |
| 2250 | if test -z "$ac_cv_prog_CC"; then |
| 2251 | ac_ct_CC=$CC |
| 2252 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2253 | set dummy gcc; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2254 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2256 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2258 | else |
| 2259 | if test -n "$ac_ct_CC"; then |
| 2260 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2261 | else |
| 2262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2263 | for as_dir in $PATH |
| 2264 | do |
| 2265 | IFS=$as_save_IFS |
| 2266 | test -z "$as_dir" && as_dir=. |
| 2267 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2268 | 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] | 2269 | ac_cv_prog_ac_ct_CC="gcc" |
| 2270 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2271 | break 2 |
| 2272 | fi |
| 2273 | done |
| 2274 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2275 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2276 | |
| 2277 | fi |
| 2278 | fi |
| 2279 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2280 | if test -n "$ac_ct_CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2281 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2282 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2283 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2284 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2285 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2286 | fi |
| 2287 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2288 | if test "x$ac_ct_CC" = x; then |
| 2289 | CC="" |
| 2290 | else |
| 2291 | case $cross_compiling:$ac_tool_warned in |
| 2292 | yes:) |
| 2293 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2294 | whose name does not start with the host triplet. If you think this |
| 2295 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2296 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2297 | whose name does not start with the host triplet. If you think this |
| 2298 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2299 | ac_tool_warned=yes ;; |
| 2300 | esac |
| 2301 | CC=$ac_ct_CC |
| 2302 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2303 | else |
| 2304 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2305 | fi |
| 2306 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2307 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2308 | if test -n "$ac_tool_prefix"; then |
| 2309 | # 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] | 2310 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2311 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2312 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2313 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2315 | else |
| 2316 | if test -n "$CC"; then |
| 2317 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2320 | for as_dir in $PATH |
| 2321 | do |
| 2322 | IFS=$as_save_IFS |
| 2323 | test -z "$as_dir" && as_dir=. |
| 2324 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2325 | 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] | 2326 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2327 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2328 | break 2 |
| 2329 | fi |
| 2330 | done |
| 2331 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2332 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2333 | |
| 2334 | fi |
| 2335 | fi |
| 2336 | CC=$ac_cv_prog_CC |
| 2337 | if test -n "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2338 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2339 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2340 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2341 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2342 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2343 | fi |
| 2344 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2346 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2347 | fi |
| 2348 | if test -z "$CC"; then |
| 2349 | # Extract the first word of "cc", so it can be a program name with args. |
| 2350 | set dummy cc; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2351 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2353 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2355 | else |
| 2356 | if test -n "$CC"; then |
| 2357 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2358 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2359 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2361 | for as_dir in $PATH |
| 2362 | do |
| 2363 | IFS=$as_save_IFS |
| 2364 | test -z "$as_dir" && as_dir=. |
| 2365 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2366 | 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] | 2367 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2368 | ac_prog_rejected=yes |
| 2369 | continue |
| 2370 | fi |
| 2371 | ac_cv_prog_CC="cc" |
| 2372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2373 | break 2 |
| 2374 | fi |
| 2375 | done |
| 2376 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2377 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2378 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2379 | if test $ac_prog_rejected = yes; then |
| 2380 | # We found a bogon in the path, so make sure we never use it. |
| 2381 | set dummy $ac_cv_prog_CC |
| 2382 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2383 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2384 | # We chose a different compiler from the bogus one. |
| 2385 | # However, it has the same basename, so the bogon will be chosen |
| 2386 | # first if we set CC to just the basename; use the full file name. |
| 2387 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2388 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2389 | fi |
| 2390 | fi |
| 2391 | fi |
| 2392 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2393 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2394 | if test -n "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2395 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2396 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2397 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2398 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2399 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2400 | fi |
| 2401 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2403 | fi |
| 2404 | if test -z "$CC"; then |
| 2405 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2406 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2407 | do |
| 2408 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2409 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2410 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2412 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2414 | else |
| 2415 | if test -n "$CC"; then |
| 2416 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2417 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2419 | for as_dir in $PATH |
| 2420 | do |
| 2421 | IFS=$as_save_IFS |
| 2422 | test -z "$as_dir" && as_dir=. |
| 2423 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2424 | 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] | 2425 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2426 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2427 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2428 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2429 | done |
| 2430 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2431 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2432 | |
| 2433 | fi |
| 2434 | fi |
| 2435 | CC=$ac_cv_prog_CC |
| 2436 | if test -n "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2437 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2438 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2439 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2440 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2441 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2442 | fi |
| 2443 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2445 | test -n "$CC" && break |
| 2446 | done |
| 2447 | fi |
| 2448 | if test -z "$CC"; then |
| 2449 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2450 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2451 | do |
| 2452 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2453 | set dummy $ac_prog; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2454 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2455 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2456 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2458 | else |
| 2459 | if test -n "$ac_ct_CC"; then |
| 2460 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2461 | else |
| 2462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2463 | for as_dir in $PATH |
| 2464 | do |
| 2465 | IFS=$as_save_IFS |
| 2466 | test -z "$as_dir" && as_dir=. |
| 2467 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2468 | 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] | 2469 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2470 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2471 | break 2 |
| 2472 | fi |
| 2473 | done |
| 2474 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2475 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2477 | fi |
| 2478 | fi |
| 2479 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2480 | if test -n "$ac_ct_CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2481 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2482 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2483 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2484 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2485 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2486 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2487 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2489 | test -n "$ac_ct_CC" && break |
| 2490 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2491 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2492 | if test "x$ac_ct_CC" = x; then |
| 2493 | CC="" |
| 2494 | else |
| 2495 | case $cross_compiling:$ac_tool_warned in |
| 2496 | yes:) |
| 2497 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2498 | whose name does not start with the host triplet. If you think this |
| 2499 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2500 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2501 | whose name does not start with the host triplet. If you think this |
| 2502 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2503 | ac_tool_warned=yes ;; |
| 2504 | esac |
| 2505 | CC=$ac_ct_CC |
| 2506 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2507 | fi |
| 2508 | |
| 2509 | fi |
| 2510 | |
| 2511 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2512 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2513 | See \`config.log' for more details." >&5 |
| 2514 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2515 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2516 | { (exit 1); exit 1; }; } |
| 2517 | |
| 2518 | # Provide some information about the compiler. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2519 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2520 | ac_compiler=`set X $ac_compile; echo $2` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2521 | { (ac_try="$ac_compiler --version >&5" |
| 2522 | case "(($ac_try" in |
| 2523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2524 | *) ac_try_echo=$ac_try;; |
| 2525 | esac |
| 2526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2527 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2528 | ac_status=$? |
| 2529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2530 | (exit $ac_status); } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2531 | { (ac_try="$ac_compiler -v >&5" |
| 2532 | case "(($ac_try" in |
| 2533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2534 | *) ac_try_echo=$ac_try;; |
| 2535 | esac |
| 2536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2537 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2538 | ac_status=$? |
| 2539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2540 | (exit $ac_status); } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2541 | { (ac_try="$ac_compiler -V >&5" |
| 2542 | case "(($ac_try" in |
| 2543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2544 | *) ac_try_echo=$ac_try;; |
| 2545 | esac |
| 2546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2547 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2548 | ac_status=$? |
| 2549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2550 | (exit $ac_status); } |
| 2551 | |
| 2552 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2553 | /* confdefs.h. */ |
| 2554 | _ACEOF |
| 2555 | cat confdefs.h >>conftest.$ac_ext |
| 2556 | cat >>conftest.$ac_ext <<_ACEOF |
| 2557 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2559 | int |
| 2560 | main () |
| 2561 | { |
| 2562 | |
| 2563 | ; |
| 2564 | return 0; |
| 2565 | } |
| 2566 | _ACEOF |
| 2567 | ac_clean_files_save=$ac_clean_files |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2568 | 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] | 2569 | # Try to create an executable without -o first, disregard a.out. |
| 2570 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2571 | # of exeext. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2572 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2573 | 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] | 2574 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2575 | # |
| 2576 | # List of possible output files, starting from the most likely. |
| 2577 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2578 | # only as a last resort. b.out is created by i960 compilers. |
| 2579 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2580 | # |
| 2581 | # The IRIX 6 linker writes into existing files which may not be |
| 2582 | # executable, retaining their permissions. Remove them first so a |
| 2583 | # subsequent execution test works. |
| 2584 | ac_rmfiles= |
| 2585 | for ac_file in $ac_files |
| 2586 | do |
| 2587 | case $ac_file in |
| 2588 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2589 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2590 | esac |
| 2591 | done |
| 2592 | rm -f $ac_rmfiles |
| 2593 | |
| 2594 | if { (ac_try="$ac_link_default" |
| 2595 | case "(($ac_try" in |
| 2596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2597 | *) ac_try_echo=$ac_try;; |
| 2598 | esac |
| 2599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2600 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2601 | ac_status=$? |
| 2602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2603 | (exit $ac_status); }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2604 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2605 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2606 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2607 | # so that the user can short-circuit this test for compilers unknown to |
| 2608 | # Autoconf. |
| 2609 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2610 | do |
| 2611 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2612 | case $ac_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2613 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2614 | ;; |
| 2615 | [ab].out ) |
| 2616 | # We found the default executable, but exeext='' is most |
| 2617 | # certainly right. |
| 2618 | break;; |
| 2619 | *.* ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2620 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2621 | then :; else |
| 2622 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2623 | fi |
| 2624 | # We set ac_cv_exeext here because the later test for it is not |
| 2625 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2626 | # argument, so we may need to know it at that point already. |
| 2627 | # Even if this section looks crufty: it has the advantage of |
| 2628 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2629 | break;; |
| 2630 | * ) |
| 2631 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2632 | esac |
| 2633 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2634 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2635 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2636 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2637 | ac_file='' |
| 2638 | fi |
| 2639 | |
| 2640 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2641 | echo "${ECHO_T}$ac_file" >&6; } |
| 2642 | if test -z "$ac_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2643 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2645 | |
| 2646 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2647 | See \`config.log' for more details." >&5 |
| 2648 | echo "$as_me: error: C compiler cannot create executables |
| 2649 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2651 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2652 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2653 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2654 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2655 | # 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] | 2656 | # the compiler is broken, or we cross compile. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2657 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2658 | 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] | 2659 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2660 | # If not cross compiling, check that we can run a simple program. |
| 2661 | if test "$cross_compiling" != yes; then |
| 2662 | if { ac_try='./$ac_file' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2663 | { (case "(($ac_try" in |
| 2664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2665 | *) ac_try_echo=$ac_try;; |
| 2666 | esac |
| 2667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2668 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 | ac_status=$? |
| 2670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2671 | (exit $ac_status); }; }; then |
| 2672 | cross_compiling=no |
| 2673 | else |
| 2674 | if test "$cross_compiling" = maybe; then |
| 2675 | cross_compiling=yes |
| 2676 | else |
| 2677 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2678 | If you meant to cross compile, use \`--host'. |
| 2679 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2680 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2681 | If you meant to cross compile, use \`--host'. |
| 2682 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2683 | { (exit 1); exit 1; }; } |
| 2684 | fi |
| 2685 | fi |
| 2686 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2687 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2688 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2689 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2690 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2691 | ac_clean_files=$ac_clean_files_save |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2692 | # Check that the compiler produces executables we can run. If not, either |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2693 | # the compiler is broken, or we cross compile. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2694 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2695 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2696 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2697 | echo "${ECHO_T}$cross_compiling" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2698 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2699 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2700 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2701 | if { (ac_try="$ac_link" |
| 2702 | case "(($ac_try" in |
| 2703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2704 | *) ac_try_echo=$ac_try;; |
| 2705 | esac |
| 2706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2707 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2708 | ac_status=$? |
| 2709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2710 | (exit $ac_status); }; then |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2711 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2712 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2713 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2714 | # `rm'. |
| 2715 | for ac_file in conftest.exe conftest conftest.*; do |
| 2716 | test -f "$ac_file" || continue |
| 2717 | case $ac_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2718 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2719 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2720 | break;; |
| 2721 | * ) break;; |
| 2722 | esac |
| 2723 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2724 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2725 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2726 | See \`config.log' for more details." >&5 |
| 2727 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2728 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2729 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2730 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2731 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2732 | rm -f conftest$ac_cv_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2733 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2734 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2735 | |
| 2736 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2737 | EXEEXT=$ac_cv_exeext |
| 2738 | ac_exeext=$EXEEXT |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2739 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2740 | 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] | 2741 | if test "${ac_cv_objext+set}" = set; then |
| 2742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2743 | else |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2744 | cat >conftest.$ac_ext <<_ACEOF |
| 2745 | /* confdefs.h. */ |
| 2746 | _ACEOF |
| 2747 | cat confdefs.h >>conftest.$ac_ext |
| 2748 | cat >>conftest.$ac_ext <<_ACEOF |
| 2749 | /* end confdefs.h. */ |
| 2750 | |
| 2751 | int |
| 2752 | main () |
| 2753 | { |
| 2754 | |
| 2755 | ; |
| 2756 | return 0; |
| 2757 | } |
| 2758 | _ACEOF |
| 2759 | rm -f conftest.o conftest.obj |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2760 | if { (ac_try="$ac_compile" |
| 2761 | case "(($ac_try" in |
| 2762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2763 | *) ac_try_echo=$ac_try;; |
| 2764 | esac |
| 2765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2766 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2767 | ac_status=$? |
| 2768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2769 | (exit $ac_status); }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2770 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2771 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2772 | case $ac_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2773 | *.$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] | 2774 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2775 | break;; |
| 2776 | esac |
| 2777 | done |
| 2778 | else |
| 2779 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2781 | |
| 2782 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2783 | See \`config.log' for more details." >&5 |
| 2784 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2785 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2786 | { (exit 1); exit 1; }; } |
| 2787 | fi |
| 2788 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2789 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2790 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2791 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2792 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2793 | OBJEXT=$ac_cv_objext |
| 2794 | ac_objext=$OBJEXT |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2795 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2796 | 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] | 2797 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2799 | else |
| 2800 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2801 | /* confdefs.h. */ |
| 2802 | _ACEOF |
| 2803 | cat confdefs.h >>conftest.$ac_ext |
| 2804 | cat >>conftest.$ac_ext <<_ACEOF |
| 2805 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2807 | int |
| 2808 | main () |
| 2809 | { |
| 2810 | #ifndef __GNUC__ |
| 2811 | choke me |
| 2812 | #endif |
| 2813 | |
| 2814 | ; |
| 2815 | return 0; |
| 2816 | } |
| 2817 | _ACEOF |
| 2818 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2819 | if { (ac_try="$ac_compile" |
| 2820 | case "(($ac_try" in |
| 2821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2822 | *) ac_try_echo=$ac_try;; |
| 2823 | esac |
| 2824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2825 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2826 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2828 | rm -f conftest.er1 |
| 2829 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2831 | (exit $ac_status); } && { |
| 2832 | test -z "$ac_c_werror_flag" || |
| 2833 | test ! -s conftest.err |
| 2834 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2835 | ac_compiler_gnu=yes |
| 2836 | else |
| 2837 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2839 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2840 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2841 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2842 | |
| 2843 | 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] | 2844 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2845 | |
| 2846 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2847 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2848 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2849 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2850 | ac_test_CFLAGS=${CFLAGS+set} |
| 2851 | ac_save_CFLAGS=$CFLAGS |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2852 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2853 | 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] | 2854 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2856 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2857 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2858 | ac_c_werror_flag=yes |
| 2859 | ac_cv_prog_cc_g=no |
| 2860 | CFLAGS="-g" |
| 2861 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2862 | /* confdefs.h. */ |
| 2863 | _ACEOF |
| 2864 | cat confdefs.h >>conftest.$ac_ext |
| 2865 | cat >>conftest.$ac_ext <<_ACEOF |
| 2866 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2868 | int |
| 2869 | main () |
| 2870 | { |
| 2871 | |
| 2872 | ; |
| 2873 | return 0; |
| 2874 | } |
| 2875 | _ACEOF |
| 2876 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2877 | if { (ac_try="$ac_compile" |
| 2878 | case "(($ac_try" in |
| 2879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2880 | *) ac_try_echo=$ac_try;; |
| 2881 | esac |
| 2882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2883 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2884 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2886 | rm -f conftest.er1 |
| 2887 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2889 | (exit $ac_status); } && { |
| 2890 | test -z "$ac_c_werror_flag" || |
| 2891 | test ! -s conftest.err |
| 2892 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2893 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2894 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2895 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2897 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2898 | CFLAGS="" |
| 2899 | cat >conftest.$ac_ext <<_ACEOF |
| 2900 | /* confdefs.h. */ |
| 2901 | _ACEOF |
| 2902 | cat confdefs.h >>conftest.$ac_ext |
| 2903 | cat >>conftest.$ac_ext <<_ACEOF |
| 2904 | /* end confdefs.h. */ |
| 2905 | |
| 2906 | int |
| 2907 | main () |
| 2908 | { |
| 2909 | |
| 2910 | ; |
| 2911 | return 0; |
| 2912 | } |
| 2913 | _ACEOF |
| 2914 | rm -f conftest.$ac_objext |
| 2915 | if { (ac_try="$ac_compile" |
| 2916 | case "(($ac_try" in |
| 2917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2918 | *) ac_try_echo=$ac_try;; |
| 2919 | esac |
| 2920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2921 | (eval "$ac_compile") 2>conftest.er1 |
| 2922 | ac_status=$? |
| 2923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2924 | rm -f conftest.er1 |
| 2925 | cat conftest.err >&5 |
| 2926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2927 | (exit $ac_status); } && { |
| 2928 | test -z "$ac_c_werror_flag" || |
| 2929 | test ! -s conftest.err |
| 2930 | } && test -s conftest.$ac_objext; then |
| 2931 | : |
| 2932 | else |
| 2933 | echo "$as_me: failed program was:" >&5 |
| 2934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2935 | |
| 2936 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2937 | CFLAGS="-g" |
| 2938 | cat >conftest.$ac_ext <<_ACEOF |
| 2939 | /* confdefs.h. */ |
| 2940 | _ACEOF |
| 2941 | cat confdefs.h >>conftest.$ac_ext |
| 2942 | cat >>conftest.$ac_ext <<_ACEOF |
| 2943 | /* end confdefs.h. */ |
| 2944 | |
| 2945 | int |
| 2946 | main () |
| 2947 | { |
| 2948 | |
| 2949 | ; |
| 2950 | return 0; |
| 2951 | } |
| 2952 | _ACEOF |
| 2953 | rm -f conftest.$ac_objext |
| 2954 | if { (ac_try="$ac_compile" |
| 2955 | case "(($ac_try" in |
| 2956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2957 | *) ac_try_echo=$ac_try;; |
| 2958 | esac |
| 2959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2960 | (eval "$ac_compile") 2>conftest.er1 |
| 2961 | ac_status=$? |
| 2962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2963 | rm -f conftest.er1 |
| 2964 | cat conftest.err >&5 |
| 2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2966 | (exit $ac_status); } && { |
| 2967 | test -z "$ac_c_werror_flag" || |
| 2968 | test ! -s conftest.err |
| 2969 | } && test -s conftest.$ac_objext; then |
| 2970 | ac_cv_prog_cc_g=yes |
| 2971 | else |
| 2972 | echo "$as_me: failed program was:" >&5 |
| 2973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2974 | |
| 2975 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2976 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2977 | |
| 2978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2979 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2980 | |
| 2981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2982 | fi |
| 2983 | |
| 2984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2985 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2986 | fi |
| 2987 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2988 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2989 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2990 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2991 | elif test $ac_cv_prog_cc_g = yes; then |
| 2992 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2993 | CFLAGS="-g -O2" |
| 2994 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2995 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2996 | fi |
| 2997 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2998 | if test "$GCC" = yes; then |
| 2999 | CFLAGS="-O2" |
| 3000 | else |
| 3001 | CFLAGS= |
| 3002 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3003 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3004 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3005 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3006 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3008 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3009 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3010 | ac_save_CC=$CC |
| 3011 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3012 | /* confdefs.h. */ |
| 3013 | _ACEOF |
| 3014 | cat confdefs.h >>conftest.$ac_ext |
| 3015 | cat >>conftest.$ac_ext <<_ACEOF |
| 3016 | /* end confdefs.h. */ |
| 3017 | #include <stdarg.h> |
| 3018 | #include <stdio.h> |
| 3019 | #include <sys/types.h> |
| 3020 | #include <sys/stat.h> |
| 3021 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3022 | struct buf { int x; }; |
| 3023 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3024 | static char *e (p, i) |
| 3025 | char **p; |
| 3026 | int i; |
| 3027 | { |
| 3028 | return p[i]; |
| 3029 | } |
| 3030 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3031 | { |
| 3032 | char *s; |
| 3033 | va_list v; |
| 3034 | va_start (v,p); |
| 3035 | s = g (p, va_arg (v,int)); |
| 3036 | va_end (v); |
| 3037 | return s; |
| 3038 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3039 | |
| 3040 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3041 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3042 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3043 | 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] | 3044 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3045 | array size at least. It's necessary to write '\x00'==0 to get something |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3046 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3047 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3048 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3049 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3050 | inside strings and character constants. */ |
| 3051 | #define FOO(x) 'x' |
| 3052 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3053 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3054 | int test (int i, double x); |
| 3055 | struct s1 {int (*f) (int a);}; |
| 3056 | struct s2 {int (*f) (double a);}; |
| 3057 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3058 | int argc; |
| 3059 | char **argv; |
| 3060 | int |
| 3061 | main () |
| 3062 | { |
| 3063 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3064 | ; |
| 3065 | return 0; |
| 3066 | } |
| 3067 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3068 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3069 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3070 | do |
| 3071 | CC="$ac_save_CC $ac_arg" |
| 3072 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3073 | if { (ac_try="$ac_compile" |
| 3074 | case "(($ac_try" in |
| 3075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3076 | *) ac_try_echo=$ac_try;; |
| 3077 | esac |
| 3078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3079 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3080 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3082 | rm -f conftest.er1 |
| 3083 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3085 | (exit $ac_status); } && { |
| 3086 | test -z "$ac_c_werror_flag" || |
| 3087 | test ! -s conftest.err |
| 3088 | } && test -s conftest.$ac_objext; then |
| 3089 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3090 | else |
| 3091 | echo "$as_me: failed program was:" >&5 |
| 3092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3093 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3094 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3095 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3096 | |
| 3097 | rm -f core conftest.err conftest.$ac_objext |
| 3098 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3099 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3100 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3101 | CC=$ac_save_CC |
| 3102 | |
| 3103 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3104 | # AC_CACHE_VAL |
| 3105 | case "x$ac_cv_prog_cc_c89" in |
| 3106 | x) |
| 3107 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3108 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3109 | xno) |
| 3110 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3111 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3112 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3113 | CC="$CC $ac_cv_prog_cc_c89" |
| 3114 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3115 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3116 | esac |
| 3117 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3119 | ac_ext=c |
| 3120 | ac_cpp='$CPP $CPPFLAGS' |
| 3121 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3122 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3123 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3124 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3125 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3126 | |
| 3127 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3128 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3129 | echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3130 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3131 | # Check whether --with-cxx_main was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3132 | if test "${with_cxx_main+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3133 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3134 | |
| 3135 | case $withval in |
| 3136 | no) with_cxx_main=no |
| 3137 | MAINCC='$(CC)';; |
| 3138 | yes) with_cxx_main=yes |
| 3139 | MAINCC='$(CXX)';; |
| 3140 | *) with_cxx_main=yes |
| 3141 | MAINCC=$withval |
| 3142 | if test -z "$CXX" |
| 3143 | then |
| 3144 | CXX=$withval |
| 3145 | fi;; |
| 3146 | esac |
| 3147 | else |
| 3148 | |
| 3149 | with_cxx_main=no |
| 3150 | MAINCC='$(CC)' |
| 3151 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3152 | fi |
| 3153 | |
| 3154 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3155 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3156 | |
| 3157 | preset_cxx="$CXX" |
| 3158 | if test -z "$CXX" |
| 3159 | then |
| 3160 | case "$CC" in |
| 3161 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3162 | set dummy g++; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3163 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3165 | if test "${ac_cv_path_CXX+set}" = set; then |
| 3166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3167 | else |
| 3168 | case $CXX in |
| 3169 | [\\/]* | ?:[\\/]*) |
| 3170 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3171 | ;; |
| 3172 | *) |
| 3173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3174 | for as_dir in notfound |
| 3175 | do |
| 3176 | IFS=$as_save_IFS |
| 3177 | test -z "$as_dir" && as_dir=. |
| 3178 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3180 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 3181 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3182 | break 2 |
| 3183 | fi |
| 3184 | done |
| 3185 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3186 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3187 | |
| 3188 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3189 | ;; |
| 3190 | esac |
| 3191 | fi |
| 3192 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3193 | if test -n "$CXX"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3194 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3195 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3196 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3197 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3198 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3199 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3200 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3201 | ;; |
| 3202 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3203 | set dummy c++; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3204 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3206 | if test "${ac_cv_path_CXX+set}" = set; then |
| 3207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3208 | else |
| 3209 | case $CXX in |
| 3210 | [\\/]* | ?:[\\/]*) |
| 3211 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3212 | ;; |
| 3213 | *) |
| 3214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3215 | for as_dir in notfound |
| 3216 | do |
| 3217 | IFS=$as_save_IFS |
| 3218 | test -z "$as_dir" && as_dir=. |
| 3219 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3221 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 3222 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3223 | break 2 |
| 3224 | fi |
| 3225 | done |
| 3226 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3227 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3228 | |
| 3229 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3230 | ;; |
| 3231 | esac |
| 3232 | fi |
| 3233 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3234 | if test -n "$CXX"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3235 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3236 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3237 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3238 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3239 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3240 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3241 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3242 | ;; |
| 3243 | esac |
| 3244 | if test "$CXX" = "notfound" |
| 3245 | then |
| 3246 | CXX="" |
| 3247 | fi |
| 3248 | fi |
| 3249 | if test -z "$CXX" |
| 3250 | then |
| 3251 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3252 | do |
| 3253 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3254 | set dummy $ac_prog; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3255 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3257 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3259 | else |
| 3260 | if test -n "$CXX"; then |
| 3261 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3262 | else |
| 3263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3264 | for as_dir in $PATH |
| 3265 | do |
| 3266 | IFS=$as_save_IFS |
| 3267 | test -z "$as_dir" && as_dir=. |
| 3268 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3270 | ac_cv_prog_CXX="$ac_prog" |
| 3271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3272 | break 2 |
| 3273 | fi |
| 3274 | done |
| 3275 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3276 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3277 | |
| 3278 | fi |
| 3279 | fi |
| 3280 | CXX=$ac_cv_prog_CXX |
| 3281 | if test -n "$CXX"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3282 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3283 | echo "${ECHO_T}$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3284 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3285 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3286 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3287 | fi |
| 3288 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3289 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3290 | test -n "$CXX" && break |
| 3291 | done |
| 3292 | test -n "$CXX" || CXX="notfound" |
| 3293 | |
| 3294 | if test "$CXX" = "notfound" |
| 3295 | then |
| 3296 | CXX="" |
| 3297 | fi |
| 3298 | fi |
| 3299 | if test "$preset_cxx" != "$CXX" |
| 3300 | then |
| 3301 | { echo "$as_me:$LINENO: WARNING: |
| 3302 | |
| 3303 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3304 | If this is not intended, then set CXX on the configure command line. |
| 3305 | " >&5 |
| 3306 | echo "$as_me: WARNING: |
| 3307 | |
| 3308 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3309 | If this is not intended, then set CXX on the configure command line. |
| 3310 | " >&2;} |
| 3311 | fi |
| 3312 | |
| 3313 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3314 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3315 | |
| 3316 | ac_ext=c |
| 3317 | ac_cpp='$CPP $CPPFLAGS' |
| 3318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3321 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3322 | 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] | 3323 | # On Suns, sometimes $CPP names a directory. |
| 3324 | if test -n "$CPP" && test -d "$CPP"; then |
| 3325 | CPP= |
| 3326 | fi |
| 3327 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3328 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3331 | # Double quotes because CPP needs to be expanded |
| 3332 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3333 | do |
| 3334 | ac_preproc_ok=false |
| 3335 | for ac_c_preproc_warn_flag in '' yes |
| 3336 | do |
| 3337 | # Use a header file that comes with gcc, so configuring glibc |
| 3338 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3339 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3340 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3341 | # 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] | 3342 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3343 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3344 | /* confdefs.h. */ |
| 3345 | _ACEOF |
| 3346 | cat confdefs.h >>conftest.$ac_ext |
| 3347 | cat >>conftest.$ac_ext <<_ACEOF |
| 3348 | /* end confdefs.h. */ |
| 3349 | #ifdef __STDC__ |
| 3350 | # include <limits.h> |
| 3351 | #else |
| 3352 | # include <assert.h> |
| 3353 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3354 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3355 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3356 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3357 | case "(($ac_try" in |
| 3358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3359 | *) ac_try_echo=$ac_try;; |
| 3360 | esac |
| 3361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3362 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3363 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3364 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3365 | rm -f conftest.er1 |
| 3366 | cat conftest.err >&5 |
| 3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3368 | (exit $ac_status); } >/dev/null && { |
| 3369 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3370 | test ! -s conftest.err |
| 3371 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3372 | : |
| 3373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3374 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3377 | # Broken: fails on valid input. |
| 3378 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3379 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3381 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3382 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3383 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3384 | # can be detected and how. |
| 3385 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3386 | /* confdefs.h. */ |
| 3387 | _ACEOF |
| 3388 | cat confdefs.h >>conftest.$ac_ext |
| 3389 | cat >>conftest.$ac_ext <<_ACEOF |
| 3390 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3391 | #include <ac_nonexistent.h> |
| 3392 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3393 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3394 | case "(($ac_try" in |
| 3395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3396 | *) ac_try_echo=$ac_try;; |
| 3397 | esac |
| 3398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3399 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3400 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3401 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3402 | rm -f conftest.er1 |
| 3403 | cat conftest.err >&5 |
| 3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3405 | (exit $ac_status); } >/dev/null && { |
| 3406 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3407 | test ! -s conftest.err |
| 3408 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3409 | # Broken: success on invalid input. |
| 3410 | continue |
| 3411 | else |
| 3412 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3415 | # Passes both tests. |
| 3416 | ac_preproc_ok=: |
| 3417 | break |
| 3418 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3420 | rm -f conftest.err conftest.$ac_ext |
| 3421 | |
| 3422 | done |
| 3423 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3424 | rm -f conftest.err conftest.$ac_ext |
| 3425 | if $ac_preproc_ok; then |
| 3426 | break |
| 3427 | fi |
| 3428 | |
| 3429 | done |
| 3430 | ac_cv_prog_CPP=$CPP |
| 3431 | |
| 3432 | fi |
| 3433 | CPP=$ac_cv_prog_CPP |
| 3434 | else |
| 3435 | ac_cv_prog_CPP=$CPP |
| 3436 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3437 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3438 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3439 | ac_preproc_ok=false |
| 3440 | for ac_c_preproc_warn_flag in '' yes |
| 3441 | do |
| 3442 | # Use a header file that comes with gcc, so configuring glibc |
| 3443 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3444 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3445 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3446 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3447 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3448 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3449 | /* confdefs.h. */ |
| 3450 | _ACEOF |
| 3451 | cat confdefs.h >>conftest.$ac_ext |
| 3452 | cat >>conftest.$ac_ext <<_ACEOF |
| 3453 | /* end confdefs.h. */ |
| 3454 | #ifdef __STDC__ |
| 3455 | # include <limits.h> |
| 3456 | #else |
| 3457 | # include <assert.h> |
| 3458 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3459 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3460 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3461 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3462 | case "(($ac_try" in |
| 3463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3464 | *) ac_try_echo=$ac_try;; |
| 3465 | esac |
| 3466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3467 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3468 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3469 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3470 | rm -f conftest.er1 |
| 3471 | cat conftest.err >&5 |
| 3472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3473 | (exit $ac_status); } >/dev/null && { |
| 3474 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3475 | test ! -s conftest.err |
| 3476 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3477 | : |
| 3478 | else |
| 3479 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3482 | # Broken: fails on valid input. |
| 3483 | continue |
| 3484 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3485 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3486 | rm -f conftest.err conftest.$ac_ext |
| 3487 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3488 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3489 | # can be detected and how. |
| 3490 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3491 | /* confdefs.h. */ |
| 3492 | _ACEOF |
| 3493 | cat confdefs.h >>conftest.$ac_ext |
| 3494 | cat >>conftest.$ac_ext <<_ACEOF |
| 3495 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3496 | #include <ac_nonexistent.h> |
| 3497 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3498 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3499 | case "(($ac_try" in |
| 3500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3501 | *) ac_try_echo=$ac_try;; |
| 3502 | esac |
| 3503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3504 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3505 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3506 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3507 | rm -f conftest.er1 |
| 3508 | cat conftest.err >&5 |
| 3509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3510 | (exit $ac_status); } >/dev/null && { |
| 3511 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3512 | test ! -s conftest.err |
| 3513 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3514 | # Broken: success on invalid input. |
| 3515 | continue |
| 3516 | else |
| 3517 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3519 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3520 | # Passes both tests. |
| 3521 | ac_preproc_ok=: |
| 3522 | break |
| 3523 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3524 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3525 | rm -f conftest.err conftest.$ac_ext |
| 3526 | |
| 3527 | done |
| 3528 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3529 | rm -f conftest.err conftest.$ac_ext |
| 3530 | if $ac_preproc_ok; then |
| 3531 | : |
| 3532 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3533 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3534 | See \`config.log' for more details." >&5 |
| 3535 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3536 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3537 | { (exit 1); exit 1; }; } |
| 3538 | fi |
| 3539 | |
| 3540 | ac_ext=c |
| 3541 | ac_cpp='$CPP $CPPFLAGS' |
| 3542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3545 | |
| 3546 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3547 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3548 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3549 | if test "${ac_cv_path_GREP+set}" = set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3551 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3552 | # Extract the first word of "grep ggrep" to use in msg output |
| 3553 | if test -z "$GREP"; then |
| 3554 | set dummy grep ggrep; ac_prog_name=$2 |
| 3555 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3557 | else |
| 3558 | ac_path_GREP_found=false |
| 3559 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3561 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3562 | do |
| 3563 | IFS=$as_save_IFS |
| 3564 | test -z "$as_dir" && as_dir=. |
| 3565 | for ac_prog in grep ggrep; do |
| 3566 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3567 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3568 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3569 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3570 | # Check for GNU $ac_path_GREP |
| 3571 | case `"$ac_path_GREP" --version 2>&1` in |
| 3572 | *GNU*) |
| 3573 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3574 | *) |
| 3575 | ac_count=0 |
| 3576 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3577 | while : |
| 3578 | do |
| 3579 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3580 | mv "conftest.tmp" "conftest.in" |
| 3581 | cp "conftest.in" "conftest.nl" |
| 3582 | echo 'GREP' >> "conftest.nl" |
| 3583 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3584 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3585 | ac_count=`expr $ac_count + 1` |
| 3586 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3587 | # Best one so far, save it but keep looking for a better one |
| 3588 | ac_cv_path_GREP="$ac_path_GREP" |
| 3589 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3590 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3591 | # 10*(2^10) chars as input seems more than enough |
| 3592 | test $ac_count -gt 10 && break |
| 3593 | done |
| 3594 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3595 | esac |
| 3596 | |
| 3597 | |
| 3598 | $ac_path_GREP_found && break 3 |
| 3599 | done |
| 3600 | done |
| 3601 | |
| 3602 | done |
| 3603 | IFS=$as_save_IFS |
| 3604 | |
| 3605 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3606 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3607 | |
| 3608 | GREP="$ac_cv_path_GREP" |
| 3609 | if test -z "$GREP"; then |
| 3610 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3611 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3612 | { (exit 1); exit 1; }; } |
| 3613 | fi |
| 3614 | |
| 3615 | else |
| 3616 | ac_cv_path_GREP=$GREP |
| 3617 | fi |
| 3618 | |
| 3619 | |
| 3620 | fi |
| 3621 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3622 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3623 | GREP="$ac_cv_path_GREP" |
| 3624 | |
| 3625 | |
| 3626 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3627 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3628 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3630 | else |
| 3631 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3632 | then ac_cv_path_EGREP="$GREP -E" |
| 3633 | else |
| 3634 | # Extract the first word of "egrep" to use in msg output |
| 3635 | if test -z "$EGREP"; then |
| 3636 | set dummy egrep; ac_prog_name=$2 |
| 3637 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3639 | else |
| 3640 | ac_path_EGREP_found=false |
| 3641 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3643 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3644 | do |
| 3645 | IFS=$as_save_IFS |
| 3646 | test -z "$as_dir" && as_dir=. |
| 3647 | for ac_prog in egrep; do |
| 3648 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3649 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3650 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3651 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3652 | # Check for GNU $ac_path_EGREP |
| 3653 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3654 | *GNU*) |
| 3655 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3656 | *) |
| 3657 | ac_count=0 |
| 3658 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3659 | while : |
| 3660 | do |
| 3661 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3662 | mv "conftest.tmp" "conftest.in" |
| 3663 | cp "conftest.in" "conftest.nl" |
| 3664 | echo 'EGREP' >> "conftest.nl" |
| 3665 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3666 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3667 | ac_count=`expr $ac_count + 1` |
| 3668 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3669 | # Best one so far, save it but keep looking for a better one |
| 3670 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3671 | ac_path_EGREP_max=$ac_count |
| 3672 | fi |
| 3673 | # 10*(2^10) chars as input seems more than enough |
| 3674 | test $ac_count -gt 10 && break |
| 3675 | done |
| 3676 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3677 | esac |
| 3678 | |
| 3679 | |
| 3680 | $ac_path_EGREP_found && break 3 |
| 3681 | done |
| 3682 | done |
| 3683 | |
| 3684 | done |
| 3685 | IFS=$as_save_IFS |
| 3686 | |
| 3687 | |
| 3688 | fi |
| 3689 | |
| 3690 | EGREP="$ac_cv_path_EGREP" |
| 3691 | if test -z "$EGREP"; then |
| 3692 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3693 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3694 | { (exit 1); exit 1; }; } |
| 3695 | fi |
| 3696 | |
| 3697 | else |
| 3698 | ac_cv_path_EGREP=$EGREP |
| 3699 | fi |
| 3700 | |
| 3701 | |
| 3702 | fi |
| 3703 | fi |
| 3704 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3705 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3706 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3707 | |
| 3708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3709 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3710 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3711 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3712 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3713 | /* confdefs.h. */ |
| 3714 | _ACEOF |
| 3715 | cat confdefs.h >>conftest.$ac_ext |
| 3716 | cat >>conftest.$ac_ext <<_ACEOF |
| 3717 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3718 | #ifdef _AIX |
| 3719 | yes |
| 3720 | #endif |
| 3721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3723 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3724 | $EGREP "yes" >/dev/null 2>&1; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3725 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3726 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3727 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3728 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3730 | |
| 3731 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3732 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3733 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3734 | fi |
| 3735 | rm -f conftest* |
| 3736 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3737 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3738 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3739 | # Check for unsupported systems |
| 3740 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 3741 | atheos*|Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3742 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3743 | echo See README for details. |
| 3744 | exit 1;; |
| 3745 | esac |
| 3746 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3747 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3748 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3749 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3750 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3751 | # Check whether --with-suffix was given. |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3752 | if test "${with_suffix+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3753 | withval=$with_suffix; |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3754 | case $withval in |
| 3755 | no) EXEEXT=;; |
| 3756 | yes) EXEEXT=.exe;; |
| 3757 | *) EXEEXT=$withval;; |
| 3758 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3759 | fi |
| 3760 | |
| 3761 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3762 | echo "${ECHO_T}$EXEEXT" >&6; } |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3763 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3764 | # Test whether we're running on a non-case-sensitive system, in which |
| 3765 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3766 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3767 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3768 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3769 | if test ! -d CaseSensitiveTestDir; then |
| 3770 | mkdir CaseSensitiveTestDir |
| 3771 | fi |
| 3772 | |
| 3773 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3774 | then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3775 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3776 | echo "${ECHO_T}yes" >&6; } |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3777 | BUILDEXEEXT=.exe |
| 3778 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3779 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3780 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3781 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3782 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3783 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3784 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3785 | case $MACHDEP in |
| 3786 | bsdos*) |
| 3787 | case $CC in |
| 3788 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3789 | esac;; |
| 3790 | esac |
| 3791 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3792 | case $ac_sys_system in |
| 3793 | hp*|HP*) |
| 3794 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3795 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3796 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3797 | Monterey*) |
| 3798 | case $CC in |
| 3799 | cc) CC="$CC -Wl,-Bexport";; |
| 3800 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3801 | SunOS*) |
| 3802 | # 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] | 3803 | |
| 3804 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3805 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3806 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3807 | |
| 3808 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3809 | esac |
| 3810 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3811 | |
| 3812 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3813 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3814 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3815 | if test -z "$LIBRARY" |
| 3816 | then |
| 3817 | LIBRARY='libpython$(VERSION).a' |
| 3818 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3819 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3820 | echo "${ECHO_T}$LIBRARY" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3821 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3822 | # 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] | 3823 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3824 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3825 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3826 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3827 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3828 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3829 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3830 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3831 | # RUNSHARED is used to run shared python without installed libraries |
| 3832 | # |
| 3833 | # INSTSONAME is the name of the shared library that will be use to install |
| 3834 | # on the system - some systems like version suffix, others don't |
| 3835 | |
| 3836 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3837 | |
| 3838 | |
| 3839 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3840 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3841 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3842 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3843 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3844 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3845 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3846 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3847 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3848 | # 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] | 3849 | # If CXX is set, and if it is needed to link a main function that was |
| 3850 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3851 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3852 | # 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] | 3853 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3854 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3855 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3856 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3857 | if test -z "$LINKCC" |
| 3858 | then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3859 | LINKCC='$(PURIFY) $(MAINCC)' |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3860 | case $ac_sys_system in |
| 3861 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3862 | exp_extra="\"\"" |
| 3863 | if test $ac_sys_release -ge 5 -o \ |
| 3864 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3865 | exp_extra="." |
| 3866 | fi |
| 3867 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3868 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3869 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3870 | esac |
| 3871 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3872 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3873 | echo "${ECHO_T}$LINKCC" >&6; } |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3874 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3875 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3876 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
| 3877 | # Check whether --enable-shared was given. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3878 | if test "${enable_shared+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3879 | enableval=$enable_shared; |
| 3880 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3881 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3882 | |
| 3883 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3884 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3885 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3886 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3887 | enable_shared="yes";; |
| 3888 | *) |
| 3889 | enable_shared="no";; |
| 3890 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3891 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3892 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3893 | echo "${ECHO_T}$enable_shared" >&6; } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3894 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3895 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3896 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
| 3897 | # Check whether --enable-profiling was given. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3898 | if test "${enable_profiling+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3899 | enableval=$enable_profiling; ac_save_cc="$CC" |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3900 | CC="$CC -pg" |
| 3901 | if test "$cross_compiling" = yes; then |
| 3902 | ac_enable_profiling="no" |
| 3903 | else |
| 3904 | cat >conftest.$ac_ext <<_ACEOF |
| 3905 | /* confdefs.h. */ |
| 3906 | _ACEOF |
| 3907 | cat confdefs.h >>conftest.$ac_ext |
| 3908 | cat >>conftest.$ac_ext <<_ACEOF |
| 3909 | /* end confdefs.h. */ |
| 3910 | int main() { return 0; } |
| 3911 | _ACEOF |
| 3912 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3913 | if { (ac_try="$ac_link" |
| 3914 | case "(($ac_try" in |
| 3915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3916 | *) ac_try_echo=$ac_try;; |
| 3917 | esac |
| 3918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3919 | (eval "$ac_link") 2>&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3920 | ac_status=$? |
| 3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3923 | { (case "(($ac_try" in |
| 3924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3925 | *) ac_try_echo=$ac_try;; |
| 3926 | esac |
| 3927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3928 | (eval "$ac_try") 2>&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3929 | ac_status=$? |
| 3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3931 | (exit $ac_status); }; }; then |
| 3932 | ac_enable_profiling="yes" |
| 3933 | else |
| 3934 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3935 | echo "$as_me: failed program was:" >&5 |
| 3936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3937 | |
| 3938 | ( exit $ac_status ) |
| 3939 | ac_enable_profiling="no" |
| 3940 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3941 | 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] | 3942 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3943 | |
| 3944 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3945 | CC="$ac_save_cc" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3946 | fi |
| 3947 | |
| 3948 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3949 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3950 | |
| 3951 | case "$ac_enable_profiling" in |
| 3952 | "yes") |
| 3953 | BASECFLAGS="-pg $BASECFLAGS" |
| 3954 | LDFLAGS="-pg $LDFLAGS" |
| 3955 | ;; |
| 3956 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3957 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3958 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3959 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3960 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3961 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3962 | # library that we build, but we do not want to link against it (we |
| 3963 | # will find it with a -framework option). For this reason there is an |
| 3964 | # extra variable BLDLIBRARY against which Python and the extension |
| 3965 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3966 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3967 | if test "$enable_framework" |
| 3968 | then |
| 3969 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3970 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3971 | BLDLIBRARY='' |
| 3972 | else |
| 3973 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3974 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3975 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3976 | # Other platforms follow |
| 3977 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3978 | |
| 3979 | cat >>confdefs.h <<\_ACEOF |
| 3980 | #define Py_ENABLE_SHARED 1 |
| 3981 | _ACEOF |
| 3982 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3983 | case $ac_sys_system in |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3984 | CYGWIN*) |
| 3985 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3986 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3987 | ;; |
| 3988 | SunOS*) |
| 3989 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3990 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3991 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3992 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3993 | ;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 3994 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3995 | LDLIBRARY='libpython$(VERSION).so' |
| 3996 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3997 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3998 | case $ac_sys_system in |
| 3999 | FreeBSD*) |
| 4000 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4001 | ;; |
| 4002 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4003 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4004 | ;; |
| 4005 | hp*|HP*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4006 | case `uname -m` in |
| 4007 | ia64) |
| 4008 | LDLIBRARY='libpython$(VERSION).so' |
| 4009 | ;; |
| 4010 | *) |
| 4011 | LDLIBRARY='libpython$(VERSION).sl' |
| 4012 | ;; |
| 4013 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4014 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4015 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4016 | ;; |
| 4017 | OSF*) |
| 4018 | LDLIBRARY='libpython$(VERSION).so' |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 4019 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4020 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4021 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 4022 | atheos*) |
| 4023 | LDLIBRARY='libpython$(VERSION).so' |
| 4024 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4025 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4026 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4027 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 4028 | else # shared is disabled |
| 4029 | case $ac_sys_system in |
| 4030 | CYGWIN*) |
| 4031 | BLDLIBRARY='$(LIBRARY)' |
| 4032 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4033 | ;; |
| 4034 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4035 | fi |
| 4036 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4037 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4038 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 4039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4040 | if test -n "$ac_tool_prefix"; then |
| 4041 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4042 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4043 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4045 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4047 | else |
| 4048 | if test -n "$RANLIB"; then |
| 4049 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4052 | for as_dir in $PATH |
| 4053 | do |
| 4054 | IFS=$as_save_IFS |
| 4055 | test -z "$as_dir" && as_dir=. |
| 4056 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4057 | 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] | 4058 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4060 | break 2 |
| 4061 | fi |
| 4062 | done |
| 4063 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4064 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4065 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4066 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4067 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4068 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4069 | if test -n "$RANLIB"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4070 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4071 | echo "${ECHO_T}$RANLIB" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4072 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4073 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4074 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4075 | fi |
| 4076 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4077 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4078 | fi |
| 4079 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4080 | ac_ct_RANLIB=$RANLIB |
| 4081 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4082 | set dummy ranlib; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4083 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4084 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4085 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4087 | else |
| 4088 | if test -n "$ac_ct_RANLIB"; then |
| 4089 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4090 | else |
| 4091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4092 | for as_dir in $PATH |
| 4093 | do |
| 4094 | IFS=$as_save_IFS |
| 4095 | test -z "$as_dir" && as_dir=. |
| 4096 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4097 | 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] | 4098 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4099 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4100 | break 2 |
| 4101 | fi |
| 4102 | done |
| 4103 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4104 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4106 | fi |
| 4107 | fi |
| 4108 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4109 | if test -n "$ac_ct_RANLIB"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4110 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4111 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4112 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4113 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4114 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4115 | fi |
| 4116 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4117 | if test "x$ac_ct_RANLIB" = x; then |
| 4118 | RANLIB=":" |
| 4119 | else |
| 4120 | case $cross_compiling:$ac_tool_warned in |
| 4121 | yes:) |
| 4122 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4123 | whose name does not start with the host triplet. If you think this |
| 4124 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4125 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4126 | whose name does not start with the host triplet. If you think this |
| 4127 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4128 | ac_tool_warned=yes ;; |
| 4129 | esac |
| 4130 | RANLIB=$ac_ct_RANLIB |
| 4131 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4132 | else |
| 4133 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4134 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4135 | |
| 4136 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4137 | for ac_prog in ar aal |
| 4138 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4139 | # 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] | 4140 | set dummy $ac_prog; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4141 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4143 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4145 | else |
| 4146 | if test -n "$AR"; then |
| 4147 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4150 | for as_dir in $PATH |
| 4151 | do |
| 4152 | IFS=$as_save_IFS |
| 4153 | test -z "$as_dir" && as_dir=. |
| 4154 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4155 | 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] | 4156 | ac_cv_prog_AR="$ac_prog" |
| 4157 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4158 | break 2 |
| 4159 | fi |
| 4160 | done |
| 4161 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4162 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4163 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4164 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4166 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4167 | if test -n "$AR"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4168 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4169 | echo "${ECHO_T}$AR" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4170 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4171 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4172 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4173 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4174 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4176 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4177 | done |
| 4178 | test -n "$AR" || AR="ar" |
| 4179 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4180 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4181 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 4182 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4183 | set dummy svnversion; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4184 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4185 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4186 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 4187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4188 | else |
| 4189 | if test -n "$SVNVERSION"; then |
| 4190 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4191 | else |
| 4192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4193 | for as_dir in $PATH |
| 4194 | do |
| 4195 | IFS=$as_save_IFS |
| 4196 | test -z "$as_dir" && as_dir=. |
| 4197 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4198 | 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] | 4199 | ac_cv_prog_SVNVERSION="found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4200 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4201 | break 2 |
| 4202 | fi |
| 4203 | done |
| 4204 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4205 | IFS=$as_save_IFS |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4206 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4207 | 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] | 4208 | fi |
| 4209 | fi |
| 4210 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4211 | if test -n "$SVNVERSION"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4212 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4213 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4214 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4215 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4216 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4217 | fi |
| 4218 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4219 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 4220 | if test $SVNVERSION = found |
| 4221 | then |
| 4222 | SVNVERSION="svnversion \$(srcdir)" |
| 4223 | else |
| 4224 | SVNVERSION="echo exported" |
| 4225 | fi |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4226 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 4227 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 4228 | bsdos*|hp*|HP*) |
| 4229 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 4230 | if test -z "$INSTALL" |
| 4231 | then |
| 4232 | INSTALL="${srcdir}/install-sh -c" |
| 4233 | fi |
| 4234 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4235 | ac_aux_dir= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4236 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4237 | if test -f "$ac_dir/install-sh"; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4238 | ac_aux_dir=$ac_dir |
| 4239 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4240 | break |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4241 | elif test -f "$ac_dir/install.sh"; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4242 | ac_aux_dir=$ac_dir |
| 4243 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4244 | break |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4245 | elif test -f "$ac_dir/shtool"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4246 | ac_aux_dir=$ac_dir |
| 4247 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4248 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4249 | fi |
| 4250 | done |
| 4251 | if test -z "$ac_aux_dir"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4252 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4253 | 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] | 4254 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4255 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4256 | |
| 4257 | # These three variables are undocumented and unsupported, |
| 4258 | # and are intended to be withdrawn in a future Autoconf release. |
| 4259 | # They can cause serious problems if a builder's source tree is in a directory |
| 4260 | # whose full name contains unusual characters. |
| 4261 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4262 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4263 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4264 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4265 | |
| 4266 | # Find a good install program. We prefer a C program (faster), |
| 4267 | # so one script is as good as another. But avoid the broken or |
| 4268 | # incompatible versions: |
| 4269 | # SysV /etc/install, /usr/sbin/install |
| 4270 | # SunOS /usr/etc/install |
| 4271 | # IRIX /sbin/install |
| 4272 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4273 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4274 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4275 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4276 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4277 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4278 | # ./install, which can be erroneously created by make from ./install.sh. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4279 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4280 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4281 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4282 | if test "${ac_cv_path_install+set}" = set; then |
| 4283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4286 | for as_dir in $PATH |
| 4287 | do |
| 4288 | IFS=$as_save_IFS |
| 4289 | test -z "$as_dir" && as_dir=. |
| 4290 | # Account for people who put trailing slashes in PATH elements. |
| 4291 | case $as_dir/ in |
| 4292 | ./ | .// | /cC/* | \ |
| 4293 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4294 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4295 | /usr/ucb/* ) ;; |
| 4296 | *) |
| 4297 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4298 | # Don't use installbsd from OSF since it installs stuff as root |
| 4299 | # by default. |
| 4300 | for ac_prog in ginstall scoinst install; do |
| 4301 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4302 | 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] | 4303 | if test $ac_prog = install && |
| 4304 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4305 | # AIX install. It has an incompatible calling convention. |
| 4306 | : |
| 4307 | elif test $ac_prog = install && |
| 4308 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4309 | # program-specific install script used by HP pwplus--don't use. |
| 4310 | : |
| 4311 | else |
| 4312 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4313 | break 3 |
| 4314 | fi |
| 4315 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4316 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4317 | done |
| 4318 | ;; |
| 4319 | esac |
| 4320 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4321 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4322 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4323 | |
| 4324 | fi |
| 4325 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4326 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4327 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4328 | # As a last resort, use the slow shell script. Don't cache a |
| 4329 | # value for INSTALL within a source directory, because that will |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4330 | # break other packages using the cache if that directory is |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4331 | # removed, or if the value is a relative name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4332 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4333 | fi |
| 4334 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4335 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4336 | echo "${ECHO_T}$INSTALL" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4337 | |
| 4338 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4339 | # It thinks the first close brace ends the variable substitution. |
| 4340 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4342 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4343 | |
| 4344 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4345 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4346 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4347 | # Not every filesystem supports hard links |
| 4348 | |
| 4349 | if test -z "$LN" ; then |
| 4350 | case $ac_sys_system in |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 4351 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 4352 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4353 | *) LN=ln;; |
| 4354 | esac |
| 4355 | fi |
| 4356 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4357 | # Check for --with-pydebug |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4358 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4359 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4360 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4361 | # Check whether --with-pydebug was given. |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4362 | if test "${with_pydebug+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4363 | withval=$with_pydebug; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4364 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4365 | then |
| 4366 | |
| 4367 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4368 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4369 | _ACEOF |
| 4370 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4371 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4372 | echo "${ECHO_T}yes" >&6; }; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4373 | Py_DEBUG='true' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4374 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4375 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4376 | fi |
| 4377 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4378 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4379 | echo "${ECHO_T}no" >&6; } |
| 4380 | fi |
| 4381 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4382 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4383 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4384 | # merged with this chunk of code? |
| 4385 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4386 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4387 | # ------------------------ |
| 4388 | # (The following bit of code is complicated enough - please keep things |
| 4389 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4390 | |
| 4391 | # There are two parallel sets of case statements below, one that checks to |
| 4392 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4393 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4394 | # user set OPT. |
| 4395 | |
| 4396 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4397 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4398 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4399 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4400 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4401 | case $GCC in |
| 4402 | yes) |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4403 | if test "$CC" != 'g++' ; then |
| 4404 | STRICT_PROTO="-Wstrict-prototypes" |
| 4405 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4406 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4407 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4408 | if test "$Py_DEBUG" = 'true' ; then |
| 4409 | # Optimization messes up debuggers, so turn it off for |
| 4410 | # debug builds. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4411 | OPT="-g -Wall $STRICT_PROTO" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4412 | else |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4413 | OPT="-g -O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4414 | fi |
| 4415 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4416 | *) |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4417 | OPT="-O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4418 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4419 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 4420 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4421 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4422 | ;; |
| 4423 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4424 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4425 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4426 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4427 | OPT="-O" |
| 4428 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4429 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4430 | |
| 4431 | # The current (beta) Monterey compiler dies with optimizations |
| 4432 | # 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] | 4433 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4434 | Monterey*) |
| 4435 | OPT="" |
| 4436 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 4437 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4438 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4439 | fi |
| 4440 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4441 | |
| 4442 | # tweak BASECFLAGS based on compiler and platform |
| 4443 | case $GCC in |
| 4444 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4445 | # Python violates C99 rules, by casting between incompatible |
| 4446 | # pointer types. GCC may generate bad code as a result of that, |
| 4447 | # so use -fno-strict-aliasing if supported. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4448 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4449 | 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] | 4450 | ac_save_cc="$CC" |
| 4451 | CC="$CC -fno-strict-aliasing" |
| 4452 | if test "$cross_compiling" = yes; then |
| 4453 | ac_cv_no_strict_aliasing_ok=no |
| 4454 | else |
| 4455 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4456 | /* confdefs.h. */ |
| 4457 | _ACEOF |
| 4458 | cat confdefs.h >>conftest.$ac_ext |
| 4459 | cat >>conftest.$ac_ext <<_ACEOF |
| 4460 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4461 | int main() { return 0; } |
| 4462 | _ACEOF |
| 4463 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4464 | if { (ac_try="$ac_link" |
| 4465 | case "(($ac_try" in |
| 4466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4467 | *) ac_try_echo=$ac_try;; |
| 4468 | esac |
| 4469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4470 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4471 | ac_status=$? |
| 4472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4473 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4474 | { (case "(($ac_try" in |
| 4475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4476 | *) ac_try_echo=$ac_try;; |
| 4477 | esac |
| 4478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4479 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4480 | ac_status=$? |
| 4481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4482 | (exit $ac_status); }; }; then |
| 4483 | ac_cv_no_strict_aliasing_ok=yes |
| 4484 | else |
| 4485 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4486 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4488 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4489 | ( exit $ac_status ) |
| 4490 | ac_cv_no_strict_aliasing_ok=no |
| 4491 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4492 | 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] | 4493 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4494 | |
| 4495 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4496 | CC="$ac_save_cc" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4497 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4498 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4499 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4500 | then |
| 4501 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4502 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4503 | case $ac_sys_system in |
| 4504 | SCO_SV*) |
| 4505 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4506 | ;; |
| 4507 | # is there any other compiler on Darwin besides gcc? |
| 4508 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 4509 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4510 | if test "${enable_universalsdk}"; then |
| 4511 | BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4512 | fi |
| 4513 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4514 | ;; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4515 | OSF*) |
| 4516 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4517 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4518 | esac |
| 4519 | ;; |
| 4520 | |
| 4521 | *) |
| 4522 | case $ac_sys_system in |
| 4523 | OpenUNIX*|UnixWare*) |
| 4524 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4525 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 4526 | OSF*) |
| 4527 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4528 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4529 | SCO_SV*) |
| 4530 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4531 | ;; |
| 4532 | esac |
| 4533 | ;; |
| 4534 | esac |
| 4535 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 4536 | if test "$Py_DEBUG" = 'true'; then |
| 4537 | : |
| 4538 | else |
| 4539 | OPT="-DNDEBUG $OPT" |
| 4540 | fi |
| 4541 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4542 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4543 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4544 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4545 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4546 | |
Neal Norwitz | 020c46a | 2006-01-07 21:39:28 +0000 | [diff] [blame] | 4547 | # disable check for icc since it seems to pass, but generates a warning |
| 4548 | if test "$CC" = icc |
| 4549 | then |
| 4550 | ac_cv_opt_olimit_ok=no |
| 4551 | fi |
| 4552 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4553 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4554 | 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] | 4555 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 4556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4557 | else |
| 4558 | ac_save_cc="$CC" |
| 4559 | CC="$CC -OPT:Olimit=0" |
| 4560 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4561 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4562 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4563 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4564 | /* confdefs.h. */ |
| 4565 | _ACEOF |
| 4566 | cat confdefs.h >>conftest.$ac_ext |
| 4567 | cat >>conftest.$ac_ext <<_ACEOF |
| 4568 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4569 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4570 | _ACEOF |
| 4571 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4572 | if { (ac_try="$ac_link" |
| 4573 | case "(($ac_try" in |
| 4574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4575 | *) ac_try_echo=$ac_try;; |
| 4576 | esac |
| 4577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4578 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4579 | ac_status=$? |
| 4580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4581 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4582 | { (case "(($ac_try" in |
| 4583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4584 | *) ac_try_echo=$ac_try;; |
| 4585 | esac |
| 4586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4587 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4588 | ac_status=$? |
| 4589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4590 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4591 | ac_cv_opt_olimit_ok=yes |
| 4592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4593 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4594 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4596 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4597 | ( exit $ac_status ) |
| 4598 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4599 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4600 | 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] | 4601 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4602 | |
| 4603 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4604 | CC="$ac_save_cc" |
| 4605 | fi |
| 4606 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4607 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4608 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 4609 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4610 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4611 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4612 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4613 | # environment? |
| 4614 | Darwin*) |
| 4615 | ;; |
| 4616 | *) |
| 4617 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4618 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4619 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4620 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4621 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4622 | 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] | 4623 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 4624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4625 | else |
| 4626 | ac_save_cc="$CC" |
| 4627 | CC="$CC -Olimit 1500" |
| 4628 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4629 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4630 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4631 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4632 | /* confdefs.h. */ |
| 4633 | _ACEOF |
| 4634 | cat confdefs.h >>conftest.$ac_ext |
| 4635 | cat >>conftest.$ac_ext <<_ACEOF |
| 4636 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4637 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4638 | _ACEOF |
| 4639 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4640 | if { (ac_try="$ac_link" |
| 4641 | case "(($ac_try" in |
| 4642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4643 | *) ac_try_echo=$ac_try;; |
| 4644 | esac |
| 4645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4646 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4647 | ac_status=$? |
| 4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4649 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4650 | { (case "(($ac_try" in |
| 4651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4652 | *) ac_try_echo=$ac_try;; |
| 4653 | esac |
| 4654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4655 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4656 | ac_status=$? |
| 4657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4658 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4659 | ac_cv_olimit_ok=yes |
| 4660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4661 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4662 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4665 | ( exit $ac_status ) |
| 4666 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4667 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4668 | 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] | 4669 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4670 | |
| 4671 | |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4672 | CC="$ac_save_cc" |
| 4673 | fi |
| 4674 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4675 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4676 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4677 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4678 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4679 | fi |
| 4680 | fi |
| 4681 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4682 | # Check whether GCC supports PyArg_ParseTuple format |
| 4683 | if test "$GCC" = "yes" |
| 4684 | then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4685 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4686 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4687 | save_CFLAGS=$CFLAGS |
| 4688 | CFLAGS="$CFLAGS -Werror" |
| 4689 | cat >conftest.$ac_ext <<_ACEOF |
| 4690 | /* confdefs.h. */ |
| 4691 | _ACEOF |
| 4692 | cat confdefs.h >>conftest.$ac_ext |
| 4693 | cat >>conftest.$ac_ext <<_ACEOF |
| 4694 | /* end confdefs.h. */ |
| 4695 | |
| 4696 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4697 | |
| 4698 | int |
| 4699 | main () |
| 4700 | { |
| 4701 | |
| 4702 | ; |
| 4703 | return 0; |
| 4704 | } |
| 4705 | _ACEOF |
| 4706 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4707 | if { (ac_try="$ac_compile" |
| 4708 | case "(($ac_try" in |
| 4709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4710 | *) ac_try_echo=$ac_try;; |
| 4711 | esac |
| 4712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4713 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4714 | ac_status=$? |
| 4715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4716 | rm -f conftest.er1 |
| 4717 | cat conftest.err >&5 |
| 4718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4719 | (exit $ac_status); } && { |
| 4720 | test -z "$ac_c_werror_flag" || |
| 4721 | test ! -s conftest.err |
| 4722 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4723 | |
| 4724 | cat >>confdefs.h <<\_ACEOF |
| 4725 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4726 | _ACEOF |
| 4727 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4728 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4729 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4730 | else |
| 4731 | echo "$as_me: failed program was:" >&5 |
| 4732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4733 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4734 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4735 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4736 | |
| 4737 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4738 | |
| 4739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4740 | CFLAGS=$save_CFLAGS |
| 4741 | fi |
| 4742 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4743 | # On some compilers, pthreads are available without further options |
| 4744 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4745 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4746 | # So we have to see first whether pthreads are available without |
| 4747 | # options before we can check whether -Kpthread improves anything. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4748 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4749 | 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] | 4750 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4752 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4753 | if test "$cross_compiling" = yes; then |
| 4754 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4756 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4757 | /* confdefs.h. */ |
| 4758 | _ACEOF |
| 4759 | cat confdefs.h >>conftest.$ac_ext |
| 4760 | cat >>conftest.$ac_ext <<_ACEOF |
| 4761 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4762 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4763 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4764 | |
| 4765 | void* routine(void* p){return NULL;} |
| 4766 | |
| 4767 | int main(){ |
| 4768 | pthread_t p; |
| 4769 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4770 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4771 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4772 | return 0; |
| 4773 | } |
| 4774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4775 | _ACEOF |
| 4776 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4777 | if { (ac_try="$ac_link" |
| 4778 | case "(($ac_try" in |
| 4779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4780 | *) ac_try_echo=$ac_try;; |
| 4781 | esac |
| 4782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4783 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4784 | ac_status=$? |
| 4785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4787 | { (case "(($ac_try" in |
| 4788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4789 | *) ac_try_echo=$ac_try;; |
| 4790 | esac |
| 4791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4792 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4793 | ac_status=$? |
| 4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4795 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4796 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4797 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4798 | ac_cv_kthread=no |
| 4799 | ac_cv_pthread=no |
| 4800 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4801 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4802 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4803 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4806 | ( exit $ac_status ) |
| 4807 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4808 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4809 | 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] | 4810 | fi |
| 4811 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4812 | |
| 4813 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4814 | fi |
| 4815 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4816 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4817 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4818 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4819 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4820 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4821 | then |
| 4822 | ac_cv_kpthread=no |
| 4823 | else |
| 4824 | # -Kpthread, if available, provides the right #defines |
| 4825 | # and linker options to make pthread_create available |
| 4826 | # Some compilers won't report that they do not support -Kpthread, |
| 4827 | # so we need to run a program to see whether it really made the |
| 4828 | # function available. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4829 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4830 | 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] | 4831 | if test "${ac_cv_kpthread+set}" = set; then |
| 4832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4833 | else |
| 4834 | ac_save_cc="$CC" |
| 4835 | CC="$CC -Kpthread" |
| 4836 | if test "$cross_compiling" = yes; then |
| 4837 | ac_cv_kpthread=no |
| 4838 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4839 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4840 | /* confdefs.h. */ |
| 4841 | _ACEOF |
| 4842 | cat confdefs.h >>conftest.$ac_ext |
| 4843 | cat >>conftest.$ac_ext <<_ACEOF |
| 4844 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4845 | |
| 4846 | #include <pthread.h> |
| 4847 | |
| 4848 | void* routine(void* p){return NULL;} |
| 4849 | |
| 4850 | int main(){ |
| 4851 | pthread_t p; |
| 4852 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4853 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4854 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4855 | return 0; |
| 4856 | } |
| 4857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4858 | _ACEOF |
| 4859 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4860 | if { (ac_try="$ac_link" |
| 4861 | case "(($ac_try" in |
| 4862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4863 | *) ac_try_echo=$ac_try;; |
| 4864 | esac |
| 4865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4866 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4867 | ac_status=$? |
| 4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4869 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4870 | { (case "(($ac_try" in |
| 4871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4872 | *) ac_try_echo=$ac_try;; |
| 4873 | esac |
| 4874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4875 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4876 | ac_status=$? |
| 4877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4878 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4879 | ac_cv_kpthread=yes |
| 4880 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4881 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4882 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4885 | ( exit $ac_status ) |
| 4886 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4887 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4888 | 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] | 4889 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4890 | |
| 4891 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4892 | CC="$ac_save_cc" |
| 4893 | fi |
| 4894 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4895 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4896 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4897 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4898 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4899 | 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] | 4900 | then |
| 4901 | # -Kthread, if available, provides the right #defines |
| 4902 | # and linker options to make pthread_create available |
| 4903 | # Some compilers won't report that they do not support -Kthread, |
| 4904 | # so we need to run a program to see whether it really made the |
| 4905 | # function available. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4906 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4907 | 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] | 4908 | if test "${ac_cv_kthread+set}" = set; then |
| 4909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4910 | else |
| 4911 | ac_save_cc="$CC" |
| 4912 | CC="$CC -Kthread" |
| 4913 | if test "$cross_compiling" = yes; then |
| 4914 | ac_cv_kthread=no |
| 4915 | else |
| 4916 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4917 | /* confdefs.h. */ |
| 4918 | _ACEOF |
| 4919 | cat confdefs.h >>conftest.$ac_ext |
| 4920 | cat >>conftest.$ac_ext <<_ACEOF |
| 4921 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4922 | |
| 4923 | #include <pthread.h> |
| 4924 | |
| 4925 | void* routine(void* p){return NULL;} |
| 4926 | |
| 4927 | int main(){ |
| 4928 | pthread_t p; |
| 4929 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4930 | return 1; |
| 4931 | (void)pthread_detach(p); |
| 4932 | return 0; |
| 4933 | } |
| 4934 | |
| 4935 | _ACEOF |
| 4936 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4937 | if { (ac_try="$ac_link" |
| 4938 | case "(($ac_try" in |
| 4939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4940 | *) ac_try_echo=$ac_try;; |
| 4941 | esac |
| 4942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4943 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4944 | ac_status=$? |
| 4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4946 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4947 | { (case "(($ac_try" in |
| 4948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4949 | *) ac_try_echo=$ac_try;; |
| 4950 | esac |
| 4951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4952 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4953 | ac_status=$? |
| 4954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4955 | (exit $ac_status); }; }; then |
| 4956 | ac_cv_kthread=yes |
| 4957 | else |
| 4958 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4959 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4961 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4962 | ( exit $ac_status ) |
| 4963 | ac_cv_kthread=no |
| 4964 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4965 | 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] | 4966 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4967 | |
| 4968 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4969 | CC="$ac_save_cc" |
| 4970 | fi |
| 4971 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4972 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4973 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4974 | fi |
| 4975 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4976 | 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] | 4977 | then |
| 4978 | # -pthread, if available, provides the right #defines |
| 4979 | # and linker options to make pthread_create available |
| 4980 | # Some compilers won't report that they do not support -pthread, |
| 4981 | # so we need to run a program to see whether it really made the |
| 4982 | # function available. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4983 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4984 | 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] | 4985 | if test "${ac_cv_thread+set}" = set; then |
| 4986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4987 | else |
| 4988 | ac_save_cc="$CC" |
| 4989 | CC="$CC -pthread" |
| 4990 | if test "$cross_compiling" = yes; then |
| 4991 | ac_cv_pthread=no |
| 4992 | else |
| 4993 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4994 | /* confdefs.h. */ |
| 4995 | _ACEOF |
| 4996 | cat confdefs.h >>conftest.$ac_ext |
| 4997 | cat >>conftest.$ac_ext <<_ACEOF |
| 4998 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4999 | |
| 5000 | #include <pthread.h> |
| 5001 | |
| 5002 | void* routine(void* p){return NULL;} |
| 5003 | |
| 5004 | int main(){ |
| 5005 | pthread_t p; |
| 5006 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5007 | return 1; |
| 5008 | (void)pthread_detach(p); |
| 5009 | return 0; |
| 5010 | } |
| 5011 | |
| 5012 | _ACEOF |
| 5013 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5014 | if { (ac_try="$ac_link" |
| 5015 | case "(($ac_try" in |
| 5016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5017 | *) ac_try_echo=$ac_try;; |
| 5018 | esac |
| 5019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5020 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5021 | ac_status=$? |
| 5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5023 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5024 | { (case "(($ac_try" in |
| 5025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5026 | *) ac_try_echo=$ac_try;; |
| 5027 | esac |
| 5028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5029 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5030 | ac_status=$? |
| 5031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5032 | (exit $ac_status); }; }; then |
| 5033 | ac_cv_pthread=yes |
| 5034 | else |
| 5035 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5038 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5039 | ( exit $ac_status ) |
| 5040 | ac_cv_pthread=no |
| 5041 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5042 | 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] | 5043 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5044 | |
| 5045 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5046 | CC="$ac_save_cc" |
| 5047 | fi |
| 5048 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5049 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5050 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5051 | fi |
| 5052 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5053 | # If we have set a CC compiler flag for thread support then |
| 5054 | # check if it works for CXX, too. |
| 5055 | ac_cv_cxx_thread=no |
| 5056 | if test ! -z "$CXX" |
| 5057 | then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5058 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5059 | 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] | 5060 | ac_save_cxx="$CXX" |
| 5061 | |
| 5062 | if test "$ac_cv_kpthread" = "yes" |
| 5063 | then |
| 5064 | CXX="$CXX -Kpthread" |
| 5065 | ac_cv_cxx_thread=yes |
| 5066 | elif test "$ac_cv_kthread" = "yes" |
| 5067 | then |
| 5068 | CXX="$CXX -Kthread" |
| 5069 | ac_cv_cxx_thread=yes |
| 5070 | elif test "$ac_cv_pthread" = "yes" |
| 5071 | then |
| 5072 | CXX="$CXX -pthread" |
| 5073 | ac_cv_cxx_thread=yes |
| 5074 | fi |
| 5075 | |
| 5076 | if test $ac_cv_cxx_thread = yes |
| 5077 | then |
| 5078 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5079 | $CXX -c conftest.$ac_ext 2>&5 |
| 5080 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5081 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5082 | then |
| 5083 | ac_cv_cxx_thread=yes |
| 5084 | else |
| 5085 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5086 | fi |
| 5087 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5088 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5089 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5090 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 5091 | fi |
| 5092 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5093 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5094 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5095 | # checks for header files |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5096 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5097 | 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] | 5098 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5101 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5102 | /* confdefs.h. */ |
| 5103 | _ACEOF |
| 5104 | cat confdefs.h >>conftest.$ac_ext |
| 5105 | cat >>conftest.$ac_ext <<_ACEOF |
| 5106 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5107 | #include <stdlib.h> |
| 5108 | #include <stdarg.h> |
| 5109 | #include <string.h> |
| 5110 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5111 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5112 | int |
| 5113 | main () |
| 5114 | { |
| 5115 | |
| 5116 | ; |
| 5117 | return 0; |
| 5118 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5119 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5120 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5121 | if { (ac_try="$ac_compile" |
| 5122 | case "(($ac_try" in |
| 5123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5124 | *) ac_try_echo=$ac_try;; |
| 5125 | esac |
| 5126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5127 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5128 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5130 | rm -f conftest.er1 |
| 5131 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5133 | (exit $ac_status); } && { |
| 5134 | test -z "$ac_c_werror_flag" || |
| 5135 | test ! -s conftest.err |
| 5136 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5137 | ac_cv_header_stdc=yes |
| 5138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5139 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5141 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5142 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5143 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5144 | |
| 5145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5146 | |
| 5147 | if test $ac_cv_header_stdc = yes; then |
| 5148 | # 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] | 5149 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5150 | /* confdefs.h. */ |
| 5151 | _ACEOF |
| 5152 | cat confdefs.h >>conftest.$ac_ext |
| 5153 | cat >>conftest.$ac_ext <<_ACEOF |
| 5154 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5155 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5156 | |
| 5157 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5158 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5159 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5160 | : |
| 5161 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5162 | ac_cv_header_stdc=no |
| 5163 | fi |
| 5164 | rm -f conftest* |
| 5165 | |
| 5166 | fi |
| 5167 | |
| 5168 | if test $ac_cv_header_stdc = yes; then |
| 5169 | # 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] | 5170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5171 | /* confdefs.h. */ |
| 5172 | _ACEOF |
| 5173 | cat confdefs.h >>conftest.$ac_ext |
| 5174 | cat >>conftest.$ac_ext <<_ACEOF |
| 5175 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5176 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5177 | |
| 5178 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5179 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5180 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5181 | : |
| 5182 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5183 | ac_cv_header_stdc=no |
| 5184 | fi |
| 5185 | rm -f conftest* |
| 5186 | |
| 5187 | fi |
| 5188 | |
| 5189 | if test $ac_cv_header_stdc = yes; then |
| 5190 | # /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] | 5191 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5192 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5195 | /* confdefs.h. */ |
| 5196 | _ACEOF |
| 5197 | cat confdefs.h >>conftest.$ac_ext |
| 5198 | cat >>conftest.$ac_ext <<_ACEOF |
| 5199 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5200 | #include <ctype.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5201 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5202 | #if ((' ' & 0x0FF) == 0x020) |
| 5203 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5204 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5205 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5206 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5207 | (('a' <= (c) && (c) <= 'i') \ |
| 5208 | || ('j' <= (c) && (c) <= 'r') \ |
| 5209 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5210 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5211 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5213 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5214 | int |
| 5215 | main () |
| 5216 | { |
| 5217 | int i; |
| 5218 | for (i = 0; i < 256; i++) |
| 5219 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5220 | || toupper (i) != TOUPPER (i)) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5221 | return 2; |
| 5222 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5223 | } |
| 5224 | _ACEOF |
| 5225 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5226 | if { (ac_try="$ac_link" |
| 5227 | case "(($ac_try" in |
| 5228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5229 | *) ac_try_echo=$ac_try;; |
| 5230 | esac |
| 5231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5232 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5233 | ac_status=$? |
| 5234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5235 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5236 | { (case "(($ac_try" in |
| 5237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5238 | *) ac_try_echo=$ac_try;; |
| 5239 | esac |
| 5240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5241 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5242 | ac_status=$? |
| 5243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5244 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5245 | : |
| 5246 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5247 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5248 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5251 | ( exit $ac_status ) |
| 5252 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5253 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5254 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5255 | fi |
| 5256 | |
| 5257 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5258 | fi |
| 5259 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5260 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5261 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5262 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5263 | |
| 5264 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5265 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5266 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5267 | |
| 5268 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5269 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5270 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5271 | |
| 5272 | |
| 5273 | |
| 5274 | |
| 5275 | |
| 5276 | |
| 5277 | |
| 5278 | |
| 5279 | |
| 5280 | 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] | 5281 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5282 | do |
| 5283 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5284 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5285 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5286 | 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] | 5287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5288 | else |
| 5289 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5290 | /* confdefs.h. */ |
| 5291 | _ACEOF |
| 5292 | cat confdefs.h >>conftest.$ac_ext |
| 5293 | cat >>conftest.$ac_ext <<_ACEOF |
| 5294 | /* end confdefs.h. */ |
| 5295 | $ac_includes_default |
| 5296 | |
| 5297 | #include <$ac_header> |
| 5298 | _ACEOF |
| 5299 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5300 | if { (ac_try="$ac_compile" |
| 5301 | case "(($ac_try" in |
| 5302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5303 | *) ac_try_echo=$ac_try;; |
| 5304 | esac |
| 5305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5306 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5307 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5309 | rm -f conftest.er1 |
| 5310 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5312 | (exit $ac_status); } && { |
| 5313 | test -z "$ac_c_werror_flag" || |
| 5314 | test ! -s conftest.err |
| 5315 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5316 | eval "$as_ac_Header=yes" |
| 5317 | else |
| 5318 | echo "$as_me: failed program was:" >&5 |
| 5319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5320 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5321 | eval "$as_ac_Header=no" |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5322 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5323 | |
| 5324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5325 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5326 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5327 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5328 | echo "${ECHO_T}$ac_res" >&6; } |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5329 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5330 | cat >>confdefs.h <<_ACEOF |
| 5331 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5332 | _ACEOF |
| 5333 | |
| 5334 | fi |
| 5335 | |
| 5336 | done |
| 5337 | |
| 5338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5339 | |
| 5340 | |
| 5341 | |
| 5342 | |
| 5343 | |
| 5344 | |
| 5345 | |
| 5346 | |
| 5347 | |
| 5348 | |
| 5349 | |
| 5350 | |
| 5351 | |
| 5352 | |
| 5353 | |
| 5354 | |
| 5355 | |
| 5356 | |
| 5357 | |
| 5358 | |
| 5359 | |
| 5360 | |
| 5361 | |
| 5362 | |
| 5363 | |
| 5364 | |
| 5365 | |
| 5366 | |
| 5367 | |
| 5368 | |
| 5369 | |
| 5370 | |
| 5371 | |
| 5372 | |
| 5373 | |
| 5374 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5375 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5376 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5377 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5378 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5379 | |
| 5380 | |
| 5381 | |
| 5382 | |
| 5383 | |
| 5384 | |
| 5385 | |
| 5386 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5387 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5388 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5389 | fcntl.h grp.h \ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5390 | io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
| 5391 | 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] | 5392 | unistd.h utime.h \ |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5393 | sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| 5394 | sys/modem.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5395 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
| 5396 | sys/time.h \ |
| 5397 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 5398 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
| 5399 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5400 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5401 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5402 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5403 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5404 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5405 | 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] | 5406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5407 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5408 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5409 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5410 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5412 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5413 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5414 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5415 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5416 | /* confdefs.h. */ |
| 5417 | _ACEOF |
| 5418 | cat confdefs.h >>conftest.$ac_ext |
| 5419 | cat >>conftest.$ac_ext <<_ACEOF |
| 5420 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5421 | $ac_includes_default |
| 5422 | #include <$ac_header> |
| 5423 | _ACEOF |
| 5424 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5425 | if { (ac_try="$ac_compile" |
| 5426 | case "(($ac_try" in |
| 5427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5428 | *) ac_try_echo=$ac_try;; |
| 5429 | esac |
| 5430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5431 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5432 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5434 | rm -f conftest.er1 |
| 5435 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5437 | (exit $ac_status); } && { |
| 5438 | test -z "$ac_c_werror_flag" || |
| 5439 | test ! -s conftest.err |
| 5440 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5441 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5442 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5443 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5445 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5446 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5447 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5448 | |
| 5449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5450 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5451 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5452 | |
| 5453 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5454 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5455 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5456 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5457 | /* confdefs.h. */ |
| 5458 | _ACEOF |
| 5459 | cat confdefs.h >>conftest.$ac_ext |
| 5460 | cat >>conftest.$ac_ext <<_ACEOF |
| 5461 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5462 | #include <$ac_header> |
| 5463 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5464 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5465 | case "(($ac_try" in |
| 5466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5467 | *) ac_try_echo=$ac_try;; |
| 5468 | esac |
| 5469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5470 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5471 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5472 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5473 | rm -f conftest.er1 |
| 5474 | cat conftest.err >&5 |
| 5475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5476 | (exit $ac_status); } >/dev/null && { |
| 5477 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5478 | test ! -s conftest.err |
| 5479 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5480 | ac_header_preproc=yes |
| 5481 | else |
| 5482 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5485 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5486 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5488 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5489 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5490 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5491 | |
| 5492 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5493 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5494 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5495 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5496 | 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] | 5497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5498 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5499 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5500 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5501 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5502 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5503 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5504 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5505 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5506 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5507 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5508 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5509 | 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] | 5510 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5511 | 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] | 5512 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5513 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5514 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5515 | ## ------------------------------------------------ ## |
| 5516 | ## Report this to http://www.python.org/python-bugs ## |
| 5517 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5518 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5519 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5520 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5521 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5522 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5523 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5524 | 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] | 5525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5526 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5527 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5528 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5529 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5530 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5531 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5532 | |
| 5533 | fi |
| 5534 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5535 | cat >>confdefs.h <<_ACEOF |
| 5536 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5537 | _ACEOF |
| 5538 | |
| 5539 | fi |
| 5540 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5541 | done |
| 5542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5543 | |
| 5544 | |
| 5545 | |
| 5546 | |
| 5547 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5548 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5549 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 5550 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5551 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5552 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 5553 | 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] | 5554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5555 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5556 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5557 | /* confdefs.h. */ |
| 5558 | _ACEOF |
| 5559 | cat confdefs.h >>conftest.$ac_ext |
| 5560 | cat >>conftest.$ac_ext <<_ACEOF |
| 5561 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5562 | #include <sys/types.h> |
| 5563 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5565 | int |
| 5566 | main () |
| 5567 | { |
| 5568 | if ((DIR *) 0) |
| 5569 | return 0; |
| 5570 | ; |
| 5571 | return 0; |
| 5572 | } |
| 5573 | _ACEOF |
| 5574 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5575 | if { (ac_try="$ac_compile" |
| 5576 | case "(($ac_try" in |
| 5577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5578 | *) ac_try_echo=$ac_try;; |
| 5579 | esac |
| 5580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5581 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5582 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5584 | rm -f conftest.er1 |
| 5585 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5587 | (exit $ac_status); } && { |
| 5588 | test -z "$ac_c_werror_flag" || |
| 5589 | test ! -s conftest.err |
| 5590 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5591 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5593 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5595 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5596 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5597 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5598 | |
| 5599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5600 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5601 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5603 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5604 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5605 | cat >>confdefs.h <<_ACEOF |
| 5606 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 5607 | _ACEOF |
| 5608 | |
| 5609 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5610 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5611 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5612 | done |
| 5613 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5614 | if test $ac_header_dirent = dirent.h; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5615 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5616 | 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] | 5617 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5619 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5620 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5621 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5622 | /* confdefs.h. */ |
| 5623 | _ACEOF |
| 5624 | cat confdefs.h >>conftest.$ac_ext |
| 5625 | cat >>conftest.$ac_ext <<_ACEOF |
| 5626 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5627 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5628 | /* Override any GCC internal prototype to avoid an error. |
| 5629 | Use char because int might match the return type of a GCC |
| 5630 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5631 | #ifdef __cplusplus |
| 5632 | extern "C" |
| 5633 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5634 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5635 | int |
| 5636 | main () |
| 5637 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5638 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5639 | ; |
| 5640 | return 0; |
| 5641 | } |
| 5642 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5643 | for ac_lib in '' dir; do |
| 5644 | if test -z "$ac_lib"; then |
| 5645 | ac_res="none required" |
| 5646 | else |
| 5647 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5648 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5649 | fi |
| 5650 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5651 | if { (ac_try="$ac_link" |
| 5652 | case "(($ac_try" in |
| 5653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5654 | *) ac_try_echo=$ac_try;; |
| 5655 | esac |
| 5656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5657 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5658 | ac_status=$? |
| 5659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5660 | rm -f conftest.er1 |
| 5661 | cat conftest.err >&5 |
| 5662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5663 | (exit $ac_status); } && { |
| 5664 | test -z "$ac_c_werror_flag" || |
| 5665 | test ! -s conftest.err |
| 5666 | } && test -s conftest$ac_exeext && |
| 5667 | $as_test_x conftest$ac_exeext; then |
| 5668 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5669 | else |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5670 | echo "$as_me: failed program was:" >&5 |
| 5671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5672 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5673 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5674 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5675 | |
| 5676 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5677 | conftest$ac_exeext |
| 5678 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5679 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5680 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5681 | done |
| 5682 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5683 | : |
| 5684 | else |
| 5685 | ac_cv_search_opendir=no |
| 5686 | fi |
| 5687 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5688 | LIBS=$ac_func_search_save_LIBS |
| 5689 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5690 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5691 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 5692 | ac_res=$ac_cv_search_opendir |
| 5693 | if test "$ac_res" != no; then |
| 5694 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5695 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5696 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5697 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5698 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5699 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5700 | 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] | 5701 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5703 | else |
| 5704 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5705 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5706 | /* confdefs.h. */ |
| 5707 | _ACEOF |
| 5708 | cat confdefs.h >>conftest.$ac_ext |
| 5709 | cat >>conftest.$ac_ext <<_ACEOF |
| 5710 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5711 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5712 | /* Override any GCC internal prototype to avoid an error. |
| 5713 | Use char because int might match the return type of a GCC |
| 5714 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5715 | #ifdef __cplusplus |
| 5716 | extern "C" |
| 5717 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5718 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5719 | int |
| 5720 | main () |
| 5721 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5722 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5723 | ; |
| 5724 | return 0; |
| 5725 | } |
| 5726 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5727 | for ac_lib in '' x; do |
| 5728 | if test -z "$ac_lib"; then |
| 5729 | ac_res="none required" |
| 5730 | else |
| 5731 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5732 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5733 | fi |
| 5734 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5735 | if { (ac_try="$ac_link" |
| 5736 | case "(($ac_try" in |
| 5737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5738 | *) ac_try_echo=$ac_try;; |
| 5739 | esac |
| 5740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5741 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5742 | ac_status=$? |
| 5743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5744 | rm -f conftest.er1 |
| 5745 | cat conftest.err >&5 |
| 5746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5747 | (exit $ac_status); } && { |
| 5748 | test -z "$ac_c_werror_flag" || |
| 5749 | test ! -s conftest.err |
| 5750 | } && test -s conftest$ac_exeext && |
| 5751 | $as_test_x conftest$ac_exeext; then |
| 5752 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5753 | else |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5754 | echo "$as_me: failed program was:" >&5 |
| 5755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5756 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5757 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5758 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5759 | |
| 5760 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5761 | conftest$ac_exeext |
| 5762 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5763 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5764 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5765 | done |
| 5766 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5767 | : |
| 5768 | else |
| 5769 | ac_cv_search_opendir=no |
| 5770 | fi |
| 5771 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5772 | LIBS=$ac_func_search_save_LIBS |
| 5773 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5774 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5775 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 5776 | ac_res=$ac_cv_search_opendir |
| 5777 | if test "$ac_res" != no; then |
| 5778 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5779 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5780 | fi |
| 5781 | |
| 5782 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5783 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5784 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5785 | 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] | 5786 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5788 | else |
| 5789 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5790 | /* confdefs.h. */ |
| 5791 | _ACEOF |
| 5792 | cat confdefs.h >>conftest.$ac_ext |
| 5793 | cat >>conftest.$ac_ext <<_ACEOF |
| 5794 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5795 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5796 | int |
| 5797 | main () |
| 5798 | { |
| 5799 | return makedev(0, 0); |
| 5800 | ; |
| 5801 | return 0; |
| 5802 | } |
| 5803 | _ACEOF |
| 5804 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5805 | if { (ac_try="$ac_link" |
| 5806 | case "(($ac_try" in |
| 5807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5808 | *) ac_try_echo=$ac_try;; |
| 5809 | esac |
| 5810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5811 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5812 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5814 | rm -f conftest.er1 |
| 5815 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5817 | (exit $ac_status); } && { |
| 5818 | test -z "$ac_c_werror_flag" || |
| 5819 | test ! -s conftest.err |
| 5820 | } && test -s conftest$ac_exeext && |
| 5821 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5822 | ac_cv_header_sys_types_h_makedev=yes |
| 5823 | else |
| 5824 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5826 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5827 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5828 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5829 | |
| 5830 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5831 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5832 | |
| 5833 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5834 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5835 | 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] | 5836 | |
| 5837 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5838 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5839 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5840 | 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] | 5841 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5843 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5844 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5845 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5846 | else |
| 5847 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5848 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5849 | 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] | 5850 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5851 | /* confdefs.h. */ |
| 5852 | _ACEOF |
| 5853 | cat confdefs.h >>conftest.$ac_ext |
| 5854 | cat >>conftest.$ac_ext <<_ACEOF |
| 5855 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5856 | $ac_includes_default |
| 5857 | #include <sys/mkdev.h> |
| 5858 | _ACEOF |
| 5859 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5860 | if { (ac_try="$ac_compile" |
| 5861 | case "(($ac_try" in |
| 5862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5863 | *) ac_try_echo=$ac_try;; |
| 5864 | esac |
| 5865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5866 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5867 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5869 | rm -f conftest.er1 |
| 5870 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5872 | (exit $ac_status); } && { |
| 5873 | test -z "$ac_c_werror_flag" || |
| 5874 | test ! -s conftest.err |
| 5875 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5876 | ac_header_compiler=yes |
| 5877 | else |
| 5878 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5880 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5881 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5882 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5883 | |
| 5884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5885 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5886 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5887 | |
| 5888 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5889 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5890 | 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] | 5891 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5892 | /* confdefs.h. */ |
| 5893 | _ACEOF |
| 5894 | cat confdefs.h >>conftest.$ac_ext |
| 5895 | cat >>conftest.$ac_ext <<_ACEOF |
| 5896 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5897 | #include <sys/mkdev.h> |
| 5898 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5899 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5900 | case "(($ac_try" in |
| 5901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5902 | *) ac_try_echo=$ac_try;; |
| 5903 | esac |
| 5904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5905 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5906 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5907 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5908 | rm -f conftest.er1 |
| 5909 | cat conftest.err >&5 |
| 5910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5911 | (exit $ac_status); } >/dev/null && { |
| 5912 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5913 | test ! -s conftest.err |
| 5914 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5915 | ac_header_preproc=yes |
| 5916 | else |
| 5917 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5919 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5920 | ac_header_preproc=no |
| 5921 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5922 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5923 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5924 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5925 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5926 | |
| 5927 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5928 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5929 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5930 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5931 | 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] | 5932 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5933 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5934 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5935 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5936 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5937 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5938 | 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] | 5939 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5940 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5941 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5942 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5943 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5944 | 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] | 5945 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5946 | 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] | 5947 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5948 | echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5949 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5950 | ## ------------------------------------------------ ## |
| 5951 | ## Report this to http://www.python.org/python-bugs ## |
| 5952 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5953 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5954 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5955 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5956 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5957 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5958 | 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] | 5959 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5961 | else |
| 5962 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5963 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5964 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5965 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5966 | |
| 5967 | fi |
| 5968 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5969 | |
| 5970 | cat >>confdefs.h <<\_ACEOF |
| 5971 | #define MAJOR_IN_MKDEV 1 |
| 5972 | _ACEOF |
| 5973 | |
| 5974 | fi |
| 5975 | |
| 5976 | |
| 5977 | |
| 5978 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5979 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5980 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5981 | 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] | 5982 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5984 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5985 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5986 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5987 | else |
| 5988 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5989 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5990 | 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] | 5991 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5992 | /* confdefs.h. */ |
| 5993 | _ACEOF |
| 5994 | cat confdefs.h >>conftest.$ac_ext |
| 5995 | cat >>conftest.$ac_ext <<_ACEOF |
| 5996 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5997 | $ac_includes_default |
| 5998 | #include <sys/sysmacros.h> |
| 5999 | _ACEOF |
| 6000 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6001 | if { (ac_try="$ac_compile" |
| 6002 | case "(($ac_try" in |
| 6003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6004 | *) ac_try_echo=$ac_try;; |
| 6005 | esac |
| 6006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6007 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6008 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6010 | rm -f conftest.er1 |
| 6011 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6013 | (exit $ac_status); } && { |
| 6014 | test -z "$ac_c_werror_flag" || |
| 6015 | test ! -s conftest.err |
| 6016 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6017 | ac_header_compiler=yes |
| 6018 | else |
| 6019 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6021 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6022 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6023 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6024 | |
| 6025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6026 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6027 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6028 | |
| 6029 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6030 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6031 | 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] | 6032 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6033 | /* confdefs.h. */ |
| 6034 | _ACEOF |
| 6035 | cat confdefs.h >>conftest.$ac_ext |
| 6036 | cat >>conftest.$ac_ext <<_ACEOF |
| 6037 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6038 | #include <sys/sysmacros.h> |
| 6039 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6040 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6041 | case "(($ac_try" in |
| 6042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6043 | *) ac_try_echo=$ac_try;; |
| 6044 | esac |
| 6045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6046 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6047 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6048 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6049 | rm -f conftest.er1 |
| 6050 | cat conftest.err >&5 |
| 6051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6052 | (exit $ac_status); } >/dev/null && { |
| 6053 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6054 | test ! -s conftest.err |
| 6055 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6056 | ac_header_preproc=yes |
| 6057 | else |
| 6058 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6060 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6061 | ac_header_preproc=no |
| 6062 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6063 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6064 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6065 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6066 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6067 | |
| 6068 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6070 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6071 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6072 | 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] | 6073 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6074 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 6075 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6076 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6077 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6078 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6079 | 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] | 6080 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6081 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6082 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6083 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6084 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6085 | 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] | 6086 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6087 | 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] | 6088 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6089 | echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6090 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6091 | ## ------------------------------------------------ ## |
| 6092 | ## Report this to http://www.python.org/python-bugs ## |
| 6093 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6094 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6095 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6096 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6097 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6098 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6099 | 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] | 6100 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 6101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6102 | else |
| 6103 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6104 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6105 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6106 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6107 | |
| 6108 | fi |
| 6109 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 6110 | |
| 6111 | cat >>confdefs.h <<\_ACEOF |
| 6112 | #define MAJOR_IN_SYSMACROS 1 |
| 6113 | _ACEOF |
| 6114 | |
| 6115 | fi |
| 6116 | |
| 6117 | |
| 6118 | fi |
| 6119 | fi |
| 6120 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6121 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6122 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6123 | |
| 6124 | for ac_header in term.h |
| 6125 | do |
| 6126 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6127 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6128 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6129 | 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] | 6130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6131 | else |
| 6132 | cat >conftest.$ac_ext <<_ACEOF |
| 6133 | /* confdefs.h. */ |
| 6134 | _ACEOF |
| 6135 | cat confdefs.h >>conftest.$ac_ext |
| 6136 | cat >>conftest.$ac_ext <<_ACEOF |
| 6137 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6138 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6139 | #ifdef HAVE_CURSES_H |
| 6140 | #include <curses.h> |
| 6141 | #endif |
| 6142 | |
| 6143 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6144 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6145 | _ACEOF |
| 6146 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6147 | if { (ac_try="$ac_compile" |
| 6148 | case "(($ac_try" in |
| 6149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6150 | *) ac_try_echo=$ac_try;; |
| 6151 | esac |
| 6152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6153 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6154 | ac_status=$? |
| 6155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6156 | rm -f conftest.er1 |
| 6157 | cat conftest.err >&5 |
| 6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6159 | (exit $ac_status); } && { |
| 6160 | test -z "$ac_c_werror_flag" || |
| 6161 | test ! -s conftest.err |
| 6162 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6163 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6164 | else |
| 6165 | echo "$as_me: failed program was:" >&5 |
| 6166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6167 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6168 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6169 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6170 | |
| 6171 | 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] | 6172 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6173 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6174 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6175 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6176 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6177 | cat >>confdefs.h <<_ACEOF |
| 6178 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6179 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6180 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6181 | fi |
| 6182 | |
| 6183 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6184 | |
| 6185 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6186 | # On Linux, netlink.h requires asm/types.h |
| 6187 | |
| 6188 | for ac_header in linux/netlink.h |
| 6189 | do |
| 6190 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6191 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6192 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6193 | 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] | 6194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6195 | else |
| 6196 | cat >conftest.$ac_ext <<_ACEOF |
| 6197 | /* confdefs.h. */ |
| 6198 | _ACEOF |
| 6199 | cat confdefs.h >>conftest.$ac_ext |
| 6200 | cat >>conftest.$ac_ext <<_ACEOF |
| 6201 | /* end confdefs.h. */ |
| 6202 | |
| 6203 | #ifdef HAVE_ASM_TYPES_H |
| 6204 | #include <asm/types.h> |
| 6205 | #endif |
| 6206 | #ifdef HAVE_SYS_SOCKET_H |
| 6207 | #include <sys/socket.h> |
| 6208 | #endif |
| 6209 | |
| 6210 | |
| 6211 | #include <$ac_header> |
| 6212 | _ACEOF |
| 6213 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6214 | if { (ac_try="$ac_compile" |
| 6215 | case "(($ac_try" in |
| 6216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6217 | *) ac_try_echo=$ac_try;; |
| 6218 | esac |
| 6219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6220 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6221 | ac_status=$? |
| 6222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6223 | rm -f conftest.er1 |
| 6224 | cat conftest.err >&5 |
| 6225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6226 | (exit $ac_status); } && { |
| 6227 | test -z "$ac_c_werror_flag" || |
| 6228 | test ! -s conftest.err |
| 6229 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6230 | eval "$as_ac_Header=yes" |
| 6231 | else |
| 6232 | echo "$as_me: failed program was:" >&5 |
| 6233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6234 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6235 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6236 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6237 | |
| 6238 | 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] | 6239 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6240 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6241 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6242 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6243 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6244 | cat >>confdefs.h <<_ACEOF |
| 6245 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6246 | _ACEOF |
| 6247 | |
| 6248 | fi |
| 6249 | |
| 6250 | done |
| 6251 | |
| 6252 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6253 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6254 | was_it_defined=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6255 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6256 | 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] | 6257 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6258 | /* confdefs.h. */ |
| 6259 | _ACEOF |
| 6260 | cat confdefs.h >>conftest.$ac_ext |
| 6261 | cat >>conftest.$ac_ext <<_ACEOF |
| 6262 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6263 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6264 | |
| 6265 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6266 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6267 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6268 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6269 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6270 | |
| 6271 | |
| 6272 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6273 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6274 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6275 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6276 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6277 | fi |
| 6278 | rm -f conftest* |
| 6279 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6280 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6281 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6282 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6283 | # Check whether using makedev requires defining _OSF_SOURCE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6284 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6285 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6286 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6287 | /* confdefs.h. */ |
| 6288 | _ACEOF |
| 6289 | cat confdefs.h >>conftest.$ac_ext |
| 6290 | cat >>conftest.$ac_ext <<_ACEOF |
| 6291 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6292 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6293 | int |
| 6294 | main () |
| 6295 | { |
| 6296 | makedev(0, 0) |
| 6297 | ; |
| 6298 | return 0; |
| 6299 | } |
| 6300 | _ACEOF |
| 6301 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6302 | if { (ac_try="$ac_link" |
| 6303 | case "(($ac_try" in |
| 6304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6305 | *) ac_try_echo=$ac_try;; |
| 6306 | esac |
| 6307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6308 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6309 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6311 | rm -f conftest.er1 |
| 6312 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6314 | (exit $ac_status); } && { |
| 6315 | test -z "$ac_c_werror_flag" || |
| 6316 | test ! -s conftest.err |
| 6317 | } && test -s conftest$ac_exeext && |
| 6318 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6319 | ac_cv_has_makedev=yes |
| 6320 | else |
| 6321 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6323 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6324 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6325 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6326 | |
| 6327 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6328 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6329 | if test "$ac_cv_has_makedev" = "no"; then |
| 6330 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6331 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6332 | /* confdefs.h. */ |
| 6333 | _ACEOF |
| 6334 | cat confdefs.h >>conftest.$ac_ext |
| 6335 | cat >>conftest.$ac_ext <<_ACEOF |
| 6336 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6337 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6338 | #define _OSF_SOURCE 1 |
| 6339 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6340 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6341 | int |
| 6342 | main () |
| 6343 | { |
| 6344 | makedev(0, 0) |
| 6345 | ; |
| 6346 | return 0; |
| 6347 | } |
| 6348 | _ACEOF |
| 6349 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6350 | if { (ac_try="$ac_link" |
| 6351 | case "(($ac_try" in |
| 6352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6353 | *) ac_try_echo=$ac_try;; |
| 6354 | esac |
| 6355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6356 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6357 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6359 | rm -f conftest.er1 |
| 6360 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6362 | (exit $ac_status); } && { |
| 6363 | test -z "$ac_c_werror_flag" || |
| 6364 | test ! -s conftest.err |
| 6365 | } && test -s conftest$ac_exeext && |
| 6366 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6367 | ac_cv_has_makedev=yes |
| 6368 | else |
| 6369 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6371 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6372 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6373 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6374 | |
| 6375 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6376 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6377 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6378 | |
| 6379 | cat >>confdefs.h <<\_ACEOF |
| 6380 | #define _OSF_SOURCE 1 |
| 6381 | _ACEOF |
| 6382 | |
| 6383 | fi |
| 6384 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6385 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6386 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6387 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6388 | |
| 6389 | cat >>confdefs.h <<\_ACEOF |
| 6390 | #define HAVE_MAKEDEV 1 |
| 6391 | _ACEOF |
| 6392 | |
| 6393 | fi |
| 6394 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6395 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6396 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6397 | # defined, but the compiler does not support pragma redefine_extname, |
| 6398 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6399 | # structures (such as rlimit64) without declaring them. As a |
| 6400 | # work-around, disable LFS on such configurations |
| 6401 | |
| 6402 | use_lfs=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6403 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6404 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6405 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6406 | /* confdefs.h. */ |
| 6407 | _ACEOF |
| 6408 | cat confdefs.h >>conftest.$ac_ext |
| 6409 | cat >>conftest.$ac_ext <<_ACEOF |
| 6410 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6411 | |
| 6412 | #define _LARGEFILE_SOURCE 1 |
| 6413 | #define _FILE_OFFSET_BITS 64 |
| 6414 | #include <sys/resource.h> |
| 6415 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6416 | int |
| 6417 | main () |
| 6418 | { |
| 6419 | struct rlimit foo; |
| 6420 | ; |
| 6421 | return 0; |
| 6422 | } |
| 6423 | _ACEOF |
| 6424 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6425 | if { (ac_try="$ac_compile" |
| 6426 | case "(($ac_try" in |
| 6427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6428 | *) ac_try_echo=$ac_try;; |
| 6429 | esac |
| 6430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6431 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6432 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6434 | rm -f conftest.er1 |
| 6435 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6437 | (exit $ac_status); } && { |
| 6438 | test -z "$ac_c_werror_flag" || |
| 6439 | test ! -s conftest.err |
| 6440 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6441 | sol_lfs_bug=no |
| 6442 | else |
| 6443 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6445 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6446 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6447 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6448 | |
| 6449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6450 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6451 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6452 | if test "$sol_lfs_bug" = "yes"; then |
| 6453 | use_lfs=no |
| 6454 | fi |
| 6455 | |
| 6456 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6457 | # Two defines needed to enable largefile support on various platforms |
| 6458 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6460 | cat >>confdefs.h <<\_ACEOF |
| 6461 | #define _LARGEFILE_SOURCE 1 |
| 6462 | _ACEOF |
| 6463 | |
| 6464 | |
| 6465 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6466 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6467 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6468 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6469 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6470 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6471 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6472 | cat >> confdefs.h <<\EOF |
| 6473 | #if defined(SCO_DS) |
| 6474 | #undef _OFF_T |
| 6475 | #endif |
| 6476 | EOF |
| 6477 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6478 | # Type availability checks |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6479 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6480 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6481 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 6482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6484 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6485 | /* confdefs.h. */ |
| 6486 | _ACEOF |
| 6487 | cat confdefs.h >>conftest.$ac_ext |
| 6488 | cat >>conftest.$ac_ext <<_ACEOF |
| 6489 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6490 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6491 | typedef mode_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6492 | int |
| 6493 | main () |
| 6494 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6495 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6496 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6497 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6498 | return 0; |
| 6499 | ; |
| 6500 | return 0; |
| 6501 | } |
| 6502 | _ACEOF |
| 6503 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6504 | if { (ac_try="$ac_compile" |
| 6505 | case "(($ac_try" in |
| 6506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6507 | *) ac_try_echo=$ac_try;; |
| 6508 | esac |
| 6509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6510 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6511 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6513 | rm -f conftest.er1 |
| 6514 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6516 | (exit $ac_status); } && { |
| 6517 | test -z "$ac_c_werror_flag" || |
| 6518 | test ! -s conftest.err |
| 6519 | } && test -s conftest.$ac_objext; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6520 | ac_cv_type_mode_t=yes |
| 6521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6522 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6524 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6525 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6526 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6527 | |
| 6528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6529 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6530 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6531 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6532 | if test $ac_cv_type_mode_t = yes; then |
| 6533 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6534 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6535 | |
| 6536 | cat >>confdefs.h <<_ACEOF |
| 6537 | #define mode_t int |
| 6538 | _ACEOF |
| 6539 | |
| 6540 | fi |
| 6541 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6542 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6543 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6544 | if test "${ac_cv_type_off_t+set}" = set; then |
| 6545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6546 | else |
| 6547 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6548 | /* confdefs.h. */ |
| 6549 | _ACEOF |
| 6550 | cat confdefs.h >>conftest.$ac_ext |
| 6551 | cat >>conftest.$ac_ext <<_ACEOF |
| 6552 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6553 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6554 | typedef off_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6555 | int |
| 6556 | main () |
| 6557 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6558 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6559 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6560 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6561 | return 0; |
| 6562 | ; |
| 6563 | return 0; |
| 6564 | } |
| 6565 | _ACEOF |
| 6566 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6567 | if { (ac_try="$ac_compile" |
| 6568 | case "(($ac_try" in |
| 6569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6570 | *) ac_try_echo=$ac_try;; |
| 6571 | esac |
| 6572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6573 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6574 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6576 | rm -f conftest.er1 |
| 6577 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6579 | (exit $ac_status); } && { |
| 6580 | test -z "$ac_c_werror_flag" || |
| 6581 | test ! -s conftest.err |
| 6582 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6583 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6584 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6585 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6587 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6588 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6589 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6590 | |
| 6591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6592 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6593 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6594 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6595 | if test $ac_cv_type_off_t = yes; then |
| 6596 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6598 | |
| 6599 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6600 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6601 | _ACEOF |
| 6602 | |
| 6603 | fi |
| 6604 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6605 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6606 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6607 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 6608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6609 | else |
| 6610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6611 | /* confdefs.h. */ |
| 6612 | _ACEOF |
| 6613 | cat confdefs.h >>conftest.$ac_ext |
| 6614 | cat >>conftest.$ac_ext <<_ACEOF |
| 6615 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6616 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6617 | typedef pid_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6618 | int |
| 6619 | main () |
| 6620 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6621 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6622 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6623 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6624 | return 0; |
| 6625 | ; |
| 6626 | return 0; |
| 6627 | } |
| 6628 | _ACEOF |
| 6629 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6630 | if { (ac_try="$ac_compile" |
| 6631 | case "(($ac_try" in |
| 6632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6633 | *) ac_try_echo=$ac_try;; |
| 6634 | esac |
| 6635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6636 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6637 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6639 | rm -f conftest.er1 |
| 6640 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6642 | (exit $ac_status); } && { |
| 6643 | test -z "$ac_c_werror_flag" || |
| 6644 | test ! -s conftest.err |
| 6645 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6646 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6647 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6648 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6650 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6651 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6652 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6653 | |
| 6654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6655 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6656 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6657 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6658 | if test $ac_cv_type_pid_t = yes; then |
| 6659 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6661 | |
| 6662 | cat >>confdefs.h <<_ACEOF |
| 6663 | #define pid_t int |
| 6664 | _ACEOF |
| 6665 | |
| 6666 | fi |
| 6667 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6668 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6669 | 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] | 6670 | if test "${ac_cv_type_signal+set}" = set; then |
| 6671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6672 | else |
| 6673 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6674 | /* confdefs.h. */ |
| 6675 | _ACEOF |
| 6676 | cat confdefs.h >>conftest.$ac_ext |
| 6677 | cat >>conftest.$ac_ext <<_ACEOF |
| 6678 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6679 | #include <sys/types.h> |
| 6680 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6682 | int |
| 6683 | main () |
| 6684 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6685 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6686 | ; |
| 6687 | return 0; |
| 6688 | } |
| 6689 | _ACEOF |
| 6690 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6691 | if { (ac_try="$ac_compile" |
| 6692 | case "(($ac_try" in |
| 6693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6694 | *) ac_try_echo=$ac_try;; |
| 6695 | esac |
| 6696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6697 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6698 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6700 | rm -f conftest.er1 |
| 6701 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6703 | (exit $ac_status); } && { |
| 6704 | test -z "$ac_c_werror_flag" || |
| 6705 | test ! -s conftest.err |
| 6706 | } && test -s conftest.$ac_objext; then |
| 6707 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6711 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6712 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6713 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6714 | |
| 6715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6716 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6717 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6718 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6720 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6721 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6722 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6723 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6724 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6725 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6726 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6727 | if test "${ac_cv_type_size_t+set}" = set; then |
| 6728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6730 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6731 | /* confdefs.h. */ |
| 6732 | _ACEOF |
| 6733 | cat confdefs.h >>conftest.$ac_ext |
| 6734 | cat >>conftest.$ac_ext <<_ACEOF |
| 6735 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6736 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6737 | typedef size_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6738 | int |
| 6739 | main () |
| 6740 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6741 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6742 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6743 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6744 | return 0; |
| 6745 | ; |
| 6746 | return 0; |
| 6747 | } |
| 6748 | _ACEOF |
| 6749 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6750 | if { (ac_try="$ac_compile" |
| 6751 | case "(($ac_try" in |
| 6752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6753 | *) ac_try_echo=$ac_try;; |
| 6754 | esac |
| 6755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6756 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6759 | rm -f conftest.er1 |
| 6760 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6762 | (exit $ac_status); } && { |
| 6763 | test -z "$ac_c_werror_flag" || |
| 6764 | test ! -s conftest.err |
| 6765 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6766 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6768 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6770 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6771 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6772 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6773 | |
| 6774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6775 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6776 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6777 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6778 | if test $ac_cv_type_size_t = yes; then |
| 6779 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6780 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6781 | |
| 6782 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6783 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6784 | _ACEOF |
| 6785 | |
| 6786 | fi |
| 6787 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6788 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6789 | 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] | 6790 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6792 | else |
| 6793 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6794 | /* confdefs.h. */ |
| 6795 | _ACEOF |
| 6796 | cat confdefs.h >>conftest.$ac_ext |
| 6797 | cat >>conftest.$ac_ext <<_ACEOF |
| 6798 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6799 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6800 | |
| 6801 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6802 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6803 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6804 | ac_cv_type_uid_t=yes |
| 6805 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6806 | ac_cv_type_uid_t=no |
| 6807 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6808 | rm -f conftest* |
| 6809 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6810 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6811 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6812 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6813 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6815 | cat >>confdefs.h <<\_ACEOF |
| 6816 | #define uid_t int |
| 6817 | _ACEOF |
| 6818 | |
| 6819 | |
| 6820 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6821 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6822 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6823 | |
| 6824 | fi |
| 6825 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6826 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 6827 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6828 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 6829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6830 | else |
| 6831 | cat >conftest.$ac_ext <<_ACEOF |
| 6832 | /* confdefs.h. */ |
| 6833 | _ACEOF |
| 6834 | cat confdefs.h >>conftest.$ac_ext |
| 6835 | cat >>conftest.$ac_ext <<_ACEOF |
| 6836 | /* end confdefs.h. */ |
| 6837 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6838 | typedef ssize_t ac__type_new_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6839 | int |
| 6840 | main () |
| 6841 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6842 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6843 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6844 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6845 | return 0; |
| 6846 | ; |
| 6847 | return 0; |
| 6848 | } |
| 6849 | _ACEOF |
| 6850 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6851 | if { (ac_try="$ac_compile" |
| 6852 | case "(($ac_try" in |
| 6853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6854 | *) ac_try_echo=$ac_try;; |
| 6855 | esac |
| 6856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6857 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6858 | ac_status=$? |
| 6859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6860 | rm -f conftest.er1 |
| 6861 | cat conftest.err >&5 |
| 6862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6863 | (exit $ac_status); } && { |
| 6864 | test -z "$ac_c_werror_flag" || |
| 6865 | test ! -s conftest.err |
| 6866 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6867 | ac_cv_type_ssize_t=yes |
| 6868 | else |
| 6869 | echo "$as_me: failed program was:" >&5 |
| 6870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6871 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6872 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6873 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6874 | |
| 6875 | 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] | 6876 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6877 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 6878 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6879 | if test $ac_cv_type_ssize_t = yes; then |
| 6880 | |
| 6881 | cat >>confdefs.h <<\_ACEOF |
| 6882 | #define HAVE_SSIZE_T 1 |
| 6883 | _ACEOF |
| 6884 | |
| 6885 | fi |
| 6886 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6887 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6888 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6889 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6890 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 6891 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6892 | if test "${ac_cv_type_int+set}" = set; then |
| 6893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6894 | else |
| 6895 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6896 | /* confdefs.h. */ |
| 6897 | _ACEOF |
| 6898 | cat confdefs.h >>conftest.$ac_ext |
| 6899 | cat >>conftest.$ac_ext <<_ACEOF |
| 6900 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6901 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6902 | typedef int ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6903 | int |
| 6904 | main () |
| 6905 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6906 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6907 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6908 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6909 | return 0; |
| 6910 | ; |
| 6911 | return 0; |
| 6912 | } |
| 6913 | _ACEOF |
| 6914 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6915 | if { (ac_try="$ac_compile" |
| 6916 | case "(($ac_try" in |
| 6917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6918 | *) ac_try_echo=$ac_try;; |
| 6919 | esac |
| 6920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6921 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6922 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6924 | rm -f conftest.er1 |
| 6925 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6927 | (exit $ac_status); } && { |
| 6928 | test -z "$ac_c_werror_flag" || |
| 6929 | test ! -s conftest.err |
| 6930 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6931 | ac_cv_type_int=yes |
| 6932 | else |
| 6933 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6935 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6936 | ac_cv_type_int=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6937 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6938 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6940 | fi |
| 6941 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6942 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 6943 | |
| 6944 | # The cast to long int works around a bug in the HP C Compiler |
| 6945 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6946 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6947 | # This bug is HP SR number 8606223364. |
| 6948 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 6949 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6950 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6953 | if test "$cross_compiling" = yes; then |
| 6954 | # Depending upon the size, compute the lo and hi bounds. |
| 6955 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6956 | /* confdefs.h. */ |
| 6957 | _ACEOF |
| 6958 | cat confdefs.h >>conftest.$ac_ext |
| 6959 | cat >>conftest.$ac_ext <<_ACEOF |
| 6960 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6961 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6962 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6963 | int |
| 6964 | main () |
| 6965 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6966 | 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] | 6967 | test_array [0] = 0 |
| 6968 | |
| 6969 | ; |
| 6970 | return 0; |
| 6971 | } |
| 6972 | _ACEOF |
| 6973 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6974 | if { (ac_try="$ac_compile" |
| 6975 | case "(($ac_try" in |
| 6976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6977 | *) ac_try_echo=$ac_try;; |
| 6978 | esac |
| 6979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6980 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6981 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6983 | rm -f conftest.er1 |
| 6984 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6986 | (exit $ac_status); } && { |
| 6987 | test -z "$ac_c_werror_flag" || |
| 6988 | test ! -s conftest.err |
| 6989 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6990 | ac_lo=0 ac_mid=0 |
| 6991 | while :; do |
| 6992 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6993 | /* confdefs.h. */ |
| 6994 | _ACEOF |
| 6995 | cat confdefs.h >>conftest.$ac_ext |
| 6996 | cat >>conftest.$ac_ext <<_ACEOF |
| 6997 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6998 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6999 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7000 | int |
| 7001 | main () |
| 7002 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7003 | 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] | 7004 | test_array [0] = 0 |
| 7005 | |
| 7006 | ; |
| 7007 | return 0; |
| 7008 | } |
| 7009 | _ACEOF |
| 7010 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7011 | if { (ac_try="$ac_compile" |
| 7012 | case "(($ac_try" in |
| 7013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7014 | *) ac_try_echo=$ac_try;; |
| 7015 | esac |
| 7016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7017 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7018 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7020 | rm -f conftest.er1 |
| 7021 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7023 | (exit $ac_status); } && { |
| 7024 | test -z "$ac_c_werror_flag" || |
| 7025 | test ! -s conftest.err |
| 7026 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7027 | ac_hi=$ac_mid; break |
| 7028 | else |
| 7029 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7031 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7032 | ac_lo=`expr $ac_mid + 1` |
| 7033 | if test $ac_lo -le $ac_mid; then |
| 7034 | ac_lo= ac_hi= |
| 7035 | break |
| 7036 | fi |
| 7037 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7038 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7039 | |
| 7040 | 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] | 7041 | done |
| 7042 | else |
| 7043 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7045 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7046 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7047 | /* confdefs.h. */ |
| 7048 | _ACEOF |
| 7049 | cat confdefs.h >>conftest.$ac_ext |
| 7050 | cat >>conftest.$ac_ext <<_ACEOF |
| 7051 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7052 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7053 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7054 | int |
| 7055 | main () |
| 7056 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7057 | 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] | 7058 | test_array [0] = 0 |
| 7059 | |
| 7060 | ; |
| 7061 | return 0; |
| 7062 | } |
| 7063 | _ACEOF |
| 7064 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7065 | if { (ac_try="$ac_compile" |
| 7066 | case "(($ac_try" in |
| 7067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7068 | *) ac_try_echo=$ac_try;; |
| 7069 | esac |
| 7070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7071 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7072 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7074 | rm -f conftest.er1 |
| 7075 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7077 | (exit $ac_status); } && { |
| 7078 | test -z "$ac_c_werror_flag" || |
| 7079 | test ! -s conftest.err |
| 7080 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7081 | ac_hi=-1 ac_mid=-1 |
| 7082 | while :; do |
| 7083 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7084 | /* confdefs.h. */ |
| 7085 | _ACEOF |
| 7086 | cat confdefs.h >>conftest.$ac_ext |
| 7087 | cat >>conftest.$ac_ext <<_ACEOF |
| 7088 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7089 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7090 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7091 | int |
| 7092 | main () |
| 7093 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7094 | 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] | 7095 | test_array [0] = 0 |
| 7096 | |
| 7097 | ; |
| 7098 | return 0; |
| 7099 | } |
| 7100 | _ACEOF |
| 7101 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7102 | if { (ac_try="$ac_compile" |
| 7103 | case "(($ac_try" in |
| 7104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7105 | *) ac_try_echo=$ac_try;; |
| 7106 | esac |
| 7107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7108 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7109 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7111 | rm -f conftest.er1 |
| 7112 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7114 | (exit $ac_status); } && { |
| 7115 | test -z "$ac_c_werror_flag" || |
| 7116 | test ! -s conftest.err |
| 7117 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7118 | ac_lo=$ac_mid; break |
| 7119 | else |
| 7120 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7122 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7123 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7124 | if test $ac_mid -le $ac_hi; then |
| 7125 | ac_lo= ac_hi= |
| 7126 | break |
| 7127 | fi |
| 7128 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7129 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7130 | |
| 7131 | 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] | 7132 | done |
| 7133 | else |
| 7134 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7136 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7137 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7138 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7139 | |
| 7140 | 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] | 7141 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7142 | |
| 7143 | 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] | 7144 | # Binary search between lo and hi bounds. |
| 7145 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7146 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7147 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7148 | /* confdefs.h. */ |
| 7149 | _ACEOF |
| 7150 | cat confdefs.h >>conftest.$ac_ext |
| 7151 | cat >>conftest.$ac_ext <<_ACEOF |
| 7152 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7153 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7154 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7155 | int |
| 7156 | main () |
| 7157 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7158 | 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] | 7159 | test_array [0] = 0 |
| 7160 | |
| 7161 | ; |
| 7162 | return 0; |
| 7163 | } |
| 7164 | _ACEOF |
| 7165 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7166 | if { (ac_try="$ac_compile" |
| 7167 | case "(($ac_try" in |
| 7168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7169 | *) ac_try_echo=$ac_try;; |
| 7170 | esac |
| 7171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7172 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7173 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7175 | rm -f conftest.er1 |
| 7176 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7178 | (exit $ac_status); } && { |
| 7179 | test -z "$ac_c_werror_flag" || |
| 7180 | test ! -s conftest.err |
| 7181 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7182 | ac_hi=$ac_mid |
| 7183 | else |
| 7184 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7186 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7187 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7188 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7189 | |
| 7190 | 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] | 7191 | done |
| 7192 | case $ac_lo in |
| 7193 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7194 | '') if test "$ac_cv_type_int" = yes; then |
| 7195 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7196 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7197 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7198 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7199 | { (exit 77); exit 77; }; } |
| 7200 | else |
| 7201 | ac_cv_sizeof_int=0 |
| 7202 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7203 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7204 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7205 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7206 | /* confdefs.h. */ |
| 7207 | _ACEOF |
| 7208 | cat confdefs.h >>conftest.$ac_ext |
| 7209 | cat >>conftest.$ac_ext <<_ACEOF |
| 7210 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7211 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7212 | typedef int ac__type_sizeof_; |
| 7213 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7214 | 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] | 7215 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7216 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7217 | int |
| 7218 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7219 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7220 | |
| 7221 | FILE *f = fopen ("conftest.val", "w"); |
| 7222 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7223 | return 1; |
| 7224 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7225 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7226 | long int i = longval (); |
| 7227 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7228 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7229 | fprintf (f, "%ld\n", i); |
| 7230 | } |
| 7231 | else |
| 7232 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7233 | unsigned long int i = ulongval (); |
| 7234 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7235 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7236 | fprintf (f, "%lu\n", i); |
| 7237 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7238 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7239 | |
| 7240 | ; |
| 7241 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7242 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7243 | _ACEOF |
| 7244 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7245 | if { (ac_try="$ac_link" |
| 7246 | case "(($ac_try" in |
| 7247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7248 | *) ac_try_echo=$ac_try;; |
| 7249 | esac |
| 7250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7251 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7252 | ac_status=$? |
| 7253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7254 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7255 | { (case "(($ac_try" in |
| 7256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7257 | *) ac_try_echo=$ac_try;; |
| 7258 | esac |
| 7259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7260 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7261 | ac_status=$? |
| 7262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7263 | (exit $ac_status); }; }; then |
| 7264 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7266 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7267 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7270 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7271 | if test "$ac_cv_type_int" = yes; then |
| 7272 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7273 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7274 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7275 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7276 | { (exit 77); exit 77; }; } |
| 7277 | else |
| 7278 | ac_cv_sizeof_int=0 |
| 7279 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7280 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7281 | 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] | 7282 | fi |
| 7283 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7284 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7285 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7286 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
| 7287 | |
| 7288 | |
| 7289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7290 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7291 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7292 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7293 | |
| 7294 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7295 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7296 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7297 | if test "${ac_cv_type_long+set}" = set; then |
| 7298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7299 | else |
| 7300 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7301 | /* confdefs.h. */ |
| 7302 | _ACEOF |
| 7303 | cat confdefs.h >>conftest.$ac_ext |
| 7304 | cat >>conftest.$ac_ext <<_ACEOF |
| 7305 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7306 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7307 | typedef long ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7308 | int |
| 7309 | main () |
| 7310 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7311 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7312 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7313 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7314 | return 0; |
| 7315 | ; |
| 7316 | return 0; |
| 7317 | } |
| 7318 | _ACEOF |
| 7319 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7320 | if { (ac_try="$ac_compile" |
| 7321 | case "(($ac_try" in |
| 7322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7323 | *) ac_try_echo=$ac_try;; |
| 7324 | esac |
| 7325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7326 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7327 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7329 | rm -f conftest.er1 |
| 7330 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7332 | (exit $ac_status); } && { |
| 7333 | test -z "$ac_c_werror_flag" || |
| 7334 | test ! -s conftest.err |
| 7335 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7336 | ac_cv_type_long=yes |
| 7337 | else |
| 7338 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7340 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7341 | ac_cv_type_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7342 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7343 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7345 | fi |
| 7346 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7347 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 7348 | |
| 7349 | # The cast to long int works around a bug in the HP C Compiler |
| 7350 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7351 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7352 | # This bug is HP SR number 8606223364. |
| 7353 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 7354 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7355 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 7356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7357 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7358 | if test "$cross_compiling" = yes; then |
| 7359 | # Depending upon the size, compute the lo and hi bounds. |
| 7360 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7361 | /* confdefs.h. */ |
| 7362 | _ACEOF |
| 7363 | cat confdefs.h >>conftest.$ac_ext |
| 7364 | cat >>conftest.$ac_ext <<_ACEOF |
| 7365 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7366 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7367 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7368 | int |
| 7369 | main () |
| 7370 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7371 | 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] | 7372 | test_array [0] = 0 |
| 7373 | |
| 7374 | ; |
| 7375 | return 0; |
| 7376 | } |
| 7377 | _ACEOF |
| 7378 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7379 | if { (ac_try="$ac_compile" |
| 7380 | case "(($ac_try" in |
| 7381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7382 | *) ac_try_echo=$ac_try;; |
| 7383 | esac |
| 7384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7385 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7386 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7388 | rm -f conftest.er1 |
| 7389 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7391 | (exit $ac_status); } && { |
| 7392 | test -z "$ac_c_werror_flag" || |
| 7393 | test ! -s conftest.err |
| 7394 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7395 | ac_lo=0 ac_mid=0 |
| 7396 | while :; do |
| 7397 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7398 | /* confdefs.h. */ |
| 7399 | _ACEOF |
| 7400 | cat confdefs.h >>conftest.$ac_ext |
| 7401 | cat >>conftest.$ac_ext <<_ACEOF |
| 7402 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7403 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7404 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7405 | int |
| 7406 | main () |
| 7407 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7408 | 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] | 7409 | test_array [0] = 0 |
| 7410 | |
| 7411 | ; |
| 7412 | return 0; |
| 7413 | } |
| 7414 | _ACEOF |
| 7415 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7416 | if { (ac_try="$ac_compile" |
| 7417 | case "(($ac_try" in |
| 7418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7419 | *) ac_try_echo=$ac_try;; |
| 7420 | esac |
| 7421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7422 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7423 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7425 | rm -f conftest.er1 |
| 7426 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7428 | (exit $ac_status); } && { |
| 7429 | test -z "$ac_c_werror_flag" || |
| 7430 | test ! -s conftest.err |
| 7431 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7432 | ac_hi=$ac_mid; break |
| 7433 | else |
| 7434 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7436 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7437 | ac_lo=`expr $ac_mid + 1` |
| 7438 | if test $ac_lo -le $ac_mid; then |
| 7439 | ac_lo= ac_hi= |
| 7440 | break |
| 7441 | fi |
| 7442 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7443 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7444 | |
| 7445 | 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] | 7446 | done |
| 7447 | else |
| 7448 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7450 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7451 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7452 | /* confdefs.h. */ |
| 7453 | _ACEOF |
| 7454 | cat confdefs.h >>conftest.$ac_ext |
| 7455 | cat >>conftest.$ac_ext <<_ACEOF |
| 7456 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7457 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7458 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7459 | int |
| 7460 | main () |
| 7461 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7462 | 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] | 7463 | test_array [0] = 0 |
| 7464 | |
| 7465 | ; |
| 7466 | return 0; |
| 7467 | } |
| 7468 | _ACEOF |
| 7469 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7470 | if { (ac_try="$ac_compile" |
| 7471 | case "(($ac_try" in |
| 7472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7473 | *) ac_try_echo=$ac_try;; |
| 7474 | esac |
| 7475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7476 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7477 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7479 | rm -f conftest.er1 |
| 7480 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7482 | (exit $ac_status); } && { |
| 7483 | test -z "$ac_c_werror_flag" || |
| 7484 | test ! -s conftest.err |
| 7485 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7486 | ac_hi=-1 ac_mid=-1 |
| 7487 | while :; do |
| 7488 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7489 | /* confdefs.h. */ |
| 7490 | _ACEOF |
| 7491 | cat confdefs.h >>conftest.$ac_ext |
| 7492 | cat >>conftest.$ac_ext <<_ACEOF |
| 7493 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7494 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7495 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7496 | int |
| 7497 | main () |
| 7498 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7499 | 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] | 7500 | test_array [0] = 0 |
| 7501 | |
| 7502 | ; |
| 7503 | return 0; |
| 7504 | } |
| 7505 | _ACEOF |
| 7506 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7507 | if { (ac_try="$ac_compile" |
| 7508 | case "(($ac_try" in |
| 7509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7510 | *) ac_try_echo=$ac_try;; |
| 7511 | esac |
| 7512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7513 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7514 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7516 | rm -f conftest.er1 |
| 7517 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7519 | (exit $ac_status); } && { |
| 7520 | test -z "$ac_c_werror_flag" || |
| 7521 | test ! -s conftest.err |
| 7522 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7523 | ac_lo=$ac_mid; break |
| 7524 | else |
| 7525 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7527 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7528 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7529 | if test $ac_mid -le $ac_hi; then |
| 7530 | ac_lo= ac_hi= |
| 7531 | break |
| 7532 | fi |
| 7533 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7534 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7535 | |
| 7536 | 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] | 7537 | done |
| 7538 | else |
| 7539 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7541 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7542 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7543 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7544 | |
| 7545 | 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] | 7546 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7547 | |
| 7548 | 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] | 7549 | # Binary search between lo and hi bounds. |
| 7550 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7551 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7552 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7553 | /* confdefs.h. */ |
| 7554 | _ACEOF |
| 7555 | cat confdefs.h >>conftest.$ac_ext |
| 7556 | cat >>conftest.$ac_ext <<_ACEOF |
| 7557 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7558 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7559 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7560 | int |
| 7561 | main () |
| 7562 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7563 | 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] | 7564 | test_array [0] = 0 |
| 7565 | |
| 7566 | ; |
| 7567 | return 0; |
| 7568 | } |
| 7569 | _ACEOF |
| 7570 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7571 | if { (ac_try="$ac_compile" |
| 7572 | case "(($ac_try" in |
| 7573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7574 | *) ac_try_echo=$ac_try;; |
| 7575 | esac |
| 7576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7577 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7578 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7580 | rm -f conftest.er1 |
| 7581 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7583 | (exit $ac_status); } && { |
| 7584 | test -z "$ac_c_werror_flag" || |
| 7585 | test ! -s conftest.err |
| 7586 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7587 | ac_hi=$ac_mid |
| 7588 | else |
| 7589 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7591 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7592 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7593 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7594 | |
| 7595 | 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] | 7596 | done |
| 7597 | case $ac_lo in |
| 7598 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7599 | '') if test "$ac_cv_type_long" = yes; then |
| 7600 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7601 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7602 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7603 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7604 | { (exit 77); exit 77; }; } |
| 7605 | else |
| 7606 | ac_cv_sizeof_long=0 |
| 7607 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7608 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7611 | /* confdefs.h. */ |
| 7612 | _ACEOF |
| 7613 | cat confdefs.h >>conftest.$ac_ext |
| 7614 | cat >>conftest.$ac_ext <<_ACEOF |
| 7615 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7616 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7617 | typedef long ac__type_sizeof_; |
| 7618 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7619 | 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] | 7620 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7621 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7622 | int |
| 7623 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7624 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7625 | |
| 7626 | FILE *f = fopen ("conftest.val", "w"); |
| 7627 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7628 | return 1; |
| 7629 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7630 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7631 | long int i = longval (); |
| 7632 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7633 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7634 | fprintf (f, "%ld\n", i); |
| 7635 | } |
| 7636 | else |
| 7637 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7638 | unsigned long int i = ulongval (); |
| 7639 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7640 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7641 | fprintf (f, "%lu\n", i); |
| 7642 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7643 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7644 | |
| 7645 | ; |
| 7646 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7647 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7648 | _ACEOF |
| 7649 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7650 | if { (ac_try="$ac_link" |
| 7651 | case "(($ac_try" in |
| 7652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7653 | *) ac_try_echo=$ac_try;; |
| 7654 | esac |
| 7655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7656 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7657 | ac_status=$? |
| 7658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7659 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7660 | { (case "(($ac_try" in |
| 7661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7662 | *) ac_try_echo=$ac_try;; |
| 7663 | esac |
| 7664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7665 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7666 | ac_status=$? |
| 7667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7668 | (exit $ac_status); }; }; then |
| 7669 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7671 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7672 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7674 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7675 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7676 | if test "$ac_cv_type_long" = yes; then |
| 7677 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7678 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7679 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7680 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7681 | { (exit 77); exit 77; }; } |
| 7682 | else |
| 7683 | ac_cv_sizeof_long=0 |
| 7684 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7685 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7686 | 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] | 7687 | fi |
| 7688 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7689 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7690 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 7691 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
| 7692 | |
| 7693 | |
| 7694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7695 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7696 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7697 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7698 | |
| 7699 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7700 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 7701 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7702 | if test "${ac_cv_type_void_p+set}" = set; then |
| 7703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7704 | else |
| 7705 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7706 | /* confdefs.h. */ |
| 7707 | _ACEOF |
| 7708 | cat confdefs.h >>conftest.$ac_ext |
| 7709 | cat >>conftest.$ac_ext <<_ACEOF |
| 7710 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7712 | typedef void * ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7713 | int |
| 7714 | main () |
| 7715 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7716 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7717 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7718 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7719 | return 0; |
| 7720 | ; |
| 7721 | return 0; |
| 7722 | } |
| 7723 | _ACEOF |
| 7724 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7725 | if { (ac_try="$ac_compile" |
| 7726 | case "(($ac_try" in |
| 7727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7728 | *) ac_try_echo=$ac_try;; |
| 7729 | esac |
| 7730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7731 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7732 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7734 | rm -f conftest.er1 |
| 7735 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7737 | (exit $ac_status); } && { |
| 7738 | test -z "$ac_c_werror_flag" || |
| 7739 | test ! -s conftest.err |
| 7740 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7741 | ac_cv_type_void_p=yes |
| 7742 | else |
| 7743 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7745 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7746 | ac_cv_type_void_p=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7747 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7748 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7750 | fi |
| 7751 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 7752 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 7753 | |
| 7754 | # The cast to long int works around a bug in the HP C Compiler |
| 7755 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7756 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7757 | # This bug is HP SR number 8606223364. |
| 7758 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 7759 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7760 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 7761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7763 | if test "$cross_compiling" = yes; then |
| 7764 | # Depending upon the size, compute the lo and hi bounds. |
| 7765 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7766 | /* confdefs.h. */ |
| 7767 | _ACEOF |
| 7768 | cat confdefs.h >>conftest.$ac_ext |
| 7769 | cat >>conftest.$ac_ext <<_ACEOF |
| 7770 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7771 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7772 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7773 | int |
| 7774 | main () |
| 7775 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7776 | 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] | 7777 | test_array [0] = 0 |
| 7778 | |
| 7779 | ; |
| 7780 | return 0; |
| 7781 | } |
| 7782 | _ACEOF |
| 7783 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7784 | if { (ac_try="$ac_compile" |
| 7785 | case "(($ac_try" in |
| 7786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7787 | *) ac_try_echo=$ac_try;; |
| 7788 | esac |
| 7789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7790 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7791 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7793 | rm -f conftest.er1 |
| 7794 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7796 | (exit $ac_status); } && { |
| 7797 | test -z "$ac_c_werror_flag" || |
| 7798 | test ! -s conftest.err |
| 7799 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7800 | ac_lo=0 ac_mid=0 |
| 7801 | while :; do |
| 7802 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7803 | /* confdefs.h. */ |
| 7804 | _ACEOF |
| 7805 | cat confdefs.h >>conftest.$ac_ext |
| 7806 | cat >>conftest.$ac_ext <<_ACEOF |
| 7807 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7808 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7809 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7810 | int |
| 7811 | main () |
| 7812 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7813 | 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] | 7814 | test_array [0] = 0 |
| 7815 | |
| 7816 | ; |
| 7817 | return 0; |
| 7818 | } |
| 7819 | _ACEOF |
| 7820 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7821 | if { (ac_try="$ac_compile" |
| 7822 | case "(($ac_try" in |
| 7823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7824 | *) ac_try_echo=$ac_try;; |
| 7825 | esac |
| 7826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7827 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7828 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7830 | rm -f conftest.er1 |
| 7831 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7833 | (exit $ac_status); } && { |
| 7834 | test -z "$ac_c_werror_flag" || |
| 7835 | test ! -s conftest.err |
| 7836 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7837 | ac_hi=$ac_mid; break |
| 7838 | else |
| 7839 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7841 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7842 | ac_lo=`expr $ac_mid + 1` |
| 7843 | if test $ac_lo -le $ac_mid; then |
| 7844 | ac_lo= ac_hi= |
| 7845 | break |
| 7846 | fi |
| 7847 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7848 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7849 | |
| 7850 | 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] | 7851 | done |
| 7852 | else |
| 7853 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7855 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7856 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7857 | /* confdefs.h. */ |
| 7858 | _ACEOF |
| 7859 | cat confdefs.h >>conftest.$ac_ext |
| 7860 | cat >>conftest.$ac_ext <<_ACEOF |
| 7861 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7862 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7863 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7864 | int |
| 7865 | main () |
| 7866 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7867 | 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] | 7868 | test_array [0] = 0 |
| 7869 | |
| 7870 | ; |
| 7871 | return 0; |
| 7872 | } |
| 7873 | _ACEOF |
| 7874 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7875 | if { (ac_try="$ac_compile" |
| 7876 | case "(($ac_try" in |
| 7877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7878 | *) ac_try_echo=$ac_try;; |
| 7879 | esac |
| 7880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7881 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7884 | rm -f conftest.er1 |
| 7885 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7887 | (exit $ac_status); } && { |
| 7888 | test -z "$ac_c_werror_flag" || |
| 7889 | test ! -s conftest.err |
| 7890 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7891 | ac_hi=-1 ac_mid=-1 |
| 7892 | while :; do |
| 7893 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7894 | /* confdefs.h. */ |
| 7895 | _ACEOF |
| 7896 | cat confdefs.h >>conftest.$ac_ext |
| 7897 | cat >>conftest.$ac_ext <<_ACEOF |
| 7898 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7899 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7900 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7901 | int |
| 7902 | main () |
| 7903 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7904 | 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] | 7905 | test_array [0] = 0 |
| 7906 | |
| 7907 | ; |
| 7908 | return 0; |
| 7909 | } |
| 7910 | _ACEOF |
| 7911 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7912 | if { (ac_try="$ac_compile" |
| 7913 | case "(($ac_try" in |
| 7914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7915 | *) ac_try_echo=$ac_try;; |
| 7916 | esac |
| 7917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7918 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7919 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7921 | rm -f conftest.er1 |
| 7922 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7924 | (exit $ac_status); } && { |
| 7925 | test -z "$ac_c_werror_flag" || |
| 7926 | test ! -s conftest.err |
| 7927 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7928 | ac_lo=$ac_mid; break |
| 7929 | else |
| 7930 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7932 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7933 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7934 | if test $ac_mid -le $ac_hi; then |
| 7935 | ac_lo= ac_hi= |
| 7936 | break |
| 7937 | fi |
| 7938 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7939 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7940 | |
| 7941 | 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] | 7942 | done |
| 7943 | else |
| 7944 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7946 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7947 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7948 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7949 | |
| 7950 | 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] | 7951 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7952 | |
| 7953 | 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] | 7954 | # Binary search between lo and hi bounds. |
| 7955 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7956 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7957 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7958 | /* confdefs.h. */ |
| 7959 | _ACEOF |
| 7960 | cat confdefs.h >>conftest.$ac_ext |
| 7961 | cat >>conftest.$ac_ext <<_ACEOF |
| 7962 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7963 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7964 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7965 | int |
| 7966 | main () |
| 7967 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7968 | 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] | 7969 | test_array [0] = 0 |
| 7970 | |
| 7971 | ; |
| 7972 | return 0; |
| 7973 | } |
| 7974 | _ACEOF |
| 7975 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7976 | if { (ac_try="$ac_compile" |
| 7977 | case "(($ac_try" in |
| 7978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7979 | *) ac_try_echo=$ac_try;; |
| 7980 | esac |
| 7981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7982 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7983 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7985 | rm -f conftest.er1 |
| 7986 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7988 | (exit $ac_status); } && { |
| 7989 | test -z "$ac_c_werror_flag" || |
| 7990 | test ! -s conftest.err |
| 7991 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7992 | ac_hi=$ac_mid |
| 7993 | else |
| 7994 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7996 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7997 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7998 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7999 | |
| 8000 | 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] | 8001 | done |
| 8002 | case $ac_lo in |
| 8003 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8004 | '') if test "$ac_cv_type_void_p" = yes; then |
| 8005 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8006 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8007 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8008 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8009 | { (exit 77); exit 77; }; } |
| 8010 | else |
| 8011 | ac_cv_sizeof_void_p=0 |
| 8012 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8013 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8014 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8015 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8016 | /* confdefs.h. */ |
| 8017 | _ACEOF |
| 8018 | cat confdefs.h >>conftest.$ac_ext |
| 8019 | cat >>conftest.$ac_ext <<_ACEOF |
| 8020 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8021 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8022 | typedef void * ac__type_sizeof_; |
| 8023 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8024 | 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] | 8025 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8026 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8027 | int |
| 8028 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8029 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8030 | |
| 8031 | FILE *f = fopen ("conftest.val", "w"); |
| 8032 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8033 | return 1; |
| 8034 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8035 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8036 | long int i = longval (); |
| 8037 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8038 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8039 | fprintf (f, "%ld\n", i); |
| 8040 | } |
| 8041 | else |
| 8042 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8043 | unsigned long int i = ulongval (); |
| 8044 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8045 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8046 | fprintf (f, "%lu\n", i); |
| 8047 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8048 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8049 | |
| 8050 | ; |
| 8051 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8052 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8053 | _ACEOF |
| 8054 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8055 | if { (ac_try="$ac_link" |
| 8056 | case "(($ac_try" in |
| 8057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8058 | *) ac_try_echo=$ac_try;; |
| 8059 | esac |
| 8060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8061 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8062 | ac_status=$? |
| 8063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8064 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8065 | { (case "(($ac_try" in |
| 8066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8067 | *) ac_try_echo=$ac_try;; |
| 8068 | esac |
| 8069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8070 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8071 | ac_status=$? |
| 8072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8073 | (exit $ac_status); }; }; then |
| 8074 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8075 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8076 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8077 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8080 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8081 | if test "$ac_cv_type_void_p" = yes; then |
| 8082 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8083 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8084 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8085 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8086 | { (exit 77); exit 77; }; } |
| 8087 | else |
| 8088 | ac_cv_sizeof_void_p=0 |
| 8089 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8090 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8091 | 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] | 8092 | fi |
| 8093 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8094 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8095 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8096 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
| 8097 | |
| 8098 | |
| 8099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8101 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8102 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8103 | |
| 8104 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8105 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8106 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8107 | if test "${ac_cv_type_short+set}" = set; then |
| 8108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8109 | else |
| 8110 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8111 | /* confdefs.h. */ |
| 8112 | _ACEOF |
| 8113 | cat confdefs.h >>conftest.$ac_ext |
| 8114 | cat >>conftest.$ac_ext <<_ACEOF |
| 8115 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8116 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8117 | typedef short ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8118 | int |
| 8119 | main () |
| 8120 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8121 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8122 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8123 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8124 | return 0; |
| 8125 | ; |
| 8126 | return 0; |
| 8127 | } |
| 8128 | _ACEOF |
| 8129 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8130 | if { (ac_try="$ac_compile" |
| 8131 | case "(($ac_try" in |
| 8132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8133 | *) ac_try_echo=$ac_try;; |
| 8134 | esac |
| 8135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8136 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8137 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8139 | rm -f conftest.er1 |
| 8140 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8142 | (exit $ac_status); } && { |
| 8143 | test -z "$ac_c_werror_flag" || |
| 8144 | test ! -s conftest.err |
| 8145 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8146 | ac_cv_type_short=yes |
| 8147 | else |
| 8148 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8150 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8151 | ac_cv_type_short=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8152 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8153 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8155 | fi |
| 8156 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8157 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8158 | |
| 8159 | # The cast to long int works around a bug in the HP C Compiler |
| 8160 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8161 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8162 | # This bug is HP SR number 8606223364. |
| 8163 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8164 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8165 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 8166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8167 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8168 | if test "$cross_compiling" = yes; then |
| 8169 | # Depending upon the size, compute the lo and hi bounds. |
| 8170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8171 | /* confdefs.h. */ |
| 8172 | _ACEOF |
| 8173 | cat confdefs.h >>conftest.$ac_ext |
| 8174 | cat >>conftest.$ac_ext <<_ACEOF |
| 8175 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8176 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8177 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8178 | int |
| 8179 | main () |
| 8180 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8181 | 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] | 8182 | test_array [0] = 0 |
| 8183 | |
| 8184 | ; |
| 8185 | return 0; |
| 8186 | } |
| 8187 | _ACEOF |
| 8188 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8189 | if { (ac_try="$ac_compile" |
| 8190 | case "(($ac_try" in |
| 8191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8192 | *) ac_try_echo=$ac_try;; |
| 8193 | esac |
| 8194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8195 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8196 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8198 | rm -f conftest.er1 |
| 8199 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8201 | (exit $ac_status); } && { |
| 8202 | test -z "$ac_c_werror_flag" || |
| 8203 | test ! -s conftest.err |
| 8204 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | ac_lo=0 ac_mid=0 |
| 8206 | while :; do |
| 8207 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8208 | /* confdefs.h. */ |
| 8209 | _ACEOF |
| 8210 | cat confdefs.h >>conftest.$ac_ext |
| 8211 | cat >>conftest.$ac_ext <<_ACEOF |
| 8212 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8213 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8214 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8215 | int |
| 8216 | main () |
| 8217 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8218 | 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] | 8219 | test_array [0] = 0 |
| 8220 | |
| 8221 | ; |
| 8222 | return 0; |
| 8223 | } |
| 8224 | _ACEOF |
| 8225 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8226 | if { (ac_try="$ac_compile" |
| 8227 | case "(($ac_try" in |
| 8228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8229 | *) ac_try_echo=$ac_try;; |
| 8230 | esac |
| 8231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8232 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8233 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8235 | rm -f conftest.er1 |
| 8236 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8238 | (exit $ac_status); } && { |
| 8239 | test -z "$ac_c_werror_flag" || |
| 8240 | test ! -s conftest.err |
| 8241 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8242 | ac_hi=$ac_mid; break |
| 8243 | else |
| 8244 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8246 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8247 | ac_lo=`expr $ac_mid + 1` |
| 8248 | if test $ac_lo -le $ac_mid; then |
| 8249 | ac_lo= ac_hi= |
| 8250 | break |
| 8251 | fi |
| 8252 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8253 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8254 | |
| 8255 | 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] | 8256 | done |
| 8257 | else |
| 8258 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8260 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8261 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8262 | /* confdefs.h. */ |
| 8263 | _ACEOF |
| 8264 | cat confdefs.h >>conftest.$ac_ext |
| 8265 | cat >>conftest.$ac_ext <<_ACEOF |
| 8266 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8267 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8268 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8269 | int |
| 8270 | main () |
| 8271 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8272 | 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] | 8273 | test_array [0] = 0 |
| 8274 | |
| 8275 | ; |
| 8276 | return 0; |
| 8277 | } |
| 8278 | _ACEOF |
| 8279 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8280 | if { (ac_try="$ac_compile" |
| 8281 | case "(($ac_try" in |
| 8282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8283 | *) ac_try_echo=$ac_try;; |
| 8284 | esac |
| 8285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8286 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8287 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8289 | rm -f conftest.er1 |
| 8290 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8292 | (exit $ac_status); } && { |
| 8293 | test -z "$ac_c_werror_flag" || |
| 8294 | test ! -s conftest.err |
| 8295 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8296 | ac_hi=-1 ac_mid=-1 |
| 8297 | while :; do |
| 8298 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8299 | /* confdefs.h. */ |
| 8300 | _ACEOF |
| 8301 | cat confdefs.h >>conftest.$ac_ext |
| 8302 | cat >>conftest.$ac_ext <<_ACEOF |
| 8303 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8305 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8306 | int |
| 8307 | main () |
| 8308 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8309 | 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] | 8310 | test_array [0] = 0 |
| 8311 | |
| 8312 | ; |
| 8313 | return 0; |
| 8314 | } |
| 8315 | _ACEOF |
| 8316 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8317 | if { (ac_try="$ac_compile" |
| 8318 | case "(($ac_try" in |
| 8319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8320 | *) ac_try_echo=$ac_try;; |
| 8321 | esac |
| 8322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8323 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8326 | rm -f conftest.er1 |
| 8327 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8329 | (exit $ac_status); } && { |
| 8330 | test -z "$ac_c_werror_flag" || |
| 8331 | test ! -s conftest.err |
| 8332 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8333 | ac_lo=$ac_mid; break |
| 8334 | else |
| 8335 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8337 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8338 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8339 | if test $ac_mid -le $ac_hi; then |
| 8340 | ac_lo= ac_hi= |
| 8341 | break |
| 8342 | fi |
| 8343 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8344 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8345 | |
| 8346 | 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] | 8347 | done |
| 8348 | else |
| 8349 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8351 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8352 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8353 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8354 | |
| 8355 | 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] | 8356 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8357 | |
| 8358 | 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] | 8359 | # Binary search between lo and hi bounds. |
| 8360 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8361 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8362 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8363 | /* confdefs.h. */ |
| 8364 | _ACEOF |
| 8365 | cat confdefs.h >>conftest.$ac_ext |
| 8366 | cat >>conftest.$ac_ext <<_ACEOF |
| 8367 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8369 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8370 | int |
| 8371 | main () |
| 8372 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8373 | 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] | 8374 | test_array [0] = 0 |
| 8375 | |
| 8376 | ; |
| 8377 | return 0; |
| 8378 | } |
| 8379 | _ACEOF |
| 8380 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8381 | if { (ac_try="$ac_compile" |
| 8382 | case "(($ac_try" in |
| 8383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8384 | *) ac_try_echo=$ac_try;; |
| 8385 | esac |
| 8386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8387 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8388 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8390 | rm -f conftest.er1 |
| 8391 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8393 | (exit $ac_status); } && { |
| 8394 | test -z "$ac_c_werror_flag" || |
| 8395 | test ! -s conftest.err |
| 8396 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8397 | ac_hi=$ac_mid |
| 8398 | else |
| 8399 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8401 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8402 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8403 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8404 | |
| 8405 | 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] | 8406 | done |
| 8407 | case $ac_lo in |
| 8408 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8409 | '') if test "$ac_cv_type_short" = yes; then |
| 8410 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8411 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8412 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8413 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8414 | { (exit 77); exit 77; }; } |
| 8415 | else |
| 8416 | ac_cv_sizeof_short=0 |
| 8417 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8418 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8419 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8420 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8421 | /* confdefs.h. */ |
| 8422 | _ACEOF |
| 8423 | cat confdefs.h >>conftest.$ac_ext |
| 8424 | cat >>conftest.$ac_ext <<_ACEOF |
| 8425 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8426 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8427 | typedef short ac__type_sizeof_; |
| 8428 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8429 | 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] | 8430 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8431 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8432 | int |
| 8433 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8434 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8435 | |
| 8436 | FILE *f = fopen ("conftest.val", "w"); |
| 8437 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8438 | return 1; |
| 8439 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8440 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8441 | long int i = longval (); |
| 8442 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8443 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8444 | fprintf (f, "%ld\n", i); |
| 8445 | } |
| 8446 | else |
| 8447 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8448 | unsigned long int i = ulongval (); |
| 8449 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8450 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8451 | fprintf (f, "%lu\n", i); |
| 8452 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8453 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8454 | |
| 8455 | ; |
| 8456 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8457 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8458 | _ACEOF |
| 8459 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8460 | if { (ac_try="$ac_link" |
| 8461 | case "(($ac_try" in |
| 8462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8463 | *) ac_try_echo=$ac_try;; |
| 8464 | esac |
| 8465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8466 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | ac_status=$? |
| 8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8469 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8470 | { (case "(($ac_try" in |
| 8471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8472 | *) ac_try_echo=$ac_try;; |
| 8473 | esac |
| 8474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8475 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8476 | ac_status=$? |
| 8477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8478 | (exit $ac_status); }; }; then |
| 8479 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8482 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8485 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8486 | if test "$ac_cv_type_short" = yes; then |
| 8487 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8488 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8489 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8490 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8491 | { (exit 77); exit 77; }; } |
| 8492 | else |
| 8493 | ac_cv_sizeof_short=0 |
| 8494 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8495 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8496 | 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] | 8497 | fi |
| 8498 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8499 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8500 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 8501 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
| 8502 | |
| 8503 | |
| 8504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8506 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8508 | |
| 8509 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8510 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 8511 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8512 | if test "${ac_cv_type_float+set}" = set; then |
| 8513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8514 | else |
| 8515 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8516 | /* confdefs.h. */ |
| 8517 | _ACEOF |
| 8518 | cat confdefs.h >>conftest.$ac_ext |
| 8519 | cat >>conftest.$ac_ext <<_ACEOF |
| 8520 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8521 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8522 | typedef float ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8523 | int |
| 8524 | main () |
| 8525 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8526 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8527 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8528 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8529 | return 0; |
| 8530 | ; |
| 8531 | return 0; |
| 8532 | } |
| 8533 | _ACEOF |
| 8534 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8535 | if { (ac_try="$ac_compile" |
| 8536 | case "(($ac_try" in |
| 8537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8538 | *) ac_try_echo=$ac_try;; |
| 8539 | esac |
| 8540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8541 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8542 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8544 | rm -f conftest.er1 |
| 8545 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8547 | (exit $ac_status); } && { |
| 8548 | test -z "$ac_c_werror_flag" || |
| 8549 | test ! -s conftest.err |
| 8550 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8551 | ac_cv_type_float=yes |
| 8552 | else |
| 8553 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8555 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8556 | ac_cv_type_float=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8557 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8558 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8560 | fi |
| 8561 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 8562 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 8563 | |
| 8564 | # The cast to long int works around a bug in the HP C Compiler |
| 8565 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8566 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8567 | # This bug is HP SR number 8606223364. |
| 8568 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 8569 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 8571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | if test "$cross_compiling" = yes; then |
| 8574 | # Depending upon the size, compute the lo and hi bounds. |
| 8575 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8576 | /* confdefs.h. */ |
| 8577 | _ACEOF |
| 8578 | cat confdefs.h >>conftest.$ac_ext |
| 8579 | cat >>conftest.$ac_ext <<_ACEOF |
| 8580 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8581 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8582 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8583 | int |
| 8584 | main () |
| 8585 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8586 | 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] | 8587 | test_array [0] = 0 |
| 8588 | |
| 8589 | ; |
| 8590 | return 0; |
| 8591 | } |
| 8592 | _ACEOF |
| 8593 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8594 | if { (ac_try="$ac_compile" |
| 8595 | case "(($ac_try" in |
| 8596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8597 | *) ac_try_echo=$ac_try;; |
| 8598 | esac |
| 8599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8600 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8601 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8603 | rm -f conftest.er1 |
| 8604 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8606 | (exit $ac_status); } && { |
| 8607 | test -z "$ac_c_werror_flag" || |
| 8608 | test ! -s conftest.err |
| 8609 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8610 | ac_lo=0 ac_mid=0 |
| 8611 | while :; do |
| 8612 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8613 | /* confdefs.h. */ |
| 8614 | _ACEOF |
| 8615 | cat confdefs.h >>conftest.$ac_ext |
| 8616 | cat >>conftest.$ac_ext <<_ACEOF |
| 8617 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8618 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8619 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | int |
| 8621 | main () |
| 8622 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8623 | 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] | 8624 | test_array [0] = 0 |
| 8625 | |
| 8626 | ; |
| 8627 | return 0; |
| 8628 | } |
| 8629 | _ACEOF |
| 8630 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8631 | if { (ac_try="$ac_compile" |
| 8632 | case "(($ac_try" in |
| 8633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8634 | *) ac_try_echo=$ac_try;; |
| 8635 | esac |
| 8636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8637 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8638 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8640 | rm -f conftest.er1 |
| 8641 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8643 | (exit $ac_status); } && { |
| 8644 | test -z "$ac_c_werror_flag" || |
| 8645 | test ! -s conftest.err |
| 8646 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | ac_hi=$ac_mid; break |
| 8648 | else |
| 8649 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8651 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8652 | ac_lo=`expr $ac_mid + 1` |
| 8653 | if test $ac_lo -le $ac_mid; then |
| 8654 | ac_lo= ac_hi= |
| 8655 | break |
| 8656 | fi |
| 8657 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8658 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8659 | |
| 8660 | 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] | 8661 | done |
| 8662 | else |
| 8663 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8665 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8666 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8667 | /* confdefs.h. */ |
| 8668 | _ACEOF |
| 8669 | cat confdefs.h >>conftest.$ac_ext |
| 8670 | cat >>conftest.$ac_ext <<_ACEOF |
| 8671 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8673 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8674 | int |
| 8675 | main () |
| 8676 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8677 | 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] | 8678 | test_array [0] = 0 |
| 8679 | |
| 8680 | ; |
| 8681 | return 0; |
| 8682 | } |
| 8683 | _ACEOF |
| 8684 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8685 | if { (ac_try="$ac_compile" |
| 8686 | case "(($ac_try" in |
| 8687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8688 | *) ac_try_echo=$ac_try;; |
| 8689 | esac |
| 8690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8691 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8692 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8694 | rm -f conftest.er1 |
| 8695 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8697 | (exit $ac_status); } && { |
| 8698 | test -z "$ac_c_werror_flag" || |
| 8699 | test ! -s conftest.err |
| 8700 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8701 | ac_hi=-1 ac_mid=-1 |
| 8702 | while :; do |
| 8703 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8704 | /* confdefs.h. */ |
| 8705 | _ACEOF |
| 8706 | cat confdefs.h >>conftest.$ac_ext |
| 8707 | cat >>conftest.$ac_ext <<_ACEOF |
| 8708 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8709 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8710 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8711 | int |
| 8712 | main () |
| 8713 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8714 | 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] | 8715 | test_array [0] = 0 |
| 8716 | |
| 8717 | ; |
| 8718 | return 0; |
| 8719 | } |
| 8720 | _ACEOF |
| 8721 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8722 | if { (ac_try="$ac_compile" |
| 8723 | case "(($ac_try" in |
| 8724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8725 | *) ac_try_echo=$ac_try;; |
| 8726 | esac |
| 8727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8728 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8729 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8731 | rm -f conftest.er1 |
| 8732 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8734 | (exit $ac_status); } && { |
| 8735 | test -z "$ac_c_werror_flag" || |
| 8736 | test ! -s conftest.err |
| 8737 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8738 | ac_lo=$ac_mid; break |
| 8739 | else |
| 8740 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8742 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8743 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8744 | if test $ac_mid -le $ac_hi; then |
| 8745 | ac_lo= ac_hi= |
| 8746 | break |
| 8747 | fi |
| 8748 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8749 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8750 | |
| 8751 | 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] | 8752 | done |
| 8753 | else |
| 8754 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8756 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8757 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8758 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8759 | |
| 8760 | 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] | 8761 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8762 | |
| 8763 | 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] | 8764 | # Binary search between lo and hi bounds. |
| 8765 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8766 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8767 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8768 | /* confdefs.h. */ |
| 8769 | _ACEOF |
| 8770 | cat confdefs.h >>conftest.$ac_ext |
| 8771 | cat >>conftest.$ac_ext <<_ACEOF |
| 8772 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8773 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8774 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8775 | int |
| 8776 | main () |
| 8777 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8778 | 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] | 8779 | test_array [0] = 0 |
| 8780 | |
| 8781 | ; |
| 8782 | return 0; |
| 8783 | } |
| 8784 | _ACEOF |
| 8785 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8786 | if { (ac_try="$ac_compile" |
| 8787 | case "(($ac_try" in |
| 8788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8789 | *) ac_try_echo=$ac_try;; |
| 8790 | esac |
| 8791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8792 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8793 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8795 | rm -f conftest.er1 |
| 8796 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8798 | (exit $ac_status); } && { |
| 8799 | test -z "$ac_c_werror_flag" || |
| 8800 | test ! -s conftest.err |
| 8801 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8802 | ac_hi=$ac_mid |
| 8803 | else |
| 8804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8806 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8807 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8808 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8809 | |
| 8810 | 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] | 8811 | done |
| 8812 | case $ac_lo in |
| 8813 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8814 | '') if test "$ac_cv_type_float" = yes; then |
| 8815 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8816 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8817 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8818 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8819 | { (exit 77); exit 77; }; } |
| 8820 | else |
| 8821 | ac_cv_sizeof_float=0 |
| 8822 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8825 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8826 | /* confdefs.h. */ |
| 8827 | _ACEOF |
| 8828 | cat confdefs.h >>conftest.$ac_ext |
| 8829 | cat >>conftest.$ac_ext <<_ACEOF |
| 8830 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8831 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8832 | typedef float ac__type_sizeof_; |
| 8833 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8834 | 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] | 8835 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8836 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8837 | int |
| 8838 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8839 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8840 | |
| 8841 | FILE *f = fopen ("conftest.val", "w"); |
| 8842 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8843 | return 1; |
| 8844 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8845 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8846 | long int i = longval (); |
| 8847 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8848 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8849 | fprintf (f, "%ld\n", i); |
| 8850 | } |
| 8851 | else |
| 8852 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8853 | unsigned long int i = ulongval (); |
| 8854 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8855 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8856 | fprintf (f, "%lu\n", i); |
| 8857 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8858 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8859 | |
| 8860 | ; |
| 8861 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8862 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8863 | _ACEOF |
| 8864 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8865 | if { (ac_try="$ac_link" |
| 8866 | case "(($ac_try" in |
| 8867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8868 | *) ac_try_echo=$ac_try;; |
| 8869 | esac |
| 8870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8871 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8872 | ac_status=$? |
| 8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8874 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8875 | { (case "(($ac_try" in |
| 8876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8877 | *) ac_try_echo=$ac_try;; |
| 8878 | esac |
| 8879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8880 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8881 | ac_status=$? |
| 8882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8883 | (exit $ac_status); }; }; then |
| 8884 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8886 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8887 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8890 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8891 | if test "$ac_cv_type_float" = yes; then |
| 8892 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8893 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8894 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8895 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8896 | { (exit 77); exit 77; }; } |
| 8897 | else |
| 8898 | ac_cv_sizeof_float=0 |
| 8899 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8900 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8901 | 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] | 8902 | fi |
| 8903 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8904 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8905 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8906 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
| 8907 | |
| 8908 | |
| 8909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8910 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8911 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8912 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8913 | |
| 8914 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8915 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 8916 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8917 | if test "${ac_cv_type_double+set}" = set; then |
| 8918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8919 | else |
| 8920 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8921 | /* confdefs.h. */ |
| 8922 | _ACEOF |
| 8923 | cat confdefs.h >>conftest.$ac_ext |
| 8924 | cat >>conftest.$ac_ext <<_ACEOF |
| 8925 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8926 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8927 | typedef double ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | int |
| 8929 | main () |
| 8930 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8931 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8932 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8933 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8934 | return 0; |
| 8935 | ; |
| 8936 | return 0; |
| 8937 | } |
| 8938 | _ACEOF |
| 8939 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8940 | if { (ac_try="$ac_compile" |
| 8941 | case "(($ac_try" in |
| 8942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8943 | *) ac_try_echo=$ac_try;; |
| 8944 | esac |
| 8945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8946 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8947 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8949 | rm -f conftest.er1 |
| 8950 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8952 | (exit $ac_status); } && { |
| 8953 | test -z "$ac_c_werror_flag" || |
| 8954 | test ! -s conftest.err |
| 8955 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8956 | ac_cv_type_double=yes |
| 8957 | else |
| 8958 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8960 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8961 | ac_cv_type_double=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8962 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8963 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8965 | fi |
| 8966 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8967 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 8968 | |
| 8969 | # The cast to long int works around a bug in the HP C Compiler |
| 8970 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8971 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8972 | # This bug is HP SR number 8606223364. |
| 8973 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 8974 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8978 | if test "$cross_compiling" = yes; then |
| 8979 | # Depending upon the size, compute the lo and hi bounds. |
| 8980 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8981 | /* confdefs.h. */ |
| 8982 | _ACEOF |
| 8983 | cat confdefs.h >>conftest.$ac_ext |
| 8984 | cat >>conftest.$ac_ext <<_ACEOF |
| 8985 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8986 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8987 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8988 | int |
| 8989 | main () |
| 8990 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8991 | 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] | 8992 | test_array [0] = 0 |
| 8993 | |
| 8994 | ; |
| 8995 | return 0; |
| 8996 | } |
| 8997 | _ACEOF |
| 8998 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8999 | if { (ac_try="$ac_compile" |
| 9000 | case "(($ac_try" in |
| 9001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9002 | *) ac_try_echo=$ac_try;; |
| 9003 | esac |
| 9004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9005 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9006 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9008 | rm -f conftest.er1 |
| 9009 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9011 | (exit $ac_status); } && { |
| 9012 | test -z "$ac_c_werror_flag" || |
| 9013 | test ! -s conftest.err |
| 9014 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9015 | ac_lo=0 ac_mid=0 |
| 9016 | while :; do |
| 9017 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9018 | /* confdefs.h. */ |
| 9019 | _ACEOF |
| 9020 | cat confdefs.h >>conftest.$ac_ext |
| 9021 | cat >>conftest.$ac_ext <<_ACEOF |
| 9022 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9023 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9024 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9025 | int |
| 9026 | main () |
| 9027 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9028 | 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] | 9029 | test_array [0] = 0 |
| 9030 | |
| 9031 | ; |
| 9032 | return 0; |
| 9033 | } |
| 9034 | _ACEOF |
| 9035 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9036 | if { (ac_try="$ac_compile" |
| 9037 | case "(($ac_try" in |
| 9038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9039 | *) ac_try_echo=$ac_try;; |
| 9040 | esac |
| 9041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9042 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9043 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9045 | rm -f conftest.er1 |
| 9046 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9048 | (exit $ac_status); } && { |
| 9049 | test -z "$ac_c_werror_flag" || |
| 9050 | test ! -s conftest.err |
| 9051 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9052 | ac_hi=$ac_mid; break |
| 9053 | else |
| 9054 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9056 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9057 | ac_lo=`expr $ac_mid + 1` |
| 9058 | if test $ac_lo -le $ac_mid; then |
| 9059 | ac_lo= ac_hi= |
| 9060 | break |
| 9061 | fi |
| 9062 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9063 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9064 | |
| 9065 | 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] | 9066 | done |
| 9067 | else |
| 9068 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9070 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9071 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9072 | /* confdefs.h. */ |
| 9073 | _ACEOF |
| 9074 | cat confdefs.h >>conftest.$ac_ext |
| 9075 | cat >>conftest.$ac_ext <<_ACEOF |
| 9076 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9077 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9078 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9079 | int |
| 9080 | main () |
| 9081 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9082 | 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] | 9083 | test_array [0] = 0 |
| 9084 | |
| 9085 | ; |
| 9086 | return 0; |
| 9087 | } |
| 9088 | _ACEOF |
| 9089 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9090 | if { (ac_try="$ac_compile" |
| 9091 | case "(($ac_try" in |
| 9092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9093 | *) ac_try_echo=$ac_try;; |
| 9094 | esac |
| 9095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9096 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9097 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9099 | rm -f conftest.er1 |
| 9100 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9102 | (exit $ac_status); } && { |
| 9103 | test -z "$ac_c_werror_flag" || |
| 9104 | test ! -s conftest.err |
| 9105 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9106 | ac_hi=-1 ac_mid=-1 |
| 9107 | while :; do |
| 9108 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9109 | /* confdefs.h. */ |
| 9110 | _ACEOF |
| 9111 | cat confdefs.h >>conftest.$ac_ext |
| 9112 | cat >>conftest.$ac_ext <<_ACEOF |
| 9113 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9114 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9115 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9116 | int |
| 9117 | main () |
| 9118 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9119 | 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] | 9120 | test_array [0] = 0 |
| 9121 | |
| 9122 | ; |
| 9123 | return 0; |
| 9124 | } |
| 9125 | _ACEOF |
| 9126 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9127 | if { (ac_try="$ac_compile" |
| 9128 | case "(($ac_try" in |
| 9129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9130 | *) ac_try_echo=$ac_try;; |
| 9131 | esac |
| 9132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9133 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9134 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9136 | rm -f conftest.er1 |
| 9137 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9139 | (exit $ac_status); } && { |
| 9140 | test -z "$ac_c_werror_flag" || |
| 9141 | test ! -s conftest.err |
| 9142 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9143 | ac_lo=$ac_mid; break |
| 9144 | else |
| 9145 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9147 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9148 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9149 | if test $ac_mid -le $ac_hi; then |
| 9150 | ac_lo= ac_hi= |
| 9151 | break |
| 9152 | fi |
| 9153 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9154 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9155 | |
| 9156 | 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] | 9157 | done |
| 9158 | else |
| 9159 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9161 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9162 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9163 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9164 | |
| 9165 | 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] | 9166 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9167 | |
| 9168 | 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] | 9169 | # Binary search between lo and hi bounds. |
| 9170 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9171 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9172 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9173 | /* confdefs.h. */ |
| 9174 | _ACEOF |
| 9175 | cat confdefs.h >>conftest.$ac_ext |
| 9176 | cat >>conftest.$ac_ext <<_ACEOF |
| 9177 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9178 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9179 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9180 | int |
| 9181 | main () |
| 9182 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9183 | 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] | 9184 | test_array [0] = 0 |
| 9185 | |
| 9186 | ; |
| 9187 | return 0; |
| 9188 | } |
| 9189 | _ACEOF |
| 9190 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9191 | if { (ac_try="$ac_compile" |
| 9192 | case "(($ac_try" in |
| 9193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9194 | *) ac_try_echo=$ac_try;; |
| 9195 | esac |
| 9196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9197 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9200 | rm -f conftest.er1 |
| 9201 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9203 | (exit $ac_status); } && { |
| 9204 | test -z "$ac_c_werror_flag" || |
| 9205 | test ! -s conftest.err |
| 9206 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9207 | ac_hi=$ac_mid |
| 9208 | else |
| 9209 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9211 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9212 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9213 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9214 | |
| 9215 | 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] | 9216 | done |
| 9217 | case $ac_lo in |
| 9218 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9219 | '') if test "$ac_cv_type_double" = yes; then |
| 9220 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9221 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9222 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9223 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9224 | { (exit 77); exit 77; }; } |
| 9225 | else |
| 9226 | ac_cv_sizeof_double=0 |
| 9227 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9228 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9230 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9231 | /* confdefs.h. */ |
| 9232 | _ACEOF |
| 9233 | cat confdefs.h >>conftest.$ac_ext |
| 9234 | cat >>conftest.$ac_ext <<_ACEOF |
| 9235 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9236 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9237 | typedef double ac__type_sizeof_; |
| 9238 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9239 | 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] | 9240 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9241 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9242 | int |
| 9243 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9244 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9245 | |
| 9246 | FILE *f = fopen ("conftest.val", "w"); |
| 9247 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9248 | return 1; |
| 9249 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9250 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9251 | long int i = longval (); |
| 9252 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9253 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9254 | fprintf (f, "%ld\n", i); |
| 9255 | } |
| 9256 | else |
| 9257 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9258 | unsigned long int i = ulongval (); |
| 9259 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9260 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9261 | fprintf (f, "%lu\n", i); |
| 9262 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9263 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9264 | |
| 9265 | ; |
| 9266 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9267 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9268 | _ACEOF |
| 9269 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9270 | if { (ac_try="$ac_link" |
| 9271 | case "(($ac_try" in |
| 9272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9273 | *) ac_try_echo=$ac_try;; |
| 9274 | esac |
| 9275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9276 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9277 | ac_status=$? |
| 9278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9279 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9280 | { (case "(($ac_try" in |
| 9281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9282 | *) ac_try_echo=$ac_try;; |
| 9283 | esac |
| 9284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9285 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9286 | ac_status=$? |
| 9287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9288 | (exit $ac_status); }; }; then |
| 9289 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9290 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9291 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9292 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9295 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9296 | if test "$ac_cv_type_double" = yes; then |
| 9297 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9298 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9299 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9300 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9301 | { (exit 77); exit 77; }; } |
| 9302 | else |
| 9303 | ac_cv_sizeof_double=0 |
| 9304 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9305 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9306 | 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] | 9307 | fi |
| 9308 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9309 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9310 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9311 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
| 9312 | |
| 9313 | |
| 9314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9315 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9316 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9317 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9318 | |
| 9319 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9320 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 9321 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9322 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 9323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9324 | else |
| 9325 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9326 | /* confdefs.h. */ |
| 9327 | _ACEOF |
| 9328 | cat confdefs.h >>conftest.$ac_ext |
| 9329 | cat >>conftest.$ac_ext <<_ACEOF |
| 9330 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9331 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9332 | typedef fpos_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9333 | int |
| 9334 | main () |
| 9335 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9336 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9337 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9338 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9339 | return 0; |
| 9340 | ; |
| 9341 | return 0; |
| 9342 | } |
| 9343 | _ACEOF |
| 9344 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9345 | if { (ac_try="$ac_compile" |
| 9346 | case "(($ac_try" in |
| 9347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9348 | *) ac_try_echo=$ac_try;; |
| 9349 | esac |
| 9350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9351 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9352 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9354 | rm -f conftest.er1 |
| 9355 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9357 | (exit $ac_status); } && { |
| 9358 | test -z "$ac_c_werror_flag" || |
| 9359 | test ! -s conftest.err |
| 9360 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9361 | ac_cv_type_fpos_t=yes |
| 9362 | else |
| 9363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9365 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9366 | ac_cv_type_fpos_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9367 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9368 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9370 | fi |
| 9371 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 9372 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 9373 | |
| 9374 | # The cast to long int works around a bug in the HP C Compiler |
| 9375 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9376 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9377 | # This bug is HP SR number 8606223364. |
| 9378 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 9379 | 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] | 9380 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 9381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9383 | if test "$cross_compiling" = yes; then |
| 9384 | # Depending upon the size, compute the lo and hi bounds. |
| 9385 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9386 | /* confdefs.h. */ |
| 9387 | _ACEOF |
| 9388 | cat confdefs.h >>conftest.$ac_ext |
| 9389 | cat >>conftest.$ac_ext <<_ACEOF |
| 9390 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9391 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9392 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9393 | int |
| 9394 | main () |
| 9395 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9396 | 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] | 9397 | test_array [0] = 0 |
| 9398 | |
| 9399 | ; |
| 9400 | return 0; |
| 9401 | } |
| 9402 | _ACEOF |
| 9403 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9404 | if { (ac_try="$ac_compile" |
| 9405 | case "(($ac_try" in |
| 9406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9407 | *) ac_try_echo=$ac_try;; |
| 9408 | esac |
| 9409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9410 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9411 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9413 | rm -f conftest.er1 |
| 9414 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9416 | (exit $ac_status); } && { |
| 9417 | test -z "$ac_c_werror_flag" || |
| 9418 | test ! -s conftest.err |
| 9419 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9420 | ac_lo=0 ac_mid=0 |
| 9421 | while :; do |
| 9422 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9423 | /* confdefs.h. */ |
| 9424 | _ACEOF |
| 9425 | cat confdefs.h >>conftest.$ac_ext |
| 9426 | cat >>conftest.$ac_ext <<_ACEOF |
| 9427 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9428 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9429 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9430 | int |
| 9431 | main () |
| 9432 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9433 | 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] | 9434 | test_array [0] = 0 |
| 9435 | |
| 9436 | ; |
| 9437 | return 0; |
| 9438 | } |
| 9439 | _ACEOF |
| 9440 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9441 | if { (ac_try="$ac_compile" |
| 9442 | case "(($ac_try" in |
| 9443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9444 | *) ac_try_echo=$ac_try;; |
| 9445 | esac |
| 9446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9447 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9448 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9450 | rm -f conftest.er1 |
| 9451 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9453 | (exit $ac_status); } && { |
| 9454 | test -z "$ac_c_werror_flag" || |
| 9455 | test ! -s conftest.err |
| 9456 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9457 | ac_hi=$ac_mid; break |
| 9458 | else |
| 9459 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9461 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9462 | ac_lo=`expr $ac_mid + 1` |
| 9463 | if test $ac_lo -le $ac_mid; then |
| 9464 | ac_lo= ac_hi= |
| 9465 | break |
| 9466 | fi |
| 9467 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9469 | |
| 9470 | 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] | 9471 | done |
| 9472 | else |
| 9473 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9475 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9477 | /* confdefs.h. */ |
| 9478 | _ACEOF |
| 9479 | cat confdefs.h >>conftest.$ac_ext |
| 9480 | cat >>conftest.$ac_ext <<_ACEOF |
| 9481 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9482 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9483 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9484 | int |
| 9485 | main () |
| 9486 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9487 | 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] | 9488 | test_array [0] = 0 |
| 9489 | |
| 9490 | ; |
| 9491 | return 0; |
| 9492 | } |
| 9493 | _ACEOF |
| 9494 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9495 | if { (ac_try="$ac_compile" |
| 9496 | case "(($ac_try" in |
| 9497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9498 | *) ac_try_echo=$ac_try;; |
| 9499 | esac |
| 9500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9501 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9502 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9504 | rm -f conftest.er1 |
| 9505 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9507 | (exit $ac_status); } && { |
| 9508 | test -z "$ac_c_werror_flag" || |
| 9509 | test ! -s conftest.err |
| 9510 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9511 | ac_hi=-1 ac_mid=-1 |
| 9512 | while :; do |
| 9513 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9514 | /* confdefs.h. */ |
| 9515 | _ACEOF |
| 9516 | cat confdefs.h >>conftest.$ac_ext |
| 9517 | cat >>conftest.$ac_ext <<_ACEOF |
| 9518 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9519 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9520 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 | int |
| 9522 | main () |
| 9523 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9524 | 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] | 9525 | test_array [0] = 0 |
| 9526 | |
| 9527 | ; |
| 9528 | return 0; |
| 9529 | } |
| 9530 | _ACEOF |
| 9531 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9532 | if { (ac_try="$ac_compile" |
| 9533 | case "(($ac_try" in |
| 9534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9535 | *) ac_try_echo=$ac_try;; |
| 9536 | esac |
| 9537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9538 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9539 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9541 | rm -f conftest.er1 |
| 9542 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9544 | (exit $ac_status); } && { |
| 9545 | test -z "$ac_c_werror_flag" || |
| 9546 | test ! -s conftest.err |
| 9547 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9548 | ac_lo=$ac_mid; break |
| 9549 | else |
| 9550 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9552 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9553 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9554 | if test $ac_mid -le $ac_hi; then |
| 9555 | ac_lo= ac_hi= |
| 9556 | break |
| 9557 | fi |
| 9558 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9560 | |
| 9561 | 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] | 9562 | done |
| 9563 | else |
| 9564 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9566 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9567 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9568 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9569 | |
| 9570 | 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] | 9571 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9572 | |
| 9573 | 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] | 9574 | # Binary search between lo and hi bounds. |
| 9575 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9576 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9577 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9578 | /* confdefs.h. */ |
| 9579 | _ACEOF |
| 9580 | cat confdefs.h >>conftest.$ac_ext |
| 9581 | cat >>conftest.$ac_ext <<_ACEOF |
| 9582 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9584 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9585 | int |
| 9586 | main () |
| 9587 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9588 | 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] | 9589 | test_array [0] = 0 |
| 9590 | |
| 9591 | ; |
| 9592 | return 0; |
| 9593 | } |
| 9594 | _ACEOF |
| 9595 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9596 | if { (ac_try="$ac_compile" |
| 9597 | case "(($ac_try" in |
| 9598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9599 | *) ac_try_echo=$ac_try;; |
| 9600 | esac |
| 9601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9602 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9603 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9605 | rm -f conftest.er1 |
| 9606 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9608 | (exit $ac_status); } && { |
| 9609 | test -z "$ac_c_werror_flag" || |
| 9610 | test ! -s conftest.err |
| 9611 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9612 | ac_hi=$ac_mid |
| 9613 | else |
| 9614 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9616 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9617 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9618 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9619 | |
| 9620 | 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] | 9621 | done |
| 9622 | case $ac_lo in |
| 9623 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9624 | '') if test "$ac_cv_type_fpos_t" = yes; then |
| 9625 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9626 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9627 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9628 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9629 | { (exit 77); exit 77; }; } |
| 9630 | else |
| 9631 | ac_cv_sizeof_fpos_t=0 |
| 9632 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9633 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9635 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9636 | /* confdefs.h. */ |
| 9637 | _ACEOF |
| 9638 | cat confdefs.h >>conftest.$ac_ext |
| 9639 | cat >>conftest.$ac_ext <<_ACEOF |
| 9640 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9641 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9642 | typedef fpos_t ac__type_sizeof_; |
| 9643 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9644 | 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] | 9645 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9646 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9647 | int |
| 9648 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9649 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9650 | |
| 9651 | FILE *f = fopen ("conftest.val", "w"); |
| 9652 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9653 | return 1; |
| 9654 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9655 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9656 | long int i = longval (); |
| 9657 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9658 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9659 | fprintf (f, "%ld\n", i); |
| 9660 | } |
| 9661 | else |
| 9662 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9663 | unsigned long int i = ulongval (); |
| 9664 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9665 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9666 | fprintf (f, "%lu\n", i); |
| 9667 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9668 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9669 | |
| 9670 | ; |
| 9671 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9672 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9673 | _ACEOF |
| 9674 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9675 | if { (ac_try="$ac_link" |
| 9676 | case "(($ac_try" in |
| 9677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9678 | *) ac_try_echo=$ac_try;; |
| 9679 | esac |
| 9680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9681 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 | ac_status=$? |
| 9683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9684 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9685 | { (case "(($ac_try" in |
| 9686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9687 | *) ac_try_echo=$ac_try;; |
| 9688 | esac |
| 9689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9690 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9691 | ac_status=$? |
| 9692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9693 | (exit $ac_status); }; }; then |
| 9694 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9695 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9696 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9697 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9700 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9701 | if test "$ac_cv_type_fpos_t" = yes; then |
| 9702 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9703 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9704 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9705 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9706 | { (exit 77); exit 77; }; } |
| 9707 | else |
| 9708 | ac_cv_sizeof_fpos_t=0 |
| 9709 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9710 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9711 | 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] | 9712 | fi |
| 9713 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9714 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9715 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 9716 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
| 9717 | |
| 9718 | |
| 9719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9720 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9721 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9722 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9723 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9724 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9725 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 9726 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9727 | if test "${ac_cv_type_size_t+set}" = set; then |
| 9728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9729 | else |
| 9730 | cat >conftest.$ac_ext <<_ACEOF |
| 9731 | /* confdefs.h. */ |
| 9732 | _ACEOF |
| 9733 | cat confdefs.h >>conftest.$ac_ext |
| 9734 | cat >>conftest.$ac_ext <<_ACEOF |
| 9735 | /* end confdefs.h. */ |
| 9736 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9737 | typedef size_t ac__type_new_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9738 | int |
| 9739 | main () |
| 9740 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9741 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9742 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9743 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9744 | return 0; |
| 9745 | ; |
| 9746 | return 0; |
| 9747 | } |
| 9748 | _ACEOF |
| 9749 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9750 | if { (ac_try="$ac_compile" |
| 9751 | case "(($ac_try" in |
| 9752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9753 | *) ac_try_echo=$ac_try;; |
| 9754 | esac |
| 9755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9756 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9757 | ac_status=$? |
| 9758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9759 | rm -f conftest.er1 |
| 9760 | cat conftest.err >&5 |
| 9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9762 | (exit $ac_status); } && { |
| 9763 | test -z "$ac_c_werror_flag" || |
| 9764 | test ! -s conftest.err |
| 9765 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9766 | ac_cv_type_size_t=yes |
| 9767 | else |
| 9768 | echo "$as_me: failed program was:" >&5 |
| 9769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9770 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9771 | ac_cv_type_size_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9772 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9773 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9775 | fi |
| 9776 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 9777 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 9778 | |
| 9779 | # The cast to long int works around a bug in the HP C Compiler |
| 9780 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9781 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9782 | # This bug is HP SR number 8606223364. |
| 9783 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 9784 | 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] | 9785 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
| 9786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9787 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9788 | if test "$cross_compiling" = yes; then |
| 9789 | # Depending upon the size, compute the lo and hi bounds. |
| 9790 | cat >conftest.$ac_ext <<_ACEOF |
| 9791 | /* confdefs.h. */ |
| 9792 | _ACEOF |
| 9793 | cat confdefs.h >>conftest.$ac_ext |
| 9794 | cat >>conftest.$ac_ext <<_ACEOF |
| 9795 | /* end confdefs.h. */ |
| 9796 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9797 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9798 | int |
| 9799 | main () |
| 9800 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9801 | 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] | 9802 | test_array [0] = 0 |
| 9803 | |
| 9804 | ; |
| 9805 | return 0; |
| 9806 | } |
| 9807 | _ACEOF |
| 9808 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9809 | if { (ac_try="$ac_compile" |
| 9810 | case "(($ac_try" in |
| 9811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9812 | *) ac_try_echo=$ac_try;; |
| 9813 | esac |
| 9814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9815 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9816 | ac_status=$? |
| 9817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9818 | rm -f conftest.er1 |
| 9819 | cat conftest.err >&5 |
| 9820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9821 | (exit $ac_status); } && { |
| 9822 | test -z "$ac_c_werror_flag" || |
| 9823 | test ! -s conftest.err |
| 9824 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9825 | ac_lo=0 ac_mid=0 |
| 9826 | while :; do |
| 9827 | cat >conftest.$ac_ext <<_ACEOF |
| 9828 | /* confdefs.h. */ |
| 9829 | _ACEOF |
| 9830 | cat confdefs.h >>conftest.$ac_ext |
| 9831 | cat >>conftest.$ac_ext <<_ACEOF |
| 9832 | /* end confdefs.h. */ |
| 9833 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9834 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9835 | int |
| 9836 | main () |
| 9837 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9838 | 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] | 9839 | test_array [0] = 0 |
| 9840 | |
| 9841 | ; |
| 9842 | return 0; |
| 9843 | } |
| 9844 | _ACEOF |
| 9845 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9846 | if { (ac_try="$ac_compile" |
| 9847 | case "(($ac_try" in |
| 9848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9849 | *) ac_try_echo=$ac_try;; |
| 9850 | esac |
| 9851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9852 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9853 | ac_status=$? |
| 9854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9855 | rm -f conftest.er1 |
| 9856 | cat conftest.err >&5 |
| 9857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9858 | (exit $ac_status); } && { |
| 9859 | test -z "$ac_c_werror_flag" || |
| 9860 | test ! -s conftest.err |
| 9861 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9862 | ac_hi=$ac_mid; break |
| 9863 | else |
| 9864 | echo "$as_me: failed program was:" >&5 |
| 9865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9866 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9867 | ac_lo=`expr $ac_mid + 1` |
| 9868 | if test $ac_lo -le $ac_mid; then |
| 9869 | ac_lo= ac_hi= |
| 9870 | break |
| 9871 | fi |
| 9872 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9873 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9874 | |
| 9875 | 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] | 9876 | done |
| 9877 | else |
| 9878 | echo "$as_me: failed program was:" >&5 |
| 9879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9880 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9881 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9882 | /* confdefs.h. */ |
| 9883 | _ACEOF |
| 9884 | cat confdefs.h >>conftest.$ac_ext |
| 9885 | cat >>conftest.$ac_ext <<_ACEOF |
| 9886 | /* end confdefs.h. */ |
| 9887 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9888 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9889 | int |
| 9890 | main () |
| 9891 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9892 | 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] | 9893 | test_array [0] = 0 |
| 9894 | |
| 9895 | ; |
| 9896 | return 0; |
| 9897 | } |
| 9898 | _ACEOF |
| 9899 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9900 | if { (ac_try="$ac_compile" |
| 9901 | case "(($ac_try" in |
| 9902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9903 | *) ac_try_echo=$ac_try;; |
| 9904 | esac |
| 9905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9906 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9907 | ac_status=$? |
| 9908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9909 | rm -f conftest.er1 |
| 9910 | cat conftest.err >&5 |
| 9911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9912 | (exit $ac_status); } && { |
| 9913 | test -z "$ac_c_werror_flag" || |
| 9914 | test ! -s conftest.err |
| 9915 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9916 | ac_hi=-1 ac_mid=-1 |
| 9917 | while :; do |
| 9918 | cat >conftest.$ac_ext <<_ACEOF |
| 9919 | /* confdefs.h. */ |
| 9920 | _ACEOF |
| 9921 | cat confdefs.h >>conftest.$ac_ext |
| 9922 | cat >>conftest.$ac_ext <<_ACEOF |
| 9923 | /* end confdefs.h. */ |
| 9924 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9925 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9926 | int |
| 9927 | main () |
| 9928 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9929 | 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] | 9930 | test_array [0] = 0 |
| 9931 | |
| 9932 | ; |
| 9933 | return 0; |
| 9934 | } |
| 9935 | _ACEOF |
| 9936 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9937 | if { (ac_try="$ac_compile" |
| 9938 | case "(($ac_try" in |
| 9939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9940 | *) ac_try_echo=$ac_try;; |
| 9941 | esac |
| 9942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9943 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9944 | ac_status=$? |
| 9945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9946 | rm -f conftest.er1 |
| 9947 | cat conftest.err >&5 |
| 9948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9949 | (exit $ac_status); } && { |
| 9950 | test -z "$ac_c_werror_flag" || |
| 9951 | test ! -s conftest.err |
| 9952 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9953 | ac_lo=$ac_mid; break |
| 9954 | else |
| 9955 | echo "$as_me: failed program was:" >&5 |
| 9956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9957 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9958 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9959 | if test $ac_mid -le $ac_hi; then |
| 9960 | ac_lo= ac_hi= |
| 9961 | break |
| 9962 | fi |
| 9963 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9964 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9965 | |
| 9966 | 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] | 9967 | done |
| 9968 | else |
| 9969 | echo "$as_me: failed program was:" >&5 |
| 9970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9971 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9972 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9973 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9974 | |
| 9975 | 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] | 9976 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9977 | |
| 9978 | 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] | 9979 | # Binary search between lo and hi bounds. |
| 9980 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9981 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9982 | cat >conftest.$ac_ext <<_ACEOF |
| 9983 | /* confdefs.h. */ |
| 9984 | _ACEOF |
| 9985 | cat confdefs.h >>conftest.$ac_ext |
| 9986 | cat >>conftest.$ac_ext <<_ACEOF |
| 9987 | /* end confdefs.h. */ |
| 9988 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9989 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9990 | int |
| 9991 | main () |
| 9992 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9993 | 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] | 9994 | test_array [0] = 0 |
| 9995 | |
| 9996 | ; |
| 9997 | return 0; |
| 9998 | } |
| 9999 | _ACEOF |
| 10000 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10001 | if { (ac_try="$ac_compile" |
| 10002 | case "(($ac_try" in |
| 10003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10004 | *) ac_try_echo=$ac_try;; |
| 10005 | esac |
| 10006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10007 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10008 | ac_status=$? |
| 10009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10010 | rm -f conftest.er1 |
| 10011 | cat conftest.err >&5 |
| 10012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10013 | (exit $ac_status); } && { |
| 10014 | test -z "$ac_c_werror_flag" || |
| 10015 | test ! -s conftest.err |
| 10016 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10017 | ac_hi=$ac_mid |
| 10018 | else |
| 10019 | echo "$as_me: failed program was:" >&5 |
| 10020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10021 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10022 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10023 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10024 | |
| 10025 | 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] | 10026 | done |
| 10027 | case $ac_lo in |
| 10028 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10029 | '') if test "$ac_cv_type_size_t" = yes; then |
| 10030 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10031 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10032 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10033 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10034 | { (exit 77); exit 77; }; } |
| 10035 | else |
| 10036 | ac_cv_sizeof_size_t=0 |
| 10037 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10038 | esac |
| 10039 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10040 | cat >conftest.$ac_ext <<_ACEOF |
| 10041 | /* confdefs.h. */ |
| 10042 | _ACEOF |
| 10043 | cat confdefs.h >>conftest.$ac_ext |
| 10044 | cat >>conftest.$ac_ext <<_ACEOF |
| 10045 | /* end confdefs.h. */ |
| 10046 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10047 | typedef size_t ac__type_sizeof_; |
| 10048 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10049 | 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] | 10050 | #include <stdio.h> |
| 10051 | #include <stdlib.h> |
| 10052 | int |
| 10053 | main () |
| 10054 | { |
| 10055 | |
| 10056 | FILE *f = fopen ("conftest.val", "w"); |
| 10057 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10058 | return 1; |
| 10059 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10060 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10061 | long int i = longval (); |
| 10062 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10063 | return 1; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10064 | fprintf (f, "%ld\n", i); |
| 10065 | } |
| 10066 | else |
| 10067 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10068 | unsigned long int i = ulongval (); |
| 10069 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10070 | return 1; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10071 | fprintf (f, "%lu\n", i); |
| 10072 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10073 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10074 | |
| 10075 | ; |
| 10076 | return 0; |
| 10077 | } |
| 10078 | _ACEOF |
| 10079 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10080 | if { (ac_try="$ac_link" |
| 10081 | case "(($ac_try" in |
| 10082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10083 | *) ac_try_echo=$ac_try;; |
| 10084 | esac |
| 10085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10086 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10087 | ac_status=$? |
| 10088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10090 | { (case "(($ac_try" in |
| 10091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10092 | *) ac_try_echo=$ac_try;; |
| 10093 | esac |
| 10094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10095 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10096 | ac_status=$? |
| 10097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10098 | (exit $ac_status); }; }; then |
| 10099 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10100 | else |
| 10101 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10102 | echo "$as_me: failed program was:" >&5 |
| 10103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10104 | |
| 10105 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10106 | if test "$ac_cv_type_size_t" = yes; then |
| 10107 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10108 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10109 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10110 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10111 | { (exit 77); exit 77; }; } |
| 10112 | else |
| 10113 | ac_cv_sizeof_size_t=0 |
| 10114 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10115 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10116 | 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] | 10117 | fi |
| 10118 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10119 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10120 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10121 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
| 10122 | |
| 10123 | |
| 10124 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10125 | cat >>confdefs.h <<_ACEOF |
| 10126 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10127 | _ACEOF |
| 10128 | |
| 10129 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10130 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10131 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 10132 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10133 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10134 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10135 | /* confdefs.h. */ |
| 10136 | _ACEOF |
| 10137 | cat confdefs.h >>conftest.$ac_ext |
| 10138 | cat >>conftest.$ac_ext <<_ACEOF |
| 10139 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10141 | int |
| 10142 | main () |
| 10143 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10144 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10145 | ; |
| 10146 | return 0; |
| 10147 | } |
| 10148 | _ACEOF |
| 10149 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10150 | if { (ac_try="$ac_compile" |
| 10151 | case "(($ac_try" in |
| 10152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10153 | *) ac_try_echo=$ac_try;; |
| 10154 | esac |
| 10155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10156 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10157 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10159 | rm -f conftest.er1 |
| 10160 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10162 | (exit $ac_status); } && { |
| 10163 | test -z "$ac_c_werror_flag" || |
| 10164 | test ! -s conftest.err |
| 10165 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10166 | |
| 10167 | |
| 10168 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10169 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10170 | _ACEOF |
| 10171 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10172 | have_long_long=yes |
| 10173 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10174 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10177 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10178 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10179 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10180 | |
| 10181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10182 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 10183 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 10184 | if test "$have_long_long" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10185 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 10186 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10187 | if test "${ac_cv_type_long_long+set}" = set; then |
| 10188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10189 | else |
| 10190 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10191 | /* confdefs.h. */ |
| 10192 | _ACEOF |
| 10193 | cat confdefs.h >>conftest.$ac_ext |
| 10194 | cat >>conftest.$ac_ext <<_ACEOF |
| 10195 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10197 | typedef long long ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10198 | int |
| 10199 | main () |
| 10200 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10201 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10202 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10203 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10204 | return 0; |
| 10205 | ; |
| 10206 | return 0; |
| 10207 | } |
| 10208 | _ACEOF |
| 10209 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10210 | if { (ac_try="$ac_compile" |
| 10211 | case "(($ac_try" in |
| 10212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10213 | *) ac_try_echo=$ac_try;; |
| 10214 | esac |
| 10215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10216 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10217 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10219 | rm -f conftest.er1 |
| 10220 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10222 | (exit $ac_status); } && { |
| 10223 | test -z "$ac_c_werror_flag" || |
| 10224 | test ! -s conftest.err |
| 10225 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10226 | ac_cv_type_long_long=yes |
| 10227 | else |
| 10228 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10230 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10231 | ac_cv_type_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10232 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10233 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10235 | fi |
| 10236 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 10237 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 10238 | |
| 10239 | # The cast to long int works around a bug in the HP C Compiler |
| 10240 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10241 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10242 | # This bug is HP SR number 8606223364. |
| 10243 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 10244 | 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] | 10245 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 10246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10247 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10248 | if test "$cross_compiling" = yes; then |
| 10249 | # Depending upon the size, compute the lo and hi bounds. |
| 10250 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10251 | /* confdefs.h. */ |
| 10252 | _ACEOF |
| 10253 | cat confdefs.h >>conftest.$ac_ext |
| 10254 | cat >>conftest.$ac_ext <<_ACEOF |
| 10255 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10256 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10257 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10258 | int |
| 10259 | main () |
| 10260 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10261 | 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] | 10262 | test_array [0] = 0 |
| 10263 | |
| 10264 | ; |
| 10265 | return 0; |
| 10266 | } |
| 10267 | _ACEOF |
| 10268 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10269 | if { (ac_try="$ac_compile" |
| 10270 | case "(($ac_try" in |
| 10271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10272 | *) ac_try_echo=$ac_try;; |
| 10273 | esac |
| 10274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10275 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10276 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10278 | rm -f conftest.er1 |
| 10279 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10281 | (exit $ac_status); } && { |
| 10282 | test -z "$ac_c_werror_flag" || |
| 10283 | test ! -s conftest.err |
| 10284 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10285 | ac_lo=0 ac_mid=0 |
| 10286 | while :; do |
| 10287 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10288 | /* confdefs.h. */ |
| 10289 | _ACEOF |
| 10290 | cat confdefs.h >>conftest.$ac_ext |
| 10291 | cat >>conftest.$ac_ext <<_ACEOF |
| 10292 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10293 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10294 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10295 | int |
| 10296 | main () |
| 10297 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10298 | 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] | 10299 | test_array [0] = 0 |
| 10300 | |
| 10301 | ; |
| 10302 | return 0; |
| 10303 | } |
| 10304 | _ACEOF |
| 10305 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10306 | if { (ac_try="$ac_compile" |
| 10307 | case "(($ac_try" in |
| 10308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10309 | *) ac_try_echo=$ac_try;; |
| 10310 | esac |
| 10311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10312 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10313 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10315 | rm -f conftest.er1 |
| 10316 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10318 | (exit $ac_status); } && { |
| 10319 | test -z "$ac_c_werror_flag" || |
| 10320 | test ! -s conftest.err |
| 10321 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 | ac_hi=$ac_mid; break |
| 10323 | else |
| 10324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10326 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10327 | ac_lo=`expr $ac_mid + 1` |
| 10328 | if test $ac_lo -le $ac_mid; then |
| 10329 | ac_lo= ac_hi= |
| 10330 | break |
| 10331 | fi |
| 10332 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10334 | |
| 10335 | 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] | 10336 | done |
| 10337 | else |
| 10338 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10340 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10341 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10342 | /* confdefs.h. */ |
| 10343 | _ACEOF |
| 10344 | cat confdefs.h >>conftest.$ac_ext |
| 10345 | cat >>conftest.$ac_ext <<_ACEOF |
| 10346 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10347 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10348 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10349 | int |
| 10350 | main () |
| 10351 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10352 | 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] | 10353 | test_array [0] = 0 |
| 10354 | |
| 10355 | ; |
| 10356 | return 0; |
| 10357 | } |
| 10358 | _ACEOF |
| 10359 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10360 | if { (ac_try="$ac_compile" |
| 10361 | case "(($ac_try" in |
| 10362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10363 | *) ac_try_echo=$ac_try;; |
| 10364 | esac |
| 10365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10366 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10367 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10369 | rm -f conftest.er1 |
| 10370 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10372 | (exit $ac_status); } && { |
| 10373 | test -z "$ac_c_werror_flag" || |
| 10374 | test ! -s conftest.err |
| 10375 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 | ac_hi=-1 ac_mid=-1 |
| 10377 | while :; do |
| 10378 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10379 | /* confdefs.h. */ |
| 10380 | _ACEOF |
| 10381 | cat confdefs.h >>conftest.$ac_ext |
| 10382 | cat >>conftest.$ac_ext <<_ACEOF |
| 10383 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10385 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10386 | int |
| 10387 | main () |
| 10388 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10389 | 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] | 10390 | test_array [0] = 0 |
| 10391 | |
| 10392 | ; |
| 10393 | return 0; |
| 10394 | } |
| 10395 | _ACEOF |
| 10396 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10397 | if { (ac_try="$ac_compile" |
| 10398 | case "(($ac_try" in |
| 10399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10400 | *) ac_try_echo=$ac_try;; |
| 10401 | esac |
| 10402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10403 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10404 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10406 | rm -f conftest.er1 |
| 10407 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10409 | (exit $ac_status); } && { |
| 10410 | test -z "$ac_c_werror_flag" || |
| 10411 | test ! -s conftest.err |
| 10412 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | ac_lo=$ac_mid; break |
| 10414 | else |
| 10415 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10417 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10418 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10419 | if test $ac_mid -le $ac_hi; then |
| 10420 | ac_lo= ac_hi= |
| 10421 | break |
| 10422 | fi |
| 10423 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10424 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10425 | |
| 10426 | 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] | 10427 | done |
| 10428 | else |
| 10429 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10431 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10432 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10433 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10434 | |
| 10435 | 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] | 10436 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10437 | |
| 10438 | 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] | 10439 | # Binary search between lo and hi bounds. |
| 10440 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10441 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10442 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10443 | /* confdefs.h. */ |
| 10444 | _ACEOF |
| 10445 | cat confdefs.h >>conftest.$ac_ext |
| 10446 | cat >>conftest.$ac_ext <<_ACEOF |
| 10447 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10448 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10449 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10450 | int |
| 10451 | main () |
| 10452 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10453 | 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] | 10454 | test_array [0] = 0 |
| 10455 | |
| 10456 | ; |
| 10457 | return 0; |
| 10458 | } |
| 10459 | _ACEOF |
| 10460 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10461 | if { (ac_try="$ac_compile" |
| 10462 | case "(($ac_try" in |
| 10463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10464 | *) ac_try_echo=$ac_try;; |
| 10465 | esac |
| 10466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10467 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10468 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10470 | rm -f conftest.er1 |
| 10471 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10473 | (exit $ac_status); } && { |
| 10474 | test -z "$ac_c_werror_flag" || |
| 10475 | test ! -s conftest.err |
| 10476 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10477 | ac_hi=$ac_mid |
| 10478 | else |
| 10479 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10481 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10482 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10483 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10484 | |
| 10485 | 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] | 10486 | done |
| 10487 | case $ac_lo in |
| 10488 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10489 | '') if test "$ac_cv_type_long_long" = yes; then |
| 10490 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10491 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10492 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10493 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10494 | { (exit 77); exit 77; }; } |
| 10495 | else |
| 10496 | ac_cv_sizeof_long_long=0 |
| 10497 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10498 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10499 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10500 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10501 | /* confdefs.h. */ |
| 10502 | _ACEOF |
| 10503 | cat confdefs.h >>conftest.$ac_ext |
| 10504 | cat >>conftest.$ac_ext <<_ACEOF |
| 10505 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10506 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10507 | typedef long long ac__type_sizeof_; |
| 10508 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10509 | 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] | 10510 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10511 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10512 | int |
| 10513 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10514 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10515 | |
| 10516 | FILE *f = fopen ("conftest.val", "w"); |
| 10517 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10518 | return 1; |
| 10519 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10520 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10521 | long int i = longval (); |
| 10522 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10523 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10524 | fprintf (f, "%ld\n", i); |
| 10525 | } |
| 10526 | else |
| 10527 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10528 | unsigned long int i = ulongval (); |
| 10529 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10530 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10531 | fprintf (f, "%lu\n", i); |
| 10532 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10533 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10534 | |
| 10535 | ; |
| 10536 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10537 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10538 | _ACEOF |
| 10539 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10540 | if { (ac_try="$ac_link" |
| 10541 | case "(($ac_try" in |
| 10542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10543 | *) ac_try_echo=$ac_try;; |
| 10544 | esac |
| 10545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10546 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10547 | ac_status=$? |
| 10548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10549 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10550 | { (case "(($ac_try" in |
| 10551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10552 | *) ac_try_echo=$ac_try;; |
| 10553 | esac |
| 10554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10555 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10556 | ac_status=$? |
| 10557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10558 | (exit $ac_status); }; }; then |
| 10559 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10560 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10561 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10562 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10565 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10566 | if test "$ac_cv_type_long_long" = yes; then |
| 10567 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10568 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10569 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10570 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10571 | { (exit 77); exit 77; }; } |
| 10572 | else |
| 10573 | ac_cv_sizeof_long_long=0 |
| 10574 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10575 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10576 | 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] | 10577 | fi |
| 10578 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10579 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10580 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 10581 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
| 10582 | |
| 10583 | |
| 10584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10585 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10586 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10587 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10588 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10589 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10590 | fi |
| 10591 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 10592 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 10593 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
| 10594 | have_long_double=no |
| 10595 | cat >conftest.$ac_ext <<_ACEOF |
| 10596 | /* confdefs.h. */ |
| 10597 | _ACEOF |
| 10598 | cat confdefs.h >>conftest.$ac_ext |
| 10599 | cat >>conftest.$ac_ext <<_ACEOF |
| 10600 | /* end confdefs.h. */ |
| 10601 | |
| 10602 | int |
| 10603 | main () |
| 10604 | { |
| 10605 | long double x; x = (long double)0; |
| 10606 | ; |
| 10607 | return 0; |
| 10608 | } |
| 10609 | _ACEOF |
| 10610 | rm -f conftest.$ac_objext |
| 10611 | if { (ac_try="$ac_compile" |
| 10612 | case "(($ac_try" in |
| 10613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10614 | *) ac_try_echo=$ac_try;; |
| 10615 | esac |
| 10616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10617 | (eval "$ac_compile") 2>conftest.er1 |
| 10618 | ac_status=$? |
| 10619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10620 | rm -f conftest.er1 |
| 10621 | cat conftest.err >&5 |
| 10622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10623 | (exit $ac_status); } && { |
| 10624 | test -z "$ac_c_werror_flag" || |
| 10625 | test ! -s conftest.err |
| 10626 | } && test -s conftest.$ac_objext; then |
| 10627 | |
| 10628 | |
| 10629 | cat >>confdefs.h <<\_ACEOF |
| 10630 | #define HAVE_LONG_DOUBLE 1 |
| 10631 | _ACEOF |
| 10632 | |
| 10633 | have_long_double=yes |
| 10634 | |
| 10635 | else |
| 10636 | echo "$as_me: failed program was:" >&5 |
| 10637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10638 | |
| 10639 | |
| 10640 | fi |
| 10641 | |
| 10642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10643 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 10644 | echo "${ECHO_T}$have_long_double" >&6; } |
| 10645 | if test "$have_long_double" = yes ; then |
| 10646 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 10647 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 10648 | if test "${ac_cv_type_long_double+set}" = set; then |
| 10649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10650 | else |
| 10651 | cat >conftest.$ac_ext <<_ACEOF |
| 10652 | /* confdefs.h. */ |
| 10653 | _ACEOF |
| 10654 | cat confdefs.h >>conftest.$ac_ext |
| 10655 | cat >>conftest.$ac_ext <<_ACEOF |
| 10656 | /* end confdefs.h. */ |
| 10657 | $ac_includes_default |
| 10658 | typedef long double ac__type_new_; |
| 10659 | int |
| 10660 | main () |
| 10661 | { |
| 10662 | if ((ac__type_new_ *) 0) |
| 10663 | return 0; |
| 10664 | if (sizeof (ac__type_new_)) |
| 10665 | return 0; |
| 10666 | ; |
| 10667 | return 0; |
| 10668 | } |
| 10669 | _ACEOF |
| 10670 | rm -f conftest.$ac_objext |
| 10671 | if { (ac_try="$ac_compile" |
| 10672 | case "(($ac_try" in |
| 10673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10674 | *) ac_try_echo=$ac_try;; |
| 10675 | esac |
| 10676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10677 | (eval "$ac_compile") 2>conftest.er1 |
| 10678 | ac_status=$? |
| 10679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10680 | rm -f conftest.er1 |
| 10681 | cat conftest.err >&5 |
| 10682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10683 | (exit $ac_status); } && { |
| 10684 | test -z "$ac_c_werror_flag" || |
| 10685 | test ! -s conftest.err |
| 10686 | } && test -s conftest.$ac_objext; then |
| 10687 | ac_cv_type_long_double=yes |
| 10688 | else |
| 10689 | echo "$as_me: failed program was:" >&5 |
| 10690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10691 | |
| 10692 | ac_cv_type_long_double=no |
| 10693 | fi |
| 10694 | |
| 10695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10696 | fi |
| 10697 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 10698 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 10699 | |
| 10700 | # The cast to long int works around a bug in the HP C Compiler |
| 10701 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10702 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10703 | # This bug is HP SR number 8606223364. |
| 10704 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 10705 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
| 10706 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
| 10707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10708 | else |
| 10709 | if test "$cross_compiling" = yes; then |
| 10710 | # Depending upon the size, compute the lo and hi bounds. |
| 10711 | cat >conftest.$ac_ext <<_ACEOF |
| 10712 | /* confdefs.h. */ |
| 10713 | _ACEOF |
| 10714 | cat confdefs.h >>conftest.$ac_ext |
| 10715 | cat >>conftest.$ac_ext <<_ACEOF |
| 10716 | /* end confdefs.h. */ |
| 10717 | $ac_includes_default |
| 10718 | typedef long double ac__type_sizeof_; |
| 10719 | int |
| 10720 | main () |
| 10721 | { |
| 10722 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 10723 | test_array [0] = 0 |
| 10724 | |
| 10725 | ; |
| 10726 | return 0; |
| 10727 | } |
| 10728 | _ACEOF |
| 10729 | rm -f conftest.$ac_objext |
| 10730 | if { (ac_try="$ac_compile" |
| 10731 | case "(($ac_try" in |
| 10732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10733 | *) ac_try_echo=$ac_try;; |
| 10734 | esac |
| 10735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10736 | (eval "$ac_compile") 2>conftest.er1 |
| 10737 | ac_status=$? |
| 10738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10739 | rm -f conftest.er1 |
| 10740 | cat conftest.err >&5 |
| 10741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10742 | (exit $ac_status); } && { |
| 10743 | test -z "$ac_c_werror_flag" || |
| 10744 | test ! -s conftest.err |
| 10745 | } && test -s conftest.$ac_objext; then |
| 10746 | ac_lo=0 ac_mid=0 |
| 10747 | while :; do |
| 10748 | cat >conftest.$ac_ext <<_ACEOF |
| 10749 | /* confdefs.h. */ |
| 10750 | _ACEOF |
| 10751 | cat confdefs.h >>conftest.$ac_ext |
| 10752 | cat >>conftest.$ac_ext <<_ACEOF |
| 10753 | /* end confdefs.h. */ |
| 10754 | $ac_includes_default |
| 10755 | typedef long double ac__type_sizeof_; |
| 10756 | int |
| 10757 | main () |
| 10758 | { |
| 10759 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 10760 | test_array [0] = 0 |
| 10761 | |
| 10762 | ; |
| 10763 | return 0; |
| 10764 | } |
| 10765 | _ACEOF |
| 10766 | rm -f conftest.$ac_objext |
| 10767 | if { (ac_try="$ac_compile" |
| 10768 | case "(($ac_try" in |
| 10769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10770 | *) ac_try_echo=$ac_try;; |
| 10771 | esac |
| 10772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10773 | (eval "$ac_compile") 2>conftest.er1 |
| 10774 | ac_status=$? |
| 10775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10776 | rm -f conftest.er1 |
| 10777 | cat conftest.err >&5 |
| 10778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10779 | (exit $ac_status); } && { |
| 10780 | test -z "$ac_c_werror_flag" || |
| 10781 | test ! -s conftest.err |
| 10782 | } && test -s conftest.$ac_objext; then |
| 10783 | ac_hi=$ac_mid; break |
| 10784 | else |
| 10785 | echo "$as_me: failed program was:" >&5 |
| 10786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10787 | |
| 10788 | ac_lo=`expr $ac_mid + 1` |
| 10789 | if test $ac_lo -le $ac_mid; then |
| 10790 | ac_lo= ac_hi= |
| 10791 | break |
| 10792 | fi |
| 10793 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10794 | fi |
| 10795 | |
| 10796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10797 | done |
| 10798 | else |
| 10799 | echo "$as_me: failed program was:" >&5 |
| 10800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10801 | |
| 10802 | cat >conftest.$ac_ext <<_ACEOF |
| 10803 | /* confdefs.h. */ |
| 10804 | _ACEOF |
| 10805 | cat confdefs.h >>conftest.$ac_ext |
| 10806 | cat >>conftest.$ac_ext <<_ACEOF |
| 10807 | /* end confdefs.h. */ |
| 10808 | $ac_includes_default |
| 10809 | typedef long double ac__type_sizeof_; |
| 10810 | int |
| 10811 | main () |
| 10812 | { |
| 10813 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 10814 | test_array [0] = 0 |
| 10815 | |
| 10816 | ; |
| 10817 | return 0; |
| 10818 | } |
| 10819 | _ACEOF |
| 10820 | rm -f conftest.$ac_objext |
| 10821 | if { (ac_try="$ac_compile" |
| 10822 | case "(($ac_try" in |
| 10823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10824 | *) ac_try_echo=$ac_try;; |
| 10825 | esac |
| 10826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10827 | (eval "$ac_compile") 2>conftest.er1 |
| 10828 | ac_status=$? |
| 10829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10830 | rm -f conftest.er1 |
| 10831 | cat conftest.err >&5 |
| 10832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10833 | (exit $ac_status); } && { |
| 10834 | test -z "$ac_c_werror_flag" || |
| 10835 | test ! -s conftest.err |
| 10836 | } && test -s conftest.$ac_objext; then |
| 10837 | ac_hi=-1 ac_mid=-1 |
| 10838 | while :; do |
| 10839 | cat >conftest.$ac_ext <<_ACEOF |
| 10840 | /* confdefs.h. */ |
| 10841 | _ACEOF |
| 10842 | cat confdefs.h >>conftest.$ac_ext |
| 10843 | cat >>conftest.$ac_ext <<_ACEOF |
| 10844 | /* end confdefs.h. */ |
| 10845 | $ac_includes_default |
| 10846 | typedef long double ac__type_sizeof_; |
| 10847 | int |
| 10848 | main () |
| 10849 | { |
| 10850 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 10851 | test_array [0] = 0 |
| 10852 | |
| 10853 | ; |
| 10854 | return 0; |
| 10855 | } |
| 10856 | _ACEOF |
| 10857 | rm -f conftest.$ac_objext |
| 10858 | if { (ac_try="$ac_compile" |
| 10859 | case "(($ac_try" in |
| 10860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10861 | *) ac_try_echo=$ac_try;; |
| 10862 | esac |
| 10863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10864 | (eval "$ac_compile") 2>conftest.er1 |
| 10865 | ac_status=$? |
| 10866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10867 | rm -f conftest.er1 |
| 10868 | cat conftest.err >&5 |
| 10869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10870 | (exit $ac_status); } && { |
| 10871 | test -z "$ac_c_werror_flag" || |
| 10872 | test ! -s conftest.err |
| 10873 | } && test -s conftest.$ac_objext; then |
| 10874 | ac_lo=$ac_mid; break |
| 10875 | else |
| 10876 | echo "$as_me: failed program was:" >&5 |
| 10877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10878 | |
| 10879 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10880 | if test $ac_mid -le $ac_hi; then |
| 10881 | ac_lo= ac_hi= |
| 10882 | break |
| 10883 | fi |
| 10884 | ac_mid=`expr 2 '*' $ac_mid` |
| 10885 | fi |
| 10886 | |
| 10887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10888 | done |
| 10889 | else |
| 10890 | echo "$as_me: failed program was:" >&5 |
| 10891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10892 | |
| 10893 | ac_lo= ac_hi= |
| 10894 | fi |
| 10895 | |
| 10896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10897 | fi |
| 10898 | |
| 10899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10900 | # Binary search between lo and hi bounds. |
| 10901 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10902 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10903 | cat >conftest.$ac_ext <<_ACEOF |
| 10904 | /* confdefs.h. */ |
| 10905 | _ACEOF |
| 10906 | cat confdefs.h >>conftest.$ac_ext |
| 10907 | cat >>conftest.$ac_ext <<_ACEOF |
| 10908 | /* end confdefs.h. */ |
| 10909 | $ac_includes_default |
| 10910 | typedef long double ac__type_sizeof_; |
| 10911 | int |
| 10912 | main () |
| 10913 | { |
| 10914 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 10915 | test_array [0] = 0 |
| 10916 | |
| 10917 | ; |
| 10918 | return 0; |
| 10919 | } |
| 10920 | _ACEOF |
| 10921 | rm -f conftest.$ac_objext |
| 10922 | if { (ac_try="$ac_compile" |
| 10923 | case "(($ac_try" in |
| 10924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10925 | *) ac_try_echo=$ac_try;; |
| 10926 | esac |
| 10927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10928 | (eval "$ac_compile") 2>conftest.er1 |
| 10929 | ac_status=$? |
| 10930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10931 | rm -f conftest.er1 |
| 10932 | cat conftest.err >&5 |
| 10933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10934 | (exit $ac_status); } && { |
| 10935 | test -z "$ac_c_werror_flag" || |
| 10936 | test ! -s conftest.err |
| 10937 | } && test -s conftest.$ac_objext; then |
| 10938 | ac_hi=$ac_mid |
| 10939 | else |
| 10940 | echo "$as_me: failed program was:" >&5 |
| 10941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10942 | |
| 10943 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 10944 | fi |
| 10945 | |
| 10946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10947 | done |
| 10948 | case $ac_lo in |
| 10949 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 10950 | '') if test "$ac_cv_type_long_double" = yes; then |
| 10951 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
| 10952 | See \`config.log' for more details." >&5 |
| 10953 | echo "$as_me: error: cannot compute sizeof (long double) |
| 10954 | See \`config.log' for more details." >&2;} |
| 10955 | { (exit 77); exit 77; }; } |
| 10956 | else |
| 10957 | ac_cv_sizeof_long_double=0 |
| 10958 | fi ;; |
| 10959 | esac |
| 10960 | else |
| 10961 | cat >conftest.$ac_ext <<_ACEOF |
| 10962 | /* confdefs.h. */ |
| 10963 | _ACEOF |
| 10964 | cat confdefs.h >>conftest.$ac_ext |
| 10965 | cat >>conftest.$ac_ext <<_ACEOF |
| 10966 | /* end confdefs.h. */ |
| 10967 | $ac_includes_default |
| 10968 | typedef long double ac__type_sizeof_; |
| 10969 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10970 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10971 | #include <stdio.h> |
| 10972 | #include <stdlib.h> |
| 10973 | int |
| 10974 | main () |
| 10975 | { |
| 10976 | |
| 10977 | FILE *f = fopen ("conftest.val", "w"); |
| 10978 | if (! f) |
| 10979 | return 1; |
| 10980 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 10981 | { |
| 10982 | long int i = longval (); |
| 10983 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10984 | return 1; |
| 10985 | fprintf (f, "%ld\n", i); |
| 10986 | } |
| 10987 | else |
| 10988 | { |
| 10989 | unsigned long int i = ulongval (); |
| 10990 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10991 | return 1; |
| 10992 | fprintf (f, "%lu\n", i); |
| 10993 | } |
| 10994 | return ferror (f) || fclose (f) != 0; |
| 10995 | |
| 10996 | ; |
| 10997 | return 0; |
| 10998 | } |
| 10999 | _ACEOF |
| 11000 | rm -f conftest$ac_exeext |
| 11001 | if { (ac_try="$ac_link" |
| 11002 | case "(($ac_try" in |
| 11003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11004 | *) ac_try_echo=$ac_try;; |
| 11005 | esac |
| 11006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11007 | (eval "$ac_link") 2>&5 |
| 11008 | ac_status=$? |
| 11009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11010 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11011 | { (case "(($ac_try" in |
| 11012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11013 | *) ac_try_echo=$ac_try;; |
| 11014 | esac |
| 11015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11016 | (eval "$ac_try") 2>&5 |
| 11017 | ac_status=$? |
| 11018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11019 | (exit $ac_status); }; }; then |
| 11020 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 11021 | else |
| 11022 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11023 | echo "$as_me: failed program was:" >&5 |
| 11024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11025 | |
| 11026 | ( exit $ac_status ) |
| 11027 | if test "$ac_cv_type_long_double" = yes; then |
| 11028 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
| 11029 | See \`config.log' for more details." >&5 |
| 11030 | echo "$as_me: error: cannot compute sizeof (long double) |
| 11031 | See \`config.log' for more details." >&2;} |
| 11032 | { (exit 77); exit 77; }; } |
| 11033 | else |
| 11034 | ac_cv_sizeof_long_double=0 |
| 11035 | fi |
| 11036 | fi |
| 11037 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11038 | fi |
| 11039 | rm -f conftest.val |
| 11040 | fi |
| 11041 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 11042 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
| 11043 | |
| 11044 | |
| 11045 | |
| 11046 | cat >>confdefs.h <<_ACEOF |
| 11047 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 11048 | _ACEOF |
| 11049 | |
| 11050 | |
| 11051 | fi |
| 11052 | |
| 11053 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11054 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 11055 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11056 | have_c99_bool=no |
| 11057 | cat >conftest.$ac_ext <<_ACEOF |
| 11058 | /* confdefs.h. */ |
| 11059 | _ACEOF |
| 11060 | cat confdefs.h >>conftest.$ac_ext |
| 11061 | cat >>conftest.$ac_ext <<_ACEOF |
| 11062 | /* end confdefs.h. */ |
| 11063 | |
| 11064 | int |
| 11065 | main () |
| 11066 | { |
| 11067 | _Bool x; x = (_Bool)0; |
| 11068 | ; |
| 11069 | return 0; |
| 11070 | } |
| 11071 | _ACEOF |
| 11072 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11073 | if { (ac_try="$ac_compile" |
| 11074 | case "(($ac_try" in |
| 11075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11076 | *) ac_try_echo=$ac_try;; |
| 11077 | esac |
| 11078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11079 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11080 | ac_status=$? |
| 11081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11082 | rm -f conftest.er1 |
| 11083 | cat conftest.err >&5 |
| 11084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11085 | (exit $ac_status); } && { |
| 11086 | test -z "$ac_c_werror_flag" || |
| 11087 | test ! -s conftest.err |
| 11088 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11089 | |
| 11090 | |
| 11091 | cat >>confdefs.h <<\_ACEOF |
| 11092 | #define HAVE_C99_BOOL 1 |
| 11093 | _ACEOF |
| 11094 | |
| 11095 | have_c99_bool=yes |
| 11096 | |
| 11097 | else |
| 11098 | echo "$as_me: failed program was:" >&5 |
| 11099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11100 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11101 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11102 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11103 | |
| 11104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11105 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 11106 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11107 | if test "$have_c99_bool" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11108 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 11109 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11110 | if test "${ac_cv_type__Bool+set}" = set; then |
| 11111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11112 | else |
| 11113 | cat >conftest.$ac_ext <<_ACEOF |
| 11114 | /* confdefs.h. */ |
| 11115 | _ACEOF |
| 11116 | cat confdefs.h >>conftest.$ac_ext |
| 11117 | cat >>conftest.$ac_ext <<_ACEOF |
| 11118 | /* end confdefs.h. */ |
| 11119 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11120 | typedef _Bool ac__type_new_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11121 | int |
| 11122 | main () |
| 11123 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11124 | if ((ac__type_new_ *) 0) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11125 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11126 | if (sizeof (ac__type_new_)) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11127 | return 0; |
| 11128 | ; |
| 11129 | return 0; |
| 11130 | } |
| 11131 | _ACEOF |
| 11132 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11133 | if { (ac_try="$ac_compile" |
| 11134 | case "(($ac_try" in |
| 11135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11136 | *) ac_try_echo=$ac_try;; |
| 11137 | esac |
| 11138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11139 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11140 | ac_status=$? |
| 11141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11142 | rm -f conftest.er1 |
| 11143 | cat conftest.err >&5 |
| 11144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11145 | (exit $ac_status); } && { |
| 11146 | test -z "$ac_c_werror_flag" || |
| 11147 | test ! -s conftest.err |
| 11148 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11149 | ac_cv_type__Bool=yes |
| 11150 | else |
| 11151 | echo "$as_me: failed program was:" >&5 |
| 11152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11153 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11154 | ac_cv_type__Bool=no |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11155 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11156 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11158 | fi |
| 11159 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 11160 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 11161 | |
| 11162 | # The cast to long int works around a bug in the HP C Compiler |
| 11163 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11164 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11165 | # This bug is HP SR number 8606223364. |
| 11166 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 11167 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11168 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
| 11169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11170 | else |
| 11171 | if test "$cross_compiling" = yes; then |
| 11172 | # Depending upon the size, compute the lo and hi bounds. |
| 11173 | cat >conftest.$ac_ext <<_ACEOF |
| 11174 | /* confdefs.h. */ |
| 11175 | _ACEOF |
| 11176 | cat confdefs.h >>conftest.$ac_ext |
| 11177 | cat >>conftest.$ac_ext <<_ACEOF |
| 11178 | /* end confdefs.h. */ |
| 11179 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11180 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11181 | int |
| 11182 | main () |
| 11183 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11184 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11185 | test_array [0] = 0 |
| 11186 | |
| 11187 | ; |
| 11188 | return 0; |
| 11189 | } |
| 11190 | _ACEOF |
| 11191 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11192 | if { (ac_try="$ac_compile" |
| 11193 | case "(($ac_try" in |
| 11194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11195 | *) ac_try_echo=$ac_try;; |
| 11196 | esac |
| 11197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11198 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11199 | ac_status=$? |
| 11200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11201 | rm -f conftest.er1 |
| 11202 | cat conftest.err >&5 |
| 11203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11204 | (exit $ac_status); } && { |
| 11205 | test -z "$ac_c_werror_flag" || |
| 11206 | test ! -s conftest.err |
| 11207 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11208 | ac_lo=0 ac_mid=0 |
| 11209 | while :; do |
| 11210 | cat >conftest.$ac_ext <<_ACEOF |
| 11211 | /* confdefs.h. */ |
| 11212 | _ACEOF |
| 11213 | cat confdefs.h >>conftest.$ac_ext |
| 11214 | cat >>conftest.$ac_ext <<_ACEOF |
| 11215 | /* end confdefs.h. */ |
| 11216 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11217 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11218 | int |
| 11219 | main () |
| 11220 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11221 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11222 | test_array [0] = 0 |
| 11223 | |
| 11224 | ; |
| 11225 | return 0; |
| 11226 | } |
| 11227 | _ACEOF |
| 11228 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11229 | if { (ac_try="$ac_compile" |
| 11230 | case "(($ac_try" in |
| 11231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11232 | *) ac_try_echo=$ac_try;; |
| 11233 | esac |
| 11234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11235 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11236 | ac_status=$? |
| 11237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11238 | rm -f conftest.er1 |
| 11239 | cat conftest.err >&5 |
| 11240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11241 | (exit $ac_status); } && { |
| 11242 | test -z "$ac_c_werror_flag" || |
| 11243 | test ! -s conftest.err |
| 11244 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11245 | ac_hi=$ac_mid; break |
| 11246 | else |
| 11247 | echo "$as_me: failed program was:" >&5 |
| 11248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11249 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11250 | ac_lo=`expr $ac_mid + 1` |
| 11251 | if test $ac_lo -le $ac_mid; then |
| 11252 | ac_lo= ac_hi= |
| 11253 | break |
| 11254 | fi |
| 11255 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11256 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11257 | |
| 11258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11259 | done |
| 11260 | else |
| 11261 | echo "$as_me: failed program was:" >&5 |
| 11262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11263 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11264 | cat >conftest.$ac_ext <<_ACEOF |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11265 | /* confdefs.h. */ |
| 11266 | _ACEOF |
| 11267 | cat confdefs.h >>conftest.$ac_ext |
| 11268 | cat >>conftest.$ac_ext <<_ACEOF |
| 11269 | /* end confdefs.h. */ |
| 11270 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11271 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11272 | int |
| 11273 | main () |
| 11274 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11275 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11276 | test_array [0] = 0 |
| 11277 | |
| 11278 | ; |
| 11279 | return 0; |
| 11280 | } |
| 11281 | _ACEOF |
| 11282 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11283 | if { (ac_try="$ac_compile" |
| 11284 | case "(($ac_try" in |
| 11285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11286 | *) ac_try_echo=$ac_try;; |
| 11287 | esac |
| 11288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11289 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11290 | ac_status=$? |
| 11291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11292 | rm -f conftest.er1 |
| 11293 | cat conftest.err >&5 |
| 11294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11295 | (exit $ac_status); } && { |
| 11296 | test -z "$ac_c_werror_flag" || |
| 11297 | test ! -s conftest.err |
| 11298 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11299 | ac_hi=-1 ac_mid=-1 |
| 11300 | while :; do |
| 11301 | cat >conftest.$ac_ext <<_ACEOF |
| 11302 | /* confdefs.h. */ |
| 11303 | _ACEOF |
| 11304 | cat confdefs.h >>conftest.$ac_ext |
| 11305 | cat >>conftest.$ac_ext <<_ACEOF |
| 11306 | /* end confdefs.h. */ |
| 11307 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11308 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11309 | int |
| 11310 | main () |
| 11311 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11312 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11313 | test_array [0] = 0 |
| 11314 | |
| 11315 | ; |
| 11316 | return 0; |
| 11317 | } |
| 11318 | _ACEOF |
| 11319 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11320 | if { (ac_try="$ac_compile" |
| 11321 | case "(($ac_try" in |
| 11322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11323 | *) ac_try_echo=$ac_try;; |
| 11324 | esac |
| 11325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11326 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11327 | ac_status=$? |
| 11328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11329 | rm -f conftest.er1 |
| 11330 | cat conftest.err >&5 |
| 11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11332 | (exit $ac_status); } && { |
| 11333 | test -z "$ac_c_werror_flag" || |
| 11334 | test ! -s conftest.err |
| 11335 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11336 | ac_lo=$ac_mid; break |
| 11337 | else |
| 11338 | echo "$as_me: failed program was:" >&5 |
| 11339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11340 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11341 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11342 | if test $ac_mid -le $ac_hi; then |
| 11343 | ac_lo= ac_hi= |
| 11344 | break |
| 11345 | fi |
| 11346 | ac_mid=`expr 2 '*' $ac_mid` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11347 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11348 | |
| 11349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11350 | done |
| 11351 | else |
| 11352 | echo "$as_me: failed program was:" >&5 |
| 11353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11354 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11355 | ac_lo= ac_hi= |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11356 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11357 | |
| 11358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11359 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11360 | |
| 11361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11362 | # Binary search between lo and hi bounds. |
| 11363 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11364 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11365 | cat >conftest.$ac_ext <<_ACEOF |
| 11366 | /* confdefs.h. */ |
| 11367 | _ACEOF |
| 11368 | cat confdefs.h >>conftest.$ac_ext |
| 11369 | cat >>conftest.$ac_ext <<_ACEOF |
| 11370 | /* end confdefs.h. */ |
| 11371 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11372 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11373 | int |
| 11374 | main () |
| 11375 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11376 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11377 | test_array [0] = 0 |
| 11378 | |
| 11379 | ; |
| 11380 | return 0; |
| 11381 | } |
| 11382 | _ACEOF |
| 11383 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11384 | if { (ac_try="$ac_compile" |
| 11385 | case "(($ac_try" in |
| 11386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11387 | *) ac_try_echo=$ac_try;; |
| 11388 | esac |
| 11389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11390 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11391 | ac_status=$? |
| 11392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11393 | rm -f conftest.er1 |
| 11394 | cat conftest.err >&5 |
| 11395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11396 | (exit $ac_status); } && { |
| 11397 | test -z "$ac_c_werror_flag" || |
| 11398 | test ! -s conftest.err |
| 11399 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11400 | ac_hi=$ac_mid |
| 11401 | else |
| 11402 | echo "$as_me: failed program was:" >&5 |
| 11403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11404 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11405 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11406 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11407 | |
| 11408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11409 | done |
| 11410 | case $ac_lo in |
| 11411 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11412 | '') if test "$ac_cv_type__Bool" = yes; then |
| 11413 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11414 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11415 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11416 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11417 | { (exit 77); exit 77; }; } |
| 11418 | else |
| 11419 | ac_cv_sizeof__Bool=0 |
| 11420 | fi ;; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11421 | esac |
| 11422 | else |
| 11423 | cat >conftest.$ac_ext <<_ACEOF |
| 11424 | /* confdefs.h. */ |
| 11425 | _ACEOF |
| 11426 | cat confdefs.h >>conftest.$ac_ext |
| 11427 | cat >>conftest.$ac_ext <<_ACEOF |
| 11428 | /* end confdefs.h. */ |
| 11429 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11430 | typedef _Bool ac__type_sizeof_; |
| 11431 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11432 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11433 | #include <stdio.h> |
| 11434 | #include <stdlib.h> |
| 11435 | int |
| 11436 | main () |
| 11437 | { |
| 11438 | |
| 11439 | FILE *f = fopen ("conftest.val", "w"); |
| 11440 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11441 | return 1; |
| 11442 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11443 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11444 | long int i = longval (); |
| 11445 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11446 | return 1; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11447 | fprintf (f, "%ld\n", i); |
| 11448 | } |
| 11449 | else |
| 11450 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11451 | unsigned long int i = ulongval (); |
| 11452 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11453 | return 1; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11454 | fprintf (f, "%lu\n", i); |
| 11455 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11456 | return ferror (f) || fclose (f) != 0; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11457 | |
| 11458 | ; |
| 11459 | return 0; |
| 11460 | } |
| 11461 | _ACEOF |
| 11462 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11463 | if { (ac_try="$ac_link" |
| 11464 | case "(($ac_try" in |
| 11465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11466 | *) ac_try_echo=$ac_try;; |
| 11467 | esac |
| 11468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11469 | (eval "$ac_link") 2>&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11470 | ac_status=$? |
| 11471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11472 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11473 | { (case "(($ac_try" in |
| 11474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11475 | *) ac_try_echo=$ac_try;; |
| 11476 | esac |
| 11477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11478 | (eval "$ac_try") 2>&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11479 | ac_status=$? |
| 11480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11481 | (exit $ac_status); }; }; then |
| 11482 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 11483 | else |
| 11484 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11485 | echo "$as_me: failed program was:" >&5 |
| 11486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11487 | |
| 11488 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11489 | if test "$ac_cv_type__Bool" = yes; then |
| 11490 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11491 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11492 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11493 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11494 | { (exit 77); exit 77; }; } |
| 11495 | else |
| 11496 | ac_cv_sizeof__Bool=0 |
| 11497 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11498 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11499 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11500 | fi |
| 11501 | rm -f conftest.val |
| 11502 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11503 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 11504 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
| 11505 | |
| 11506 | |
| 11507 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11508 | cat >>confdefs.h <<_ACEOF |
| 11509 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 11510 | _ACEOF |
| 11511 | |
| 11512 | |
| 11513 | fi |
| 11514 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11515 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 11516 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11517 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 11518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11519 | else |
| 11520 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11521 | /* confdefs.h. */ |
| 11522 | _ACEOF |
| 11523 | cat confdefs.h >>conftest.$ac_ext |
| 11524 | cat >>conftest.$ac_ext <<_ACEOF |
| 11525 | /* end confdefs.h. */ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11526 | #ifdef HAVE_STDINT_H |
| 11527 | #include <stdint.h> |
| 11528 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11529 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11530 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11531 | int |
| 11532 | main () |
| 11533 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11534 | if ((ac__type_new_ *) 0) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11535 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11536 | if (sizeof (ac__type_new_)) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11537 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11538 | ; |
| 11539 | return 0; |
| 11540 | } |
| 11541 | _ACEOF |
| 11542 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11543 | if { (ac_try="$ac_compile" |
| 11544 | case "(($ac_try" in |
| 11545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11546 | *) ac_try_echo=$ac_try;; |
| 11547 | esac |
| 11548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11549 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11550 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11552 | rm -f conftest.er1 |
| 11553 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11555 | (exit $ac_status); } && { |
| 11556 | test -z "$ac_c_werror_flag" || |
| 11557 | test ! -s conftest.err |
| 11558 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11559 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11560 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11561 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11563 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11564 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11565 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11566 | |
| 11567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11568 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11569 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 11570 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11571 | if test $ac_cv_type_uintptr_t = yes; then |
| 11572 | |
| 11573 | cat >>confdefs.h <<_ACEOF |
| 11574 | #define HAVE_UINTPTR_T 1 |
| 11575 | _ACEOF |
| 11576 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11577 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 11578 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11579 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 11580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11581 | else |
| 11582 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11583 | /* confdefs.h. */ |
| 11584 | _ACEOF |
| 11585 | cat confdefs.h >>conftest.$ac_ext |
| 11586 | cat >>conftest.$ac_ext <<_ACEOF |
| 11587 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11588 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11589 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11590 | int |
| 11591 | main () |
| 11592 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11593 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11594 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11595 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11596 | return 0; |
| 11597 | ; |
| 11598 | return 0; |
| 11599 | } |
| 11600 | _ACEOF |
| 11601 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11602 | if { (ac_try="$ac_compile" |
| 11603 | case "(($ac_try" in |
| 11604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11605 | *) ac_try_echo=$ac_try;; |
| 11606 | esac |
| 11607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11608 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11609 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11611 | rm -f conftest.er1 |
| 11612 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11614 | (exit $ac_status); } && { |
| 11615 | test -z "$ac_c_werror_flag" || |
| 11616 | test ! -s conftest.err |
| 11617 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11618 | ac_cv_type_uintptr_t=yes |
| 11619 | else |
| 11620 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11622 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11623 | ac_cv_type_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11624 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11625 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11627 | fi |
| 11628 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 11629 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 11630 | |
| 11631 | # The cast to long int works around a bug in the HP C Compiler |
| 11632 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11633 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11634 | # This bug is HP SR number 8606223364. |
| 11635 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 11636 | 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] | 11637 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 11638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 | if test "$cross_compiling" = yes; then |
| 11641 | # Depending upon the size, compute the lo and hi bounds. |
| 11642 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11643 | /* confdefs.h. */ |
| 11644 | _ACEOF |
| 11645 | cat confdefs.h >>conftest.$ac_ext |
| 11646 | cat >>conftest.$ac_ext <<_ACEOF |
| 11647 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11649 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11650 | int |
| 11651 | main () |
| 11652 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11653 | 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] | 11654 | test_array [0] = 0 |
| 11655 | |
| 11656 | ; |
| 11657 | return 0; |
| 11658 | } |
| 11659 | _ACEOF |
| 11660 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11661 | if { (ac_try="$ac_compile" |
| 11662 | case "(($ac_try" in |
| 11663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11664 | *) ac_try_echo=$ac_try;; |
| 11665 | esac |
| 11666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11667 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11670 | rm -f conftest.er1 |
| 11671 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11673 | (exit $ac_status); } && { |
| 11674 | test -z "$ac_c_werror_flag" || |
| 11675 | test ! -s conftest.err |
| 11676 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11677 | ac_lo=0 ac_mid=0 |
| 11678 | while :; do |
| 11679 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11680 | /* confdefs.h. */ |
| 11681 | _ACEOF |
| 11682 | cat confdefs.h >>conftest.$ac_ext |
| 11683 | cat >>conftest.$ac_ext <<_ACEOF |
| 11684 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11685 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11686 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11687 | int |
| 11688 | main () |
| 11689 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11690 | 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] | 11691 | test_array [0] = 0 |
| 11692 | |
| 11693 | ; |
| 11694 | return 0; |
| 11695 | } |
| 11696 | _ACEOF |
| 11697 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11698 | if { (ac_try="$ac_compile" |
| 11699 | case "(($ac_try" in |
| 11700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11701 | *) ac_try_echo=$ac_try;; |
| 11702 | esac |
| 11703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11704 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11705 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11707 | rm -f conftest.er1 |
| 11708 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11710 | (exit $ac_status); } && { |
| 11711 | test -z "$ac_c_werror_flag" || |
| 11712 | test ! -s conftest.err |
| 11713 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11714 | ac_hi=$ac_mid; break |
| 11715 | else |
| 11716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11718 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11719 | ac_lo=`expr $ac_mid + 1` |
| 11720 | if test $ac_lo -le $ac_mid; then |
| 11721 | ac_lo= ac_hi= |
| 11722 | break |
| 11723 | fi |
| 11724 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11725 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11726 | |
| 11727 | 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] | 11728 | done |
| 11729 | else |
| 11730 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11732 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11733 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11734 | /* confdefs.h. */ |
| 11735 | _ACEOF |
| 11736 | cat confdefs.h >>conftest.$ac_ext |
| 11737 | cat >>conftest.$ac_ext <<_ACEOF |
| 11738 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11739 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11740 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11741 | int |
| 11742 | main () |
| 11743 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11744 | 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] | 11745 | test_array [0] = 0 |
| 11746 | |
| 11747 | ; |
| 11748 | return 0; |
| 11749 | } |
| 11750 | _ACEOF |
| 11751 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11752 | if { (ac_try="$ac_compile" |
| 11753 | case "(($ac_try" in |
| 11754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11755 | *) ac_try_echo=$ac_try;; |
| 11756 | esac |
| 11757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11758 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11759 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11761 | rm -f conftest.er1 |
| 11762 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11764 | (exit $ac_status); } && { |
| 11765 | test -z "$ac_c_werror_flag" || |
| 11766 | test ! -s conftest.err |
| 11767 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11768 | ac_hi=-1 ac_mid=-1 |
| 11769 | while :; do |
| 11770 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11771 | /* confdefs.h. */ |
| 11772 | _ACEOF |
| 11773 | cat confdefs.h >>conftest.$ac_ext |
| 11774 | cat >>conftest.$ac_ext <<_ACEOF |
| 11775 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11776 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11777 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11778 | int |
| 11779 | main () |
| 11780 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11781 | 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] | 11782 | test_array [0] = 0 |
| 11783 | |
| 11784 | ; |
| 11785 | return 0; |
| 11786 | } |
| 11787 | _ACEOF |
| 11788 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11789 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11796 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11798 | rm -f conftest.er1 |
| 11799 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11801 | (exit $ac_status); } && { |
| 11802 | test -z "$ac_c_werror_flag" || |
| 11803 | test ! -s conftest.err |
| 11804 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11805 | ac_lo=$ac_mid; break |
| 11806 | else |
| 11807 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11809 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11810 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11811 | if test $ac_mid -le $ac_hi; then |
| 11812 | ac_lo= ac_hi= |
| 11813 | break |
| 11814 | fi |
| 11815 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11816 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11817 | |
| 11818 | 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] | 11819 | done |
| 11820 | else |
| 11821 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11823 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11824 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11825 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11826 | |
| 11827 | 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] | 11828 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11829 | |
| 11830 | 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] | 11831 | # Binary search between lo and hi bounds. |
| 11832 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11833 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11834 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11835 | /* confdefs.h. */ |
| 11836 | _ACEOF |
| 11837 | cat confdefs.h >>conftest.$ac_ext |
| 11838 | cat >>conftest.$ac_ext <<_ACEOF |
| 11839 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11840 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11841 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11842 | int |
| 11843 | main () |
| 11844 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11845 | 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] | 11846 | test_array [0] = 0 |
| 11847 | |
| 11848 | ; |
| 11849 | return 0; |
| 11850 | } |
| 11851 | _ACEOF |
| 11852 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11853 | if { (ac_try="$ac_compile" |
| 11854 | case "(($ac_try" in |
| 11855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11856 | *) ac_try_echo=$ac_try;; |
| 11857 | esac |
| 11858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11859 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11860 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11862 | rm -f conftest.er1 |
| 11863 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11865 | (exit $ac_status); } && { |
| 11866 | test -z "$ac_c_werror_flag" || |
| 11867 | test ! -s conftest.err |
| 11868 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11869 | ac_hi=$ac_mid |
| 11870 | else |
| 11871 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11873 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11874 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11875 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11876 | |
| 11877 | 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] | 11878 | done |
| 11879 | case $ac_lo in |
| 11880 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11881 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
| 11882 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11883 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11884 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11885 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11886 | { (exit 77); exit 77; }; } |
| 11887 | else |
| 11888 | ac_cv_sizeof_uintptr_t=0 |
| 11889 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11890 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11892 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11893 | /* confdefs.h. */ |
| 11894 | _ACEOF |
| 11895 | cat confdefs.h >>conftest.$ac_ext |
| 11896 | cat >>conftest.$ac_ext <<_ACEOF |
| 11897 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11898 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11899 | typedef uintptr_t ac__type_sizeof_; |
| 11900 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11901 | 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] | 11902 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11903 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11904 | int |
| 11905 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11906 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11907 | |
| 11908 | FILE *f = fopen ("conftest.val", "w"); |
| 11909 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11910 | return 1; |
| 11911 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11912 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11913 | long int i = longval (); |
| 11914 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11915 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11916 | fprintf (f, "%ld\n", i); |
| 11917 | } |
| 11918 | else |
| 11919 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11920 | unsigned long int i = ulongval (); |
| 11921 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11922 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11923 | fprintf (f, "%lu\n", i); |
| 11924 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11925 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11926 | |
| 11927 | ; |
| 11928 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11929 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11930 | _ACEOF |
| 11931 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11932 | if { (ac_try="$ac_link" |
| 11933 | case "(($ac_try" in |
| 11934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11935 | *) ac_try_echo=$ac_try;; |
| 11936 | esac |
| 11937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11938 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11939 | ac_status=$? |
| 11940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11941 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11942 | { (case "(($ac_try" in |
| 11943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11944 | *) ac_try_echo=$ac_try;; |
| 11945 | esac |
| 11946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11947 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11948 | ac_status=$? |
| 11949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11950 | (exit $ac_status); }; }; then |
| 11951 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11953 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11957 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11958 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 11959 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11960 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11961 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11962 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11963 | { (exit 77); exit 77; }; } |
| 11964 | else |
| 11965 | ac_cv_sizeof_uintptr_t=0 |
| 11966 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11967 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11968 | 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] | 11969 | fi |
| 11970 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11971 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11972 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 11973 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
| 11974 | |
| 11975 | |
| 11976 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11977 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11978 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11979 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11980 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11981 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11982 | fi |
| 11983 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11984 | |
| 11985 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11986 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11987 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 11988 | 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] | 11989 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 11990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11991 | else |
| 11992 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11993 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11994 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11995 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11996 | /* confdefs.h. */ |
| 11997 | _ACEOF |
| 11998 | cat confdefs.h >>conftest.$ac_ext |
| 11999 | cat >>conftest.$ac_ext <<_ACEOF |
| 12000 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12001 | #include <stdio.h> |
| 12002 | #include <sys/types.h> |
| 12003 | main() |
| 12004 | { |
| 12005 | FILE *f=fopen("conftestval", "w"); |
| 12006 | if (!f) exit(1); |
| 12007 | fprintf(f, "%d\n", sizeof(off_t)); |
| 12008 | exit(0); |
| 12009 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12010 | _ACEOF |
| 12011 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12012 | if { (ac_try="$ac_link" |
| 12013 | case "(($ac_try" in |
| 12014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12015 | *) ac_try_echo=$ac_try;; |
| 12016 | esac |
| 12017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12018 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12019 | ac_status=$? |
| 12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12021 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12022 | { (case "(($ac_try" in |
| 12023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12024 | *) ac_try_echo=$ac_try;; |
| 12025 | esac |
| 12026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12027 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12028 | ac_status=$? |
| 12029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12030 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12031 | ac_cv_sizeof_off_t=`cat conftestval` |
| 12032 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12033 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12034 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12037 | ( exit $ac_status ) |
| 12038 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12039 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12040 | 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] | 12041 | fi |
| 12042 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12043 | |
| 12044 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12045 | fi |
| 12046 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12047 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 12048 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12049 | |
| 12050 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12051 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12052 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12053 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12054 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12055 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 12056 | 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] | 12057 | if test "$have_long_long" = yes -a \ |
| 12058 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 12059 | "$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] | 12060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12061 | cat >>confdefs.h <<\_ACEOF |
| 12062 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 12063 | _ACEOF |
| 12064 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12065 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12066 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12067 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12068 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12069 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12070 | fi |
| 12071 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12072 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12073 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 12074 | 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] | 12075 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 12076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12077 | else |
| 12078 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12079 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12082 | /* confdefs.h. */ |
| 12083 | _ACEOF |
| 12084 | cat confdefs.h >>conftest.$ac_ext |
| 12085 | cat >>conftest.$ac_ext <<_ACEOF |
| 12086 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12087 | #include <stdio.h> |
| 12088 | #include <time.h> |
| 12089 | main() |
| 12090 | { |
| 12091 | FILE *f=fopen("conftestval", "w"); |
| 12092 | if (!f) exit(1); |
| 12093 | fprintf(f, "%d\n", sizeof(time_t)); |
| 12094 | exit(0); |
| 12095 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12096 | _ACEOF |
| 12097 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12098 | if { (ac_try="$ac_link" |
| 12099 | case "(($ac_try" in |
| 12100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12101 | *) ac_try_echo=$ac_try;; |
| 12102 | esac |
| 12103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12104 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12105 | ac_status=$? |
| 12106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12107 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12108 | { (case "(($ac_try" in |
| 12109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12110 | *) ac_try_echo=$ac_try;; |
| 12111 | esac |
| 12112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12113 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12114 | ac_status=$? |
| 12115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12116 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12117 | ac_cv_sizeof_time_t=`cat conftestval` |
| 12118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12119 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12120 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12123 | ( exit $ac_status ) |
| 12124 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12125 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12126 | 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] | 12127 | fi |
| 12128 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12129 | |
| 12130 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12131 | fi |
| 12132 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12133 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 12134 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12135 | |
| 12136 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12137 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12139 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12140 | |
| 12141 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12142 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 12143 | ac_save_cc="$CC" |
| 12144 | if test "$ac_cv_kpthread" = "yes" |
| 12145 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 12146 | elif test "$ac_cv_kthread" = "yes" |
| 12147 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12148 | elif test "$ac_cv_pthread" = "yes" |
| 12149 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 12150 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12151 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 12152 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12153 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12154 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12155 | /* confdefs.h. */ |
| 12156 | _ACEOF |
| 12157 | cat confdefs.h >>conftest.$ac_ext |
| 12158 | cat >>conftest.$ac_ext <<_ACEOF |
| 12159 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12160 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 | int |
| 12162 | main () |
| 12163 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 12164 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12165 | ; |
| 12166 | return 0; |
| 12167 | } |
| 12168 | _ACEOF |
| 12169 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12170 | if { (ac_try="$ac_compile" |
| 12171 | case "(($ac_try" in |
| 12172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12173 | *) ac_try_echo=$ac_try;; |
| 12174 | esac |
| 12175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12176 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12177 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12179 | rm -f conftest.er1 |
| 12180 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12182 | (exit $ac_status); } && { |
| 12183 | test -z "$ac_c_werror_flag" || |
| 12184 | test ! -s conftest.err |
| 12185 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12186 | have_pthread_t=yes |
| 12187 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12188 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12190 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12191 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12192 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12193 | |
| 12194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12195 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 12196 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12197 | if test "$have_pthread_t" = yes ; then |
| 12198 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12199 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 12200 | 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] | 12201 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 12202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12203 | else |
| 12204 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12205 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12206 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12207 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12208 | /* confdefs.h. */ |
| 12209 | _ACEOF |
| 12210 | cat confdefs.h >>conftest.$ac_ext |
| 12211 | cat >>conftest.$ac_ext <<_ACEOF |
| 12212 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12213 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12214 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12215 | main() |
| 12216 | { |
| 12217 | FILE *f=fopen("conftestval", "w"); |
| 12218 | if (!f) exit(1); |
| 12219 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 12220 | exit(0); |
| 12221 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12222 | _ACEOF |
| 12223 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12224 | if { (ac_try="$ac_link" |
| 12225 | case "(($ac_try" in |
| 12226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12227 | *) ac_try_echo=$ac_try;; |
| 12228 | esac |
| 12229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12230 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12231 | ac_status=$? |
| 12232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12233 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12234 | { (case "(($ac_try" in |
| 12235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12236 | *) ac_try_echo=$ac_try;; |
| 12237 | esac |
| 12238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12239 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12240 | ac_status=$? |
| 12241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12242 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12243 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 12244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12245 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12246 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12249 | ( exit $ac_status ) |
| 12250 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12251 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12252 | 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] | 12253 | fi |
| 12254 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12255 | |
| 12256 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12257 | fi |
| 12258 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12259 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 12260 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12261 | |
| 12262 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12263 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12264 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12265 | |
| 12266 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 12267 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12268 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12269 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 12270 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; } |
| 12271 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12272 | if test "${enable_toolbox_glue+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12273 | enableval=$enable_toolbox_glue; |
| 12274 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12275 | |
| 12276 | |
| 12277 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12278 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12279 | case $ac_sys_system/$ac_sys_release in |
| 12280 | Darwin/*) |
| 12281 | enable_toolbox_glue="yes";; |
| 12282 | *) |
| 12283 | enable_toolbox_glue="no";; |
| 12284 | esac |
| 12285 | fi |
| 12286 | case "$enable_toolbox_glue" in |
| 12287 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12288 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 12289 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12290 | |
| 12291 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12292 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12293 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12294 | |
| 12295 | ;; |
| 12296 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12297 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 12298 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12299 | ;; |
| 12300 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12301 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 12302 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12303 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12304 | |
| 12305 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12306 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 12307 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 12308 | ;; |
| 12309 | Darwin/*) |
| 12310 | OTHER_LIBTOOL_OPT="" |
| 12311 | ;; |
| 12312 | esac |
| 12313 | |
| 12314 | |
| 12315 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12316 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12317 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 12318 | if test "${enable_universalsdk}"; then |
| 12319 | : |
| 12320 | else |
| 12321 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 12322 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 12323 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12324 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 12325 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 12326 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 12327 | if test ${gcc_version} '<' 4.0 |
| 12328 | then |
| 12329 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 12330 | else |
| 12331 | LIBTOOL_CRUFT="" |
| 12332 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 12333 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 12334 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12335 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12336 | esac |
| 12337 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12338 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 12339 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12340 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12341 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12342 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12343 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12344 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12346 | cat >>confdefs.h <<\_ACEOF |
| 12347 | #define WITH_NEXT_FRAMEWORK 1 |
| 12348 | _ACEOF |
| 12349 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12350 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12351 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12352 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12353 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12354 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12355 | fi |
| 12356 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12357 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 12358 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12359 | case $ac_sys_system/$ac_sys_release in |
| 12360 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12362 | cat >>confdefs.h <<\_ACEOF |
| 12363 | #define WITH_DYLD 1 |
| 12364 | _ACEOF |
| 12365 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12366 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 12367 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12368 | ;; |
| 12369 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12370 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12371 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12372 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12373 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12374 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12375 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12376 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12377 | |
| 12378 | |
| 12379 | |
| 12380 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12381 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 12382 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12383 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 12384 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12385 | if test -z "$SO" |
| 12386 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12387 | case $ac_sys_system in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12388 | hp*|HP*) |
| 12389 | case `uname -m` in |
| 12390 | ia64) SO=.so;; |
| 12391 | *) SO=.sl;; |
| 12392 | esac |
| 12393 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 12394 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12395 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12396 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 12397 | else |
| 12398 | # this might also be a termcap variable, see #610332 |
| 12399 | echo |
| 12400 | echo '=====================================================================' |
| 12401 | echo '+ +' |
| 12402 | echo '+ WARNING: You have set SO in your environment. +' |
| 12403 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 12404 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 12405 | echo '+ +' |
| 12406 | echo '=====================================================================' |
| 12407 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12408 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12409 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 12410 | echo "${ECHO_T}$SO" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12411 | |
| 12412 | cat >>confdefs.h <<_ACEOF |
| 12413 | #define SHLIB_EXT "$SO" |
| 12414 | _ACEOF |
| 12415 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12416 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 12417 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12418 | # (Shared libraries in this instance are shared modules to be loaded into |
| 12419 | # Python, as opposed to building Python itself as a shared library.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12420 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 12421 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12422 | if test -z "$LDSHARED" |
| 12423 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12424 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 12425 | AIX*) |
| 12426 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 12427 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 12428 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 12429 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 12430 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12431 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 12432 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 12433 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 12434 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 12435 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12436 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12437 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 12438 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12439 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 12440 | if test "$enable_framework" ; then |
| 12441 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12442 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 12443 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12444 | else |
| 12445 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 12446 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12447 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12448 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12449 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 12450 | if test "$enable_framework" ; then |
| 12451 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12452 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 12453 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12454 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 12455 | # No framework, use the Python app as bundle-loader |
| 12456 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 12457 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12458 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12459 | Darwin/*) |
| 12460 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 12461 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 12462 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12463 | if test ${cur_target} '>' 10.2; then |
| 12464 | cur_target=10.3 |
| 12465 | fi |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 12466 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12467 | |
| 12468 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 12469 | # environment with a value that is the same as what we'll use |
| 12470 | # in the Makefile to ensure that we'll get the same compiler |
| 12471 | # environment during configure and build time. |
| 12472 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 12473 | export MACOSX_DEPLOYMENT_TARGET |
| 12474 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12475 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 12476 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12477 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12478 | if test "${enable_universalsdk}"; then |
| 12479 | LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 12480 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12481 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 12482 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12483 | else |
| 12484 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 12485 | if test "$enable_framework" ; then |
| 12486 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12487 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 12488 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12489 | else |
| 12490 | # No framework, use the Python app as bundle-loader |
| 12491 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 12492 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 12493 | fi |
| 12494 | fi |
| 12495 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 12496 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 12497 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12498 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 12499 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 12500 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 12501 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 12502 | else |
| 12503 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 12504 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12505 | OpenBSD*) |
| 12506 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 12507 | then |
| 12508 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 12509 | else |
| 12510 | case `uname -r` in |
| 12511 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 12512 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 12513 | ;; |
| 12514 | *) |
| 12515 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 12516 | ;; |
| 12517 | esac |
| 12518 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12519 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 12520 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12521 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 12522 | then LDSHARED='$(CC) -shared' |
| 12523 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12524 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 12525 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12526 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 12527 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12528 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12529 | *) LDSHARED="ld";; |
| 12530 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12531 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12532 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 12533 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 12534 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12535 | # 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] | 12536 | # library (module) -- this is only needed for a few systems |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12537 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 12538 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12539 | if test -z "$CCSHARED" |
| 12540 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 12541 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 12542 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 12543 | then CCSHARED="-fPIC"; |
| 12544 | elif test `uname -p` = sparc; |
| 12545 | then CCSHARED="-xcode=pic32"; |
| 12546 | else CCSHARED="-Kpic"; |
| 12547 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 12548 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 12549 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 12550 | else CCSHARED="+z"; |
| 12551 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12552 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 12553 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12554 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 12555 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12556 | if test "$GCC" = "yes" |
| 12557 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12558 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12559 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 12560 | SCO_SV*) |
| 12561 | if test "$GCC" = "yes" |
| 12562 | then CCSHARED="-fPIC" |
| 12563 | else CCSHARED="-Kpic -belf" |
| 12564 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12565 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 12566 | IRIX*/6*) case $CC in |
| 12567 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 12568 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 12569 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12570 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12571 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12572 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12573 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 12574 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12575 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12576 | # the python executable -- this is only needed for a few systems |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12577 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 12578 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12579 | if test -z "$LINKFORSHARED" |
| 12580 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 12581 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 12582 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 12583 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12584 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 12585 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 12586 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12587 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12588 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12589 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 12590 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 12591 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12592 | # not used by the core itself but which needs to be in the core so |
| 12593 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 12594 | # -prebind is no longer used, because it actually seems to give a |
| 12595 | # slowdown in stead of a speedup, maybe due to the large number of |
| 12596 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 12597 | |
| 12598 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12599 | if test "$enable_framework" |
| 12600 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12601 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12602 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 12603 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 12604 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 12605 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 12606 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12607 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 12608 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 12609 | then |
| 12610 | LINKFORSHARED="-Wl,--export-dynamic" |
| 12611 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 12612 | SunOS/5*) case $CC in |
| 12613 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 12614 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 12615 | then |
| 12616 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 12617 | fi;; |
| 12618 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 12619 | CYGWIN*) |
| 12620 | if test $enable_shared = "no" |
| 12621 | then |
| 12622 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 12623 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12624 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12625 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12626 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 12627 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12628 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12629 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12630 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 12631 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 12632 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 12633 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 12634 | case $ac_sys_system in |
| 12635 | CYGWIN*) |
| 12636 | # Cygwin needs CCSHARED when building extension DLLs |
| 12637 | # but not when building the interpreter DLL. |
| 12638 | CFLAGSFORSHARED='';; |
| 12639 | *) |
| 12640 | CFLAGSFORSHARED='$(CCSHARED)' |
| 12641 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 12642 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12643 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 12644 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 12645 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12646 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 12647 | # library (with --enable-shared). |
| 12648 | # 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] | 12649 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 12650 | # if it is not required, since it creates a dependency of the shared library |
| 12651 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 12652 | # don't need to link LIBS explicitly. The default should be only changed |
| 12653 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12654 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12655 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 12656 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12657 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12658 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 12659 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12660 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12661 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 12662 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12663 | |
| 12664 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12665 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12666 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12667 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 12668 | 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] | 12669 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 12670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12671 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12672 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12673 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12674 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12675 | /* confdefs.h. */ |
| 12676 | _ACEOF |
| 12677 | cat confdefs.h >>conftest.$ac_ext |
| 12678 | cat >>conftest.$ac_ext <<_ACEOF |
| 12679 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12680 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12681 | /* Override any GCC internal prototype to avoid an error. |
| 12682 | Use char because int might match the return type of a GCC |
| 12683 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12684 | #ifdef __cplusplus |
| 12685 | extern "C" |
| 12686 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12687 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12688 | int |
| 12689 | main () |
| 12690 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12691 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12692 | ; |
| 12693 | return 0; |
| 12694 | } |
| 12695 | _ACEOF |
| 12696 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12697 | if { (ac_try="$ac_link" |
| 12698 | case "(($ac_try" in |
| 12699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12700 | *) ac_try_echo=$ac_try;; |
| 12701 | esac |
| 12702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12703 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12704 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12706 | rm -f conftest.er1 |
| 12707 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12709 | (exit $ac_status); } && { |
| 12710 | test -z "$ac_c_werror_flag" || |
| 12711 | test ! -s conftest.err |
| 12712 | } && test -s conftest$ac_exeext && |
| 12713 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12714 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12715 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12718 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12719 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12720 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12721 | |
| 12722 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12723 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12724 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12725 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12726 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 12727 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12728 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 12729 | cat >>confdefs.h <<_ACEOF |
| 12730 | #define HAVE_LIBDL 1 |
| 12731 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12732 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12733 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12734 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12735 | fi |
| 12736 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12737 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12738 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 12739 | 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] | 12740 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 12741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12742 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12743 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12744 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12745 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12746 | /* confdefs.h. */ |
| 12747 | _ACEOF |
| 12748 | cat confdefs.h >>conftest.$ac_ext |
| 12749 | cat >>conftest.$ac_ext <<_ACEOF |
| 12750 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12751 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12752 | /* Override any GCC internal prototype to avoid an error. |
| 12753 | Use char because int might match the return type of a GCC |
| 12754 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12755 | #ifdef __cplusplus |
| 12756 | extern "C" |
| 12757 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12758 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12759 | int |
| 12760 | main () |
| 12761 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12762 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12763 | ; |
| 12764 | return 0; |
| 12765 | } |
| 12766 | _ACEOF |
| 12767 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12768 | if { (ac_try="$ac_link" |
| 12769 | case "(($ac_try" in |
| 12770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12771 | *) ac_try_echo=$ac_try;; |
| 12772 | esac |
| 12773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12774 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12775 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12777 | rm -f conftest.er1 |
| 12778 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12780 | (exit $ac_status); } && { |
| 12781 | test -z "$ac_c_werror_flag" || |
| 12782 | test ! -s conftest.err |
| 12783 | } && test -s conftest$ac_exeext && |
| 12784 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12785 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12787 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12789 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12790 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12791 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12792 | |
| 12793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12794 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12795 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12796 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12797 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 12798 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12799 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 12800 | cat >>confdefs.h <<_ACEOF |
| 12801 | #define HAVE_LIBDLD 1 |
| 12802 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12803 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12804 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12805 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12806 | fi |
| 12807 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12808 | |
| 12809 | # only check for sem_ini if thread support is requested |
| 12810 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12811 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 12812 | 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] | 12813 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 12815 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12816 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12817 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12818 | /* confdefs.h. */ |
| 12819 | _ACEOF |
| 12820 | cat confdefs.h >>conftest.$ac_ext |
| 12821 | cat >>conftest.$ac_ext <<_ACEOF |
| 12822 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12823 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12824 | /* Override any GCC internal prototype to avoid an error. |
| 12825 | Use char because int might match the return type of a GCC |
| 12826 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12827 | #ifdef __cplusplus |
| 12828 | extern "C" |
| 12829 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12830 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12831 | int |
| 12832 | main () |
| 12833 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12834 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12835 | ; |
| 12836 | return 0; |
| 12837 | } |
| 12838 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12839 | for ac_lib in '' pthread rt posix4; do |
| 12840 | if test -z "$ac_lib"; then |
| 12841 | ac_res="none required" |
| 12842 | else |
| 12843 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 12844 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12845 | fi |
| 12846 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12847 | if { (ac_try="$ac_link" |
| 12848 | case "(($ac_try" in |
| 12849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12850 | *) ac_try_echo=$ac_try;; |
| 12851 | esac |
| 12852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12853 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 12854 | ac_status=$? |
| 12855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12856 | rm -f conftest.er1 |
| 12857 | cat conftest.err >&5 |
| 12858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12859 | (exit $ac_status); } && { |
| 12860 | test -z "$ac_c_werror_flag" || |
| 12861 | test ! -s conftest.err |
| 12862 | } && test -s conftest$ac_exeext && |
| 12863 | $as_test_x conftest$ac_exeext; then |
| 12864 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12865 | else |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 12866 | echo "$as_me: failed program was:" >&5 |
| 12867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12868 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12869 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12870 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12871 | |
| 12872 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12873 | conftest$ac_exeext |
| 12874 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 12875 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 12876 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12877 | done |
| 12878 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 12879 | : |
| 12880 | else |
| 12881 | ac_cv_search_sem_init=no |
| 12882 | fi |
| 12883 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12884 | LIBS=$ac_func_search_save_LIBS |
| 12885 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12886 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 12887 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
| 12888 | ac_res=$ac_cv_search_sem_init |
| 12889 | if test "$ac_res" != no; then |
| 12890 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 12891 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 12892 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 12893 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12894 | # posix4 on Solaris 2.6 |
| 12895 | # pthread (first!) on Linux |
| 12896 | fi |
| 12897 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12898 | # check if we need libintl for locale functions |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12899 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 12900 | 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] | 12901 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 12902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12903 | else |
| 12904 | ac_check_lib_save_LIBS=$LIBS |
| 12905 | LIBS="-lintl $LIBS" |
| 12906 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12907 | /* confdefs.h. */ |
| 12908 | _ACEOF |
| 12909 | cat confdefs.h >>conftest.$ac_ext |
| 12910 | cat >>conftest.$ac_ext <<_ACEOF |
| 12911 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12912 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12913 | /* Override any GCC internal prototype to avoid an error. |
| 12914 | Use char because int might match the return type of a GCC |
| 12915 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12916 | #ifdef __cplusplus |
| 12917 | extern "C" |
| 12918 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12919 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12920 | int |
| 12921 | main () |
| 12922 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12923 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12924 | ; |
| 12925 | return 0; |
| 12926 | } |
| 12927 | _ACEOF |
| 12928 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12929 | if { (ac_try="$ac_link" |
| 12930 | case "(($ac_try" in |
| 12931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12932 | *) ac_try_echo=$ac_try;; |
| 12933 | esac |
| 12934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12935 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12936 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12938 | rm -f conftest.er1 |
| 12939 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12941 | (exit $ac_status); } && { |
| 12942 | test -z "$ac_c_werror_flag" || |
| 12943 | test ! -s conftest.err |
| 12944 | } && test -s conftest$ac_exeext && |
| 12945 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12946 | ac_cv_lib_intl_textdomain=yes |
| 12947 | else |
| 12948 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12950 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12951 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12952 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12953 | |
| 12954 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12955 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12956 | LIBS=$ac_check_lib_save_LIBS |
| 12957 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12958 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 12959 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12960 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 12961 | |
| 12962 | cat >>confdefs.h <<\_ACEOF |
| 12963 | #define WITH_LIBINTL 1 |
| 12964 | _ACEOF |
| 12965 | |
| 12966 | fi |
| 12967 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12968 | |
| 12969 | # checks for system dependent C++ extensions support |
| 12970 | case "$ac_sys_system" in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12971 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 12972 | 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] | 12973 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12974 | /* confdefs.h. */ |
| 12975 | _ACEOF |
| 12976 | cat confdefs.h >>conftest.$ac_ext |
| 12977 | cat >>conftest.$ac_ext <<_ACEOF |
| 12978 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12979 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12980 | int |
| 12981 | main () |
| 12982 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12983 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12984 | ; |
| 12985 | return 0; |
| 12986 | } |
| 12987 | _ACEOF |
| 12988 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12989 | if { (ac_try="$ac_link" |
| 12990 | case "(($ac_try" in |
| 12991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12992 | *) ac_try_echo=$ac_try;; |
| 12993 | esac |
| 12994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12995 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12996 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12998 | rm -f conftest.er1 |
| 12999 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13001 | (exit $ac_status); } && { |
| 13002 | test -z "$ac_c_werror_flag" || |
| 13003 | test ! -s conftest.err |
| 13004 | } && test -s conftest$ac_exeext && |
| 13005 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 | cat >>confdefs.h <<\_ACEOF |
| 13008 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 13009 | _ACEOF |
| 13010 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13011 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13012 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13016 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13018 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13019 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13020 | |
| 13021 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13022 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13023 | *) ;; |
| 13024 | esac |
| 13025 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 13026 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13027 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 13028 | 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] | 13029 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 13030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13031 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13032 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13033 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13034 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13035 | /* confdefs.h. */ |
| 13036 | _ACEOF |
| 13037 | cat confdefs.h >>conftest.$ac_ext |
| 13038 | cat >>conftest.$ac_ext <<_ACEOF |
| 13039 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13040 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13041 | /* Override any GCC internal prototype to avoid an error. |
| 13042 | Use char because int might match the return type of a GCC |
| 13043 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13044 | #ifdef __cplusplus |
| 13045 | extern "C" |
| 13046 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13047 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13048 | int |
| 13049 | main () |
| 13050 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13051 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13052 | ; |
| 13053 | return 0; |
| 13054 | } |
| 13055 | _ACEOF |
| 13056 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13057 | if { (ac_try="$ac_link" |
| 13058 | case "(($ac_try" in |
| 13059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13060 | *) ac_try_echo=$ac_try;; |
| 13061 | esac |
| 13062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13063 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13066 | rm -f conftest.er1 |
| 13067 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13069 | (exit $ac_status); } && { |
| 13070 | test -z "$ac_c_werror_flag" || |
| 13071 | test ! -s conftest.err |
| 13072 | } && test -s conftest$ac_exeext && |
| 13073 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13074 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13075 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13078 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13079 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13080 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13081 | |
| 13082 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13083 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13084 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13085 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13086 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 13087 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13088 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13089 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13090 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 13091 | # SVR4 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13092 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 13093 | 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] | 13094 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 13095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13097 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13098 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13099 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13100 | /* confdefs.h. */ |
| 13101 | _ACEOF |
| 13102 | cat confdefs.h >>conftest.$ac_ext |
| 13103 | cat >>conftest.$ac_ext <<_ACEOF |
| 13104 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13106 | /* Override any GCC internal prototype to avoid an error. |
| 13107 | Use char because int might match the return type of a GCC |
| 13108 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13109 | #ifdef __cplusplus |
| 13110 | extern "C" |
| 13111 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13112 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13113 | int |
| 13114 | main () |
| 13115 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13116 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13117 | ; |
| 13118 | return 0; |
| 13119 | } |
| 13120 | _ACEOF |
| 13121 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13122 | if { (ac_try="$ac_link" |
| 13123 | case "(($ac_try" in |
| 13124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13125 | *) ac_try_echo=$ac_try;; |
| 13126 | esac |
| 13127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13128 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13131 | rm -f conftest.er1 |
| 13132 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13134 | (exit $ac_status); } && { |
| 13135 | test -z "$ac_c_werror_flag" || |
| 13136 | test ! -s conftest.err |
| 13137 | } && test -s conftest$ac_exeext && |
| 13138 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13139 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13141 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13143 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13144 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13145 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13146 | |
| 13147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13148 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13149 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13150 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13151 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 13152 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13153 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13154 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13155 | fi |
| 13156 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 13157 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13158 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 13159 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13160 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13161 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 13162 | if test "${with_libs+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13163 | withval=$with_libs; |
| 13164 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 13165 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 13166 | LIBS="$withval $LIBS" |
| 13167 | |
| 13168 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13169 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13170 | echo "${ECHO_T}no" >&6; } |
| 13171 | fi |
| 13172 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13173 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13174 | # Check for use of the system libffi library |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13175 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 13176 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13177 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13178 | # Check whether --with-system_ffi was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13179 | if test "${with_system_ffi+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13180 | withval=$with_system_ffi; |
| 13181 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13182 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13183 | |
| 13184 | if test -z "$with_system_ffi" |
| 13185 | then with_system_ffi="no" |
| 13186 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13187 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 13188 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13189 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 13190 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13191 | |
| 13192 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13193 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 13194 | 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] | 13195 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13196 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13197 | if test "${with_signal_module+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13198 | withval=$with_signal_module; |
| 13199 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13200 | |
| 13201 | |
| 13202 | if test -z "$with_signal_module" |
| 13203 | then with_signal_module="yes" |
| 13204 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13205 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 13206 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13207 | |
| 13208 | if test "${with_signal_module}" = "yes"; then |
| 13209 | USE_SIGNAL_MODULE="" |
| 13210 | SIGNAL_OBJS="" |
| 13211 | else |
| 13212 | USE_SIGNAL_MODULE="#" |
| 13213 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 13214 | fi |
| 13215 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 13216 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 13217 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13218 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 13219 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13220 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 13221 | 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] | 13222 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13223 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13224 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13225 | if test "${with_dec_threads+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13226 | withval=$with_dec_threads; |
| 13227 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 13228 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13229 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13230 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13231 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13232 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13233 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13234 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13235 | echo "${ECHO_T}no" >&6; } |
| 13236 | fi |
| 13237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13238 | |
| 13239 | # Templates for things AC_DEFINEd more than once. |
| 13240 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13241 | |
| 13242 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13243 | |
| 13244 | |
| 13245 | |
| 13246 | |
| 13247 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13248 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 13249 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13250 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13251 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13252 | if test "${with_threads+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13253 | withval=$with_threads; |
| 13254 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13255 | |
| 13256 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13257 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13258 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13259 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13260 | if test "${with_thread+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13261 | withval=$with_thread; with_threads=$with_thread |
| 13262 | fi |
| 13263 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13264 | |
| 13265 | if test -z "$with_threads" |
| 13266 | then with_threads="yes" |
| 13267 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13268 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 13269 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13270 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13271 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13272 | if test "$with_threads" = "no" |
| 13273 | then |
| 13274 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13275 | elif test "$ac_cv_pthread_is_default" = yes |
| 13276 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13277 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13278 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13279 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13280 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13281 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13282 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13283 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13284 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13285 | |
| 13286 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13287 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13288 | elif test "$ac_cv_kpthread" = "yes" |
| 13289 | then |
| 13290 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13291 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 13292 | CXX="$CXX -Kpthread" |
| 13293 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13294 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 13295 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13296 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 13297 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13298 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13299 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13300 | elif test "$ac_cv_kthread" = "yes" |
| 13301 | then |
| 13302 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13303 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 13304 | CXX="$CXX -Kthread" |
| 13305 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13306 | cat >>confdefs.h <<\_ACEOF |
| 13307 | #define WITH_THREAD 1 |
| 13308 | _ACEOF |
| 13309 | |
| 13310 | posix_threads=yes |
| 13311 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13312 | elif test "$ac_cv_pthread" = "yes" |
| 13313 | then |
| 13314 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13315 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 13316 | CXX="$CXX -pthread" |
| 13317 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13318 | cat >>confdefs.h <<\_ACEOF |
| 13319 | #define WITH_THREAD 1 |
| 13320 | _ACEOF |
| 13321 | |
| 13322 | posix_threads=yes |
| 13323 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13324 | else |
| 13325 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 13326 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 13327 | fi |
| 13328 | if test ! -z "$withval" -a -d "$withval" |
| 13329 | then LDFLAGS="$LDFLAGS -L$withval" |
| 13330 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13331 | |
| 13332 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 13333 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 13334 | # (e.g. gnu pth with pthread emulation) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13335 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 13336 | 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] | 13337 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13338 | /* confdefs.h. */ |
| 13339 | _ACEOF |
| 13340 | cat confdefs.h >>conftest.$ac_ext |
| 13341 | cat >>conftest.$ac_ext <<_ACEOF |
| 13342 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13343 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13344 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13345 | #ifdef _POSIX_THREADS |
| 13346 | yes |
| 13347 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13348 | |
| 13349 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13350 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13351 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13352 | unistd_defines_pthreads=yes |
| 13353 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13354 | unistd_defines_pthreads=no |
| 13355 | fi |
| 13356 | rm -f conftest* |
| 13357 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13358 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 13359 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13360 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13361 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 13362 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13363 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 13364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13365 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13366 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 13367 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13368 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 13369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13370 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13371 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 13372 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13374 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13375 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 13376 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13377 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13378 | /* confdefs.h. */ |
| 13379 | _ACEOF |
| 13380 | cat confdefs.h >>conftest.$ac_ext |
| 13381 | cat >>conftest.$ac_ext <<_ACEOF |
| 13382 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13383 | $ac_includes_default |
| 13384 | #include <cthreads.h> |
| 13385 | _ACEOF |
| 13386 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13387 | if { (ac_try="$ac_compile" |
| 13388 | case "(($ac_try" in |
| 13389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13390 | *) ac_try_echo=$ac_try;; |
| 13391 | esac |
| 13392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13393 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13394 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13396 | rm -f conftest.er1 |
| 13397 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13399 | (exit $ac_status); } && { |
| 13400 | test -z "$ac_c_werror_flag" || |
| 13401 | test ! -s conftest.err |
| 13402 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13403 | ac_header_compiler=yes |
| 13404 | else |
| 13405 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13407 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13408 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13409 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13410 | |
| 13411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13412 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13413 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13414 | |
| 13415 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13416 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 13417 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13418 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13419 | /* confdefs.h. */ |
| 13420 | _ACEOF |
| 13421 | cat confdefs.h >>conftest.$ac_ext |
| 13422 | cat >>conftest.$ac_ext <<_ACEOF |
| 13423 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13424 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13425 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13426 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13427 | case "(($ac_try" in |
| 13428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13429 | *) ac_try_echo=$ac_try;; |
| 13430 | esac |
| 13431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13432 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13433 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13434 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13435 | rm -f conftest.er1 |
| 13436 | cat conftest.err >&5 |
| 13437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13438 | (exit $ac_status); } >/dev/null && { |
| 13439 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13440 | test ! -s conftest.err |
| 13441 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13442 | ac_header_preproc=yes |
| 13443 | else |
| 13444 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13447 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13448 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13449 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13450 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13451 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13452 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13453 | |
| 13454 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13455 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13456 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13457 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13458 | 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] | 13459 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 13460 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 13461 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13462 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13463 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13464 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 13465 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13466 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 13467 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 13468 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 13469 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 13470 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13471 | 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] | 13472 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 13473 | 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] | 13474 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 13475 | echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13476 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13477 | ## ------------------------------------------------ ## |
| 13478 | ## Report this to http://www.python.org/python-bugs ## |
| 13479 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13480 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13481 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13482 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13483 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13484 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 13485 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13486 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 13487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13488 | else |
| 13489 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13490 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13491 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 13492 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13493 | |
| 13494 | fi |
| 13495 | if test $ac_cv_header_cthreads_h = yes; then |
| 13496 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13497 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13498 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13500 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13501 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13502 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13504 | |
| 13505 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13506 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13507 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13508 | |
| 13509 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13510 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13511 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13513 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13514 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 13515 | 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] | 13516 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 13517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13518 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13519 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 13520 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13522 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13523 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 13524 | 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] | 13525 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13526 | /* confdefs.h. */ |
| 13527 | _ACEOF |
| 13528 | cat confdefs.h >>conftest.$ac_ext |
| 13529 | cat >>conftest.$ac_ext <<_ACEOF |
| 13530 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13531 | $ac_includes_default |
| 13532 | #include <mach/cthreads.h> |
| 13533 | _ACEOF |
| 13534 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13535 | if { (ac_try="$ac_compile" |
| 13536 | case "(($ac_try" in |
| 13537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13538 | *) ac_try_echo=$ac_try;; |
| 13539 | esac |
| 13540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13541 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13542 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13544 | rm -f conftest.er1 |
| 13545 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13547 | (exit $ac_status); } && { |
| 13548 | test -z "$ac_c_werror_flag" || |
| 13549 | test ! -s conftest.err |
| 13550 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13551 | ac_header_compiler=yes |
| 13552 | else |
| 13553 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13555 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13556 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13557 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13558 | |
| 13559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13560 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13561 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13562 | |
| 13563 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13564 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 13565 | 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] | 13566 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13567 | /* confdefs.h. */ |
| 13568 | _ACEOF |
| 13569 | cat confdefs.h >>conftest.$ac_ext |
| 13570 | cat >>conftest.$ac_ext <<_ACEOF |
| 13571 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13572 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13573 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13574 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13575 | case "(($ac_try" in |
| 13576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13577 | *) ac_try_echo=$ac_try;; |
| 13578 | esac |
| 13579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13580 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13581 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13582 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13583 | rm -f conftest.er1 |
| 13584 | cat conftest.err >&5 |
| 13585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13586 | (exit $ac_status); } >/dev/null && { |
| 13587 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13588 | test ! -s conftest.err |
| 13589 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13590 | ac_header_preproc=yes |
| 13591 | else |
| 13592 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13595 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13596 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13598 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13599 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13600 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13601 | |
| 13602 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13603 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13604 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13605 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13606 | 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] | 13607 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 13608 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 13609 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13610 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13611 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13612 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 13613 | 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] | 13614 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 13615 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 13616 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 13617 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 13618 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13619 | 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] | 13620 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 13621 | 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] | 13622 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 13623 | echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13624 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13625 | ## ------------------------------------------------ ## |
| 13626 | ## Report this to http://www.python.org/python-bugs ## |
| 13627 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13628 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13629 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13630 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13631 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13632 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 13633 | 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] | 13634 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 13635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13636 | else |
| 13637 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13638 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13639 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 13640 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13641 | |
| 13642 | fi |
| 13643 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 13644 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13645 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13646 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13648 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13649 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13650 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13652 | |
| 13653 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13654 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13655 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13656 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13657 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13658 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13659 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13660 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 13661 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13662 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13663 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 13664 | if test "${with_pth+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13665 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 13666 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 13667 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13668 | #define WITH_THREAD 1 |
| 13669 | _ACEOF |
| 13670 | |
| 13671 | |
| 13672 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 13673 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13674 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 13675 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 13676 | LIBS="-lpth $LIBS" |
| 13677 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 13678 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13679 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13680 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13681 | |
| 13682 | # Just looking for pthread_create in libpthread is not enough: |
| 13683 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 13684 | # So we really have to include pthread.h, and then link. |
| 13685 | _libs=$LIBS |
| 13686 | LIBS="$LIBS -lpthread" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13687 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 13688 | 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] | 13689 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13690 | /* confdefs.h. */ |
| 13691 | _ACEOF |
| 13692 | cat confdefs.h >>conftest.$ac_ext |
| 13693 | cat >>conftest.$ac_ext <<_ACEOF |
| 13694 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13695 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 13696 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13697 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13698 | int |
| 13699 | main () |
| 13700 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13701 | |
| 13702 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13703 | ; |
| 13704 | return 0; |
| 13705 | } |
| 13706 | _ACEOF |
| 13707 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13708 | if { (ac_try="$ac_link" |
| 13709 | case "(($ac_try" in |
| 13710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13711 | *) ac_try_echo=$ac_try;; |
| 13712 | esac |
| 13713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13714 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13715 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13717 | rm -f conftest.er1 |
| 13718 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13720 | (exit $ac_status); } && { |
| 13721 | test -z "$ac_c_werror_flag" || |
| 13722 | test ! -s conftest.err |
| 13723 | } && test -s conftest$ac_exeext && |
| 13724 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13725 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13726 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13727 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13728 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 13729 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13730 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 13731 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13732 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13733 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 13734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13735 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13738 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13739 | LIBS=$_libs |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13740 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 13741 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13742 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 13743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13745 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13746 | /* confdefs.h. */ |
| 13747 | _ACEOF |
| 13748 | cat confdefs.h >>conftest.$ac_ext |
| 13749 | cat >>conftest.$ac_ext <<_ACEOF |
| 13750 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13751 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 13752 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13753 | #define pthread_detach innocuous_pthread_detach |
| 13754 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13755 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13756 | which can conflict with char pthread_detach (); below. |
| 13757 | 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] | 13758 | <limits.h> exists even on freestanding compilers. */ |
| 13759 | |
| 13760 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13761 | # include <limits.h> |
| 13762 | #else |
| 13763 | # include <assert.h> |
| 13764 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13765 | |
| 13766 | #undef pthread_detach |
| 13767 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13768 | /* Override any GCC internal prototype to avoid an error. |
| 13769 | Use char because int might match the return type of a GCC |
| 13770 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13771 | #ifdef __cplusplus |
| 13772 | extern "C" |
| 13773 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13774 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13775 | /* The GNU C library defines this for functions which it implements |
| 13776 | to always fail with ENOSYS. Some functions are actually named |
| 13777 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13778 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13779 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13780 | #endif |
| 13781 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13782 | int |
| 13783 | main () |
| 13784 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13785 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13786 | ; |
| 13787 | return 0; |
| 13788 | } |
| 13789 | _ACEOF |
| 13790 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13791 | if { (ac_try="$ac_link" |
| 13792 | case "(($ac_try" in |
| 13793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13794 | *) ac_try_echo=$ac_try;; |
| 13795 | esac |
| 13796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13797 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13798 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13800 | rm -f conftest.er1 |
| 13801 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13803 | (exit $ac_status); } && { |
| 13804 | test -z "$ac_c_werror_flag" || |
| 13805 | test ! -s conftest.err |
| 13806 | } && test -s conftest$ac_exeext && |
| 13807 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13808 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13809 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13810 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13812 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13813 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13814 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13815 | |
| 13816 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13817 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13818 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13819 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 13820 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13821 | if test $ac_cv_func_pthread_detach = yes; then |
| 13822 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13823 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13824 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13825 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13826 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13827 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13828 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13829 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13830 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13831 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 13832 | 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] | 13833 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 13834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13835 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13836 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 13837 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13838 | else |
| 13839 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13840 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 13841 | 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] | 13842 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13843 | /* confdefs.h. */ |
| 13844 | _ACEOF |
| 13845 | cat confdefs.h >>conftest.$ac_ext |
| 13846 | cat >>conftest.$ac_ext <<_ACEOF |
| 13847 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13848 | $ac_includes_default |
| 13849 | #include <atheos/threads.h> |
| 13850 | _ACEOF |
| 13851 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13852 | if { (ac_try="$ac_compile" |
| 13853 | case "(($ac_try" in |
| 13854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13855 | *) ac_try_echo=$ac_try;; |
| 13856 | esac |
| 13857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13858 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13859 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13861 | rm -f conftest.er1 |
| 13862 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13864 | (exit $ac_status); } && { |
| 13865 | test -z "$ac_c_werror_flag" || |
| 13866 | test ! -s conftest.err |
| 13867 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13868 | ac_header_compiler=yes |
| 13869 | else |
| 13870 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13872 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13873 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13874 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13875 | |
| 13876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13877 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13878 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13879 | |
| 13880 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13881 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 13882 | 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] | 13883 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13884 | /* confdefs.h. */ |
| 13885 | _ACEOF |
| 13886 | cat confdefs.h >>conftest.$ac_ext |
| 13887 | cat >>conftest.$ac_ext <<_ACEOF |
| 13888 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13889 | #include <atheos/threads.h> |
| 13890 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13891 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13892 | case "(($ac_try" in |
| 13893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13894 | *) ac_try_echo=$ac_try;; |
| 13895 | esac |
| 13896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13897 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13898 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13899 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13900 | rm -f conftest.er1 |
| 13901 | cat conftest.err >&5 |
| 13902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13903 | (exit $ac_status); } >/dev/null && { |
| 13904 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13905 | test ! -s conftest.err |
| 13906 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13907 | ac_header_preproc=yes |
| 13908 | else |
| 13909 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13911 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13912 | ac_header_preproc=no |
| 13913 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13914 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13915 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13916 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13917 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13918 | |
| 13919 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13920 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13921 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13922 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13923 | 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] | 13924 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 13925 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 13926 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13927 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13928 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13929 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 13930 | 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] | 13931 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 13932 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 13933 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 13934 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 13935 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13936 | 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] | 13937 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 13938 | 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] | 13939 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 13940 | echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13941 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13942 | ## ------------------------------------------------ ## |
| 13943 | ## Report this to http://www.python.org/python-bugs ## |
| 13944 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13945 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13946 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13947 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13948 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13949 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 13950 | 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] | 13951 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 13952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13953 | else |
| 13954 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 13955 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13956 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 13957 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13958 | |
| 13959 | fi |
| 13960 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 13961 | cat >>confdefs.h <<\_ACEOF |
| 13962 | #define WITH_THREAD 1 |
| 13963 | _ACEOF |
| 13964 | |
| 13965 | |
| 13966 | cat >>confdefs.h <<\_ACEOF |
| 13967 | #define ATHEOS_THREADS 1 |
| 13968 | _ACEOF |
| 13969 | |
| 13970 | THREADOBJ="Python/thread.o" |
| 13971 | else |
| 13972 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13973 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 13974 | 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] | 13975 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 13976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13978 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13979 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13980 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13981 | /* confdefs.h. */ |
| 13982 | _ACEOF |
| 13983 | cat confdefs.h >>conftest.$ac_ext |
| 13984 | cat >>conftest.$ac_ext <<_ACEOF |
| 13985 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13986 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13987 | /* Override any GCC internal prototype to avoid an error. |
| 13988 | Use char because int might match the return type of a GCC |
| 13989 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13990 | #ifdef __cplusplus |
| 13991 | extern "C" |
| 13992 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13993 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13994 | int |
| 13995 | main () |
| 13996 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13997 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13998 | ; |
| 13999 | return 0; |
| 14000 | } |
| 14001 | _ACEOF |
| 14002 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14003 | if { (ac_try="$ac_link" |
| 14004 | case "(($ac_try" in |
| 14005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14006 | *) ac_try_echo=$ac_try;; |
| 14007 | esac |
| 14008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14009 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14010 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14012 | rm -f conftest.er1 |
| 14013 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14015 | (exit $ac_status); } && { |
| 14016 | test -z "$ac_c_werror_flag" || |
| 14017 | test ! -s conftest.err |
| 14018 | } && test -s conftest$ac_exeext && |
| 14019 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14020 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14024 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14025 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14026 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14027 | |
| 14028 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14029 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14030 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14031 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14032 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 14033 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14034 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 14035 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14036 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14037 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14038 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14039 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14040 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14041 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14042 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14043 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14044 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 14045 | 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] | 14046 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 14047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14049 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14050 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14051 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14052 | /* confdefs.h. */ |
| 14053 | _ACEOF |
| 14054 | cat confdefs.h >>conftest.$ac_ext |
| 14055 | cat >>conftest.$ac_ext <<_ACEOF |
| 14056 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14057 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14058 | /* Override any GCC internal prototype to avoid an error. |
| 14059 | Use char because int might match the return type of a GCC |
| 14060 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14061 | #ifdef __cplusplus |
| 14062 | extern "C" |
| 14063 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14064 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14065 | int |
| 14066 | main () |
| 14067 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14068 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14069 | ; |
| 14070 | return 0; |
| 14071 | } |
| 14072 | _ACEOF |
| 14073 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14074 | if { (ac_try="$ac_link" |
| 14075 | case "(($ac_try" in |
| 14076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14077 | *) ac_try_echo=$ac_try;; |
| 14078 | esac |
| 14079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14080 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14081 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14083 | rm -f conftest.er1 |
| 14084 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14086 | (exit $ac_status); } && { |
| 14087 | test -z "$ac_c_werror_flag" || |
| 14088 | test ! -s conftest.err |
| 14089 | } && test -s conftest$ac_exeext && |
| 14090 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14091 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14092 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14093 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14095 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14096 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14097 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14098 | |
| 14099 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14100 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14101 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14102 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14103 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 14104 | 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] | 14105 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 14106 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14107 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14108 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14109 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14110 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14111 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14112 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 14113 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 14114 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14115 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 14116 | 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] | 14117 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 14118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14119 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14120 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14121 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14122 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14123 | /* confdefs.h. */ |
| 14124 | _ACEOF |
| 14125 | cat confdefs.h >>conftest.$ac_ext |
| 14126 | cat >>conftest.$ac_ext <<_ACEOF |
| 14127 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14128 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14129 | /* Override any GCC internal prototype to avoid an error. |
| 14130 | Use char because int might match the return type of a GCC |
| 14131 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14132 | #ifdef __cplusplus |
| 14133 | extern "C" |
| 14134 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14135 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14136 | int |
| 14137 | main () |
| 14138 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14139 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14140 | ; |
| 14141 | return 0; |
| 14142 | } |
| 14143 | _ACEOF |
| 14144 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14145 | if { (ac_try="$ac_link" |
| 14146 | case "(($ac_try" in |
| 14147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14148 | *) ac_try_echo=$ac_try;; |
| 14149 | esac |
| 14150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14151 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14152 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14154 | rm -f conftest.er1 |
| 14155 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14157 | (exit $ac_status); } && { |
| 14158 | test -z "$ac_c_werror_flag" || |
| 14159 | test ! -s conftest.err |
| 14160 | } && test -s conftest$ac_exeext && |
| 14161 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14162 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14164 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14166 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14167 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14168 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14169 | |
| 14170 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14171 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14172 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14173 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14174 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 14175 | 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] | 14176 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 14177 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14178 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14179 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14180 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14181 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14182 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14183 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14184 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14185 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14186 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 14187 | 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] | 14188 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 14189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14191 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14192 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14193 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14194 | /* confdefs.h. */ |
| 14195 | _ACEOF |
| 14196 | cat confdefs.h >>conftest.$ac_ext |
| 14197 | cat >>conftest.$ac_ext <<_ACEOF |
| 14198 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14199 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14200 | /* Override any GCC internal prototype to avoid an error. |
| 14201 | Use char because int might match the return type of a GCC |
| 14202 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14203 | #ifdef __cplusplus |
| 14204 | extern "C" |
| 14205 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14206 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14207 | int |
| 14208 | main () |
| 14209 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14210 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14211 | ; |
| 14212 | return 0; |
| 14213 | } |
| 14214 | _ACEOF |
| 14215 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14216 | if { (ac_try="$ac_link" |
| 14217 | case "(($ac_try" in |
| 14218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14219 | *) ac_try_echo=$ac_try;; |
| 14220 | esac |
| 14221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14222 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14223 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14225 | rm -f conftest.er1 |
| 14226 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14228 | (exit $ac_status); } && { |
| 14229 | test -z "$ac_c_werror_flag" || |
| 14230 | test ! -s conftest.err |
| 14231 | } && test -s conftest$ac_exeext && |
| 14232 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14233 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14234 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14235 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14237 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14238 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14239 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14240 | |
| 14241 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14242 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14243 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14244 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14245 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 14246 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14247 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 14248 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14249 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14250 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14251 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14252 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14253 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14254 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14255 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 14256 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14257 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 14258 | fi |
| 14259 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14260 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14261 | fi |
| 14262 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 14263 | fi |
| 14264 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14265 | fi |
| 14266 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14267 | fi |
| 14268 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 14269 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14270 | fi |
| 14271 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14272 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14273 | |
| 14274 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14275 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14276 | fi |
| 14277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14278 | fi |
| 14279 | |
| 14280 | |
| 14281 | fi |
| 14282 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14283 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14284 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14285 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 14286 | 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] | 14287 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 14288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14290 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14291 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14292 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14293 | /* confdefs.h. */ |
| 14294 | _ACEOF |
| 14295 | cat confdefs.h >>conftest.$ac_ext |
| 14296 | cat >>conftest.$ac_ext <<_ACEOF |
| 14297 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14298 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14299 | /* Override any GCC internal prototype to avoid an error. |
| 14300 | Use char because int might match the return type of a GCC |
| 14301 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14302 | #ifdef __cplusplus |
| 14303 | extern "C" |
| 14304 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14306 | int |
| 14307 | main () |
| 14308 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14309 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14310 | ; |
| 14311 | return 0; |
| 14312 | } |
| 14313 | _ACEOF |
| 14314 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14315 | if { (ac_try="$ac_link" |
| 14316 | case "(($ac_try" in |
| 14317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14318 | *) ac_try_echo=$ac_try;; |
| 14319 | esac |
| 14320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14321 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14322 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14324 | rm -f conftest.er1 |
| 14325 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14327 | (exit $ac_status); } && { |
| 14328 | test -z "$ac_c_werror_flag" || |
| 14329 | test ! -s conftest.err |
| 14330 | } && test -s conftest$ac_exeext && |
| 14331 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14332 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14333 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14334 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14336 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14337 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14338 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14339 | |
| 14340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14341 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14342 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14343 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14344 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 14345 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14346 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 14347 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14348 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14349 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14350 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14351 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14352 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14353 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14354 | fi |
| 14355 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14356 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 14357 | if test "$posix_threads" != "yes"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14358 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 14359 | 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] | 14360 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 14361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14363 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14364 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14365 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14366 | /* confdefs.h. */ |
| 14367 | _ACEOF |
| 14368 | cat confdefs.h >>conftest.$ac_ext |
| 14369 | cat >>conftest.$ac_ext <<_ACEOF |
| 14370 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14371 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14372 | /* Override any GCC internal prototype to avoid an error. |
| 14373 | Use char because int might match the return type of a GCC |
| 14374 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14375 | #ifdef __cplusplus |
| 14376 | extern "C" |
| 14377 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14378 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14379 | int |
| 14380 | main () |
| 14381 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14382 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14383 | ; |
| 14384 | return 0; |
| 14385 | } |
| 14386 | _ACEOF |
| 14387 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14388 | if { (ac_try="$ac_link" |
| 14389 | case "(($ac_try" in |
| 14390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14391 | *) ac_try_echo=$ac_try;; |
| 14392 | esac |
| 14393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14394 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14395 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14397 | rm -f conftest.er1 |
| 14398 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14400 | (exit $ac_status); } && { |
| 14401 | test -z "$ac_c_werror_flag" || |
| 14402 | test ! -s conftest.err |
| 14403 | } && test -s conftest$ac_exeext && |
| 14404 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14405 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14407 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14409 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14410 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14411 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14412 | |
| 14413 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14414 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14415 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14416 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14417 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 14418 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14419 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 14420 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14421 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14422 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14423 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14424 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14425 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14426 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14427 | fi |
| 14428 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14429 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14430 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14431 | if test "$USE_THREAD_MODULE" != "#" |
| 14432 | then |
| 14433 | # If the above checks didn't disable threads, (at least) OSF1 |
| 14434 | # needs this '-threads' argument during linking. |
| 14435 | case $ac_sys_system in |
| 14436 | OSF1) LDLAST=-threads;; |
| 14437 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 14438 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14439 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14440 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14441 | if test "$posix_threads" = "yes"; then |
| 14442 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14443 | |
| 14444 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14445 | #define _POSIX_THREADS 1 |
| 14446 | _ACEOF |
| 14447 | |
| 14448 | fi |
| 14449 | |
| 14450 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 14451 | case $ac_sys_system/$ac_sys_release in |
| 14452 | SunOS/5.6) |
| 14453 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14454 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 14455 | _ACEOF |
| 14456 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14457 | ;; |
| 14458 | SunOS/5.8) |
| 14459 | cat >>confdefs.h <<\_ACEOF |
| 14460 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 14461 | _ACEOF |
| 14462 | |
| 14463 | ;; |
| 14464 | esac |
| 14465 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14466 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 14467 | 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] | 14468 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 14469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14470 | else |
| 14471 | if test "$cross_compiling" = yes; then |
| 14472 | ac_cv_pthread_system_supported=no |
| 14473 | else |
| 14474 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14475 | /* confdefs.h. */ |
| 14476 | _ACEOF |
| 14477 | cat confdefs.h >>conftest.$ac_ext |
| 14478 | cat >>conftest.$ac_ext <<_ACEOF |
| 14479 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14480 | #include <pthread.h> |
| 14481 | void *foo(void *parm) { |
| 14482 | return NULL; |
| 14483 | } |
| 14484 | main() { |
| 14485 | pthread_attr_t attr; |
| 14486 | pthread_t id; |
| 14487 | if (pthread_attr_init(&attr)) exit(-1); |
| 14488 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 14489 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 14490 | exit(0); |
| 14491 | } |
| 14492 | _ACEOF |
| 14493 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14494 | if { (ac_try="$ac_link" |
| 14495 | case "(($ac_try" in |
| 14496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14497 | *) ac_try_echo=$ac_try;; |
| 14498 | esac |
| 14499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14500 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14501 | ac_status=$? |
| 14502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14503 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14504 | { (case "(($ac_try" in |
| 14505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14506 | *) ac_try_echo=$ac_try;; |
| 14507 | esac |
| 14508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14509 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14510 | ac_status=$? |
| 14511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14512 | (exit $ac_status); }; }; then |
| 14513 | ac_cv_pthread_system_supported=yes |
| 14514 | else |
| 14515 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14516 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14518 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14519 | ( exit $ac_status ) |
| 14520 | ac_cv_pthread_system_supported=no |
| 14521 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14522 | 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] | 14523 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14524 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14525 | |
| 14526 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14527 | fi |
| 14528 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14529 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 14530 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14531 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 14532 | |
| 14533 | cat >>confdefs.h <<\_ACEOF |
| 14534 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 14535 | _ACEOF |
| 14536 | |
| 14537 | fi |
| 14538 | |
| 14539 | for ac_func in pthread_sigmask |
| 14540 | do |
| 14541 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14542 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14543 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14544 | 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] | 14545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14546 | else |
| 14547 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14548 | /* confdefs.h. */ |
| 14549 | _ACEOF |
| 14550 | cat confdefs.h >>conftest.$ac_ext |
| 14551 | cat >>conftest.$ac_ext <<_ACEOF |
| 14552 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14553 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14555 | #define $ac_func innocuous_$ac_func |
| 14556 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14557 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14558 | which can conflict with char $ac_func (); below. |
| 14559 | 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] | 14560 | <limits.h> exists even on freestanding compilers. */ |
| 14561 | |
| 14562 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14563 | # include <limits.h> |
| 14564 | #else |
| 14565 | # include <assert.h> |
| 14566 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14567 | |
| 14568 | #undef $ac_func |
| 14569 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14570 | /* Override any GCC internal prototype to avoid an error. |
| 14571 | Use char because int might match the return type of a GCC |
| 14572 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14573 | #ifdef __cplusplus |
| 14574 | extern "C" |
| 14575 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14576 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14577 | /* The GNU C library defines this for functions which it implements |
| 14578 | to always fail with ENOSYS. Some functions are actually named |
| 14579 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14580 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14581 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14582 | #endif |
| 14583 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14584 | int |
| 14585 | main () |
| 14586 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14587 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14588 | ; |
| 14589 | return 0; |
| 14590 | } |
| 14591 | _ACEOF |
| 14592 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14593 | if { (ac_try="$ac_link" |
| 14594 | case "(($ac_try" in |
| 14595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14596 | *) ac_try_echo=$ac_try;; |
| 14597 | esac |
| 14598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14599 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14600 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14602 | rm -f conftest.er1 |
| 14603 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14605 | (exit $ac_status); } && { |
| 14606 | test -z "$ac_c_werror_flag" || |
| 14607 | test ! -s conftest.err |
| 14608 | } && test -s conftest$ac_exeext && |
| 14609 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14610 | eval "$as_ac_var=yes" |
| 14611 | else |
| 14612 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14614 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14615 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14616 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14617 | |
| 14618 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14619 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14620 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14621 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14622 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14623 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14624 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14625 | cat >>confdefs.h <<_ACEOF |
| 14626 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14627 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 14628 | case $ac_sys_system in |
| 14629 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14630 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 14631 | cat >>confdefs.h <<\_ACEOF |
| 14632 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 14633 | _ACEOF |
| 14634 | |
| 14635 | ;; |
| 14636 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14637 | fi |
| 14638 | done |
| 14639 | |
| 14640 | fi |
| 14641 | |
| 14642 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14643 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14644 | |
| 14645 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14646 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 14647 | echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; } |
| 14648 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14649 | if test "${enable_ipv6+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14650 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14651 | no) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14652 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14653 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14654 | ipv6=no |
| 14655 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14656 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 14657 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14658 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14659 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14660 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14661 | |
| 14662 | ipv6=yes |
| 14663 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14664 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14666 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14667 | if test "$cross_compiling" = yes; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14668 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14669 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14670 | ipv6=no |
| 14671 | |
| 14672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14673 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14674 | /* confdefs.h. */ |
| 14675 | _ACEOF |
| 14676 | cat confdefs.h >>conftest.$ac_ext |
| 14677 | cat >>conftest.$ac_ext <<_ACEOF |
| 14678 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14679 | /* AF_INET6 available check */ |
| 14680 | #include <sys/types.h> |
| 14681 | #include <sys/socket.h> |
| 14682 | main() |
| 14683 | { |
| 14684 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 14685 | exit(1); |
| 14686 | else |
| 14687 | exit(0); |
| 14688 | } |
| 14689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14690 | _ACEOF |
| 14691 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14692 | if { (ac_try="$ac_link" |
| 14693 | case "(($ac_try" in |
| 14694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14695 | *) ac_try_echo=$ac_try;; |
| 14696 | esac |
| 14697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14698 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14699 | ac_status=$? |
| 14700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14701 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14702 | { (case "(($ac_try" in |
| 14703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14704 | *) ac_try_echo=$ac_try;; |
| 14705 | esac |
| 14706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14707 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14708 | ac_status=$? |
| 14709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14710 | (exit $ac_status); }; }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14711 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14712 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14713 | ipv6=yes |
| 14714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14715 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14719 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14720 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14721 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14722 | ipv6=no |
| 14723 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14724 | 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] | 14725 | fi |
| 14726 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14727 | |
| 14728 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14729 | if test "$ipv6" = "yes"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14730 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 14731 | 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] | 14732 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14733 | /* confdefs.h. */ |
| 14734 | _ACEOF |
| 14735 | cat confdefs.h >>conftest.$ac_ext |
| 14736 | cat >>conftest.$ac_ext <<_ACEOF |
| 14737 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14738 | #include <sys/types.h> |
| 14739 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | int |
| 14741 | main () |
| 14742 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14743 | struct sockaddr_in6 x; |
| 14744 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14745 | ; |
| 14746 | return 0; |
| 14747 | } |
| 14748 | _ACEOF |
| 14749 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14750 | if { (ac_try="$ac_compile" |
| 14751 | case "(($ac_try" in |
| 14752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14753 | *) ac_try_echo=$ac_try;; |
| 14754 | esac |
| 14755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14756 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14759 | rm -f conftest.er1 |
| 14760 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14762 | (exit $ac_status); } && { |
| 14763 | test -z "$ac_c_werror_flag" || |
| 14764 | test ! -s conftest.err |
| 14765 | } && test -s conftest.$ac_objext; then |
| 14766 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14767 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14768 | ipv6=yes |
| 14769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14770 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14772 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14773 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14774 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14775 | ipv6=no |
| 14776 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14777 | |
| 14778 | 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] | 14779 | fi |
| 14780 | |
| 14781 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14782 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14783 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14784 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14785 | |
| 14786 | fi |
| 14787 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14788 | fi |
| 14789 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14790 | |
| 14791 | ipv6type=unknown |
| 14792 | ipv6lib=none |
| 14793 | ipv6trylibc=no |
| 14794 | |
| 14795 | if test "$ipv6" = "yes"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14796 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 14797 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 14798 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 14799 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14800 | case $i in |
| 14801 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14802 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14803 | /* confdefs.h. */ |
| 14804 | _ACEOF |
| 14805 | cat confdefs.h >>conftest.$ac_ext |
| 14806 | cat >>conftest.$ac_ext <<_ACEOF |
| 14807 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14808 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14809 | #include <netinet/in.h> |
| 14810 | #ifdef IPV6_INRIA_VERSION |
| 14811 | yes |
| 14812 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14813 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14814 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14815 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 14816 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14817 | fi |
| 14818 | rm -f conftest* |
| 14819 | |
| 14820 | ;; |
| 14821 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14822 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14823 | /* confdefs.h. */ |
| 14824 | _ACEOF |
| 14825 | cat confdefs.h >>conftest.$ac_ext |
| 14826 | cat >>conftest.$ac_ext <<_ACEOF |
| 14827 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14828 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14829 | #include <netinet/in.h> |
| 14830 | #ifdef __KAME__ |
| 14831 | yes |
| 14832 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14833 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14834 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14835 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14836 | ipv6type=$i; |
| 14837 | ipv6lib=inet6 |
| 14838 | ipv6libdir=/usr/local/v6/lib |
| 14839 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14840 | fi |
| 14841 | rm -f conftest* |
| 14842 | |
| 14843 | ;; |
| 14844 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14845 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14846 | /* confdefs.h. */ |
| 14847 | _ACEOF |
| 14848 | cat confdefs.h >>conftest.$ac_ext |
| 14849 | cat >>conftest.$ac_ext <<_ACEOF |
| 14850 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14851 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14852 | #include <features.h> |
| 14853 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 14854 | yes |
| 14855 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14856 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14857 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14858 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14859 | ipv6type=$i; |
| 14860 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14861 | fi |
| 14862 | rm -f conftest* |
| 14863 | |
| 14864 | ;; |
| 14865 | linux-inet6) |
| 14866 | if test -d /usr/inet6; then |
| 14867 | ipv6type=$i |
| 14868 | ipv6lib=inet6 |
| 14869 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14870 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14871 | fi |
| 14872 | ;; |
| 14873 | solaris) |
| 14874 | if test -f /etc/netconfig; then |
| 14875 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 14876 | ipv6type=$i |
| 14877 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14878 | fi |
| 14879 | fi |
| 14880 | ;; |
| 14881 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14882 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14883 | /* confdefs.h. */ |
| 14884 | _ACEOF |
| 14885 | cat confdefs.h >>conftest.$ac_ext |
| 14886 | cat >>conftest.$ac_ext <<_ACEOF |
| 14887 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14888 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14889 | #include <sys/param.h> |
| 14890 | #ifdef _TOSHIBA_INET6 |
| 14891 | yes |
| 14892 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14893 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14894 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14895 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14896 | ipv6type=$i; |
| 14897 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 14898 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14899 | fi |
| 14900 | rm -f conftest* |
| 14901 | |
| 14902 | ;; |
| 14903 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14904 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14905 | /* confdefs.h. */ |
| 14906 | _ACEOF |
| 14907 | cat confdefs.h >>conftest.$ac_ext |
| 14908 | cat >>conftest.$ac_ext <<_ACEOF |
| 14909 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14910 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14911 | #include </usr/local/v6/include/sys/v6config.h> |
| 14912 | #ifdef __V6D__ |
| 14913 | yes |
| 14914 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14915 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14916 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14917 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14918 | ipv6type=$i; |
| 14919 | ipv6lib=v6; |
| 14920 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14921 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14922 | fi |
| 14923 | rm -f conftest* |
| 14924 | |
| 14925 | ;; |
| 14926 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14927 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14928 | /* confdefs.h. */ |
| 14929 | _ACEOF |
| 14930 | cat confdefs.h >>conftest.$ac_ext |
| 14931 | cat >>conftest.$ac_ext <<_ACEOF |
| 14932 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14933 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14934 | #include <sys/param.h> |
| 14935 | #ifdef _ZETA_MINAMI_INET6 |
| 14936 | yes |
| 14937 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14938 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14940 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14941 | ipv6type=$i; |
| 14942 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 14943 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14944 | fi |
| 14945 | rm -f conftest* |
| 14946 | |
| 14947 | ;; |
| 14948 | esac |
| 14949 | if test "$ipv6type" != "unknown"; then |
| 14950 | break |
| 14951 | fi |
| 14952 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14953 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 14954 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14955 | fi |
| 14956 | |
| 14957 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 14958 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 14959 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 14960 | echo "using lib$ipv6lib" |
| 14961 | else |
| 14962 | if test $ipv6trylibc = "yes"; then |
| 14963 | echo "using libc" |
| 14964 | else |
| 14965 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 14966 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 14967 | echo 'ipv6 kit and compile beforehand.' |
| 14968 | exit 1 |
| 14969 | fi |
| 14970 | fi |
| 14971 | fi |
| 14972 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14973 | # Check for --with-doc-strings |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14974 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 14975 | 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] | 14976 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14977 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14978 | if test "${with_doc_strings+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14979 | withval=$with_doc_strings; |
| 14980 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14981 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14982 | |
| 14983 | if test -z "$with_doc_strings" |
| 14984 | then with_doc_strings="yes" |
| 14985 | fi |
| 14986 | if test "$with_doc_strings" != "no" |
| 14987 | then |
| 14988 | |
| 14989 | cat >>confdefs.h <<\_ACEOF |
| 14990 | #define WITH_DOC_STRINGS 1 |
| 14991 | _ACEOF |
| 14992 | |
| 14993 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14994 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 14995 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14996 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 14997 | # Check for Python-specific malloc support |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14998 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 14999 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15000 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15001 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15002 | if test "${with_tsc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15003 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15004 | if test "$withval" != no |
| 15005 | then |
| 15006 | |
| 15007 | cat >>confdefs.h <<\_ACEOF |
| 15008 | #define WITH_TSC 1 |
| 15009 | _ACEOF |
| 15010 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15011 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15012 | echo "${ECHO_T}yes" >&6; } |
| 15013 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 15014 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15015 | fi |
| 15016 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15018 | echo "${ECHO_T}no" >&6; } |
| 15019 | fi |
| 15020 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15021 | |
| 15022 | # Check for Python-specific malloc support |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15023 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 15024 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15025 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15026 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 15027 | if test "${with_pymalloc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15028 | withval=$with_pymalloc; |
| 15029 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15030 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 15031 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15032 | if test -z "$with_pymalloc" |
| 15033 | then with_pymalloc="yes" |
| 15034 | fi |
| 15035 | if test "$with_pymalloc" != "no" |
| 15036 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15037 | |
| 15038 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15039 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15040 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15041 | |
| 15042 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15043 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 15044 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15045 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15046 | # Check for --with-wctype-functions |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15047 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 15048 | 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] | 15049 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15050 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15051 | if test "${with_wctype_functions+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15052 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15053 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15054 | then |
| 15055 | |
| 15056 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15057 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15058 | _ACEOF |
| 15059 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15060 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15061 | echo "${ECHO_T}yes" >&6; } |
| 15062 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 15063 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15064 | fi |
| 15065 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15066 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15067 | echo "${ECHO_T}no" >&6; } |
| 15068 | fi |
| 15069 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15070 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15071 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15072 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 15073 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15074 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15075 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 15076 | # 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] | 15077 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15078 | for ac_func in dlopen |
| 15079 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15080 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15081 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15082 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15083 | 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] | 15084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15086 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15087 | /* confdefs.h. */ |
| 15088 | _ACEOF |
| 15089 | cat confdefs.h >>conftest.$ac_ext |
| 15090 | cat >>conftest.$ac_ext <<_ACEOF |
| 15091 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15092 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15094 | #define $ac_func innocuous_$ac_func |
| 15095 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15096 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15097 | which can conflict with char $ac_func (); below. |
| 15098 | 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] | 15099 | <limits.h> exists even on freestanding compilers. */ |
| 15100 | |
| 15101 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15102 | # include <limits.h> |
| 15103 | #else |
| 15104 | # include <assert.h> |
| 15105 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15106 | |
| 15107 | #undef $ac_func |
| 15108 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15109 | /* Override any GCC internal prototype to avoid an error. |
| 15110 | Use char because int might match the return type of a GCC |
| 15111 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15112 | #ifdef __cplusplus |
| 15113 | extern "C" |
| 15114 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15115 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15116 | /* The GNU C library defines this for functions which it implements |
| 15117 | to always fail with ENOSYS. Some functions are actually named |
| 15118 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15119 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15120 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15121 | #endif |
| 15122 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15123 | int |
| 15124 | main () |
| 15125 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15126 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15127 | ; |
| 15128 | return 0; |
| 15129 | } |
| 15130 | _ACEOF |
| 15131 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15132 | if { (ac_try="$ac_link" |
| 15133 | case "(($ac_try" in |
| 15134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15135 | *) ac_try_echo=$ac_try;; |
| 15136 | esac |
| 15137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15138 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15139 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15141 | rm -f conftest.er1 |
| 15142 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15144 | (exit $ac_status); } && { |
| 15145 | test -z "$ac_c_werror_flag" || |
| 15146 | test ! -s conftest.err |
| 15147 | } && test -s conftest$ac_exeext && |
| 15148 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15150 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15151 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15153 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15154 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15155 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15156 | |
| 15157 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15158 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15159 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15160 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15161 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15162 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15163 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15164 | cat >>confdefs.h <<_ACEOF |
| 15165 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15166 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15167 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15168 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15169 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15170 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15171 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15172 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 15173 | # loading of modules. |
| 15174 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15175 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 15176 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15177 | if test -z "$DYNLOADFILE" |
| 15178 | then |
| 15179 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 15180 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 15181 | if test "$ac_cv_func_dlopen" = yes |
| 15182 | then DYNLOADFILE="dynload_shlib.o" |
| 15183 | else DYNLOADFILE="dynload_aix.o" |
| 15184 | fi |
| 15185 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15186 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15187 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 15188 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15189 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15190 | *) |
| 15191 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 15192 | # out any dynamic loading |
| 15193 | if test "$ac_cv_func_dlopen" = yes |
| 15194 | then DYNLOADFILE="dynload_shlib.o" |
| 15195 | else DYNLOADFILE="dynload_stub.o" |
| 15196 | fi |
| 15197 | ;; |
| 15198 | esac |
| 15199 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15200 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 15201 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15202 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 15203 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15204 | |
| 15205 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15206 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15207 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15208 | |
| 15209 | fi |
| 15210 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 15211 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 15212 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15213 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15214 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 15215 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 15216 | if test -z "$MACHDEP_OBJS" |
| 15217 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 15218 | MACHDEP_OBJS=$extra_machdep_objs |
| 15219 | else |
| 15220 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 15221 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15222 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 15223 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 15224 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15225 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15226 | |
| 15227 | |
| 15228 | |
| 15229 | |
| 15230 | |
| 15231 | |
| 15232 | |
| 15233 | |
| 15234 | |
| 15235 | |
| 15236 | |
| 15237 | |
| 15238 | |
| 15239 | |
| 15240 | |
| 15241 | |
| 15242 | |
| 15243 | |
| 15244 | |
| 15245 | |
| 15246 | |
| 15247 | |
| 15248 | |
| 15249 | |
| 15250 | |
| 15251 | |
| 15252 | |
| 15253 | |
| 15254 | |
| 15255 | |
| 15256 | |
| 15257 | |
| 15258 | |
| 15259 | |
| 15260 | |
| 15261 | |
| 15262 | |
| 15263 | |
| 15264 | |
| 15265 | |
| 15266 | |
| 15267 | |
| 15268 | |
| 15269 | |
| 15270 | |
| 15271 | |
| 15272 | |
| 15273 | |
| 15274 | |
| 15275 | |
| 15276 | |
| 15277 | |
| 15278 | |
| 15279 | |
| 15280 | |
| 15281 | |
| 15282 | |
| 15283 | |
| 15284 | |
| 15285 | |
| 15286 | |
| 15287 | |
| 15288 | |
| 15289 | |
| 15290 | |
| 15291 | |
| 15292 | |
| 15293 | |
| 15294 | |
| 15295 | |
| 15296 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 15297 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 15298 | |
| 15299 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15300 | |
| 15301 | |
Thomas Wouters | cf297e4 | 2007-02-23 15:07:44 +0000 | [diff] [blame] | 15302 | |
| 15303 | |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 15304 | |
Thomas Wouters | cf297e4 | 2007-02-23 15:07:44 +0000 | [diff] [blame] | 15305 | for ac_func in alarm bind_textdomain_codeset chflags chown clock confstr \ |
| 15306 | ctermid execv fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 15307 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 15308 | getpriority getpwent getspnam getspent getsid getwd \ |
Thomas Wouters | cf297e4 | 2007-02-23 15:07:44 +0000 | [diff] [blame] | 15309 | kill killpg lchflags lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 15310 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 15311 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15312 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 15313 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 15314 | sigaction siginterrupt sigrelse strftime strlcpy \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 15315 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15316 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15317 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15318 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15319 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15320 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15321 | 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] | 15322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15324 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15325 | /* confdefs.h. */ |
| 15326 | _ACEOF |
| 15327 | cat confdefs.h >>conftest.$ac_ext |
| 15328 | cat >>conftest.$ac_ext <<_ACEOF |
| 15329 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15330 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15331 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15332 | #define $ac_func innocuous_$ac_func |
| 15333 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15334 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15335 | which can conflict with char $ac_func (); below. |
| 15336 | 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] | 15337 | <limits.h> exists even on freestanding compilers. */ |
| 15338 | |
| 15339 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15340 | # include <limits.h> |
| 15341 | #else |
| 15342 | # include <assert.h> |
| 15343 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15344 | |
| 15345 | #undef $ac_func |
| 15346 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15347 | /* Override any GCC internal prototype to avoid an error. |
| 15348 | Use char because int might match the return type of a GCC |
| 15349 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15350 | #ifdef __cplusplus |
| 15351 | extern "C" |
| 15352 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15353 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15354 | /* The GNU C library defines this for functions which it implements |
| 15355 | to always fail with ENOSYS. Some functions are actually named |
| 15356 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15357 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15358 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15359 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15360 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15361 | int |
| 15362 | main () |
| 15363 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15364 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15365 | ; |
| 15366 | return 0; |
| 15367 | } |
| 15368 | _ACEOF |
| 15369 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15370 | if { (ac_try="$ac_link" |
| 15371 | case "(($ac_try" in |
| 15372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15373 | *) ac_try_echo=$ac_try;; |
| 15374 | esac |
| 15375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15376 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15377 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15379 | rm -f conftest.er1 |
| 15380 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15382 | (exit $ac_status); } && { |
| 15383 | test -z "$ac_c_werror_flag" || |
| 15384 | test ! -s conftest.err |
| 15385 | } && test -s conftest$ac_exeext && |
| 15386 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15387 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15388 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15389 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15391 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15392 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15393 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15394 | |
| 15395 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15396 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15397 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15398 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15399 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15400 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15401 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15402 | cat >>confdefs.h <<_ACEOF |
| 15403 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15404 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15405 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15406 | fi |
| 15407 | done |
| 15408 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15409 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15410 | # For some functions, having a definition is not sufficient, since |
| 15411 | # we want to take their address. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15412 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 15413 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15414 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15415 | /* confdefs.h. */ |
| 15416 | _ACEOF |
| 15417 | cat confdefs.h >>conftest.$ac_ext |
| 15418 | cat >>conftest.$ac_ext <<_ACEOF |
| 15419 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15420 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15421 | int |
| 15422 | main () |
| 15423 | { |
| 15424 | void *x=chroot |
| 15425 | ; |
| 15426 | return 0; |
| 15427 | } |
| 15428 | _ACEOF |
| 15429 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15430 | if { (ac_try="$ac_compile" |
| 15431 | case "(($ac_try" in |
| 15432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15433 | *) ac_try_echo=$ac_try;; |
| 15434 | esac |
| 15435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15436 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15437 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15439 | rm -f conftest.er1 |
| 15440 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15442 | (exit $ac_status); } && { |
| 15443 | test -z "$ac_c_werror_flag" || |
| 15444 | test ! -s conftest.err |
| 15445 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15446 | |
| 15447 | cat >>confdefs.h <<\_ACEOF |
| 15448 | #define HAVE_CHROOT 1 |
| 15449 | _ACEOF |
| 15450 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15451 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15452 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15453 | else |
| 15454 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15456 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15457 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15458 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15459 | |
| 15460 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15461 | |
| 15462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15463 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 15464 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15465 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15466 | /* confdefs.h. */ |
| 15467 | _ACEOF |
| 15468 | cat confdefs.h >>conftest.$ac_ext |
| 15469 | cat >>conftest.$ac_ext <<_ACEOF |
| 15470 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15471 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15472 | int |
| 15473 | main () |
| 15474 | { |
| 15475 | void *x=link |
| 15476 | ; |
| 15477 | return 0; |
| 15478 | } |
| 15479 | _ACEOF |
| 15480 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15481 | if { (ac_try="$ac_compile" |
| 15482 | case "(($ac_try" in |
| 15483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15484 | *) ac_try_echo=$ac_try;; |
| 15485 | esac |
| 15486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15487 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15488 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15490 | rm -f conftest.er1 |
| 15491 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15493 | (exit $ac_status); } && { |
| 15494 | test -z "$ac_c_werror_flag" || |
| 15495 | test ! -s conftest.err |
| 15496 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15497 | |
| 15498 | cat >>confdefs.h <<\_ACEOF |
| 15499 | #define HAVE_LINK 1 |
| 15500 | _ACEOF |
| 15501 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15502 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15503 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15504 | else |
| 15505 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15507 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15508 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15509 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15510 | |
| 15511 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15512 | |
| 15513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15514 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 15515 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15516 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15517 | /* confdefs.h. */ |
| 15518 | _ACEOF |
| 15519 | cat confdefs.h >>conftest.$ac_ext |
| 15520 | cat >>conftest.$ac_ext <<_ACEOF |
| 15521 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15522 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15523 | int |
| 15524 | main () |
| 15525 | { |
| 15526 | void *x=symlink |
| 15527 | ; |
| 15528 | return 0; |
| 15529 | } |
| 15530 | _ACEOF |
| 15531 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15532 | if { (ac_try="$ac_compile" |
| 15533 | case "(($ac_try" in |
| 15534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15535 | *) ac_try_echo=$ac_try;; |
| 15536 | esac |
| 15537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15538 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15539 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15541 | rm -f conftest.er1 |
| 15542 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15544 | (exit $ac_status); } && { |
| 15545 | test -z "$ac_c_werror_flag" || |
| 15546 | test ! -s conftest.err |
| 15547 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15548 | |
| 15549 | cat >>confdefs.h <<\_ACEOF |
| 15550 | #define HAVE_SYMLINK 1 |
| 15551 | _ACEOF |
| 15552 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15553 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15554 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15555 | else |
| 15556 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15558 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15559 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15560 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15561 | |
| 15562 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15563 | |
| 15564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15565 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 15566 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15567 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15568 | /* confdefs.h. */ |
| 15569 | _ACEOF |
| 15570 | cat confdefs.h >>conftest.$ac_ext |
| 15571 | cat >>conftest.$ac_ext <<_ACEOF |
| 15572 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15573 | #include <unistd.h> |
| 15574 | int |
| 15575 | main () |
| 15576 | { |
| 15577 | void *x=fchdir |
| 15578 | ; |
| 15579 | return 0; |
| 15580 | } |
| 15581 | _ACEOF |
| 15582 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15583 | if { (ac_try="$ac_compile" |
| 15584 | case "(($ac_try" in |
| 15585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15586 | *) ac_try_echo=$ac_try;; |
| 15587 | esac |
| 15588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15589 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15590 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15592 | rm -f conftest.er1 |
| 15593 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15595 | (exit $ac_status); } && { |
| 15596 | test -z "$ac_c_werror_flag" || |
| 15597 | test ! -s conftest.err |
| 15598 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15599 | |
| 15600 | cat >>confdefs.h <<\_ACEOF |
| 15601 | #define HAVE_FCHDIR 1 |
| 15602 | _ACEOF |
| 15603 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15604 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15605 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15606 | else |
| 15607 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15609 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15610 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15611 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15612 | |
| 15613 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15614 | |
| 15615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15616 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 15617 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15618 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15619 | /* confdefs.h. */ |
| 15620 | _ACEOF |
| 15621 | cat confdefs.h >>conftest.$ac_ext |
| 15622 | cat >>conftest.$ac_ext <<_ACEOF |
| 15623 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15624 | #include <unistd.h> |
| 15625 | int |
| 15626 | main () |
| 15627 | { |
| 15628 | void *x=fsync |
| 15629 | ; |
| 15630 | return 0; |
| 15631 | } |
| 15632 | _ACEOF |
| 15633 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15634 | if { (ac_try="$ac_compile" |
| 15635 | case "(($ac_try" in |
| 15636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15637 | *) ac_try_echo=$ac_try;; |
| 15638 | esac |
| 15639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15640 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15641 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15643 | rm -f conftest.er1 |
| 15644 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15646 | (exit $ac_status); } && { |
| 15647 | test -z "$ac_c_werror_flag" || |
| 15648 | test ! -s conftest.err |
| 15649 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15650 | |
| 15651 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15652 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15653 | _ACEOF |
| 15654 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15655 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15656 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15657 | else |
| 15658 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15660 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15661 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15662 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15663 | |
| 15664 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15665 | |
| 15666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15667 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 15668 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15669 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15670 | /* confdefs.h. */ |
| 15671 | _ACEOF |
| 15672 | cat confdefs.h >>conftest.$ac_ext |
| 15673 | cat >>conftest.$ac_ext <<_ACEOF |
| 15674 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15675 | #include <unistd.h> |
| 15676 | int |
| 15677 | main () |
| 15678 | { |
| 15679 | void *x=fdatasync |
| 15680 | ; |
| 15681 | return 0; |
| 15682 | } |
| 15683 | _ACEOF |
| 15684 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15685 | if { (ac_try="$ac_compile" |
| 15686 | case "(($ac_try" in |
| 15687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15688 | *) ac_try_echo=$ac_try;; |
| 15689 | esac |
| 15690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15691 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15692 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15694 | rm -f conftest.er1 |
| 15695 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15697 | (exit $ac_status); } && { |
| 15698 | test -z "$ac_c_werror_flag" || |
| 15699 | test ! -s conftest.err |
| 15700 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15701 | |
| 15702 | cat >>confdefs.h <<\_ACEOF |
| 15703 | #define HAVE_FDATASYNC 1 |
| 15704 | _ACEOF |
| 15705 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15706 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15707 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15708 | else |
| 15709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15711 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15712 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15713 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15714 | |
| 15715 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15716 | |
| 15717 | 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] | 15718 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15719 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 15720 | # functions ctermid_r, setgroups in the library, but no prototype |
| 15721 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 15722 | # address to avoid compiler warnings and potential miscompilations |
| 15723 | # because of the missing prototypes. |
| 15724 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15725 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 15726 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15727 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15728 | /* confdefs.h. */ |
| 15729 | _ACEOF |
| 15730 | cat confdefs.h >>conftest.$ac_ext |
| 15731 | cat >>conftest.$ac_ext <<_ACEOF |
| 15732 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15733 | |
| 15734 | #include "confdefs.h" |
| 15735 | #include <stdio.h> |
| 15736 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15737 | int |
| 15738 | main () |
| 15739 | { |
| 15740 | void* p = ctermid_r |
| 15741 | ; |
| 15742 | return 0; |
| 15743 | } |
| 15744 | _ACEOF |
| 15745 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15746 | if { (ac_try="$ac_compile" |
| 15747 | case "(($ac_try" in |
| 15748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15749 | *) ac_try_echo=$ac_try;; |
| 15750 | esac |
| 15751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15752 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15753 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15755 | rm -f conftest.er1 |
| 15756 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15758 | (exit $ac_status); } && { |
| 15759 | test -z "$ac_c_werror_flag" || |
| 15760 | test ! -s conftest.err |
| 15761 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15762 | |
| 15763 | cat >>confdefs.h <<\_ACEOF |
| 15764 | #define HAVE_CTERMID_R 1 |
| 15765 | _ACEOF |
| 15766 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15767 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15768 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15769 | else |
| 15770 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15772 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15773 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15774 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15775 | |
| 15776 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15777 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15779 | |
| 15780 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 15781 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15782 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15783 | /* confdefs.h. */ |
| 15784 | _ACEOF |
| 15785 | cat confdefs.h >>conftest.$ac_ext |
| 15786 | cat >>conftest.$ac_ext <<_ACEOF |
| 15787 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15788 | |
| 15789 | #include "confdefs.h" |
| 15790 | #include <sys/file.h> |
| 15791 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15792 | int |
| 15793 | main () |
| 15794 | { |
| 15795 | void* p = flock |
| 15796 | ; |
| 15797 | return 0; |
| 15798 | } |
| 15799 | _ACEOF |
| 15800 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15801 | if { (ac_try="$ac_compile" |
| 15802 | case "(($ac_try" in |
| 15803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15804 | *) ac_try_echo=$ac_try;; |
| 15805 | esac |
| 15806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15807 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15808 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15810 | rm -f conftest.er1 |
| 15811 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15813 | (exit $ac_status); } && { |
| 15814 | test -z "$ac_c_werror_flag" || |
| 15815 | test ! -s conftest.err |
| 15816 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15817 | |
| 15818 | cat >>confdefs.h <<\_ACEOF |
| 15819 | #define HAVE_FLOCK 1 |
| 15820 | _ACEOF |
| 15821 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15822 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15823 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15824 | else |
| 15825 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15827 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15828 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15829 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15830 | |
| 15831 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15832 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15834 | |
| 15835 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 15836 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15837 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15838 | /* confdefs.h. */ |
| 15839 | _ACEOF |
| 15840 | cat confdefs.h >>conftest.$ac_ext |
| 15841 | cat >>conftest.$ac_ext <<_ACEOF |
| 15842 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15843 | |
| 15844 | #include "confdefs.h" |
| 15845 | #include <unistd.h> |
| 15846 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15847 | int |
| 15848 | main () |
| 15849 | { |
| 15850 | void* p = getpagesize |
| 15851 | ; |
| 15852 | return 0; |
| 15853 | } |
| 15854 | _ACEOF |
| 15855 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15856 | if { (ac_try="$ac_compile" |
| 15857 | case "(($ac_try" in |
| 15858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15859 | *) ac_try_echo=$ac_try;; |
| 15860 | esac |
| 15861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15862 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15863 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15865 | rm -f conftest.er1 |
| 15866 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15868 | (exit $ac_status); } && { |
| 15869 | test -z "$ac_c_werror_flag" || |
| 15870 | test ! -s conftest.err |
| 15871 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15872 | |
| 15873 | cat >>confdefs.h <<\_ACEOF |
| 15874 | #define HAVE_GETPAGESIZE 1 |
| 15875 | _ACEOF |
| 15876 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15877 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15878 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15879 | else |
| 15880 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15882 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15883 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15884 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15885 | |
| 15886 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15887 | |
| 15888 | 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] | 15889 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15890 | for ac_prog in true |
| 15891 | do |
| 15892 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 15893 | set dummy $ac_prog; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15894 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15896 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 15897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15898 | else |
| 15899 | if test -n "$TRUE"; then |
| 15900 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 15901 | else |
| 15902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15903 | for as_dir in $PATH |
| 15904 | do |
| 15905 | IFS=$as_save_IFS |
| 15906 | test -z "$as_dir" && as_dir=. |
| 15907 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15908 | 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] | 15909 | ac_cv_prog_TRUE="$ac_prog" |
| 15910 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15911 | break 2 |
| 15912 | fi |
| 15913 | done |
| 15914 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15915 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15916 | |
| 15917 | fi |
| 15918 | fi |
| 15919 | TRUE=$ac_cv_prog_TRUE |
| 15920 | if test -n "$TRUE"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15921 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 15922 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15923 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15924 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15925 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15926 | fi |
| 15927 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15928 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15929 | test -n "$TRUE" && break |
| 15930 | done |
| 15931 | test -n "$TRUE" || TRUE="/bin/true" |
| 15932 | |
| 15933 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15934 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 15935 | 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] | 15936 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 15937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15938 | else |
| 15939 | ac_check_lib_save_LIBS=$LIBS |
| 15940 | LIBS="-lc $LIBS" |
| 15941 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15942 | /* confdefs.h. */ |
| 15943 | _ACEOF |
| 15944 | cat confdefs.h >>conftest.$ac_ext |
| 15945 | cat >>conftest.$ac_ext <<_ACEOF |
| 15946 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15947 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15948 | /* Override any GCC internal prototype to avoid an error. |
| 15949 | Use char because int might match the return type of a GCC |
| 15950 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15951 | #ifdef __cplusplus |
| 15952 | extern "C" |
| 15953 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15954 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15955 | int |
| 15956 | main () |
| 15957 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15958 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15959 | ; |
| 15960 | return 0; |
| 15961 | } |
| 15962 | _ACEOF |
| 15963 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15964 | if { (ac_try="$ac_link" |
| 15965 | case "(($ac_try" in |
| 15966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15967 | *) ac_try_echo=$ac_try;; |
| 15968 | esac |
| 15969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15970 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15971 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15973 | rm -f conftest.er1 |
| 15974 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15976 | (exit $ac_status); } && { |
| 15977 | test -z "$ac_c_werror_flag" || |
| 15978 | test ! -s conftest.err |
| 15979 | } && test -s conftest$ac_exeext && |
| 15980 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15981 | ac_cv_lib_c_inet_aton=yes |
| 15982 | else |
| 15983 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15985 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15986 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15987 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15988 | |
| 15989 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15990 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15991 | LIBS=$ac_check_lib_save_LIBS |
| 15992 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15993 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 15994 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15995 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15996 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15997 | else |
| 15998 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15999 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 16000 | 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] | 16001 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 16002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16003 | else |
| 16004 | ac_check_lib_save_LIBS=$LIBS |
| 16005 | LIBS="-lresolv $LIBS" |
| 16006 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16007 | /* confdefs.h. */ |
| 16008 | _ACEOF |
| 16009 | cat confdefs.h >>conftest.$ac_ext |
| 16010 | cat >>conftest.$ac_ext <<_ACEOF |
| 16011 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16012 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16013 | /* Override any GCC internal prototype to avoid an error. |
| 16014 | Use char because int might match the return type of a GCC |
| 16015 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16016 | #ifdef __cplusplus |
| 16017 | extern "C" |
| 16018 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16019 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16020 | int |
| 16021 | main () |
| 16022 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16023 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16024 | ; |
| 16025 | return 0; |
| 16026 | } |
| 16027 | _ACEOF |
| 16028 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16029 | if { (ac_try="$ac_link" |
| 16030 | case "(($ac_try" in |
| 16031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16032 | *) ac_try_echo=$ac_try;; |
| 16033 | esac |
| 16034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16035 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16036 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16038 | rm -f conftest.er1 |
| 16039 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16041 | (exit $ac_status); } && { |
| 16042 | test -z "$ac_c_werror_flag" || |
| 16043 | test ! -s conftest.err |
| 16044 | } && test -s conftest$ac_exeext && |
| 16045 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16046 | ac_cv_lib_resolv_inet_aton=yes |
| 16047 | else |
| 16048 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16050 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16051 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16052 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16053 | |
| 16054 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16055 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16056 | LIBS=$ac_check_lib_save_LIBS |
| 16057 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16058 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 16059 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16060 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 16061 | cat >>confdefs.h <<_ACEOF |
| 16062 | #define HAVE_LIBRESOLV 1 |
| 16063 | _ACEOF |
| 16064 | |
| 16065 | LIBS="-lresolv $LIBS" |
| 16066 | |
| 16067 | fi |
| 16068 | |
| 16069 | |
| 16070 | fi |
| 16071 | |
| 16072 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16073 | case $ac_sys_system/$ac_sys_release in |
| 16074 | Darwin/*) |
| 16075 | _CUR_CFLAGS="${CFLAGS}" |
| 16076 | _CUR_LDFLAGS="${LDFLAGS}" |
| 16077 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 16078 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 16079 | ;; |
| 16080 | esac |
| 16081 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16082 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 16083 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16084 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
| 16085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16086 | else |
| 16087 | ac_check_lib_save_LIBS=$LIBS |
| 16088 | LIBS="-lz $LIBS" |
| 16089 | cat >conftest.$ac_ext <<_ACEOF |
| 16090 | /* confdefs.h. */ |
| 16091 | _ACEOF |
| 16092 | cat confdefs.h >>conftest.$ac_ext |
| 16093 | cat >>conftest.$ac_ext <<_ACEOF |
| 16094 | /* end confdefs.h. */ |
| 16095 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16096 | /* Override any GCC internal prototype to avoid an error. |
| 16097 | Use char because int might match the return type of a GCC |
| 16098 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16099 | #ifdef __cplusplus |
| 16100 | extern "C" |
| 16101 | #endif |
| 16102 | char inflateCopy (); |
| 16103 | int |
| 16104 | main () |
| 16105 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16106 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16107 | ; |
| 16108 | return 0; |
| 16109 | } |
| 16110 | _ACEOF |
| 16111 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16112 | if { (ac_try="$ac_link" |
| 16113 | case "(($ac_try" in |
| 16114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16115 | *) ac_try_echo=$ac_try;; |
| 16116 | esac |
| 16117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16118 | (eval "$ac_link") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16119 | ac_status=$? |
| 16120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16121 | rm -f conftest.er1 |
| 16122 | cat conftest.err >&5 |
| 16123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16124 | (exit $ac_status); } && { |
| 16125 | test -z "$ac_c_werror_flag" || |
| 16126 | test ! -s conftest.err |
| 16127 | } && test -s conftest$ac_exeext && |
| 16128 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16129 | ac_cv_lib_z_inflateCopy=yes |
| 16130 | else |
| 16131 | echo "$as_me: failed program was:" >&5 |
| 16132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16133 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16134 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16135 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16136 | |
| 16137 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16138 | conftest$ac_exeext conftest.$ac_ext |
| 16139 | LIBS=$ac_check_lib_save_LIBS |
| 16140 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16141 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 16142 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16143 | if test $ac_cv_lib_z_inflateCopy = yes; then |
| 16144 | |
| 16145 | cat >>confdefs.h <<\_ACEOF |
| 16146 | #define HAVE_ZLIB_COPY 1 |
| 16147 | _ACEOF |
| 16148 | |
| 16149 | fi |
| 16150 | |
| 16151 | |
| 16152 | case $ac_sys_system/$ac_sys_release in |
| 16153 | Darwin/*) |
| 16154 | CFLAGS="${_CUR_CFLAGS}" |
| 16155 | LDFLAGS="${_CUR_LDFLAGS}" |
| 16156 | ;; |
| 16157 | esac |
| 16158 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16159 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 16160 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16161 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16162 | /* confdefs.h. */ |
| 16163 | _ACEOF |
| 16164 | cat confdefs.h >>conftest.$ac_ext |
| 16165 | cat >>conftest.$ac_ext <<_ACEOF |
| 16166 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16167 | |
| 16168 | #include "confdefs.h" |
| 16169 | #include <netdb.h> |
| 16170 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16171 | int |
| 16172 | main () |
| 16173 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16174 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16175 | ; |
| 16176 | return 0; |
| 16177 | } |
| 16178 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16179 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16180 | if { (ac_try="$ac_link" |
| 16181 | case "(($ac_try" in |
| 16182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16183 | *) ac_try_echo=$ac_try;; |
| 16184 | esac |
| 16185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16186 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16187 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16189 | rm -f conftest.er1 |
| 16190 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16192 | (exit $ac_status); } && { |
| 16193 | test -z "$ac_c_werror_flag" || |
| 16194 | test ! -s conftest.err |
| 16195 | } && test -s conftest$ac_exeext && |
| 16196 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16197 | |
| 16198 | cat >>confdefs.h <<\_ACEOF |
| 16199 | #define HAVE_HSTRERROR 1 |
| 16200 | _ACEOF |
| 16201 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16202 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16203 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16204 | else |
| 16205 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16207 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16208 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16209 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16210 | |
| 16211 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16212 | |
| 16213 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16214 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16215 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16216 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 16217 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16218 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16219 | /* confdefs.h. */ |
| 16220 | _ACEOF |
| 16221 | cat confdefs.h >>conftest.$ac_ext |
| 16222 | cat >>conftest.$ac_ext <<_ACEOF |
| 16223 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16224 | |
| 16225 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 16226 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16227 | #include <sys/socket.h> |
| 16228 | #include <netinet/in.h> |
| 16229 | #include <arpa/inet.h> |
| 16230 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16231 | int |
| 16232 | main () |
| 16233 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16234 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16235 | ; |
| 16236 | return 0; |
| 16237 | } |
| 16238 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16239 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16240 | if { (ac_try="$ac_link" |
| 16241 | case "(($ac_try" in |
| 16242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16243 | *) ac_try_echo=$ac_try;; |
| 16244 | esac |
| 16245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16246 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16247 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16249 | rm -f conftest.er1 |
| 16250 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16252 | (exit $ac_status); } && { |
| 16253 | test -z "$ac_c_werror_flag" || |
| 16254 | test ! -s conftest.err |
| 16255 | } && test -s conftest$ac_exeext && |
| 16256 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16257 | |
| 16258 | cat >>confdefs.h <<\_ACEOF |
| 16259 | #define HAVE_INET_ATON 1 |
| 16260 | _ACEOF |
| 16261 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16262 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16263 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16264 | else |
| 16265 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16267 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16268 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16269 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16270 | |
| 16271 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16272 | |
| 16273 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16274 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16275 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16276 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 16277 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16278 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16279 | /* confdefs.h. */ |
| 16280 | _ACEOF |
| 16281 | cat confdefs.h >>conftest.$ac_ext |
| 16282 | cat >>conftest.$ac_ext <<_ACEOF |
| 16283 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16284 | |
| 16285 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 16286 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16287 | #include <sys/socket.h> |
| 16288 | #include <netinet/in.h> |
| 16289 | #include <arpa/inet.h> |
| 16290 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16291 | int |
| 16292 | main () |
| 16293 | { |
| 16294 | void* p = inet_pton |
| 16295 | ; |
| 16296 | return 0; |
| 16297 | } |
| 16298 | _ACEOF |
| 16299 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16300 | if { (ac_try="$ac_compile" |
| 16301 | case "(($ac_try" in |
| 16302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16303 | *) ac_try_echo=$ac_try;; |
| 16304 | esac |
| 16305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16306 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16307 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16309 | rm -f conftest.er1 |
| 16310 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16312 | (exit $ac_status); } && { |
| 16313 | test -z "$ac_c_werror_flag" || |
| 16314 | test ! -s conftest.err |
| 16315 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16316 | |
| 16317 | cat >>confdefs.h <<\_ACEOF |
| 16318 | #define HAVE_INET_PTON 1 |
| 16319 | _ACEOF |
| 16320 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16321 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16322 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16323 | else |
| 16324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16326 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16327 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16328 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16329 | |
| 16330 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16331 | |
| 16332 | 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] | 16333 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 16334 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16335 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 16336 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16337 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16338 | /* confdefs.h. */ |
| 16339 | _ACEOF |
| 16340 | cat confdefs.h >>conftest.$ac_ext |
| 16341 | cat >>conftest.$ac_ext <<_ACEOF |
| 16342 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16343 | |
| 16344 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 16345 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 16346 | #ifdef HAVE_GRP_H |
| 16347 | #include <grp.h> |
| 16348 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16349 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16350 | int |
| 16351 | main () |
| 16352 | { |
| 16353 | void* p = setgroups |
| 16354 | ; |
| 16355 | return 0; |
| 16356 | } |
| 16357 | _ACEOF |
| 16358 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16359 | if { (ac_try="$ac_compile" |
| 16360 | case "(($ac_try" in |
| 16361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16362 | *) ac_try_echo=$ac_try;; |
| 16363 | esac |
| 16364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16365 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16366 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16368 | rm -f conftest.er1 |
| 16369 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16371 | (exit $ac_status); } && { |
| 16372 | test -z "$ac_c_werror_flag" || |
| 16373 | test ! -s conftest.err |
| 16374 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16375 | |
| 16376 | cat >>confdefs.h <<\_ACEOF |
| 16377 | #define HAVE_SETGROUPS 1 |
| 16378 | _ACEOF |
| 16379 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16380 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16381 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16382 | else |
| 16383 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16385 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16386 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16387 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16388 | |
| 16389 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16390 | |
| 16391 | 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] | 16392 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16393 | # check for openpty and forkpty |
| 16394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16395 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16396 | for ac_func in openpty |
| 16397 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16398 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16399 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16400 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16401 | 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] | 16402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16403 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16404 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16405 | /* confdefs.h. */ |
| 16406 | _ACEOF |
| 16407 | cat confdefs.h >>conftest.$ac_ext |
| 16408 | cat >>conftest.$ac_ext <<_ACEOF |
| 16409 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16410 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16411 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16412 | #define $ac_func innocuous_$ac_func |
| 16413 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16414 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16415 | which can conflict with char $ac_func (); below. |
| 16416 | 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] | 16417 | <limits.h> exists even on freestanding compilers. */ |
| 16418 | |
| 16419 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16420 | # include <limits.h> |
| 16421 | #else |
| 16422 | # include <assert.h> |
| 16423 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16424 | |
| 16425 | #undef $ac_func |
| 16426 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16427 | /* Override any GCC internal prototype to avoid an error. |
| 16428 | Use char because int might match the return type of a GCC |
| 16429 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16430 | #ifdef __cplusplus |
| 16431 | extern "C" |
| 16432 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16433 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16434 | /* The GNU C library defines this for functions which it implements |
| 16435 | to always fail with ENOSYS. Some functions are actually named |
| 16436 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16437 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16438 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16439 | #endif |
| 16440 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16441 | int |
| 16442 | main () |
| 16443 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16444 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16445 | ; |
| 16446 | return 0; |
| 16447 | } |
| 16448 | _ACEOF |
| 16449 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16450 | if { (ac_try="$ac_link" |
| 16451 | case "(($ac_try" in |
| 16452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16453 | *) ac_try_echo=$ac_try;; |
| 16454 | esac |
| 16455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16456 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16457 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16459 | rm -f conftest.er1 |
| 16460 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16462 | (exit $ac_status); } && { |
| 16463 | test -z "$ac_c_werror_flag" || |
| 16464 | test ! -s conftest.err |
| 16465 | } && test -s conftest$ac_exeext && |
| 16466 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16467 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16468 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16469 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16471 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16472 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16473 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16474 | |
| 16475 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16476 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16477 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16478 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16479 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16480 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16481 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16482 | cat >>confdefs.h <<_ACEOF |
| 16483 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16484 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16485 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16486 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16487 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 16488 | 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] | 16489 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 16490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16492 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16493 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16494 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16495 | /* confdefs.h. */ |
| 16496 | _ACEOF |
| 16497 | cat confdefs.h >>conftest.$ac_ext |
| 16498 | cat >>conftest.$ac_ext <<_ACEOF |
| 16499 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16500 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16501 | /* Override any GCC internal prototype to avoid an error. |
| 16502 | Use char because int might match the return type of a GCC |
| 16503 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16504 | #ifdef __cplusplus |
| 16505 | extern "C" |
| 16506 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16507 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16508 | int |
| 16509 | main () |
| 16510 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16511 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16512 | ; |
| 16513 | return 0; |
| 16514 | } |
| 16515 | _ACEOF |
| 16516 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16517 | if { (ac_try="$ac_link" |
| 16518 | case "(($ac_try" in |
| 16519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16520 | *) ac_try_echo=$ac_try;; |
| 16521 | esac |
| 16522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16523 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16524 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16526 | rm -f conftest.er1 |
| 16527 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16529 | (exit $ac_status); } && { |
| 16530 | test -z "$ac_c_werror_flag" || |
| 16531 | test ! -s conftest.err |
| 16532 | } && test -s conftest$ac_exeext && |
| 16533 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16534 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16538 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16539 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16540 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16541 | |
| 16542 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16543 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16544 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16545 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16546 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 16547 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16548 | if test $ac_cv_lib_util_openpty = yes; then |
| 16549 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16550 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16551 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16552 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16553 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16554 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 16555 | 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] | 16556 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
| 16557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16558 | else |
| 16559 | ac_check_lib_save_LIBS=$LIBS |
| 16560 | LIBS="-lbsd $LIBS" |
| 16561 | cat >conftest.$ac_ext <<_ACEOF |
| 16562 | /* confdefs.h. */ |
| 16563 | _ACEOF |
| 16564 | cat confdefs.h >>conftest.$ac_ext |
| 16565 | cat >>conftest.$ac_ext <<_ACEOF |
| 16566 | /* end confdefs.h. */ |
| 16567 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16568 | /* Override any GCC internal prototype to avoid an error. |
| 16569 | Use char because int might match the return type of a GCC |
| 16570 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16571 | #ifdef __cplusplus |
| 16572 | extern "C" |
| 16573 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16574 | char openpty (); |
| 16575 | int |
| 16576 | main () |
| 16577 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16578 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16579 | ; |
| 16580 | return 0; |
| 16581 | } |
| 16582 | _ACEOF |
| 16583 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16584 | if { (ac_try="$ac_link" |
| 16585 | case "(($ac_try" in |
| 16586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16587 | *) ac_try_echo=$ac_try;; |
| 16588 | esac |
| 16589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16590 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16591 | ac_status=$? |
| 16592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16593 | rm -f conftest.er1 |
| 16594 | cat conftest.err >&5 |
| 16595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16596 | (exit $ac_status); } && { |
| 16597 | test -z "$ac_c_werror_flag" || |
| 16598 | test ! -s conftest.err |
| 16599 | } && test -s conftest$ac_exeext && |
| 16600 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16601 | ac_cv_lib_bsd_openpty=yes |
| 16602 | else |
| 16603 | echo "$as_me: failed program was:" >&5 |
| 16604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16605 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16606 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16607 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16608 | |
| 16609 | 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] | 16610 | conftest$ac_exeext conftest.$ac_ext |
| 16611 | LIBS=$ac_check_lib_save_LIBS |
| 16612 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16613 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 16614 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16615 | if test $ac_cv_lib_bsd_openpty = yes; then |
| 16616 | cat >>confdefs.h <<\_ACEOF |
| 16617 | #define HAVE_OPENPTY 1 |
| 16618 | _ACEOF |
| 16619 | LIBS="$LIBS -lbsd" |
| 16620 | fi |
| 16621 | |
| 16622 | |
| 16623 | fi |
| 16624 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16625 | |
| 16626 | fi |
| 16627 | done |
| 16628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16629 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16630 | for ac_func in forkpty |
| 16631 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16632 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16633 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16634 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16635 | 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] | 16636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16637 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16638 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16639 | /* confdefs.h. */ |
| 16640 | _ACEOF |
| 16641 | cat confdefs.h >>conftest.$ac_ext |
| 16642 | cat >>conftest.$ac_ext <<_ACEOF |
| 16643 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16644 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16645 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16646 | #define $ac_func innocuous_$ac_func |
| 16647 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16648 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16649 | which can conflict with char $ac_func (); below. |
| 16650 | 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] | 16651 | <limits.h> exists even on freestanding compilers. */ |
| 16652 | |
| 16653 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16654 | # include <limits.h> |
| 16655 | #else |
| 16656 | # include <assert.h> |
| 16657 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16658 | |
| 16659 | #undef $ac_func |
| 16660 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16661 | /* Override any GCC internal prototype to avoid an error. |
| 16662 | Use char because int might match the return type of a GCC |
| 16663 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16664 | #ifdef __cplusplus |
| 16665 | extern "C" |
| 16666 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16667 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16668 | /* The GNU C library defines this for functions which it implements |
| 16669 | to always fail with ENOSYS. Some functions are actually named |
| 16670 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16671 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16672 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16673 | #endif |
| 16674 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16675 | int |
| 16676 | main () |
| 16677 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16678 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16679 | ; |
| 16680 | return 0; |
| 16681 | } |
| 16682 | _ACEOF |
| 16683 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16684 | if { (ac_try="$ac_link" |
| 16685 | case "(($ac_try" in |
| 16686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16687 | *) ac_try_echo=$ac_try;; |
| 16688 | esac |
| 16689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16690 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16691 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16693 | rm -f conftest.er1 |
| 16694 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16696 | (exit $ac_status); } && { |
| 16697 | test -z "$ac_c_werror_flag" || |
| 16698 | test ! -s conftest.err |
| 16699 | } && test -s conftest$ac_exeext && |
| 16700 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16701 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16702 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16703 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16705 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16706 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16707 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16708 | |
| 16709 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16710 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16711 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16712 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16714 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16715 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16716 | cat >>confdefs.h <<_ACEOF |
| 16717 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16718 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16719 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16720 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16721 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 16722 | 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] | 16723 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 16724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16726 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16727 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16728 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16729 | /* confdefs.h. */ |
| 16730 | _ACEOF |
| 16731 | cat confdefs.h >>conftest.$ac_ext |
| 16732 | cat >>conftest.$ac_ext <<_ACEOF |
| 16733 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16734 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16735 | /* Override any GCC internal prototype to avoid an error. |
| 16736 | Use char because int might match the return type of a GCC |
| 16737 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16738 | #ifdef __cplusplus |
| 16739 | extern "C" |
| 16740 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16741 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16742 | int |
| 16743 | main () |
| 16744 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16745 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | ; |
| 16747 | return 0; |
| 16748 | } |
| 16749 | _ACEOF |
| 16750 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16751 | if { (ac_try="$ac_link" |
| 16752 | case "(($ac_try" in |
| 16753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16754 | *) ac_try_echo=$ac_try;; |
| 16755 | esac |
| 16756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16757 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16758 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16759 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16760 | rm -f conftest.er1 |
| 16761 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16763 | (exit $ac_status); } && { |
| 16764 | test -z "$ac_c_werror_flag" || |
| 16765 | test ! -s conftest.err |
| 16766 | } && test -s conftest$ac_exeext && |
| 16767 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16768 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16770 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16772 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16773 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16774 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16775 | |
| 16776 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16777 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16778 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16779 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16780 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 16781 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16782 | if test $ac_cv_lib_util_forkpty = yes; then |
| 16783 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16784 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16785 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16786 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16787 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16788 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 16789 | 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] | 16790 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
| 16791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16792 | else |
| 16793 | ac_check_lib_save_LIBS=$LIBS |
| 16794 | LIBS="-lbsd $LIBS" |
| 16795 | cat >conftest.$ac_ext <<_ACEOF |
| 16796 | /* confdefs.h. */ |
| 16797 | _ACEOF |
| 16798 | cat confdefs.h >>conftest.$ac_ext |
| 16799 | cat >>conftest.$ac_ext <<_ACEOF |
| 16800 | /* end confdefs.h. */ |
| 16801 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16802 | /* Override any GCC internal prototype to avoid an error. |
| 16803 | Use char because int might match the return type of a GCC |
| 16804 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16805 | #ifdef __cplusplus |
| 16806 | extern "C" |
| 16807 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16808 | char forkpty (); |
| 16809 | int |
| 16810 | main () |
| 16811 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16812 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16813 | ; |
| 16814 | return 0; |
| 16815 | } |
| 16816 | _ACEOF |
| 16817 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16818 | if { (ac_try="$ac_link" |
| 16819 | case "(($ac_try" in |
| 16820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16821 | *) ac_try_echo=$ac_try;; |
| 16822 | esac |
| 16823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16824 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16825 | ac_status=$? |
| 16826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16827 | rm -f conftest.er1 |
| 16828 | cat conftest.err >&5 |
| 16829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16830 | (exit $ac_status); } && { |
| 16831 | test -z "$ac_c_werror_flag" || |
| 16832 | test ! -s conftest.err |
| 16833 | } && test -s conftest$ac_exeext && |
| 16834 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16835 | ac_cv_lib_bsd_forkpty=yes |
| 16836 | else |
| 16837 | echo "$as_me: failed program was:" >&5 |
| 16838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16839 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16840 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16841 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16842 | |
| 16843 | 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] | 16844 | conftest$ac_exeext conftest.$ac_ext |
| 16845 | LIBS=$ac_check_lib_save_LIBS |
| 16846 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16847 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 16848 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16849 | if test $ac_cv_lib_bsd_forkpty = yes; then |
| 16850 | cat >>confdefs.h <<\_ACEOF |
| 16851 | #define HAVE_FORKPTY 1 |
| 16852 | _ACEOF |
| 16853 | LIBS="$LIBS -lbsd" |
| 16854 | fi |
| 16855 | |
| 16856 | |
| 16857 | fi |
| 16858 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16859 | |
| 16860 | fi |
| 16861 | done |
| 16862 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16863 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16864 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16865 | |
| 16866 | |
| 16867 | |
| 16868 | |
| 16869 | |
| 16870 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16871 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 16872 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16873 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16874 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16875 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16876 | 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] | 16877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16879 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16880 | /* confdefs.h. */ |
| 16881 | _ACEOF |
| 16882 | cat confdefs.h >>conftest.$ac_ext |
| 16883 | cat >>conftest.$ac_ext <<_ACEOF |
| 16884 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16885 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16886 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16887 | #define $ac_func innocuous_$ac_func |
| 16888 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16889 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16890 | which can conflict with char $ac_func (); below. |
| 16891 | 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] | 16892 | <limits.h> exists even on freestanding compilers. */ |
| 16893 | |
| 16894 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16895 | # include <limits.h> |
| 16896 | #else |
| 16897 | # include <assert.h> |
| 16898 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16899 | |
| 16900 | #undef $ac_func |
| 16901 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16902 | /* Override any GCC internal prototype to avoid an error. |
| 16903 | Use char because int might match the return type of a GCC |
| 16904 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16905 | #ifdef __cplusplus |
| 16906 | extern "C" |
| 16907 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16908 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16909 | /* The GNU C library defines this for functions which it implements |
| 16910 | to always fail with ENOSYS. Some functions are actually named |
| 16911 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16912 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16913 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16914 | #endif |
| 16915 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16916 | int |
| 16917 | main () |
| 16918 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16919 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16920 | ; |
| 16921 | return 0; |
| 16922 | } |
| 16923 | _ACEOF |
| 16924 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16925 | if { (ac_try="$ac_link" |
| 16926 | case "(($ac_try" in |
| 16927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16928 | *) ac_try_echo=$ac_try;; |
| 16929 | esac |
| 16930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16931 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16932 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16934 | rm -f conftest.er1 |
| 16935 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16937 | (exit $ac_status); } && { |
| 16938 | test -z "$ac_c_werror_flag" || |
| 16939 | test ! -s conftest.err |
| 16940 | } && test -s conftest$ac_exeext && |
| 16941 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16942 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16944 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16946 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16947 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16948 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16949 | |
| 16950 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16951 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16952 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16953 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16954 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16955 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16956 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16957 | cat >>confdefs.h <<_ACEOF |
| 16958 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16959 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16960 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16961 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16962 | done |
| 16963 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16964 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16965 | |
| 16966 | |
| 16967 | |
| 16968 | |
| 16969 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16970 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16971 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16972 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16973 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16974 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16975 | 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] | 16976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16978 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16979 | /* confdefs.h. */ |
| 16980 | _ACEOF |
| 16981 | cat confdefs.h >>conftest.$ac_ext |
| 16982 | cat >>conftest.$ac_ext <<_ACEOF |
| 16983 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16984 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16985 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16986 | #define $ac_func innocuous_$ac_func |
| 16987 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16988 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16989 | which can conflict with char $ac_func (); below. |
| 16990 | 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] | 16991 | <limits.h> exists even on freestanding compilers. */ |
| 16992 | |
| 16993 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16994 | # include <limits.h> |
| 16995 | #else |
| 16996 | # include <assert.h> |
| 16997 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16998 | |
| 16999 | #undef $ac_func |
| 17000 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17001 | /* Override any GCC internal prototype to avoid an error. |
| 17002 | Use char because int might match the return type of a GCC |
| 17003 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17004 | #ifdef __cplusplus |
| 17005 | extern "C" |
| 17006 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17007 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17008 | /* The GNU C library defines this for functions which it implements |
| 17009 | to always fail with ENOSYS. Some functions are actually named |
| 17010 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17011 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17012 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17013 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17014 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17015 | int |
| 17016 | main () |
| 17017 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17018 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17019 | ; |
| 17020 | return 0; |
| 17021 | } |
| 17022 | _ACEOF |
| 17023 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17024 | if { (ac_try="$ac_link" |
| 17025 | case "(($ac_try" in |
| 17026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17027 | *) ac_try_echo=$ac_try;; |
| 17028 | esac |
| 17029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17030 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17031 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17033 | rm -f conftest.er1 |
| 17034 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17036 | (exit $ac_status); } && { |
| 17037 | test -z "$ac_c_werror_flag" || |
| 17038 | test ! -s conftest.err |
| 17039 | } && test -s conftest$ac_exeext && |
| 17040 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17041 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17042 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17043 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17045 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17046 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17047 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17048 | |
| 17049 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17050 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17051 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17052 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17053 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17054 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17055 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17056 | cat >>confdefs.h <<_ACEOF |
| 17057 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17058 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17059 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17060 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17061 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17062 | *" $ac_func.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17063 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 17064 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17065 | esac |
| 17066 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17067 | fi |
| 17068 | done |
| 17069 | |
| 17070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17071 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17072 | for ac_func in getpgrp |
| 17073 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17074 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17075 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17076 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17077 | 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] | 17078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17080 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17081 | /* confdefs.h. */ |
| 17082 | _ACEOF |
| 17083 | cat confdefs.h >>conftest.$ac_ext |
| 17084 | cat >>conftest.$ac_ext <<_ACEOF |
| 17085 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17086 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17087 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17088 | #define $ac_func innocuous_$ac_func |
| 17089 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17090 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17091 | which can conflict with char $ac_func (); below. |
| 17092 | 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] | 17093 | <limits.h> exists even on freestanding compilers. */ |
| 17094 | |
| 17095 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17096 | # include <limits.h> |
| 17097 | #else |
| 17098 | # include <assert.h> |
| 17099 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17100 | |
| 17101 | #undef $ac_func |
| 17102 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17103 | /* Override any GCC internal prototype to avoid an error. |
| 17104 | Use char because int might match the return type of a GCC |
| 17105 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17106 | #ifdef __cplusplus |
| 17107 | extern "C" |
| 17108 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17109 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17110 | /* The GNU C library defines this for functions which it implements |
| 17111 | to always fail with ENOSYS. Some functions are actually named |
| 17112 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17113 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17114 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17115 | #endif |
| 17116 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17117 | int |
| 17118 | main () |
| 17119 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17120 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17121 | ; |
| 17122 | return 0; |
| 17123 | } |
| 17124 | _ACEOF |
| 17125 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17126 | if { (ac_try="$ac_link" |
| 17127 | case "(($ac_try" in |
| 17128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17129 | *) ac_try_echo=$ac_try;; |
| 17130 | esac |
| 17131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17132 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17133 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17135 | rm -f conftest.er1 |
| 17136 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17138 | (exit $ac_status); } && { |
| 17139 | test -z "$ac_c_werror_flag" || |
| 17140 | test ! -s conftest.err |
| 17141 | } && test -s conftest$ac_exeext && |
| 17142 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17143 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17144 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17145 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17147 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17148 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17149 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17150 | |
| 17151 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17152 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17153 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17154 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17155 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17156 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17157 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17158 | cat >>confdefs.h <<_ACEOF |
| 17159 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17160 | _ACEOF |
| 17161 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17162 | /* confdefs.h. */ |
| 17163 | _ACEOF |
| 17164 | cat confdefs.h >>conftest.$ac_ext |
| 17165 | cat >>conftest.$ac_ext <<_ACEOF |
| 17166 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17167 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17168 | int |
| 17169 | main () |
| 17170 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17171 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17172 | ; |
| 17173 | return 0; |
| 17174 | } |
| 17175 | _ACEOF |
| 17176 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17177 | if { (ac_try="$ac_compile" |
| 17178 | case "(($ac_try" in |
| 17179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17180 | *) ac_try_echo=$ac_try;; |
| 17181 | esac |
| 17182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17183 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17184 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17186 | rm -f conftest.er1 |
| 17187 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17189 | (exit $ac_status); } && { |
| 17190 | test -z "$ac_c_werror_flag" || |
| 17191 | test ! -s conftest.err |
| 17192 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17193 | |
| 17194 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17195 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17196 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17198 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17199 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17200 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17202 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17203 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17204 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17205 | |
| 17206 | 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] | 17207 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17208 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17209 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17210 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17211 | |
| 17212 | for ac_func in setpgrp |
| 17213 | do |
| 17214 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17215 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17216 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17217 | 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] | 17218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17219 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17220 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17221 | /* confdefs.h. */ |
| 17222 | _ACEOF |
| 17223 | cat confdefs.h >>conftest.$ac_ext |
| 17224 | cat >>conftest.$ac_ext <<_ACEOF |
| 17225 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17226 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17227 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17228 | #define $ac_func innocuous_$ac_func |
| 17229 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17230 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17231 | which can conflict with char $ac_func (); below. |
| 17232 | 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] | 17233 | <limits.h> exists even on freestanding compilers. */ |
| 17234 | |
| 17235 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17236 | # include <limits.h> |
| 17237 | #else |
| 17238 | # include <assert.h> |
| 17239 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17240 | |
| 17241 | #undef $ac_func |
| 17242 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17243 | /* Override any GCC internal prototype to avoid an error. |
| 17244 | Use char because int might match the return type of a GCC |
| 17245 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17246 | #ifdef __cplusplus |
| 17247 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17248 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17249 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17250 | /* The GNU C library defines this for functions which it implements |
| 17251 | to always fail with ENOSYS. Some functions are actually named |
| 17252 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17253 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17254 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17255 | #endif |
| 17256 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17257 | int |
| 17258 | main () |
| 17259 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17260 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17261 | ; |
| 17262 | return 0; |
| 17263 | } |
| 17264 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17265 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17266 | if { (ac_try="$ac_link" |
| 17267 | case "(($ac_try" in |
| 17268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17269 | *) ac_try_echo=$ac_try;; |
| 17270 | esac |
| 17271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17272 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17273 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17275 | rm -f conftest.er1 |
| 17276 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17278 | (exit $ac_status); } && { |
| 17279 | test -z "$ac_c_werror_flag" || |
| 17280 | test ! -s conftest.err |
| 17281 | } && test -s conftest$ac_exeext && |
| 17282 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17283 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17284 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17285 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17287 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17288 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17289 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17290 | |
| 17291 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17292 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17293 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17294 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17295 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17296 | echo "${ECHO_T}$ac_res" >&6; } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17297 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17298 | cat >>confdefs.h <<_ACEOF |
| 17299 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17300 | _ACEOF |
| 17301 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17302 | /* confdefs.h. */ |
| 17303 | _ACEOF |
| 17304 | cat confdefs.h >>conftest.$ac_ext |
| 17305 | cat >>conftest.$ac_ext <<_ACEOF |
| 17306 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17307 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17308 | int |
| 17309 | main () |
| 17310 | { |
| 17311 | setpgrp(0,0); |
| 17312 | ; |
| 17313 | return 0; |
| 17314 | } |
| 17315 | _ACEOF |
| 17316 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17317 | if { (ac_try="$ac_compile" |
| 17318 | case "(($ac_try" in |
| 17319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17320 | *) ac_try_echo=$ac_try;; |
| 17321 | esac |
| 17322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17323 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17324 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17326 | rm -f conftest.er1 |
| 17327 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17329 | (exit $ac_status); } && { |
| 17330 | test -z "$ac_c_werror_flag" || |
| 17331 | test ! -s conftest.err |
| 17332 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17333 | |
| 17334 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17335 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17336 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 17337 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17338 | |
| 17339 | else |
| 17340 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17342 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17343 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 17344 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17345 | |
| 17346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17347 | |
| 17348 | fi |
| 17349 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 17350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17351 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17352 | for ac_func in gettimeofday |
| 17353 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17354 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17355 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17356 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17357 | 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] | 17358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17359 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17360 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17361 | /* confdefs.h. */ |
| 17362 | _ACEOF |
| 17363 | cat confdefs.h >>conftest.$ac_ext |
| 17364 | cat >>conftest.$ac_ext <<_ACEOF |
| 17365 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17366 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17367 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17368 | #define $ac_func innocuous_$ac_func |
| 17369 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17370 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17371 | which can conflict with char $ac_func (); below. |
| 17372 | 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] | 17373 | <limits.h> exists even on freestanding compilers. */ |
| 17374 | |
| 17375 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17376 | # include <limits.h> |
| 17377 | #else |
| 17378 | # include <assert.h> |
| 17379 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17380 | |
| 17381 | #undef $ac_func |
| 17382 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17383 | /* Override any GCC internal prototype to avoid an error. |
| 17384 | Use char because int might match the return type of a GCC |
| 17385 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17386 | #ifdef __cplusplus |
| 17387 | extern "C" |
| 17388 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17389 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17390 | /* The GNU C library defines this for functions which it implements |
| 17391 | to always fail with ENOSYS. Some functions are actually named |
| 17392 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17393 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17394 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17395 | #endif |
| 17396 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17397 | int |
| 17398 | main () |
| 17399 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17400 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17401 | ; |
| 17402 | return 0; |
| 17403 | } |
| 17404 | _ACEOF |
| 17405 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17406 | if { (ac_try="$ac_link" |
| 17407 | case "(($ac_try" in |
| 17408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17409 | *) ac_try_echo=$ac_try;; |
| 17410 | esac |
| 17411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17412 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17413 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17415 | rm -f conftest.er1 |
| 17416 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17418 | (exit $ac_status); } && { |
| 17419 | test -z "$ac_c_werror_flag" || |
| 17420 | test ! -s conftest.err |
| 17421 | } && test -s conftest$ac_exeext && |
| 17422 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17423 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17425 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17427 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17428 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17429 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17430 | |
| 17431 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17432 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17433 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17434 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17435 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17436 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17437 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17438 | cat >>confdefs.h <<_ACEOF |
| 17439 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17440 | _ACEOF |
| 17441 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17442 | /* confdefs.h. */ |
| 17443 | _ACEOF |
| 17444 | cat confdefs.h >>conftest.$ac_ext |
| 17445 | cat >>conftest.$ac_ext <<_ACEOF |
| 17446 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17447 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17448 | int |
| 17449 | main () |
| 17450 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17451 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17452 | ; |
| 17453 | return 0; |
| 17454 | } |
| 17455 | _ACEOF |
| 17456 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17457 | if { (ac_try="$ac_compile" |
| 17458 | case "(($ac_try" in |
| 17459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17460 | *) ac_try_echo=$ac_try;; |
| 17461 | esac |
| 17462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17463 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17464 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17466 | rm -f conftest.er1 |
| 17467 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17469 | (exit $ac_status); } && { |
| 17470 | test -z "$ac_c_werror_flag" || |
| 17471 | test ! -s conftest.err |
| 17472 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17473 | : |
| 17474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17475 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17477 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17478 | |
| 17479 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17480 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17481 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17483 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17484 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17485 | |
| 17486 | 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] | 17487 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17488 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17489 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17490 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17491 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17492 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 17493 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17494 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17495 | /* confdefs.h. */ |
| 17496 | _ACEOF |
| 17497 | cat confdefs.h >>conftest.$ac_ext |
| 17498 | cat >>conftest.$ac_ext <<_ACEOF |
| 17499 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17500 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 17501 | #if defined(MAJOR_IN_MKDEV) |
| 17502 | #include <sys/mkdev.h> |
| 17503 | #elif defined(MAJOR_IN_SYSMACROS) |
| 17504 | #include <sys/sysmacros.h> |
| 17505 | #else |
| 17506 | #include <sys/types.h> |
| 17507 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17508 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17509 | int |
| 17510 | main () |
| 17511 | { |
| 17512 | |
| 17513 | makedev(major(0),minor(0)); |
| 17514 | |
| 17515 | ; |
| 17516 | return 0; |
| 17517 | } |
| 17518 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 17519 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17520 | if { (ac_try="$ac_link" |
| 17521 | case "(($ac_try" in |
| 17522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17523 | *) ac_try_echo=$ac_try;; |
| 17524 | esac |
| 17525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17526 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17527 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17529 | rm -f conftest.er1 |
| 17530 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17532 | (exit $ac_status); } && { |
| 17533 | test -z "$ac_c_werror_flag" || |
| 17534 | test ! -s conftest.err |
| 17535 | } && test -s conftest$ac_exeext && |
| 17536 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17537 | |
| 17538 | |
| 17539 | cat >>confdefs.h <<\_ACEOF |
| 17540 | #define HAVE_DEVICE_MACROS 1 |
| 17541 | _ACEOF |
| 17542 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17543 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17544 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17545 | |
| 17546 | else |
| 17547 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17549 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17550 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17551 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17552 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17553 | |
| 17554 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17555 | |
| 17556 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17557 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17558 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17559 | # 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] | 17560 | # for [no]getaddrinfo in netdb.h. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17561 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 17562 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17563 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17564 | /* confdefs.h. */ |
| 17565 | _ACEOF |
| 17566 | cat confdefs.h >>conftest.$ac_ext |
| 17567 | cat >>conftest.$ac_ext <<_ACEOF |
| 17568 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17569 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 17570 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17571 | #include <sys/socket.h> |
| 17572 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 17573 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17575 | int |
| 17576 | main () |
| 17577 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17578 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17579 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17581 | ; |
| 17582 | return 0; |
| 17583 | } |
| 17584 | _ACEOF |
| 17585 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17586 | if { (ac_try="$ac_link" |
| 17587 | case "(($ac_try" in |
| 17588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17589 | *) ac_try_echo=$ac_try;; |
| 17590 | esac |
| 17591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17592 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17593 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17595 | rm -f conftest.er1 |
| 17596 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17598 | (exit $ac_status); } && { |
| 17599 | test -z "$ac_c_werror_flag" || |
| 17600 | test ! -s conftest.err |
| 17601 | } && test -s conftest$ac_exeext && |
| 17602 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17603 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17604 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17605 | echo "${ECHO_T}yes" >&6; } |
| 17606 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 17607 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17608 | if test "$cross_compiling" = yes; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17609 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 17610 | echo "${ECHO_T}buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17611 | buggygetaddrinfo=yes |
| 17612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17613 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17614 | /* confdefs.h. */ |
| 17615 | _ACEOF |
| 17616 | cat confdefs.h >>conftest.$ac_ext |
| 17617 | cat >>conftest.$ac_ext <<_ACEOF |
| 17618 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17619 | |
| 17620 | #include <sys/types.h> |
| 17621 | #include <netdb.h> |
| 17622 | #include <string.h> |
| 17623 | #include <sys/socket.h> |
| 17624 | #include <netinet/in.h> |
| 17625 | |
| 17626 | main() |
| 17627 | { |
| 17628 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 17629 | struct addrinfo hints, *ai, *aitop; |
| 17630 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 17631 | |
| 17632 | for (passive = 0; passive <= 1; passive++) { |
| 17633 | memset(&hints, 0, sizeof(hints)); |
| 17634 | hints.ai_family = AF_UNSPEC; |
| 17635 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 17636 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 17637 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17638 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 17639 | (void)gai_strerror(gaierr); |
| 17640 | goto bad; |
| 17641 | } |
| 17642 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 17643 | if (ai->ai_addr == NULL || |
| 17644 | ai->ai_addrlen == 0 || |
| 17645 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 17646 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 17647 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 17648 | goto bad; |
| 17649 | } |
| 17650 | switch (ai->ai_family) { |
| 17651 | case AF_INET: |
| 17652 | if (strcmp(strport, "54321") != 0) { |
| 17653 | goto bad; |
| 17654 | } |
| 17655 | if (passive) { |
| 17656 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 17657 | goto bad; |
| 17658 | } |
| 17659 | } else { |
| 17660 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 17661 | goto bad; |
| 17662 | } |
| 17663 | } |
| 17664 | inet4++; |
| 17665 | break; |
| 17666 | case AF_INET6: |
| 17667 | if (strcmp(strport, "54321") != 0) { |
| 17668 | goto bad; |
| 17669 | } |
| 17670 | if (passive) { |
| 17671 | if (strcmp(straddr, "::") != 0) { |
| 17672 | goto bad; |
| 17673 | } |
| 17674 | } else { |
| 17675 | if (strcmp(straddr, "::1") != 0) { |
| 17676 | goto bad; |
| 17677 | } |
| 17678 | } |
| 17679 | inet6++; |
| 17680 | break; |
| 17681 | case AF_UNSPEC: |
| 17682 | goto bad; |
| 17683 | break; |
| 17684 | default: |
| 17685 | /* another family support? */ |
| 17686 | break; |
| 17687 | } |
| 17688 | } |
| 17689 | } |
| 17690 | |
| 17691 | if (!(inet4 == 0 || inet4 == 2)) |
| 17692 | goto bad; |
| 17693 | if (!(inet6 == 0 || inet6 == 2)) |
| 17694 | goto bad; |
| 17695 | |
| 17696 | if (aitop) |
| 17697 | freeaddrinfo(aitop); |
| 17698 | exit(0); |
| 17699 | |
| 17700 | bad: |
| 17701 | if (aitop) |
| 17702 | freeaddrinfo(aitop); |
| 17703 | exit(1); |
| 17704 | } |
| 17705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17706 | _ACEOF |
| 17707 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17708 | if { (ac_try="$ac_link" |
| 17709 | case "(($ac_try" in |
| 17710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17711 | *) ac_try_echo=$ac_try;; |
| 17712 | esac |
| 17713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17714 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17715 | ac_status=$? |
| 17716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17717 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17718 | { (case "(($ac_try" in |
| 17719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17720 | *) ac_try_echo=$ac_try;; |
| 17721 | esac |
| 17722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17723 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17724 | ac_status=$? |
| 17725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17726 | (exit $ac_status); }; }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17727 | { echo "$as_me:$LINENO: result: good" >&5 |
| 17728 | echo "${ECHO_T}good" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17729 | buggygetaddrinfo=no |
| 17730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17731 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17732 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17735 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17736 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 17737 | echo "${ECHO_T}buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17738 | buggygetaddrinfo=yes |
| 17739 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17740 | 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] | 17741 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17742 | |
| 17743 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17745 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17748 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17749 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17750 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17751 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17752 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17753 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17754 | |
| 17755 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17756 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17757 | |
| 17758 | if test "$buggygetaddrinfo" = "yes"; then |
| 17759 | if test "$ipv6" = "yes"; then |
| 17760 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 17761 | echo ' or you can specify "--disable-ipv6"'. |
| 17762 | exit 1 |
| 17763 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17764 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17765 | |
| 17766 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17767 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17768 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17769 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17770 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17771 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 17772 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17773 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17774 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17775 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17776 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17777 | 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] | 17778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17779 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17780 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17781 | /* confdefs.h. */ |
| 17782 | _ACEOF |
| 17783 | cat confdefs.h >>conftest.$ac_ext |
| 17784 | cat >>conftest.$ac_ext <<_ACEOF |
| 17785 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17786 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17787 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17788 | #define $ac_func innocuous_$ac_func |
| 17789 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17790 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17791 | which can conflict with char $ac_func (); below. |
| 17792 | 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] | 17793 | <limits.h> exists even on freestanding compilers. */ |
| 17794 | |
| 17795 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17796 | # include <limits.h> |
| 17797 | #else |
| 17798 | # include <assert.h> |
| 17799 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17800 | |
| 17801 | #undef $ac_func |
| 17802 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17803 | /* Override any GCC internal prototype to avoid an error. |
| 17804 | Use char because int might match the return type of a GCC |
| 17805 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17806 | #ifdef __cplusplus |
| 17807 | extern "C" |
| 17808 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17809 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17810 | /* The GNU C library defines this for functions which it implements |
| 17811 | to always fail with ENOSYS. Some functions are actually named |
| 17812 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17813 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17814 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17815 | #endif |
| 17816 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17817 | int |
| 17818 | main () |
| 17819 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17820 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17821 | ; |
| 17822 | return 0; |
| 17823 | } |
| 17824 | _ACEOF |
| 17825 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17826 | if { (ac_try="$ac_link" |
| 17827 | case "(($ac_try" in |
| 17828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17829 | *) ac_try_echo=$ac_try;; |
| 17830 | esac |
| 17831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17832 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17833 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17835 | rm -f conftest.er1 |
| 17836 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17838 | (exit $ac_status); } && { |
| 17839 | test -z "$ac_c_werror_flag" || |
| 17840 | test ! -s conftest.err |
| 17841 | } && test -s conftest$ac_exeext && |
| 17842 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17843 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17845 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17847 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17848 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17849 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17850 | |
| 17851 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17852 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17853 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17854 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17855 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17856 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17857 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17858 | cat >>confdefs.h <<_ACEOF |
| 17859 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17860 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17861 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17862 | fi |
| 17863 | done |
| 17864 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17865 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17866 | # checks for structures |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17867 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 17868 | 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] | 17869 | if test "${ac_cv_header_time+set}" = set; then |
| 17870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17871 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17872 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17873 | /* confdefs.h. */ |
| 17874 | _ACEOF |
| 17875 | cat confdefs.h >>conftest.$ac_ext |
| 17876 | cat >>conftest.$ac_ext <<_ACEOF |
| 17877 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17878 | #include <sys/types.h> |
| 17879 | #include <sys/time.h> |
| 17880 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17882 | int |
| 17883 | main () |
| 17884 | { |
| 17885 | if ((struct tm *) 0) |
| 17886 | return 0; |
| 17887 | ; |
| 17888 | return 0; |
| 17889 | } |
| 17890 | _ACEOF |
| 17891 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17892 | if { (ac_try="$ac_compile" |
| 17893 | case "(($ac_try" in |
| 17894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17895 | *) ac_try_echo=$ac_try;; |
| 17896 | esac |
| 17897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17898 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17899 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17901 | rm -f conftest.er1 |
| 17902 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17904 | (exit $ac_status); } && { |
| 17905 | test -z "$ac_c_werror_flag" || |
| 17906 | test ! -s conftest.err |
| 17907 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17908 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17910 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17912 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17913 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17914 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17915 | |
| 17916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17917 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17918 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 17919 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17920 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17921 | |
| 17922 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17923 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17924 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17925 | |
| 17926 | fi |
| 17927 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17928 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17929 | 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] | 17930 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17933 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17934 | /* confdefs.h. */ |
| 17935 | _ACEOF |
| 17936 | cat confdefs.h >>conftest.$ac_ext |
| 17937 | cat >>conftest.$ac_ext <<_ACEOF |
| 17938 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17939 | #include <sys/types.h> |
| 17940 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17942 | int |
| 17943 | main () |
| 17944 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17945 | struct tm tm; |
| 17946 | int *p = &tm.tm_sec; |
| 17947 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17948 | ; |
| 17949 | return 0; |
| 17950 | } |
| 17951 | _ACEOF |
| 17952 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17953 | if { (ac_try="$ac_compile" |
| 17954 | case "(($ac_try" in |
| 17955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17956 | *) ac_try_echo=$ac_try;; |
| 17957 | esac |
| 17958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17959 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17960 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17962 | rm -f conftest.er1 |
| 17963 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17965 | (exit $ac_status); } && { |
| 17966 | test -z "$ac_c_werror_flag" || |
| 17967 | test ! -s conftest.err |
| 17968 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17969 | ac_cv_struct_tm=time.h |
| 17970 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17971 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17973 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17974 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17975 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17976 | |
| 17977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17978 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17979 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17980 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17981 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17982 | |
| 17983 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17984 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17985 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17986 | |
| 17987 | fi |
| 17988 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17989 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 17990 | 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] | 17991 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 17992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17993 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17994 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17995 | /* confdefs.h. */ |
| 17996 | _ACEOF |
| 17997 | cat confdefs.h >>conftest.$ac_ext |
| 17998 | cat >>conftest.$ac_ext <<_ACEOF |
| 17999 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18000 | #include <sys/types.h> |
| 18001 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18002 | |
| 18003 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18004 | int |
| 18005 | main () |
| 18006 | { |
| 18007 | static struct tm ac_aggr; |
| 18008 | if (ac_aggr.tm_zone) |
| 18009 | return 0; |
| 18010 | ; |
| 18011 | return 0; |
| 18012 | } |
| 18013 | _ACEOF |
| 18014 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18015 | if { (ac_try="$ac_compile" |
| 18016 | case "(($ac_try" in |
| 18017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18018 | *) ac_try_echo=$ac_try;; |
| 18019 | esac |
| 18020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18021 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18022 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18024 | rm -f conftest.er1 |
| 18025 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18027 | (exit $ac_status); } && { |
| 18028 | test -z "$ac_c_werror_flag" || |
| 18029 | test ! -s conftest.err |
| 18030 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18031 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18032 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18033 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18035 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18037 | /* confdefs.h. */ |
| 18038 | _ACEOF |
| 18039 | cat confdefs.h >>conftest.$ac_ext |
| 18040 | cat >>conftest.$ac_ext <<_ACEOF |
| 18041 | /* end confdefs.h. */ |
| 18042 | #include <sys/types.h> |
| 18043 | #include <$ac_cv_struct_tm> |
| 18044 | |
| 18045 | |
| 18046 | int |
| 18047 | main () |
| 18048 | { |
| 18049 | static struct tm ac_aggr; |
| 18050 | if (sizeof ac_aggr.tm_zone) |
| 18051 | return 0; |
| 18052 | ; |
| 18053 | return 0; |
| 18054 | } |
| 18055 | _ACEOF |
| 18056 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18057 | if { (ac_try="$ac_compile" |
| 18058 | case "(($ac_try" in |
| 18059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18060 | *) ac_try_echo=$ac_try;; |
| 18061 | esac |
| 18062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18063 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18064 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18066 | rm -f conftest.er1 |
| 18067 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18069 | (exit $ac_status); } && { |
| 18070 | test -z "$ac_c_werror_flag" || |
| 18071 | test ! -s conftest.err |
| 18072 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18073 | ac_cv_member_struct_tm_tm_zone=yes |
| 18074 | else |
| 18075 | echo "$as_me: failed program was:" >&5 |
| 18076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18077 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18078 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18079 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18080 | |
| 18081 | 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] | 18082 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18083 | |
| 18084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18085 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18086 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 18087 | 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] | 18088 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 18089 | |
| 18090 | cat >>confdefs.h <<_ACEOF |
| 18091 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 18092 | _ACEOF |
| 18093 | |
| 18094 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18095 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18097 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 18098 | |
| 18099 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18100 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18101 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18102 | |
| 18103 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18104 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 18105 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
| 18106 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
| 18107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18108 | else |
| 18109 | cat >conftest.$ac_ext <<_ACEOF |
| 18110 | /* confdefs.h. */ |
| 18111 | _ACEOF |
| 18112 | cat confdefs.h >>conftest.$ac_ext |
| 18113 | cat >>conftest.$ac_ext <<_ACEOF |
| 18114 | /* end confdefs.h. */ |
| 18115 | #include <time.h> |
| 18116 | |
| 18117 | int |
| 18118 | main () |
| 18119 | { |
| 18120 | #ifndef tzname |
| 18121 | (void) tzname; |
| 18122 | #endif |
| 18123 | |
| 18124 | ; |
| 18125 | return 0; |
| 18126 | } |
| 18127 | _ACEOF |
| 18128 | rm -f conftest.$ac_objext |
| 18129 | if { (ac_try="$ac_compile" |
| 18130 | case "(($ac_try" in |
| 18131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18132 | *) ac_try_echo=$ac_try;; |
| 18133 | esac |
| 18134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18135 | (eval "$ac_compile") 2>conftest.er1 |
| 18136 | ac_status=$? |
| 18137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18138 | rm -f conftest.er1 |
| 18139 | cat conftest.err >&5 |
| 18140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18141 | (exit $ac_status); } && { |
| 18142 | test -z "$ac_c_werror_flag" || |
| 18143 | test ! -s conftest.err |
| 18144 | } && test -s conftest.$ac_objext; then |
| 18145 | ac_cv_have_decl_tzname=yes |
| 18146 | else |
| 18147 | echo "$as_me: failed program was:" >&5 |
| 18148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18149 | |
| 18150 | ac_cv_have_decl_tzname=no |
| 18151 | fi |
| 18152 | |
| 18153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18154 | fi |
| 18155 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 18156 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 18157 | if test $ac_cv_have_decl_tzname = yes; then |
| 18158 | |
| 18159 | cat >>confdefs.h <<_ACEOF |
| 18160 | #define HAVE_DECL_TZNAME 1 |
| 18161 | _ACEOF |
| 18162 | |
| 18163 | |
| 18164 | else |
| 18165 | cat >>confdefs.h <<_ACEOF |
| 18166 | #define HAVE_DECL_TZNAME 0 |
| 18167 | _ACEOF |
| 18168 | |
| 18169 | |
| 18170 | fi |
| 18171 | |
| 18172 | |
| 18173 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 18174 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18175 | if test "${ac_cv_var_tzname+set}" = set; then |
| 18176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18177 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18178 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18179 | /* confdefs.h. */ |
| 18180 | _ACEOF |
| 18181 | cat confdefs.h >>conftest.$ac_ext |
| 18182 | cat >>conftest.$ac_ext <<_ACEOF |
| 18183 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18184 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18185 | #if !HAVE_DECL_TZNAME |
| 18186 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18187 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18189 | int |
| 18190 | main () |
| 18191 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18192 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18193 | ; |
| 18194 | return 0; |
| 18195 | } |
| 18196 | _ACEOF |
| 18197 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18198 | if { (ac_try="$ac_link" |
| 18199 | case "(($ac_try" in |
| 18200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18201 | *) ac_try_echo=$ac_try;; |
| 18202 | esac |
| 18203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18204 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18205 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18207 | rm -f conftest.er1 |
| 18208 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18210 | (exit $ac_status); } && { |
| 18211 | test -z "$ac_c_werror_flag" || |
| 18212 | test ! -s conftest.err |
| 18213 | } && test -s conftest$ac_exeext && |
| 18214 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18215 | ac_cv_var_tzname=yes |
| 18216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18217 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18219 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18220 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18221 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18222 | |
| 18223 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18224 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18225 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18226 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 18227 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18228 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18229 | |
| 18230 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18231 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18232 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18233 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18234 | fi |
| 18235 | fi |
| 18236 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18237 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 18238 | 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] | 18239 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 18240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18241 | else |
| 18242 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18243 | /* confdefs.h. */ |
| 18244 | _ACEOF |
| 18245 | cat confdefs.h >>conftest.$ac_ext |
| 18246 | cat >>conftest.$ac_ext <<_ACEOF |
| 18247 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18248 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18249 | int |
| 18250 | main () |
| 18251 | { |
| 18252 | static struct stat ac_aggr; |
| 18253 | if (ac_aggr.st_rdev) |
| 18254 | return 0; |
| 18255 | ; |
| 18256 | return 0; |
| 18257 | } |
| 18258 | _ACEOF |
| 18259 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18260 | if { (ac_try="$ac_compile" |
| 18261 | case "(($ac_try" in |
| 18262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18263 | *) ac_try_echo=$ac_try;; |
| 18264 | esac |
| 18265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18266 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18267 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18269 | rm -f conftest.er1 |
| 18270 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18272 | (exit $ac_status); } && { |
| 18273 | test -z "$ac_c_werror_flag" || |
| 18274 | test ! -s conftest.err |
| 18275 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18276 | ac_cv_member_struct_stat_st_rdev=yes |
| 18277 | else |
| 18278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18280 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18281 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18282 | /* confdefs.h. */ |
| 18283 | _ACEOF |
| 18284 | cat confdefs.h >>conftest.$ac_ext |
| 18285 | cat >>conftest.$ac_ext <<_ACEOF |
| 18286 | /* end confdefs.h. */ |
| 18287 | $ac_includes_default |
| 18288 | int |
| 18289 | main () |
| 18290 | { |
| 18291 | static struct stat ac_aggr; |
| 18292 | if (sizeof ac_aggr.st_rdev) |
| 18293 | return 0; |
| 18294 | ; |
| 18295 | return 0; |
| 18296 | } |
| 18297 | _ACEOF |
| 18298 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18299 | if { (ac_try="$ac_compile" |
| 18300 | case "(($ac_try" in |
| 18301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18302 | *) ac_try_echo=$ac_try;; |
| 18303 | esac |
| 18304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18305 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18306 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18308 | rm -f conftest.er1 |
| 18309 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18311 | (exit $ac_status); } && { |
| 18312 | test -z "$ac_c_werror_flag" || |
| 18313 | test ! -s conftest.err |
| 18314 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18315 | ac_cv_member_struct_stat_st_rdev=yes |
| 18316 | else |
| 18317 | echo "$as_me: failed program was:" >&5 |
| 18318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18319 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18320 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18321 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18322 | |
| 18323 | 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] | 18324 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18325 | |
| 18326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18327 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18328 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 18329 | 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] | 18330 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 18331 | |
| 18332 | cat >>confdefs.h <<_ACEOF |
| 18333 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 18334 | _ACEOF |
| 18335 | |
| 18336 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18337 | fi |
| 18338 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18339 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 18340 | 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] | 18341 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 18342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18344 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18345 | /* confdefs.h. */ |
| 18346 | _ACEOF |
| 18347 | cat confdefs.h >>conftest.$ac_ext |
| 18348 | cat >>conftest.$ac_ext <<_ACEOF |
| 18349 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18350 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18351 | int |
| 18352 | main () |
| 18353 | { |
| 18354 | static struct stat ac_aggr; |
| 18355 | if (ac_aggr.st_blksize) |
| 18356 | return 0; |
| 18357 | ; |
| 18358 | return 0; |
| 18359 | } |
| 18360 | _ACEOF |
| 18361 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18362 | if { (ac_try="$ac_compile" |
| 18363 | case "(($ac_try" in |
| 18364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18365 | *) ac_try_echo=$ac_try;; |
| 18366 | esac |
| 18367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18368 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18369 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18371 | rm -f conftest.er1 |
| 18372 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18374 | (exit $ac_status); } && { |
| 18375 | test -z "$ac_c_werror_flag" || |
| 18376 | test ! -s conftest.err |
| 18377 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18378 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18380 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18382 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18383 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18384 | /* confdefs.h. */ |
| 18385 | _ACEOF |
| 18386 | cat confdefs.h >>conftest.$ac_ext |
| 18387 | cat >>conftest.$ac_ext <<_ACEOF |
| 18388 | /* end confdefs.h. */ |
| 18389 | $ac_includes_default |
| 18390 | int |
| 18391 | main () |
| 18392 | { |
| 18393 | static struct stat ac_aggr; |
| 18394 | if (sizeof ac_aggr.st_blksize) |
| 18395 | return 0; |
| 18396 | ; |
| 18397 | return 0; |
| 18398 | } |
| 18399 | _ACEOF |
| 18400 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18401 | if { (ac_try="$ac_compile" |
| 18402 | case "(($ac_try" in |
| 18403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18404 | *) ac_try_echo=$ac_try;; |
| 18405 | esac |
| 18406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18407 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18408 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18410 | rm -f conftest.er1 |
| 18411 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18413 | (exit $ac_status); } && { |
| 18414 | test -z "$ac_c_werror_flag" || |
| 18415 | test ! -s conftest.err |
| 18416 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18417 | ac_cv_member_struct_stat_st_blksize=yes |
| 18418 | else |
| 18419 | echo "$as_me: failed program was:" >&5 |
| 18420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18421 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18422 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18423 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18424 | |
| 18425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18426 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18427 | |
| 18428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18429 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18430 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 18431 | 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] | 18432 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18434 | cat >>confdefs.h <<_ACEOF |
| 18435 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 18436 | _ACEOF |
| 18437 | |
| 18438 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18439 | fi |
| 18440 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18441 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 18442 | 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] | 18443 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| 18444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18445 | else |
| 18446 | cat >conftest.$ac_ext <<_ACEOF |
| 18447 | /* confdefs.h. */ |
| 18448 | _ACEOF |
| 18449 | cat confdefs.h >>conftest.$ac_ext |
| 18450 | cat >>conftest.$ac_ext <<_ACEOF |
| 18451 | /* end confdefs.h. */ |
| 18452 | $ac_includes_default |
| 18453 | int |
| 18454 | main () |
| 18455 | { |
| 18456 | static struct stat ac_aggr; |
| 18457 | if (ac_aggr.st_flags) |
| 18458 | return 0; |
| 18459 | ; |
| 18460 | return 0; |
| 18461 | } |
| 18462 | _ACEOF |
| 18463 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18464 | if { (ac_try="$ac_compile" |
| 18465 | case "(($ac_try" in |
| 18466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18467 | *) ac_try_echo=$ac_try;; |
| 18468 | esac |
| 18469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18470 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18471 | ac_status=$? |
| 18472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18473 | rm -f conftest.er1 |
| 18474 | cat conftest.err >&5 |
| 18475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18476 | (exit $ac_status); } && { |
| 18477 | test -z "$ac_c_werror_flag" || |
| 18478 | test ! -s conftest.err |
| 18479 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18480 | ac_cv_member_struct_stat_st_flags=yes |
| 18481 | else |
| 18482 | echo "$as_me: failed program was:" >&5 |
| 18483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18484 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18485 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18486 | /* confdefs.h. */ |
| 18487 | _ACEOF |
| 18488 | cat confdefs.h >>conftest.$ac_ext |
| 18489 | cat >>conftest.$ac_ext <<_ACEOF |
| 18490 | /* end confdefs.h. */ |
| 18491 | $ac_includes_default |
| 18492 | int |
| 18493 | main () |
| 18494 | { |
| 18495 | static struct stat ac_aggr; |
| 18496 | if (sizeof ac_aggr.st_flags) |
| 18497 | return 0; |
| 18498 | ; |
| 18499 | return 0; |
| 18500 | } |
| 18501 | _ACEOF |
| 18502 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18503 | if { (ac_try="$ac_compile" |
| 18504 | case "(($ac_try" in |
| 18505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18506 | *) ac_try_echo=$ac_try;; |
| 18507 | esac |
| 18508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18509 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18510 | ac_status=$? |
| 18511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18512 | rm -f conftest.er1 |
| 18513 | cat conftest.err >&5 |
| 18514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18515 | (exit $ac_status); } && { |
| 18516 | test -z "$ac_c_werror_flag" || |
| 18517 | test ! -s conftest.err |
| 18518 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18519 | ac_cv_member_struct_stat_st_flags=yes |
| 18520 | else |
| 18521 | echo "$as_me: failed program was:" >&5 |
| 18522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18523 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18524 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18525 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18526 | |
| 18527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18528 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18529 | |
| 18530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18531 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18532 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 18533 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18534 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
| 18535 | |
| 18536 | cat >>confdefs.h <<_ACEOF |
| 18537 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 18538 | _ACEOF |
| 18539 | |
| 18540 | |
| 18541 | fi |
| 18542 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18543 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 18544 | 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] | 18545 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
| 18546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18547 | else |
| 18548 | cat >conftest.$ac_ext <<_ACEOF |
| 18549 | /* confdefs.h. */ |
| 18550 | _ACEOF |
| 18551 | cat confdefs.h >>conftest.$ac_ext |
| 18552 | cat >>conftest.$ac_ext <<_ACEOF |
| 18553 | /* end confdefs.h. */ |
| 18554 | $ac_includes_default |
| 18555 | int |
| 18556 | main () |
| 18557 | { |
| 18558 | static struct stat ac_aggr; |
| 18559 | if (ac_aggr.st_gen) |
| 18560 | return 0; |
| 18561 | ; |
| 18562 | return 0; |
| 18563 | } |
| 18564 | _ACEOF |
| 18565 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18566 | if { (ac_try="$ac_compile" |
| 18567 | case "(($ac_try" in |
| 18568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18569 | *) ac_try_echo=$ac_try;; |
| 18570 | esac |
| 18571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18572 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18573 | ac_status=$? |
| 18574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18575 | rm -f conftest.er1 |
| 18576 | cat conftest.err >&5 |
| 18577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18578 | (exit $ac_status); } && { |
| 18579 | test -z "$ac_c_werror_flag" || |
| 18580 | test ! -s conftest.err |
| 18581 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18582 | ac_cv_member_struct_stat_st_gen=yes |
| 18583 | else |
| 18584 | echo "$as_me: failed program was:" >&5 |
| 18585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18586 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18587 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18588 | /* confdefs.h. */ |
| 18589 | _ACEOF |
| 18590 | cat confdefs.h >>conftest.$ac_ext |
| 18591 | cat >>conftest.$ac_ext <<_ACEOF |
| 18592 | /* end confdefs.h. */ |
| 18593 | $ac_includes_default |
| 18594 | int |
| 18595 | main () |
| 18596 | { |
| 18597 | static struct stat ac_aggr; |
| 18598 | if (sizeof ac_aggr.st_gen) |
| 18599 | return 0; |
| 18600 | ; |
| 18601 | return 0; |
| 18602 | } |
| 18603 | _ACEOF |
| 18604 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18605 | if { (ac_try="$ac_compile" |
| 18606 | case "(($ac_try" in |
| 18607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18608 | *) ac_try_echo=$ac_try;; |
| 18609 | esac |
| 18610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18611 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18612 | ac_status=$? |
| 18613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18614 | rm -f conftest.er1 |
| 18615 | cat conftest.err >&5 |
| 18616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18617 | (exit $ac_status); } && { |
| 18618 | test -z "$ac_c_werror_flag" || |
| 18619 | test ! -s conftest.err |
| 18620 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18621 | ac_cv_member_struct_stat_st_gen=yes |
| 18622 | else |
| 18623 | echo "$as_me: failed program was:" >&5 |
| 18624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18625 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18626 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18627 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18628 | |
| 18629 | 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] | 18630 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18631 | |
| 18632 | 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] | 18633 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18634 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 18635 | 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] | 18636 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
| 18637 | |
| 18638 | cat >>confdefs.h <<_ACEOF |
| 18639 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 18640 | _ACEOF |
| 18641 | |
| 18642 | |
| 18643 | fi |
| 18644 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18645 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 18646 | 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] | 18647 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
| 18648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18649 | else |
| 18650 | cat >conftest.$ac_ext <<_ACEOF |
| 18651 | /* confdefs.h. */ |
| 18652 | _ACEOF |
| 18653 | cat confdefs.h >>conftest.$ac_ext |
| 18654 | cat >>conftest.$ac_ext <<_ACEOF |
| 18655 | /* end confdefs.h. */ |
| 18656 | $ac_includes_default |
| 18657 | int |
| 18658 | main () |
| 18659 | { |
| 18660 | static struct stat ac_aggr; |
| 18661 | if (ac_aggr.st_birthtime) |
| 18662 | return 0; |
| 18663 | ; |
| 18664 | return 0; |
| 18665 | } |
| 18666 | _ACEOF |
| 18667 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18668 | if { (ac_try="$ac_compile" |
| 18669 | case "(($ac_try" in |
| 18670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18671 | *) ac_try_echo=$ac_try;; |
| 18672 | esac |
| 18673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18674 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18675 | ac_status=$? |
| 18676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18677 | rm -f conftest.er1 |
| 18678 | cat conftest.err >&5 |
| 18679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18680 | (exit $ac_status); } && { |
| 18681 | test -z "$ac_c_werror_flag" || |
| 18682 | test ! -s conftest.err |
| 18683 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18684 | ac_cv_member_struct_stat_st_birthtime=yes |
| 18685 | else |
| 18686 | echo "$as_me: failed program was:" >&5 |
| 18687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18688 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18689 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18690 | /* confdefs.h. */ |
| 18691 | _ACEOF |
| 18692 | cat confdefs.h >>conftest.$ac_ext |
| 18693 | cat >>conftest.$ac_ext <<_ACEOF |
| 18694 | /* end confdefs.h. */ |
| 18695 | $ac_includes_default |
| 18696 | int |
| 18697 | main () |
| 18698 | { |
| 18699 | static struct stat ac_aggr; |
| 18700 | if (sizeof ac_aggr.st_birthtime) |
| 18701 | return 0; |
| 18702 | ; |
| 18703 | return 0; |
| 18704 | } |
| 18705 | _ACEOF |
| 18706 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18707 | if { (ac_try="$ac_compile" |
| 18708 | case "(($ac_try" in |
| 18709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18710 | *) ac_try_echo=$ac_try;; |
| 18711 | esac |
| 18712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18713 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18714 | ac_status=$? |
| 18715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18716 | rm -f conftest.er1 |
| 18717 | cat conftest.err >&5 |
| 18718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18719 | (exit $ac_status); } && { |
| 18720 | test -z "$ac_c_werror_flag" || |
| 18721 | test ! -s conftest.err |
| 18722 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18723 | ac_cv_member_struct_stat_st_birthtime=yes |
| 18724 | else |
| 18725 | echo "$as_me: failed program was:" >&5 |
| 18726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18727 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18728 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18729 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18730 | |
| 18731 | 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] | 18732 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18733 | |
| 18734 | 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] | 18735 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18736 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 18737 | 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] | 18738 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
| 18739 | |
| 18740 | cat >>confdefs.h <<_ACEOF |
| 18741 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 18742 | _ACEOF |
| 18743 | |
| 18744 | |
| 18745 | fi |
| 18746 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18747 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 18748 | 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] | 18749 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 18750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18752 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18753 | /* confdefs.h. */ |
| 18754 | _ACEOF |
| 18755 | cat confdefs.h >>conftest.$ac_ext |
| 18756 | cat >>conftest.$ac_ext <<_ACEOF |
| 18757 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18758 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18759 | int |
| 18760 | main () |
| 18761 | { |
| 18762 | static struct stat ac_aggr; |
| 18763 | if (ac_aggr.st_blocks) |
| 18764 | return 0; |
| 18765 | ; |
| 18766 | return 0; |
| 18767 | } |
| 18768 | _ACEOF |
| 18769 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18770 | if { (ac_try="$ac_compile" |
| 18771 | case "(($ac_try" in |
| 18772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18773 | *) ac_try_echo=$ac_try;; |
| 18774 | esac |
| 18775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18776 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18777 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18779 | rm -f conftest.er1 |
| 18780 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18782 | (exit $ac_status); } && { |
| 18783 | test -z "$ac_c_werror_flag" || |
| 18784 | test ! -s conftest.err |
| 18785 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18786 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18788 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18790 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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. */ |
| 18797 | $ac_includes_default |
| 18798 | int |
| 18799 | main () |
| 18800 | { |
| 18801 | static struct stat ac_aggr; |
| 18802 | if (sizeof ac_aggr.st_blocks) |
| 18803 | return 0; |
| 18804 | ; |
| 18805 | return 0; |
| 18806 | } |
| 18807 | _ACEOF |
| 18808 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18809 | if { (ac_try="$ac_compile" |
| 18810 | case "(($ac_try" in |
| 18811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18812 | *) ac_try_echo=$ac_try;; |
| 18813 | esac |
| 18814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18815 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18816 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18818 | rm -f conftest.er1 |
| 18819 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18821 | (exit $ac_status); } && { |
| 18822 | test -z "$ac_c_werror_flag" || |
| 18823 | test ! -s conftest.err |
| 18824 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18825 | ac_cv_member_struct_stat_st_blocks=yes |
| 18826 | else |
| 18827 | echo "$as_me: failed program was:" >&5 |
| 18828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18829 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18830 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18831 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18832 | |
| 18833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18834 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18835 | |
| 18836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18837 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18838 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 18839 | 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] | 18840 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18842 | cat >>confdefs.h <<_ACEOF |
| 18843 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 18844 | _ACEOF |
| 18845 | |
| 18846 | |
| 18847 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18848 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18849 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18850 | |
| 18851 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18852 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18853 | *" fileblocks.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18854 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 18855 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18856 | esac |
| 18857 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18858 | fi |
| 18859 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18861 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18862 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 18863 | 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] | 18864 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 18865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18867 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18868 | /* confdefs.h. */ |
| 18869 | _ACEOF |
| 18870 | cat confdefs.h >>conftest.$ac_ext |
| 18871 | cat >>conftest.$ac_ext <<_ACEOF |
| 18872 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18873 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18874 | int |
| 18875 | main () |
| 18876 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18877 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18878 | ; |
| 18879 | return 0; |
| 18880 | } |
| 18881 | _ACEOF |
| 18882 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18883 | if { (ac_try="$ac_compile" |
| 18884 | case "(($ac_try" in |
| 18885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18886 | *) ac_try_echo=$ac_try;; |
| 18887 | esac |
| 18888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18889 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18890 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18892 | rm -f conftest.er1 |
| 18893 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18895 | (exit $ac_status); } && { |
| 18896 | test -z "$ac_c_werror_flag" || |
| 18897 | test ! -s conftest.err |
| 18898 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18899 | ac_cv_header_time_altzone=yes |
| 18900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18903 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18904 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18905 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18906 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18908 | fi |
| 18909 | |
| 18910 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 18911 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18912 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18913 | |
| 18914 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18915 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18916 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18917 | |
| 18918 | fi |
| 18919 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18920 | was_it_defined=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18921 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 18922 | 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] | 18923 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18924 | /* confdefs.h. */ |
| 18925 | _ACEOF |
| 18926 | cat confdefs.h >>conftest.$ac_ext |
| 18927 | cat >>conftest.$ac_ext <<_ACEOF |
| 18928 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18929 | |
| 18930 | #include <sys/types.h> |
| 18931 | #include <sys/select.h> |
| 18932 | #include <sys/time.h> |
| 18933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18934 | int |
| 18935 | main () |
| 18936 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18937 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18938 | ; |
| 18939 | return 0; |
| 18940 | } |
| 18941 | _ACEOF |
| 18942 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18943 | if { (ac_try="$ac_compile" |
| 18944 | case "(($ac_try" in |
| 18945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18946 | *) ac_try_echo=$ac_try;; |
| 18947 | esac |
| 18948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18949 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18950 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18952 | rm -f conftest.er1 |
| 18953 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18955 | (exit $ac_status); } && { |
| 18956 | test -z "$ac_c_werror_flag" || |
| 18957 | test ! -s conftest.err |
| 18958 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18959 | |
| 18960 | |
| 18961 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18962 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18963 | _ACEOF |
| 18964 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18965 | was_it_defined=yes |
| 18966 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18967 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18968 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18970 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18971 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18972 | fi |
| 18973 | |
| 18974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18975 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 18976 | echo "${ECHO_T}$was_it_defined" >&6; } |
| 18977 | |
| 18978 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 18979 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18980 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 18981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18982 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18983 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18984 | /* confdefs.h. */ |
| 18985 | _ACEOF |
| 18986 | cat confdefs.h >>conftest.$ac_ext |
| 18987 | cat >>conftest.$ac_ext <<_ACEOF |
| 18988 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18989 | |
| 18990 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18991 | int |
| 18992 | main () |
| 18993 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18994 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18995 | ; |
| 18996 | return 0; |
| 18997 | } |
| 18998 | _ACEOF |
| 18999 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19000 | if { (ac_try="$ac_compile" |
| 19001 | case "(($ac_try" in |
| 19002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19003 | *) ac_try_echo=$ac_try;; |
| 19004 | esac |
| 19005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19006 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19007 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19009 | rm -f conftest.er1 |
| 19010 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19012 | (exit $ac_status); } && { |
| 19013 | test -z "$ac_c_werror_flag" || |
| 19014 | test ! -s conftest.err |
| 19015 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19016 | ac_cv_struct_addrinfo=yes |
| 19017 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19018 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19020 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19021 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19022 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19023 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19025 | fi |
| 19026 | |
| 19027 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 19028 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19029 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19030 | |
| 19031 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19032 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19033 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19034 | |
| 19035 | fi |
| 19036 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19037 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 19038 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19039 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 19040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19041 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19043 | /* confdefs.h. */ |
| 19044 | _ACEOF |
| 19045 | cat confdefs.h >>conftest.$ac_ext |
| 19046 | cat >>conftest.$ac_ext <<_ACEOF |
| 19047 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19048 | |
| 19049 | # include <sys/types.h> |
| 19050 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19051 | int |
| 19052 | main () |
| 19053 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19054 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19055 | ; |
| 19056 | return 0; |
| 19057 | } |
| 19058 | _ACEOF |
| 19059 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19060 | if { (ac_try="$ac_compile" |
| 19061 | case "(($ac_try" in |
| 19062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19063 | *) ac_try_echo=$ac_try;; |
| 19064 | esac |
| 19065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19066 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19067 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19069 | rm -f conftest.er1 |
| 19070 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19072 | (exit $ac_status); } && { |
| 19073 | test -z "$ac_c_werror_flag" || |
| 19074 | test ! -s conftest.err |
| 19075 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19076 | ac_cv_struct_sockaddr_storage=yes |
| 19077 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19078 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19080 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19081 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19082 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19083 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19085 | fi |
| 19086 | |
| 19087 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 19088 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19089 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19090 | |
| 19091 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19092 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19093 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19094 | |
| 19095 | fi |
| 19096 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19097 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19098 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19099 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19100 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 19101 | 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] | 19102 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 19103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19105 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19106 | /* confdefs.h. */ |
| 19107 | _ACEOF |
| 19108 | cat confdefs.h >>conftest.$ac_ext |
| 19109 | cat >>conftest.$ac_ext <<_ACEOF |
| 19110 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19111 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19112 | int |
| 19113 | main () |
| 19114 | { |
| 19115 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 19116 | test_array [0] = 0 |
| 19117 | |
| 19118 | ; |
| 19119 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19120 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19121 | _ACEOF |
| 19122 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19123 | if { (ac_try="$ac_compile" |
| 19124 | case "(($ac_try" in |
| 19125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19126 | *) ac_try_echo=$ac_try;; |
| 19127 | esac |
| 19128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19129 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19130 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19132 | rm -f conftest.er1 |
| 19133 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19135 | (exit $ac_status); } && { |
| 19136 | test -z "$ac_c_werror_flag" || |
| 19137 | test ! -s conftest.err |
| 19138 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19139 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19140 | else |
| 19141 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19143 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19144 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19145 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19146 | |
| 19147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19148 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19149 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 19150 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19151 | 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] | 19152 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19153 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19154 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19155 | |
| 19156 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19157 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19158 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 19159 | 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] | 19160 | if test "${ac_cv_c_const+set}" = set; then |
| 19161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19162 | else |
| 19163 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19164 | /* confdefs.h. */ |
| 19165 | _ACEOF |
| 19166 | cat confdefs.h >>conftest.$ac_ext |
| 19167 | cat >>conftest.$ac_ext <<_ACEOF |
| 19168 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19170 | int |
| 19171 | main () |
| 19172 | { |
| 19173 | /* FIXME: Include the comments suggested by Paul. */ |
| 19174 | #ifndef __cplusplus |
| 19175 | /* Ultrix mips cc rejects this. */ |
| 19176 | typedef int charset[2]; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19177 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19178 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19179 | char const *const *pcpcc; |
| 19180 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19181 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 19182 | struct point {int x, y;}; |
| 19183 | static struct point const zero = {0,0}; |
| 19184 | /* AIX XL C 1.02.0.0 rejects this. |
| 19185 | It does not let you subtract one const X* pointer from another in |
| 19186 | an arm of an if-expression whose if-part is not a constant |
| 19187 | expression */ |
| 19188 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19189 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19190 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19191 | ++pcpcc; |
| 19192 | ppc = (char**) pcpcc; |
| 19193 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19194 | { /* SCO 3.2v4 cc rejects this. */ |
| 19195 | char *t; |
| 19196 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19198 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19199 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19200 | } |
| 19201 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 19202 | int x[] = {25, 17}; |
| 19203 | const int *foo = &x[0]; |
| 19204 | ++foo; |
| 19205 | } |
| 19206 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 19207 | typedef const int *iptr; |
| 19208 | iptr p = 0; |
| 19209 | ++p; |
| 19210 | } |
| 19211 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 19212 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 19213 | struct s { int j; const int *ap[3]; }; |
| 19214 | struct s *b; b->j = 5; |
| 19215 | } |
| 19216 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 19217 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19218 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19219 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19220 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19221 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19222 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19223 | ; |
| 19224 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19225 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19226 | _ACEOF |
| 19227 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19228 | if { (ac_try="$ac_compile" |
| 19229 | case "(($ac_try" in |
| 19230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19231 | *) ac_try_echo=$ac_try;; |
| 19232 | esac |
| 19233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19234 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19235 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19237 | rm -f conftest.er1 |
| 19238 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19240 | (exit $ac_status); } && { |
| 19241 | test -z "$ac_c_werror_flag" || |
| 19242 | test ! -s conftest.err |
| 19243 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19244 | ac_cv_c_const=yes |
| 19245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19246 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19248 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19249 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19250 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19251 | |
| 19252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19253 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19254 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 19255 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19256 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19257 | |
| 19258 | cat >>confdefs.h <<\_ACEOF |
| 19259 | #define const |
| 19260 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19261 | |
| 19262 | fi |
| 19263 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19264 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19265 | works=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19266 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 19267 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19268 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19269 | /* confdefs.h. */ |
| 19270 | _ACEOF |
| 19271 | cat confdefs.h >>conftest.$ac_ext |
| 19272 | cat >>conftest.$ac_ext <<_ACEOF |
| 19273 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19275 | int |
| 19276 | main () |
| 19277 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19278 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19279 | ; |
| 19280 | return 0; |
| 19281 | } |
| 19282 | _ACEOF |
| 19283 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19284 | if { (ac_try="$ac_compile" |
| 19285 | case "(($ac_try" in |
| 19286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19287 | *) ac_try_echo=$ac_try;; |
| 19288 | esac |
| 19289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19290 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19291 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19293 | rm -f conftest.er1 |
| 19294 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19296 | (exit $ac_status); } && { |
| 19297 | test -z "$ac_c_werror_flag" || |
| 19298 | test ! -s conftest.err |
| 19299 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19300 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19302 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19305 | |
| 19306 | cat >>confdefs.h <<\_ACEOF |
| 19307 | #define volatile |
| 19308 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19309 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19310 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19311 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19312 | |
| 19313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19314 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 19315 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19316 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19317 | works=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19318 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 19319 | 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] | 19320 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19321 | /* confdefs.h. */ |
| 19322 | _ACEOF |
| 19323 | cat confdefs.h >>conftest.$ac_ext |
| 19324 | cat >>conftest.$ac_ext <<_ACEOF |
| 19325 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 19326 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19327 | int |
| 19328 | main () |
| 19329 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19330 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19331 | ; |
| 19332 | return 0; |
| 19333 | } |
| 19334 | _ACEOF |
| 19335 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19336 | if { (ac_try="$ac_compile" |
| 19337 | case "(($ac_try" in |
| 19338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19339 | *) ac_try_echo=$ac_try;; |
| 19340 | esac |
| 19341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19342 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19343 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19345 | rm -f conftest.er1 |
| 19346 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19348 | (exit $ac_status); } && { |
| 19349 | test -z "$ac_c_werror_flag" || |
| 19350 | test ! -s conftest.err |
| 19351 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19352 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 19353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19354 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19357 | |
| 19358 | cat >>confdefs.h <<\_ACEOF |
| 19359 | #define signed |
| 19360 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19361 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19362 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19363 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19364 | |
| 19365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19366 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 19367 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19368 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19369 | have_prototypes=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19370 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 19371 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19372 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19373 | /* confdefs.h. */ |
| 19374 | _ACEOF |
| 19375 | cat confdefs.h >>conftest.$ac_ext |
| 19376 | cat >>conftest.$ac_ext <<_ACEOF |
| 19377 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19378 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19379 | int |
| 19380 | main () |
| 19381 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19382 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19383 | ; |
| 19384 | return 0; |
| 19385 | } |
| 19386 | _ACEOF |
| 19387 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19388 | if { (ac_try="$ac_compile" |
| 19389 | case "(($ac_try" in |
| 19390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19391 | *) ac_try_echo=$ac_try;; |
| 19392 | esac |
| 19393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19394 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19395 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19397 | rm -f conftest.er1 |
| 19398 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19400 | (exit $ac_status); } && { |
| 19401 | test -z "$ac_c_werror_flag" || |
| 19402 | test ! -s conftest.err |
| 19403 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19404 | |
| 19405 | |
| 19406 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19407 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19408 | _ACEOF |
| 19409 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19410 | have_prototypes=yes |
| 19411 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 19412 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19413 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19415 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19416 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19417 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19418 | |
| 19419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19420 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 19421 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19422 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19423 | works=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19424 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 19425 | 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] | 19426 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19427 | /* confdefs.h. */ |
| 19428 | _ACEOF |
| 19429 | cat confdefs.h >>conftest.$ac_ext |
| 19430 | cat >>conftest.$ac_ext <<_ACEOF |
| 19431 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19432 | |
| 19433 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 19434 | int foo(int x, ...) { |
| 19435 | va_list va; |
| 19436 | va_start(va, x); |
| 19437 | va_arg(va, int); |
| 19438 | va_arg(va, char *); |
| 19439 | va_arg(va, double); |
| 19440 | return 0; |
| 19441 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19443 | int |
| 19444 | main () |
| 19445 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 19446 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19447 | ; |
| 19448 | return 0; |
| 19449 | } |
| 19450 | _ACEOF |
| 19451 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19452 | if { (ac_try="$ac_compile" |
| 19453 | case "(($ac_try" in |
| 19454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19455 | *) ac_try_echo=$ac_try;; |
| 19456 | esac |
| 19457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19458 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19459 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19461 | rm -f conftest.er1 |
| 19462 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19464 | (exit $ac_status); } && { |
| 19465 | test -z "$ac_c_werror_flag" || |
| 19466 | test ! -s conftest.err |
| 19467 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19468 | |
| 19469 | |
| 19470 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19471 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19472 | _ACEOF |
| 19473 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19474 | works=yes |
| 19475 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 19476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19477 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19479 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19480 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19481 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19482 | |
| 19483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19484 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 19485 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19486 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19487 | # check for socketpair |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19488 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 19489 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19490 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19491 | /* confdefs.h. */ |
| 19492 | _ACEOF |
| 19493 | cat confdefs.h >>conftest.$ac_ext |
| 19494 | cat >>conftest.$ac_ext <<_ACEOF |
| 19495 | /* end confdefs.h. */ |
| 19496 | |
| 19497 | #include <sys/types.h> |
| 19498 | #include <sys/socket.h> |
| 19499 | |
| 19500 | int |
| 19501 | main () |
| 19502 | { |
| 19503 | void *x=socketpair |
| 19504 | ; |
| 19505 | return 0; |
| 19506 | } |
| 19507 | _ACEOF |
| 19508 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19509 | if { (ac_try="$ac_compile" |
| 19510 | case "(($ac_try" in |
| 19511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19512 | *) ac_try_echo=$ac_try;; |
| 19513 | esac |
| 19514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19515 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19516 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19518 | rm -f conftest.er1 |
| 19519 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19521 | (exit $ac_status); } && { |
| 19522 | test -z "$ac_c_werror_flag" || |
| 19523 | test ! -s conftest.err |
| 19524 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19525 | |
| 19526 | cat >>confdefs.h <<\_ACEOF |
| 19527 | #define HAVE_SOCKETPAIR 1 |
| 19528 | _ACEOF |
| 19529 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19530 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19531 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19532 | else |
| 19533 | echo "$as_me: failed program was:" >&5 |
| 19534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19535 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19536 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19537 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19538 | |
| 19539 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19540 | |
| 19541 | 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] | 19542 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19543 | # check if sockaddr has sa_len member |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19544 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 19545 | 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] | 19546 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19547 | /* confdefs.h. */ |
| 19548 | _ACEOF |
| 19549 | cat confdefs.h >>conftest.$ac_ext |
| 19550 | cat >>conftest.$ac_ext <<_ACEOF |
| 19551 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19552 | #include <sys/types.h> |
| 19553 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19554 | int |
| 19555 | main () |
| 19556 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19557 | struct sockaddr x; |
| 19558 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19559 | ; |
| 19560 | return 0; |
| 19561 | } |
| 19562 | _ACEOF |
| 19563 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19564 | if { (ac_try="$ac_compile" |
| 19565 | case "(($ac_try" in |
| 19566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19567 | *) ac_try_echo=$ac_try;; |
| 19568 | esac |
| 19569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19570 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19571 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19573 | rm -f conftest.er1 |
| 19574 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19576 | (exit $ac_status); } && { |
| 19577 | test -z "$ac_c_werror_flag" || |
| 19578 | test ! -s conftest.err |
| 19579 | } && test -s conftest.$ac_objext; then |
| 19580 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19581 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19582 | |
| 19583 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19584 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19585 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19586 | |
| 19587 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19588 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19590 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19591 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19592 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19593 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19594 | |
| 19595 | 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] | 19596 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19597 | va_list_is_array=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19598 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 19599 | 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] | 19600 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19601 | /* confdefs.h. */ |
| 19602 | _ACEOF |
| 19603 | cat confdefs.h >>conftest.$ac_ext |
| 19604 | cat >>conftest.$ac_ext <<_ACEOF |
| 19605 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19606 | |
| 19607 | #ifdef HAVE_STDARG_PROTOTYPES |
| 19608 | #include <stdarg.h> |
| 19609 | #else |
| 19610 | #include <varargs.h> |
| 19611 | #endif |
| 19612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19613 | int |
| 19614 | main () |
| 19615 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19616 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19617 | ; |
| 19618 | return 0; |
| 19619 | } |
| 19620 | _ACEOF |
| 19621 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19622 | if { (ac_try="$ac_compile" |
| 19623 | case "(($ac_try" in |
| 19624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19625 | *) ac_try_echo=$ac_try;; |
| 19626 | esac |
| 19627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19628 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19629 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19631 | rm -f conftest.er1 |
| 19632 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19634 | (exit $ac_status); } && { |
| 19635 | test -z "$ac_c_werror_flag" || |
| 19636 | test ! -s conftest.err |
| 19637 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19638 | : |
| 19639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19640 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19643 | |
| 19644 | |
| 19645 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19646 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19647 | _ACEOF |
| 19648 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19649 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19650 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19651 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19652 | |
| 19653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19654 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 19655 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19656 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19657 | # 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] | 19658 | |
| 19659 | |
| 19660 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19661 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 19662 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19663 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 19664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19666 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19667 | /* confdefs.h. */ |
| 19668 | _ACEOF |
| 19669 | cat confdefs.h >>conftest.$ac_ext |
| 19670 | cat >>conftest.$ac_ext <<_ACEOF |
| 19671 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19672 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 19673 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19674 | #define gethostbyname_r innocuous_gethostbyname_r |
| 19675 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19676 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19677 | which can conflict with char gethostbyname_r (); below. |
| 19678 | 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] | 19679 | <limits.h> exists even on freestanding compilers. */ |
| 19680 | |
| 19681 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19682 | # include <limits.h> |
| 19683 | #else |
| 19684 | # include <assert.h> |
| 19685 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19686 | |
| 19687 | #undef gethostbyname_r |
| 19688 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19689 | /* Override any GCC internal prototype to avoid an error. |
| 19690 | Use char because int might match the return type of a GCC |
| 19691 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19692 | #ifdef __cplusplus |
| 19693 | extern "C" |
| 19694 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19695 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19696 | /* The GNU C library defines this for functions which it implements |
| 19697 | to always fail with ENOSYS. Some functions are actually named |
| 19698 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19699 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19700 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19701 | #endif |
| 19702 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19703 | int |
| 19704 | main () |
| 19705 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19706 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19707 | ; |
| 19708 | return 0; |
| 19709 | } |
| 19710 | _ACEOF |
| 19711 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19712 | if { (ac_try="$ac_link" |
| 19713 | case "(($ac_try" in |
| 19714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19715 | *) ac_try_echo=$ac_try;; |
| 19716 | esac |
| 19717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19718 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19719 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19721 | rm -f conftest.er1 |
| 19722 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19724 | (exit $ac_status); } && { |
| 19725 | test -z "$ac_c_werror_flag" || |
| 19726 | test ! -s conftest.err |
| 19727 | } && test -s conftest$ac_exeext && |
| 19728 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19729 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19731 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19733 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19734 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19735 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19736 | |
| 19737 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19738 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19739 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19740 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 19741 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19742 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19744 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19745 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19746 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19747 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19748 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 19749 | 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] | 19750 | OLD_CFLAGS=$CFLAGS |
| 19751 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19752 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19753 | /* confdefs.h. */ |
| 19754 | _ACEOF |
| 19755 | cat confdefs.h >>conftest.$ac_ext |
| 19756 | cat >>conftest.$ac_ext <<_ACEOF |
| 19757 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19758 | |
| 19759 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19761 | int |
| 19762 | main () |
| 19763 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19764 | |
| 19765 | char *name; |
| 19766 | struct hostent *he, *res; |
| 19767 | char buffer[2048]; |
| 19768 | int buflen = 2048; |
| 19769 | int h_errnop; |
| 19770 | |
| 19771 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19772 | |
| 19773 | ; |
| 19774 | return 0; |
| 19775 | } |
| 19776 | _ACEOF |
| 19777 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19778 | if { (ac_try="$ac_compile" |
| 19779 | case "(($ac_try" in |
| 19780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19781 | *) ac_try_echo=$ac_try;; |
| 19782 | esac |
| 19783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19784 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19785 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19787 | rm -f conftest.er1 |
| 19788 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19790 | (exit $ac_status); } && { |
| 19791 | test -z "$ac_c_werror_flag" || |
| 19792 | test ! -s conftest.err |
| 19793 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19794 | |
| 19795 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19796 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19797 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19798 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19799 | |
| 19800 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19801 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19802 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19803 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19804 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19805 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19806 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19807 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19808 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19811 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19812 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19813 | echo "${ECHO_T}no" >&6; } |
| 19814 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 19815 | 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] | 19816 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19817 | /* confdefs.h. */ |
| 19818 | _ACEOF |
| 19819 | cat confdefs.h >>conftest.$ac_ext |
| 19820 | cat >>conftest.$ac_ext <<_ACEOF |
| 19821 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19822 | |
| 19823 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19825 | int |
| 19826 | main () |
| 19827 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19828 | |
| 19829 | char *name; |
| 19830 | struct hostent *he; |
| 19831 | char buffer[2048]; |
| 19832 | int buflen = 2048; |
| 19833 | int h_errnop; |
| 19834 | |
| 19835 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19836 | |
| 19837 | ; |
| 19838 | return 0; |
| 19839 | } |
| 19840 | _ACEOF |
| 19841 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19842 | if { (ac_try="$ac_compile" |
| 19843 | case "(($ac_try" in |
| 19844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19845 | *) ac_try_echo=$ac_try;; |
| 19846 | esac |
| 19847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19848 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19849 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19851 | rm -f conftest.er1 |
| 19852 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19854 | (exit $ac_status); } && { |
| 19855 | test -z "$ac_c_werror_flag" || |
| 19856 | test ! -s conftest.err |
| 19857 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19858 | |
| 19859 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19860 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19861 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19863 | |
| 19864 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19865 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19866 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19867 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19868 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19869 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19870 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19871 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19872 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19874 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19875 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19876 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19877 | echo "${ECHO_T}no" >&6; } |
| 19878 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 19879 | 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] | 19880 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19881 | /* confdefs.h. */ |
| 19882 | _ACEOF |
| 19883 | cat confdefs.h >>conftest.$ac_ext |
| 19884 | cat >>conftest.$ac_ext <<_ACEOF |
| 19885 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19886 | |
| 19887 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19889 | int |
| 19890 | main () |
| 19891 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19892 | |
| 19893 | char *name; |
| 19894 | struct hostent *he; |
| 19895 | struct hostent_data data; |
| 19896 | |
| 19897 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19898 | |
| 19899 | ; |
| 19900 | return 0; |
| 19901 | } |
| 19902 | _ACEOF |
| 19903 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19904 | if { (ac_try="$ac_compile" |
| 19905 | case "(($ac_try" in |
| 19906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19907 | *) ac_try_echo=$ac_try;; |
| 19908 | esac |
| 19909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19910 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19911 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19913 | rm -f conftest.er1 |
| 19914 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19916 | (exit $ac_status); } && { |
| 19917 | test -z "$ac_c_werror_flag" || |
| 19918 | test ! -s conftest.err |
| 19919 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19920 | |
| 19921 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19922 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19923 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19924 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19925 | |
| 19926 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19927 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19928 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19929 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19930 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19931 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19932 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19934 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19937 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19938 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19939 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19940 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19941 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19942 | |
| 19943 | 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] | 19944 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19945 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19946 | |
| 19947 | 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] | 19948 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19949 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19950 | |
| 19951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19952 | CFLAGS=$OLD_CFLAGS |
| 19953 | |
| 19954 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19956 | |
| 19957 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19958 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19959 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19960 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19961 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19962 | 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] | 19963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19964 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19966 | /* confdefs.h. */ |
| 19967 | _ACEOF |
| 19968 | cat confdefs.h >>conftest.$ac_ext |
| 19969 | cat >>conftest.$ac_ext <<_ACEOF |
| 19970 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19971 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19972 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19973 | #define $ac_func innocuous_$ac_func |
| 19974 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19975 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19976 | which can conflict with char $ac_func (); below. |
| 19977 | 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] | 19978 | <limits.h> exists even on freestanding compilers. */ |
| 19979 | |
| 19980 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19981 | # include <limits.h> |
| 19982 | #else |
| 19983 | # include <assert.h> |
| 19984 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19985 | |
| 19986 | #undef $ac_func |
| 19987 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19988 | /* Override any GCC internal prototype to avoid an error. |
| 19989 | Use char because int might match the return type of a GCC |
| 19990 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19991 | #ifdef __cplusplus |
| 19992 | extern "C" |
| 19993 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19994 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19995 | /* The GNU C library defines this for functions which it implements |
| 19996 | to always fail with ENOSYS. Some functions are actually named |
| 19997 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19998 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19999 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20000 | #endif |
| 20001 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20002 | int |
| 20003 | main () |
| 20004 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20005 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20006 | ; |
| 20007 | return 0; |
| 20008 | } |
| 20009 | _ACEOF |
| 20010 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20011 | if { (ac_try="$ac_link" |
| 20012 | case "(($ac_try" in |
| 20013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20014 | *) ac_try_echo=$ac_try;; |
| 20015 | esac |
| 20016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20017 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20018 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20020 | rm -f conftest.er1 |
| 20021 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20023 | (exit $ac_status); } && { |
| 20024 | test -z "$ac_c_werror_flag" || |
| 20025 | test ! -s conftest.err |
| 20026 | } && test -s conftest$ac_exeext && |
| 20027 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20028 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20030 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20032 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20033 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20034 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20035 | |
| 20036 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20037 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20038 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20039 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20040 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20041 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20042 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20043 | cat >>confdefs.h <<_ACEOF |
| 20044 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20045 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20046 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20047 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20048 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20049 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20050 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20051 | fi |
| 20052 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20053 | |
| 20054 | |
| 20055 | |
| 20056 | |
| 20057 | |
| 20058 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20059 | # checks for system services |
| 20060 | # (none yet) |
| 20061 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20062 | # Linux requires this for correct f.p. operations |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20063 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 20064 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20065 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 20066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20068 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20069 | /* confdefs.h. */ |
| 20070 | _ACEOF |
| 20071 | cat confdefs.h >>conftest.$ac_ext |
| 20072 | cat >>conftest.$ac_ext <<_ACEOF |
| 20073 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20074 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 20075 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20076 | #define __fpu_control innocuous___fpu_control |
| 20077 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20078 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20079 | which can conflict with char __fpu_control (); below. |
| 20080 | 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] | 20081 | <limits.h> exists even on freestanding compilers. */ |
| 20082 | |
| 20083 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20084 | # include <limits.h> |
| 20085 | #else |
| 20086 | # include <assert.h> |
| 20087 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20088 | |
| 20089 | #undef __fpu_control |
| 20090 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20091 | /* Override any GCC internal prototype to avoid an error. |
| 20092 | Use char because int might match the return type of a GCC |
| 20093 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20094 | #ifdef __cplusplus |
| 20095 | extern "C" |
| 20096 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20097 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20098 | /* The GNU C library defines this for functions which it implements |
| 20099 | to always fail with ENOSYS. Some functions are actually named |
| 20100 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20101 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20102 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20103 | #endif |
| 20104 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20105 | int |
| 20106 | main () |
| 20107 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20108 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20109 | ; |
| 20110 | return 0; |
| 20111 | } |
| 20112 | _ACEOF |
| 20113 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20114 | if { (ac_try="$ac_link" |
| 20115 | case "(($ac_try" in |
| 20116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20117 | *) ac_try_echo=$ac_try;; |
| 20118 | esac |
| 20119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20120 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20121 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20123 | rm -f conftest.er1 |
| 20124 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20126 | (exit $ac_status); } && { |
| 20127 | test -z "$ac_c_werror_flag" || |
| 20128 | test ! -s conftest.err |
| 20129 | } && test -s conftest$ac_exeext && |
| 20130 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20131 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20132 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20133 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20135 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20136 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20137 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20138 | |
| 20139 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20140 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20141 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20142 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 20143 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20144 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20145 | : |
| 20146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20147 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20148 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 20149 | 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] | 20150 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 20151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20153 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20154 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20155 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20156 | /* confdefs.h. */ |
| 20157 | _ACEOF |
| 20158 | cat confdefs.h >>conftest.$ac_ext |
| 20159 | cat >>conftest.$ac_ext <<_ACEOF |
| 20160 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20161 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20162 | /* Override any GCC internal prototype to avoid an error. |
| 20163 | Use char because int might match the return type of a GCC |
| 20164 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20165 | #ifdef __cplusplus |
| 20166 | extern "C" |
| 20167 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20168 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20169 | int |
| 20170 | main () |
| 20171 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20172 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20173 | ; |
| 20174 | return 0; |
| 20175 | } |
| 20176 | _ACEOF |
| 20177 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20178 | if { (ac_try="$ac_link" |
| 20179 | case "(($ac_try" in |
| 20180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20181 | *) ac_try_echo=$ac_try;; |
| 20182 | esac |
| 20183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20184 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20185 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20187 | rm -f conftest.er1 |
| 20188 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20190 | (exit $ac_status); } && { |
| 20191 | test -z "$ac_c_werror_flag" || |
| 20192 | test ! -s conftest.err |
| 20193 | } && test -s conftest$ac_exeext && |
| 20194 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20195 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20197 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20199 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20200 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20201 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20202 | |
| 20203 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20204 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20205 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20206 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20207 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 20208 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20209 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 20210 | cat >>confdefs.h <<_ACEOF |
| 20211 | #define HAVE_LIBIEEE 1 |
| 20212 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20213 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20214 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20215 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20216 | fi |
| 20217 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20218 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20219 | fi |
| 20220 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20221 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20222 | # Check for --with-fpectl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20223 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 20224 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20225 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20226 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20227 | if test "${with_fpectl+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20228 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20229 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20230 | then |
| 20231 | |
| 20232 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20233 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20234 | _ACEOF |
| 20235 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20236 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20237 | echo "${ECHO_T}yes" >&6; } |
| 20238 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 20239 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20240 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20241 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20242 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20243 | echo "${ECHO_T}no" >&6; } |
| 20244 | fi |
| 20245 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20246 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20247 | # check for --with-libm=... |
| 20248 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 20249 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 20250 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 20251 | *) LIBM=-lm |
| 20252 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20253 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 20254 | 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] | 20255 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20256 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 20257 | if test "${with_libm+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20258 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20259 | if test "$withval" = no |
| 20260 | then LIBM= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20261 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 20262 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20263 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20264 | then LIBM=$withval |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20265 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 20266 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20267 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 20268 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 20269 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20270 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20271 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20272 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 20273 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
| 20274 | fi |
| 20275 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20276 | |
| 20277 | # check for --with-libc=... |
| 20278 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20279 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 20280 | 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] | 20281 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20282 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 20283 | if test "${with_libc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20284 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20285 | if test "$withval" = no |
| 20286 | then LIBC= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20287 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 20288 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20289 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20290 | then LIBC=$withval |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20291 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 20292 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20293 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 20294 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 20295 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20296 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20297 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20298 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 20299 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
| 20300 | fi |
| 20301 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20302 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20303 | # check for hypot() in math library |
| 20304 | LIBS_SAVE=$LIBS |
| 20305 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20306 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20307 | for ac_func in hypot |
| 20308 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20309 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20310 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20311 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20312 | 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] | 20313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20314 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20315 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20316 | /* confdefs.h. */ |
| 20317 | _ACEOF |
| 20318 | cat confdefs.h >>conftest.$ac_ext |
| 20319 | cat >>conftest.$ac_ext <<_ACEOF |
| 20320 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20321 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20322 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20323 | #define $ac_func innocuous_$ac_func |
| 20324 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20325 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20326 | which can conflict with char $ac_func (); below. |
| 20327 | 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] | 20328 | <limits.h> exists even on freestanding compilers. */ |
| 20329 | |
| 20330 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20331 | # include <limits.h> |
| 20332 | #else |
| 20333 | # include <assert.h> |
| 20334 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20335 | |
| 20336 | #undef $ac_func |
| 20337 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20338 | /* Override any GCC internal prototype to avoid an error. |
| 20339 | Use char because int might match the return type of a GCC |
| 20340 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20341 | #ifdef __cplusplus |
| 20342 | extern "C" |
| 20343 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20344 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20345 | /* The GNU C library defines this for functions which it implements |
| 20346 | to always fail with ENOSYS. Some functions are actually named |
| 20347 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20348 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20349 | choke me |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20350 | #endif |
| 20351 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20352 | int |
| 20353 | main () |
| 20354 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20355 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20356 | ; |
| 20357 | return 0; |
| 20358 | } |
| 20359 | _ACEOF |
| 20360 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20361 | if { (ac_try="$ac_link" |
| 20362 | case "(($ac_try" in |
| 20363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20364 | *) ac_try_echo=$ac_try;; |
| 20365 | esac |
| 20366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20367 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20368 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20370 | rm -f conftest.er1 |
| 20371 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20373 | (exit $ac_status); } && { |
| 20374 | test -z "$ac_c_werror_flag" || |
| 20375 | test ! -s conftest.err |
| 20376 | } && test -s conftest$ac_exeext && |
| 20377 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20378 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 20379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20380 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20382 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20383 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20384 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20385 | |
| 20386 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20387 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20388 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20389 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20390 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20391 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20392 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20393 | cat >>confdefs.h <<_ACEOF |
| 20394 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20395 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20396 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20397 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20398 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20399 | *" $ac_func.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20400 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 20401 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20402 | esac |
| 20403 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 20404 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 20405 | done |
| 20406 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20407 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20408 | LIBS=$LIBS_SAVE |
| 20409 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20410 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20411 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20412 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 20413 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20414 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 20415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20416 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20417 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 20418 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20419 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20420 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20421 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 20422 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20423 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20424 | /* confdefs.h. */ |
| 20425 | _ACEOF |
| 20426 | cat confdefs.h >>conftest.$ac_ext |
| 20427 | cat >>conftest.$ac_ext <<_ACEOF |
| 20428 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20429 | $ac_includes_default |
| 20430 | #include <wchar.h> |
| 20431 | _ACEOF |
| 20432 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20433 | if { (ac_try="$ac_compile" |
| 20434 | case "(($ac_try" in |
| 20435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20436 | *) ac_try_echo=$ac_try;; |
| 20437 | esac |
| 20438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20439 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20440 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20442 | rm -f conftest.er1 |
| 20443 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20445 | (exit $ac_status); } && { |
| 20446 | test -z "$ac_c_werror_flag" || |
| 20447 | test ! -s conftest.err |
| 20448 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20449 | ac_header_compiler=yes |
| 20450 | else |
| 20451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20453 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20454 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20455 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20456 | |
| 20457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20458 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20459 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20460 | |
| 20461 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20462 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 20463 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20464 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20465 | /* confdefs.h. */ |
| 20466 | _ACEOF |
| 20467 | cat confdefs.h >>conftest.$ac_ext |
| 20468 | cat >>conftest.$ac_ext <<_ACEOF |
| 20469 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20470 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20471 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20472 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20473 | case "(($ac_try" in |
| 20474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20475 | *) ac_try_echo=$ac_try;; |
| 20476 | esac |
| 20477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20478 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20479 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20480 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20481 | rm -f conftest.er1 |
| 20482 | cat conftest.err >&5 |
| 20483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20484 | (exit $ac_status); } >/dev/null && { |
| 20485 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 20486 | test ! -s conftest.err |
| 20487 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20488 | ac_header_preproc=yes |
| 20489 | else |
| 20490 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20493 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20494 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20495 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20496 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20497 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20498 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20499 | |
| 20500 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20501 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20502 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20503 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20504 | 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] | 20505 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 20506 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 20507 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20508 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20509 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20510 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 20511 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20512 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 20513 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 20514 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 20515 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 20516 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 20517 | 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] | 20518 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 20519 | 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] | 20520 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 20521 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20522 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20523 | ## ------------------------------------------------ ## |
| 20524 | ## Report this to http://www.python.org/python-bugs ## |
| 20525 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20526 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20527 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20528 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20529 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20530 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 20531 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20532 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 20533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20534 | else |
| 20535 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20536 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20537 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 20538 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20539 | |
| 20540 | fi |
| 20541 | if test $ac_cv_header_wchar_h = yes; then |
| 20542 | |
| 20543 | |
| 20544 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20545 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20546 | _ACEOF |
| 20547 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20548 | wchar_h="yes" |
| 20549 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20551 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20552 | |
| 20553 | fi |
| 20554 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20556 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20557 | # determine wchar_t size |
| 20558 | if test "$wchar_h" = yes |
| 20559 | then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20560 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 20561 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20562 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 20563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20564 | else |
| 20565 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20566 | /* confdefs.h. */ |
| 20567 | _ACEOF |
| 20568 | cat confdefs.h >>conftest.$ac_ext |
| 20569 | cat >>conftest.$ac_ext <<_ACEOF |
| 20570 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20571 | #include <wchar.h> |
| 20572 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20573 | typedef wchar_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20574 | int |
| 20575 | main () |
| 20576 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20577 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20578 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20579 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20580 | return 0; |
| 20581 | ; |
| 20582 | return 0; |
| 20583 | } |
| 20584 | _ACEOF |
| 20585 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20586 | if { (ac_try="$ac_compile" |
| 20587 | case "(($ac_try" in |
| 20588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20589 | *) ac_try_echo=$ac_try;; |
| 20590 | esac |
| 20591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20592 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20593 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20595 | rm -f conftest.er1 |
| 20596 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20598 | (exit $ac_status); } && { |
| 20599 | test -z "$ac_c_werror_flag" || |
| 20600 | test ! -s conftest.err |
| 20601 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20602 | ac_cv_type_wchar_t=yes |
| 20603 | else |
| 20604 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20606 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20607 | ac_cv_type_wchar_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20608 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20609 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20611 | fi |
| 20612 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 20613 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 20614 | |
| 20615 | # The cast to long int works around a bug in the HP C Compiler |
| 20616 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20617 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20618 | # This bug is HP SR number 8606223364. |
| 20619 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 20620 | 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] | 20621 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 20622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20624 | if test "$cross_compiling" = yes; then |
| 20625 | # Depending upon the size, compute the lo and hi bounds. |
| 20626 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20627 | /* confdefs.h. */ |
| 20628 | _ACEOF |
| 20629 | cat confdefs.h >>conftest.$ac_ext |
| 20630 | cat >>conftest.$ac_ext <<_ACEOF |
| 20631 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20632 | #include <wchar.h> |
| 20633 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20634 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20635 | int |
| 20636 | main () |
| 20637 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20638 | 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] | 20639 | test_array [0] = 0 |
| 20640 | |
| 20641 | ; |
| 20642 | return 0; |
| 20643 | } |
| 20644 | _ACEOF |
| 20645 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20646 | if { (ac_try="$ac_compile" |
| 20647 | case "(($ac_try" in |
| 20648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20649 | *) ac_try_echo=$ac_try;; |
| 20650 | esac |
| 20651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20652 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20653 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20655 | rm -f conftest.er1 |
| 20656 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20658 | (exit $ac_status); } && { |
| 20659 | test -z "$ac_c_werror_flag" || |
| 20660 | test ! -s conftest.err |
| 20661 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20662 | ac_lo=0 ac_mid=0 |
| 20663 | while :; do |
| 20664 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20665 | /* confdefs.h. */ |
| 20666 | _ACEOF |
| 20667 | cat confdefs.h >>conftest.$ac_ext |
| 20668 | cat >>conftest.$ac_ext <<_ACEOF |
| 20669 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20670 | #include <wchar.h> |
| 20671 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20672 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20673 | int |
| 20674 | main () |
| 20675 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20676 | 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] | 20677 | test_array [0] = 0 |
| 20678 | |
| 20679 | ; |
| 20680 | return 0; |
| 20681 | } |
| 20682 | _ACEOF |
| 20683 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20684 | if { (ac_try="$ac_compile" |
| 20685 | case "(($ac_try" in |
| 20686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20687 | *) ac_try_echo=$ac_try;; |
| 20688 | esac |
| 20689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20690 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20691 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20693 | rm -f conftest.er1 |
| 20694 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20696 | (exit $ac_status); } && { |
| 20697 | test -z "$ac_c_werror_flag" || |
| 20698 | test ! -s conftest.err |
| 20699 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20700 | ac_hi=$ac_mid; break |
| 20701 | else |
| 20702 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20704 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20705 | ac_lo=`expr $ac_mid + 1` |
| 20706 | if test $ac_lo -le $ac_mid; then |
| 20707 | ac_lo= ac_hi= |
| 20708 | break |
| 20709 | fi |
| 20710 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20711 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20712 | |
| 20713 | 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] | 20714 | done |
| 20715 | else |
| 20716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20718 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20719 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20720 | /* confdefs.h. */ |
| 20721 | _ACEOF |
| 20722 | cat confdefs.h >>conftest.$ac_ext |
| 20723 | cat >>conftest.$ac_ext <<_ACEOF |
| 20724 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20725 | #include <wchar.h> |
| 20726 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20727 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20728 | int |
| 20729 | main () |
| 20730 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20731 | 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] | 20732 | test_array [0] = 0 |
| 20733 | |
| 20734 | ; |
| 20735 | return 0; |
| 20736 | } |
| 20737 | _ACEOF |
| 20738 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20739 | if { (ac_try="$ac_compile" |
| 20740 | case "(($ac_try" in |
| 20741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20742 | *) ac_try_echo=$ac_try;; |
| 20743 | esac |
| 20744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20745 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20746 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20748 | rm -f conftest.er1 |
| 20749 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20751 | (exit $ac_status); } && { |
| 20752 | test -z "$ac_c_werror_flag" || |
| 20753 | test ! -s conftest.err |
| 20754 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20755 | ac_hi=-1 ac_mid=-1 |
| 20756 | while :; do |
| 20757 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20758 | /* confdefs.h. */ |
| 20759 | _ACEOF |
| 20760 | cat confdefs.h >>conftest.$ac_ext |
| 20761 | cat >>conftest.$ac_ext <<_ACEOF |
| 20762 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20763 | #include <wchar.h> |
| 20764 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20765 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20766 | int |
| 20767 | main () |
| 20768 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20769 | 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] | 20770 | test_array [0] = 0 |
| 20771 | |
| 20772 | ; |
| 20773 | return 0; |
| 20774 | } |
| 20775 | _ACEOF |
| 20776 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20777 | if { (ac_try="$ac_compile" |
| 20778 | case "(($ac_try" in |
| 20779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20780 | *) ac_try_echo=$ac_try;; |
| 20781 | esac |
| 20782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20783 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20784 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20786 | rm -f conftest.er1 |
| 20787 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20789 | (exit $ac_status); } && { |
| 20790 | test -z "$ac_c_werror_flag" || |
| 20791 | test ! -s conftest.err |
| 20792 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20793 | ac_lo=$ac_mid; break |
| 20794 | else |
| 20795 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20797 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20798 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 20799 | if test $ac_mid -le $ac_hi; then |
| 20800 | ac_lo= ac_hi= |
| 20801 | break |
| 20802 | fi |
| 20803 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20804 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20805 | |
| 20806 | 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] | 20807 | done |
| 20808 | else |
| 20809 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20811 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20812 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20813 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20814 | |
| 20815 | 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] | 20816 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20817 | |
| 20818 | 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] | 20819 | # Binary search between lo and hi bounds. |
| 20820 | while test "x$ac_lo" != "x$ac_hi"; do |
| 20821 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 20822 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20823 | /* confdefs.h. */ |
| 20824 | _ACEOF |
| 20825 | cat confdefs.h >>conftest.$ac_ext |
| 20826 | cat >>conftest.$ac_ext <<_ACEOF |
| 20827 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20828 | #include <wchar.h> |
| 20829 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20830 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20831 | int |
| 20832 | main () |
| 20833 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20834 | 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] | 20835 | test_array [0] = 0 |
| 20836 | |
| 20837 | ; |
| 20838 | return 0; |
| 20839 | } |
| 20840 | _ACEOF |
| 20841 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20842 | if { (ac_try="$ac_compile" |
| 20843 | case "(($ac_try" in |
| 20844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20845 | *) ac_try_echo=$ac_try;; |
| 20846 | esac |
| 20847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20848 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20849 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20851 | rm -f conftest.er1 |
| 20852 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20854 | (exit $ac_status); } && { |
| 20855 | test -z "$ac_c_werror_flag" || |
| 20856 | test ! -s conftest.err |
| 20857 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20858 | ac_hi=$ac_mid |
| 20859 | else |
| 20860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20862 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20863 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20864 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20865 | |
| 20866 | 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] | 20867 | done |
| 20868 | case $ac_lo in |
| 20869 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20870 | '') if test "$ac_cv_type_wchar_t" = yes; then |
| 20871 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20872 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20873 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20874 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20875 | { (exit 77); exit 77; }; } |
| 20876 | else |
| 20877 | ac_cv_sizeof_wchar_t=0 |
| 20878 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20879 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20880 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20881 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20882 | /* confdefs.h. */ |
| 20883 | _ACEOF |
| 20884 | cat confdefs.h >>conftest.$ac_ext |
| 20885 | cat >>conftest.$ac_ext <<_ACEOF |
| 20886 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20887 | #include <wchar.h> |
| 20888 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20889 | typedef wchar_t ac__type_sizeof_; |
| 20890 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 20891 | 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] | 20892 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20893 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20894 | int |
| 20895 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20896 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20897 | |
| 20898 | FILE *f = fopen ("conftest.val", "w"); |
| 20899 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20900 | return 1; |
| 20901 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20902 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20903 | long int i = longval (); |
| 20904 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 20905 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20906 | fprintf (f, "%ld\n", i); |
| 20907 | } |
| 20908 | else |
| 20909 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20910 | unsigned long int i = ulongval (); |
| 20911 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 20912 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20913 | fprintf (f, "%lu\n", i); |
| 20914 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20915 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20916 | |
| 20917 | ; |
| 20918 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20919 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20920 | _ACEOF |
| 20921 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20922 | if { (ac_try="$ac_link" |
| 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_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20929 | ac_status=$? |
| 20930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20931 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20932 | { (case "(($ac_try" in |
| 20933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20934 | *) ac_try_echo=$ac_try;; |
| 20935 | esac |
| 20936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20937 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20938 | ac_status=$? |
| 20939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20940 | (exit $ac_status); }; }; then |
| 20941 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20942 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20943 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20944 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20947 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20948 | if test "$ac_cv_type_wchar_t" = yes; then |
| 20949 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20950 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20951 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20952 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20953 | { (exit 77); exit 77; }; } |
| 20954 | else |
| 20955 | ac_cv_sizeof_wchar_t=0 |
| 20956 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20957 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20958 | 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] | 20959 | fi |
| 20960 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20961 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20962 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 20963 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
| 20964 | |
| 20965 | |
| 20966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20967 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20968 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20969 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20970 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20971 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20972 | fi |
| 20973 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20974 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 20975 | 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] | 20976 | have_ucs4_tcl=no |
| 20977 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20978 | /* confdefs.h. */ |
| 20979 | _ACEOF |
| 20980 | cat confdefs.h >>conftest.$ac_ext |
| 20981 | cat >>conftest.$ac_ext <<_ACEOF |
| 20982 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20983 | |
| 20984 | #include <tcl.h> |
| 20985 | #if TCL_UTF_MAX != 6 |
| 20986 | # error "NOT UCS4_TCL" |
| 20987 | #endif |
| 20988 | int |
| 20989 | main () |
| 20990 | { |
| 20991 | |
| 20992 | ; |
| 20993 | return 0; |
| 20994 | } |
| 20995 | _ACEOF |
| 20996 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20997 | if { (ac_try="$ac_compile" |
| 20998 | case "(($ac_try" in |
| 20999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21000 | *) ac_try_echo=$ac_try;; |
| 21001 | esac |
| 21002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21003 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 21004 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21006 | rm -f conftest.er1 |
| 21007 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 21008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21009 | (exit $ac_status); } && { |
| 21010 | test -z "$ac_c_werror_flag" || |
| 21011 | test ! -s conftest.err |
| 21012 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 21013 | |
| 21014 | |
| 21015 | cat >>confdefs.h <<\_ACEOF |
| 21016 | #define HAVE_UCS4_TCL 1 |
| 21017 | _ACEOF |
| 21018 | |
| 21019 | have_ucs4_tcl=yes |
| 21020 | |
| 21021 | else |
| 21022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21024 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21025 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 21026 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21027 | |
| 21028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21029 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 21030 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 21031 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21032 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21033 | if test "$wchar_h" = yes |
| 21034 | then |
| 21035 | # check whether wchar_t is signed or not |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21036 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 21037 | 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] | 21038 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 21039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21040 | else |
| 21041 | |
| 21042 | if test "$cross_compiling" = yes; then |
| 21043 | ac_cv_wchar_t_signed=yes |
| 21044 | else |
| 21045 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21046 | /* confdefs.h. */ |
| 21047 | _ACEOF |
| 21048 | cat confdefs.h >>conftest.$ac_ext |
| 21049 | cat >>conftest.$ac_ext <<_ACEOF |
| 21050 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21051 | |
| 21052 | #include <wchar.h> |
| 21053 | int main() |
| 21054 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 21055 | /* Success: exit code 0 */ |
| 21056 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21057 | } |
| 21058 | |
| 21059 | _ACEOF |
| 21060 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21061 | if { (ac_try="$ac_link" |
| 21062 | case "(($ac_try" in |
| 21063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21064 | *) ac_try_echo=$ac_try;; |
| 21065 | esac |
| 21066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21067 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21068 | ac_status=$? |
| 21069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21070 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21071 | { (case "(($ac_try" in |
| 21072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21073 | *) ac_try_echo=$ac_try;; |
| 21074 | esac |
| 21075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21076 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21077 | ac_status=$? |
| 21078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21079 | (exit $ac_status); }; }; then |
| 21080 | ac_cv_wchar_t_signed=yes |
| 21081 | else |
| 21082 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21083 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21085 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21086 | ( exit $ac_status ) |
| 21087 | ac_cv_wchar_t_signed=no |
| 21088 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21089 | 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] | 21090 | fi |
| 21091 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21092 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21093 | fi |
| 21094 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21095 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 21096 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
| 21097 | fi |
| 21098 | |
| 21099 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 21100 | echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; } |
| 21101 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21102 | if test "${enable_unicode+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21103 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21104 | else |
| 21105 | enable_unicode=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21106 | fi |
| 21107 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21108 | |
| 21109 | if test $enable_unicode = yes |
| 21110 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 21111 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 21112 | case "$have_ucs4_tcl" in |
| 21113 | yes) enable_unicode="ucs4" |
| 21114 | ;; |
| 21115 | *) enable_unicode="ucs2" |
| 21116 | ;; |
| 21117 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21118 | fi |
| 21119 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 21120 | |
| 21121 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21122 | case "$enable_unicode" in |
| 21123 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21124 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21125 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21126 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21127 | |
| 21128 | ;; |
| 21129 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21130 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21131 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21132 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21133 | |
| 21134 | ;; |
| 21135 | esac |
| 21136 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21138 | |
| 21139 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 21140 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21141 | if test "$enable_unicode" = "no" |
| 21142 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 21143 | UNICODE_OBJS="" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21144 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 21145 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21146 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 21147 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21148 | |
| 21149 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21150 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21151 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21152 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21153 | |
| 21154 | # wchar_t is only usable if it maps to an unsigned type |
| 21155 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 21156 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21157 | then |
| 21158 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21160 | cat >>confdefs.h <<\_ACEOF |
| 21161 | #define HAVE_USABLE_WCHAR_T 1 |
| 21162 | _ACEOF |
| 21163 | |
| 21164 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21165 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21166 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21167 | |
| 21168 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 21169 | then |
| 21170 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21171 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21172 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21173 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21174 | |
| 21175 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 21176 | then |
| 21177 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21178 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21179 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21180 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21181 | |
| 21182 | else |
| 21183 | PY_UNICODE_TYPE="no type found" |
| 21184 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21185 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 21186 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21187 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21188 | |
| 21189 | # check for endianness |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21190 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 21191 | 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] | 21192 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 21193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21194 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21195 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 21196 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21197 | /* confdefs.h. */ |
| 21198 | _ACEOF |
| 21199 | cat confdefs.h >>conftest.$ac_ext |
| 21200 | cat >>conftest.$ac_ext <<_ACEOF |
| 21201 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21202 | #include <sys/types.h> |
| 21203 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21204 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21205 | int |
| 21206 | main () |
| 21207 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21208 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 21209 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21210 | bogus endian macros |
| 21211 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21212 | |
| 21213 | ; |
| 21214 | return 0; |
| 21215 | } |
| 21216 | _ACEOF |
| 21217 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21218 | if { (ac_try="$ac_compile" |
| 21219 | case "(($ac_try" in |
| 21220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21221 | *) ac_try_echo=$ac_try;; |
| 21222 | esac |
| 21223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21224 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21225 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21227 | rm -f conftest.er1 |
| 21228 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21230 | (exit $ac_status); } && { |
| 21231 | test -z "$ac_c_werror_flag" || |
| 21232 | test ! -s conftest.err |
| 21233 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21234 | # 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] | 21235 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21236 | /* confdefs.h. */ |
| 21237 | _ACEOF |
| 21238 | cat confdefs.h >>conftest.$ac_ext |
| 21239 | cat >>conftest.$ac_ext <<_ACEOF |
| 21240 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21241 | #include <sys/types.h> |
| 21242 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21244 | int |
| 21245 | main () |
| 21246 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21247 | #if BYTE_ORDER != BIG_ENDIAN |
| 21248 | not big endian |
| 21249 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21250 | |
| 21251 | ; |
| 21252 | return 0; |
| 21253 | } |
| 21254 | _ACEOF |
| 21255 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21256 | if { (ac_try="$ac_compile" |
| 21257 | case "(($ac_try" in |
| 21258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21259 | *) ac_try_echo=$ac_try;; |
| 21260 | esac |
| 21261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21262 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21263 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21265 | rm -f conftest.er1 |
| 21266 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21268 | (exit $ac_status); } && { |
| 21269 | test -z "$ac_c_werror_flag" || |
| 21270 | test ! -s conftest.err |
| 21271 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21272 | ac_cv_c_bigendian=yes |
| 21273 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21274 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21276 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21277 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21278 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21279 | |
| 21280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21282 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21284 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21285 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21286 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21287 | # 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] | 21288 | ac_cv_c_bigendian=unknown |
| 21289 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21290 | /* confdefs.h. */ |
| 21291 | _ACEOF |
| 21292 | cat confdefs.h >>conftest.$ac_ext |
| 21293 | cat >>conftest.$ac_ext <<_ACEOF |
| 21294 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21295 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 21296 | 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] | 21297 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21298 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 21299 | 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] | 21300 | 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] | 21301 | int |
| 21302 | main () |
| 21303 | { |
| 21304 | _ascii (); _ebcdic (); |
| 21305 | ; |
| 21306 | return 0; |
| 21307 | } |
| 21308 | _ACEOF |
| 21309 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21310 | if { (ac_try="$ac_compile" |
| 21311 | case "(($ac_try" in |
| 21312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21313 | *) ac_try_echo=$ac_try;; |
| 21314 | esac |
| 21315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21316 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21317 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21319 | rm -f conftest.er1 |
| 21320 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21322 | (exit $ac_status); } && { |
| 21323 | test -z "$ac_c_werror_flag" || |
| 21324 | test ! -s conftest.err |
| 21325 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21326 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21327 | ac_cv_c_bigendian=yes |
| 21328 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21329 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21330 | if test "$ac_cv_c_bigendian" = unknown; then |
| 21331 | ac_cv_c_bigendian=no |
| 21332 | else |
| 21333 | # finding both strings is unlikely to happen, but who knows? |
| 21334 | ac_cv_c_bigendian=unknown |
| 21335 | fi |
| 21336 | fi |
| 21337 | else |
| 21338 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21340 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21342 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21343 | |
| 21344 | 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] | 21345 | else |
| 21346 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21347 | /* confdefs.h. */ |
| 21348 | _ACEOF |
| 21349 | cat confdefs.h >>conftest.$ac_ext |
| 21350 | cat >>conftest.$ac_ext <<_ACEOF |
| 21351 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21352 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21353 | int |
| 21354 | main () |
| 21355 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21356 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21357 | /* Are we little or big endian? From Harbison&Steele. */ |
| 21358 | union |
| 21359 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21360 | long int l; |
| 21361 | char c[sizeof (long int)]; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21362 | } u; |
| 21363 | u.l = 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21364 | return u.c[sizeof (long int) - 1] == 1; |
| 21365 | |
| 21366 | ; |
| 21367 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21368 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21369 | _ACEOF |
| 21370 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21371 | if { (ac_try="$ac_link" |
| 21372 | case "(($ac_try" in |
| 21373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21374 | *) ac_try_echo=$ac_try;; |
| 21375 | esac |
| 21376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21377 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21378 | ac_status=$? |
| 21379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21380 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21381 | { (case "(($ac_try" in |
| 21382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21383 | *) ac_try_echo=$ac_try;; |
| 21384 | esac |
| 21385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21386 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21387 | ac_status=$? |
| 21388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21389 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21390 | ac_cv_c_bigendian=no |
| 21391 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21392 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21393 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21396 | ( exit $ac_status ) |
| 21397 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21398 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21399 | 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] | 21400 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21401 | |
| 21402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21403 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21404 | |
| 21405 | 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] | 21406 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21407 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 21408 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21409 | case $ac_cv_c_bigendian in |
| 21410 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21412 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21413 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21414 | _ACEOF |
| 21415 | ;; |
| 21416 | no) |
| 21417 | ;; |
| 21418 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21419 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21420 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21421 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21422 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 21423 | { (exit 1); exit 1; }; } ;; |
| 21424 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21425 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21426 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21427 | |
| 21428 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21429 | # Check whether right shifting a negative integer extends the sign bit |
| 21430 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21431 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 21432 | 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] | 21433 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 21434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21436 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21437 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 21438 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21439 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21440 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21441 | /* confdefs.h. */ |
| 21442 | _ACEOF |
| 21443 | cat confdefs.h >>conftest.$ac_ext |
| 21444 | cat >>conftest.$ac_ext <<_ACEOF |
| 21445 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21446 | |
| 21447 | int main() |
| 21448 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21449 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21450 | } |
| 21451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21452 | _ACEOF |
| 21453 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21454 | if { (ac_try="$ac_link" |
| 21455 | case "(($ac_try" in |
| 21456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21457 | *) ac_try_echo=$ac_try;; |
| 21458 | esac |
| 21459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21460 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21461 | ac_status=$? |
| 21462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21463 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21464 | { (case "(($ac_try" in |
| 21465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21466 | *) ac_try_echo=$ac_try;; |
| 21467 | esac |
| 21468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21469 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21470 | ac_status=$? |
| 21471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21472 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21473 | ac_cv_rshift_extends_sign=yes |
| 21474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21475 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21476 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21479 | ( exit $ac_status ) |
| 21480 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21481 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21482 | 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] | 21483 | fi |
| 21484 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21485 | |
| 21486 | fi |
| 21487 | |
| 21488 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 21489 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21490 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21491 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21492 | |
| 21493 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21494 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21495 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21496 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21497 | fi |
| 21498 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21499 | # check for getc_unlocked and related locking functions |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21500 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 21501 | 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] | 21502 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 21503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21504 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21505 | |
| 21506 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21507 | /* confdefs.h. */ |
| 21508 | _ACEOF |
| 21509 | cat confdefs.h >>conftest.$ac_ext |
| 21510 | cat >>conftest.$ac_ext <<_ACEOF |
| 21511 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21512 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21513 | int |
| 21514 | main () |
| 21515 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21516 | |
| 21517 | FILE *f = fopen("/dev/null", "r"); |
| 21518 | flockfile(f); |
| 21519 | getc_unlocked(f); |
| 21520 | funlockfile(f); |
| 21521 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21522 | ; |
| 21523 | return 0; |
| 21524 | } |
| 21525 | _ACEOF |
| 21526 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21527 | if { (ac_try="$ac_link" |
| 21528 | case "(($ac_try" in |
| 21529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21530 | *) ac_try_echo=$ac_try;; |
| 21531 | esac |
| 21532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21533 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21534 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21536 | rm -f conftest.er1 |
| 21537 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21539 | (exit $ac_status); } && { |
| 21540 | test -z "$ac_c_werror_flag" || |
| 21541 | test ! -s conftest.err |
| 21542 | } && test -s conftest$ac_exeext && |
| 21543 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21544 | ac_cv_have_getc_unlocked=yes |
| 21545 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21548 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21549 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21550 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21551 | |
| 21552 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21553 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21554 | fi |
| 21555 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21556 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 21557 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21558 | if test "$ac_cv_have_getc_unlocked" = yes |
| 21559 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21560 | |
| 21561 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21562 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21563 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21564 | |
| 21565 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21566 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21567 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 21568 | # save the value of LIBS so we don't actually link Python with readline |
| 21569 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21570 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21571 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 21572 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21573 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 21574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21575 | else |
| 21576 | ac_check_lib_save_LIBS=$LIBS |
| 21577 | LIBS="-lreadline $LIBS" |
| 21578 | cat >conftest.$ac_ext <<_ACEOF |
| 21579 | /* confdefs.h. */ |
| 21580 | _ACEOF |
| 21581 | cat confdefs.h >>conftest.$ac_ext |
| 21582 | cat >>conftest.$ac_ext <<_ACEOF |
| 21583 | /* end confdefs.h. */ |
| 21584 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21585 | /* Override any GCC internal prototype to avoid an error. |
| 21586 | Use char because int might match the return type of a GCC |
| 21587 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21588 | #ifdef __cplusplus |
| 21589 | extern "C" |
| 21590 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21591 | char readline (); |
| 21592 | int |
| 21593 | main () |
| 21594 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21595 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21596 | ; |
| 21597 | return 0; |
| 21598 | } |
| 21599 | _ACEOF |
| 21600 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21601 | if { (ac_try="$ac_link" |
| 21602 | case "(($ac_try" in |
| 21603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21604 | *) ac_try_echo=$ac_try;; |
| 21605 | esac |
| 21606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21607 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21608 | ac_status=$? |
| 21609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21610 | rm -f conftest.er1 |
| 21611 | cat conftest.err >&5 |
| 21612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21613 | (exit $ac_status); } && { |
| 21614 | test -z "$ac_c_werror_flag" || |
| 21615 | test ! -s conftest.err |
| 21616 | } && test -s conftest$ac_exeext && |
| 21617 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21618 | ac_cv_lib_readline_readline=yes |
| 21619 | else |
| 21620 | echo "$as_me: failed program was:" >&5 |
| 21621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21622 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21623 | ac_cv_lib_readline_readline=no |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21624 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21625 | |
| 21626 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21627 | conftest$ac_exeext conftest.$ac_ext |
| 21628 | LIBS=$ac_check_lib_save_LIBS |
| 21629 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21630 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 21631 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21632 | if test $ac_cv_lib_readline_readline = yes; then |
| 21633 | cat >>confdefs.h <<_ACEOF |
| 21634 | #define HAVE_LIBREADLINE 1 |
| 21635 | _ACEOF |
| 21636 | |
| 21637 | LIBS="-lreadline $LIBS" |
| 21638 | |
| 21639 | fi |
| 21640 | |
| 21641 | if test "$ac_cv_have_readline_readline" = no |
| 21642 | then |
| 21643 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21644 | { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5 |
| 21645 | echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21646 | if test "${ac_cv_lib_termcap_readline+set}" = set; then |
| 21647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21648 | else |
| 21649 | ac_check_lib_save_LIBS=$LIBS |
| 21650 | LIBS="-ltermcap $LIBS" |
| 21651 | cat >conftest.$ac_ext <<_ACEOF |
| 21652 | /* confdefs.h. */ |
| 21653 | _ACEOF |
| 21654 | cat confdefs.h >>conftest.$ac_ext |
| 21655 | cat >>conftest.$ac_ext <<_ACEOF |
| 21656 | /* end confdefs.h. */ |
| 21657 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21658 | /* Override any GCC internal prototype to avoid an error. |
| 21659 | Use char because int might match the return type of a GCC |
| 21660 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21661 | #ifdef __cplusplus |
| 21662 | extern "C" |
| 21663 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21664 | char readline (); |
| 21665 | int |
| 21666 | main () |
| 21667 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21668 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21669 | ; |
| 21670 | return 0; |
| 21671 | } |
| 21672 | _ACEOF |
| 21673 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21674 | if { (ac_try="$ac_link" |
| 21675 | case "(($ac_try" in |
| 21676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21677 | *) ac_try_echo=$ac_try;; |
| 21678 | esac |
| 21679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21680 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21681 | ac_status=$? |
| 21682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21683 | rm -f conftest.er1 |
| 21684 | cat conftest.err >&5 |
| 21685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21686 | (exit $ac_status); } && { |
| 21687 | test -z "$ac_c_werror_flag" || |
| 21688 | test ! -s conftest.err |
| 21689 | } && test -s conftest$ac_exeext && |
| 21690 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21691 | ac_cv_lib_termcap_readline=yes |
| 21692 | else |
| 21693 | echo "$as_me: failed program was:" >&5 |
| 21694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21695 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21696 | ac_cv_lib_termcap_readline=no |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21697 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21698 | |
| 21699 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21700 | conftest$ac_exeext conftest.$ac_ext |
| 21701 | LIBS=$ac_check_lib_save_LIBS |
| 21702 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21703 | { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5 |
| 21704 | echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21705 | if test $ac_cv_lib_termcap_readline = yes; then |
| 21706 | cat >>confdefs.h <<_ACEOF |
| 21707 | #define HAVE_LIBTERMCAP 1 |
| 21708 | _ACEOF |
| 21709 | |
| 21710 | LIBS="-ltermcap $LIBS" |
| 21711 | |
| 21712 | fi |
| 21713 | |
| 21714 | fi |
| 21715 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21716 | # check for readline 2.1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21717 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 21718 | 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] | 21719 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 21720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21721 | else |
| 21722 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21723 | LIBS="-lreadline $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21724 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21725 | /* confdefs.h. */ |
| 21726 | _ACEOF |
| 21727 | cat confdefs.h >>conftest.$ac_ext |
| 21728 | cat >>conftest.$ac_ext <<_ACEOF |
| 21729 | /* end confdefs.h. */ |
| 21730 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21731 | /* Override any GCC internal prototype to avoid an error. |
| 21732 | Use char because int might match the return type of a GCC |
| 21733 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21734 | #ifdef __cplusplus |
| 21735 | extern "C" |
| 21736 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21737 | char rl_callback_handler_install (); |
| 21738 | int |
| 21739 | main () |
| 21740 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21741 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21742 | ; |
| 21743 | return 0; |
| 21744 | } |
| 21745 | _ACEOF |
| 21746 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21747 | if { (ac_try="$ac_link" |
| 21748 | case "(($ac_try" in |
| 21749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21750 | *) ac_try_echo=$ac_try;; |
| 21751 | esac |
| 21752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21753 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21754 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21756 | rm -f conftest.er1 |
| 21757 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21759 | (exit $ac_status); } && { |
| 21760 | test -z "$ac_c_werror_flag" || |
| 21761 | test ! -s conftest.err |
| 21762 | } && test -s conftest$ac_exeext && |
| 21763 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21764 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 21765 | else |
| 21766 | echo "$as_me: failed program was:" >&5 |
| 21767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21768 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21769 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21770 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21771 | |
| 21772 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21773 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21774 | LIBS=$ac_check_lib_save_LIBS |
| 21775 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21776 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 21777 | 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] | 21778 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 21779 | |
| 21780 | cat >>confdefs.h <<\_ACEOF |
| 21781 | #define HAVE_RL_CALLBACK 1 |
| 21782 | _ACEOF |
| 21783 | |
| 21784 | fi |
| 21785 | |
| 21786 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21787 | # check for readline 2.2 |
| 21788 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21789 | /* confdefs.h. */ |
| 21790 | _ACEOF |
| 21791 | cat confdefs.h >>conftest.$ac_ext |
| 21792 | cat >>conftest.$ac_ext <<_ACEOF |
| 21793 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21794 | #include <readline/readline.h> |
| 21795 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21796 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21797 | case "(($ac_try" in |
| 21798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21799 | *) ac_try_echo=$ac_try;; |
| 21800 | esac |
| 21801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21802 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21803 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21804 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21805 | rm -f conftest.er1 |
| 21806 | cat conftest.err >&5 |
| 21807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21808 | (exit $ac_status); } >/dev/null && { |
| 21809 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 21810 | test ! -s conftest.err |
| 21811 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21812 | have_readline=yes |
| 21813 | else |
| 21814 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21816 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21817 | have_readline=no |
| 21818 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21819 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21820 | rm -f conftest.err conftest.$ac_ext |
| 21821 | if test $have_readline = yes |
| 21822 | then |
| 21823 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21824 | /* confdefs.h. */ |
| 21825 | _ACEOF |
| 21826 | cat confdefs.h >>conftest.$ac_ext |
| 21827 | cat >>conftest.$ac_ext <<_ACEOF |
| 21828 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21829 | #include <readline/readline.h> |
| 21830 | |
| 21831 | _ACEOF |
| 21832 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21833 | $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] | 21834 | |
| 21835 | cat >>confdefs.h <<\_ACEOF |
| 21836 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 21837 | _ACEOF |
| 21838 | |
| 21839 | fi |
| 21840 | rm -f conftest* |
| 21841 | |
| 21842 | fi |
| 21843 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21844 | # check for readline 4.0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21845 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 21846 | 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] | 21847 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 21848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21850 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21851 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21852 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21853 | /* confdefs.h. */ |
| 21854 | _ACEOF |
| 21855 | cat confdefs.h >>conftest.$ac_ext |
| 21856 | cat >>conftest.$ac_ext <<_ACEOF |
| 21857 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21858 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21859 | /* Override any GCC internal prototype to avoid an error. |
| 21860 | Use char because int might match the return type of a GCC |
| 21861 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21862 | #ifdef __cplusplus |
| 21863 | extern "C" |
| 21864 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21865 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21866 | int |
| 21867 | main () |
| 21868 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21869 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21870 | ; |
| 21871 | return 0; |
| 21872 | } |
| 21873 | _ACEOF |
| 21874 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21875 | if { (ac_try="$ac_link" |
| 21876 | case "(($ac_try" in |
| 21877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21878 | *) ac_try_echo=$ac_try;; |
| 21879 | esac |
| 21880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21881 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21882 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21884 | rm -f conftest.er1 |
| 21885 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21887 | (exit $ac_status); } && { |
| 21888 | test -z "$ac_c_werror_flag" || |
| 21889 | test ! -s conftest.err |
| 21890 | } && test -s conftest$ac_exeext && |
| 21891 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21892 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21893 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21894 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21896 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21897 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21898 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21899 | |
| 21900 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21901 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21902 | LIBS=$ac_check_lib_save_LIBS |
| 21903 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21904 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 21905 | 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] | 21906 | 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] | 21907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21908 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21909 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21910 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21911 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21912 | fi |
| 21913 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21914 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 21915 | # also in 4.0 |
| 21916 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 21917 | echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; } |
| 21918 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then |
| 21919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21920 | else |
| 21921 | ac_check_lib_save_LIBS=$LIBS |
| 21922 | LIBS="-lreadline $LIBS" |
| 21923 | cat >conftest.$ac_ext <<_ACEOF |
| 21924 | /* confdefs.h. */ |
| 21925 | _ACEOF |
| 21926 | cat confdefs.h >>conftest.$ac_ext |
| 21927 | cat >>conftest.$ac_ext <<_ACEOF |
| 21928 | /* end confdefs.h. */ |
| 21929 | |
| 21930 | /* Override any GCC internal prototype to avoid an error. |
| 21931 | Use char because int might match the return type of a GCC |
| 21932 | builtin and then its argument prototype would still apply. */ |
| 21933 | #ifdef __cplusplus |
| 21934 | extern "C" |
| 21935 | #endif |
| 21936 | char rl_completion_display_matches_hook (); |
| 21937 | int |
| 21938 | main () |
| 21939 | { |
| 21940 | return rl_completion_display_matches_hook (); |
| 21941 | ; |
| 21942 | return 0; |
| 21943 | } |
| 21944 | _ACEOF |
| 21945 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21946 | if { (ac_try="$ac_link" |
| 21947 | case "(($ac_try" in |
| 21948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21949 | *) ac_try_echo=$ac_try;; |
| 21950 | esac |
| 21951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21952 | (eval "$ac_link") 2>conftest.er1 |
| 21953 | ac_status=$? |
| 21954 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21955 | rm -f conftest.er1 |
| 21956 | cat conftest.err >&5 |
| 21957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21958 | (exit $ac_status); } && { |
| 21959 | test -z "$ac_c_werror_flag" || |
| 21960 | test ! -s conftest.err |
| 21961 | } && test -s conftest$ac_exeext && |
| 21962 | $as_test_x conftest$ac_exeext; then |
| 21963 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 21964 | else |
| 21965 | echo "$as_me: failed program was:" >&5 |
| 21966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21967 | |
| 21968 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 21969 | fi |
| 21970 | |
| 21971 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21972 | conftest$ac_exeext conftest.$ac_ext |
| 21973 | LIBS=$ac_check_lib_save_LIBS |
| 21974 | fi |
| 21975 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 21976 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 21977 | if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then |
| 21978 | |
| 21979 | cat >>confdefs.h <<\_ACEOF |
| 21980 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 21981 | _ACEOF |
| 21982 | |
| 21983 | fi |
| 21984 | |
| 21985 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21986 | # check for readline 4.2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21987 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 21988 | 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] | 21989 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 21990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21991 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21992 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21993 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21994 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21995 | /* confdefs.h. */ |
| 21996 | _ACEOF |
| 21997 | cat confdefs.h >>conftest.$ac_ext |
| 21998 | cat >>conftest.$ac_ext <<_ACEOF |
| 21999 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22000 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22001 | /* Override any GCC internal prototype to avoid an error. |
| 22002 | Use char because int might match the return type of a GCC |
| 22003 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22004 | #ifdef __cplusplus |
| 22005 | extern "C" |
| 22006 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22007 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22008 | int |
| 22009 | main () |
| 22010 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22011 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22012 | ; |
| 22013 | return 0; |
| 22014 | } |
| 22015 | _ACEOF |
| 22016 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22017 | if { (ac_try="$ac_link" |
| 22018 | case "(($ac_try" in |
| 22019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22020 | *) ac_try_echo=$ac_try;; |
| 22021 | esac |
| 22022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22023 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22024 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22026 | rm -f conftest.er1 |
| 22027 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22029 | (exit $ac_status); } && { |
| 22030 | test -z "$ac_c_werror_flag" || |
| 22031 | test ! -s conftest.err |
| 22032 | } && test -s conftest$ac_exeext && |
| 22033 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22034 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 22035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22038 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22039 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 22040 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22041 | |
| 22042 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22043 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22044 | LIBS=$ac_check_lib_save_LIBS |
| 22045 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22046 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 22047 | 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] | 22048 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22049 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22050 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 22051 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22052 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 22053 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 22054 | fi |
| 22055 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22056 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22057 | # also in readline 4.2 |
| 22058 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22059 | /* confdefs.h. */ |
| 22060 | _ACEOF |
| 22061 | cat confdefs.h >>conftest.$ac_ext |
| 22062 | cat >>conftest.$ac_ext <<_ACEOF |
| 22063 | /* end confdefs.h. */ |
| 22064 | #include <readline/readline.h> |
| 22065 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22066 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22067 | case "(($ac_try" in |
| 22068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22069 | *) ac_try_echo=$ac_try;; |
| 22070 | esac |
| 22071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22072 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22073 | ac_status=$? |
| 22074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22075 | rm -f conftest.er1 |
| 22076 | cat conftest.err >&5 |
| 22077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22078 | (exit $ac_status); } >/dev/null && { |
| 22079 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 22080 | test ! -s conftest.err |
| 22081 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22082 | have_readline=yes |
| 22083 | else |
| 22084 | echo "$as_me: failed program was:" >&5 |
| 22085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22086 | |
| 22087 | have_readline=no |
| 22088 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22089 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22090 | rm -f conftest.err conftest.$ac_ext |
| 22091 | if test $have_readline = yes |
| 22092 | then |
| 22093 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22094 | /* confdefs.h. */ |
| 22095 | _ACEOF |
| 22096 | cat confdefs.h >>conftest.$ac_ext |
| 22097 | cat >>conftest.$ac_ext <<_ACEOF |
| 22098 | /* end confdefs.h. */ |
| 22099 | #include <readline/readline.h> |
| 22100 | |
| 22101 | _ACEOF |
| 22102 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22103 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 22104 | |
| 22105 | cat >>confdefs.h <<\_ACEOF |
| 22106 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 22107 | _ACEOF |
| 22108 | |
| 22109 | fi |
| 22110 | rm -f conftest* |
| 22111 | |
| 22112 | fi |
| 22113 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 22114 | # End of readline checks: restore LIBS |
| 22115 | LIBS=$LIBS_no_readline |
| 22116 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22117 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 22118 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22119 | if test "${ac_cv_broken_nice+set}" = set; then |
| 22120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22121 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22122 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22123 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 22124 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22125 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22126 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22127 | /* confdefs.h. */ |
| 22128 | _ACEOF |
| 22129 | cat confdefs.h >>conftest.$ac_ext |
| 22130 | cat >>conftest.$ac_ext <<_ACEOF |
| 22131 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22132 | |
| 22133 | int main() |
| 22134 | { |
| 22135 | int val1 = nice(1); |
| 22136 | if (val1 != -1 && val1 == nice(2)) |
| 22137 | exit(0); |
| 22138 | exit(1); |
| 22139 | } |
| 22140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22141 | _ACEOF |
| 22142 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22143 | if { (ac_try="$ac_link" |
| 22144 | case "(($ac_try" in |
| 22145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22146 | *) ac_try_echo=$ac_try;; |
| 22147 | esac |
| 22148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22149 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22150 | ac_status=$? |
| 22151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22152 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22153 | { (case "(($ac_try" in |
| 22154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22155 | *) ac_try_echo=$ac_try;; |
| 22156 | esac |
| 22157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22158 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22159 | ac_status=$? |
| 22160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22161 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22162 | ac_cv_broken_nice=yes |
| 22163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22164 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22165 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22168 | ( exit $ac_status ) |
| 22169 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22170 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22171 | 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] | 22172 | fi |
| 22173 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22174 | |
| 22175 | fi |
| 22176 | |
| 22177 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 22178 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22179 | if test "$ac_cv_broken_nice" = yes |
| 22180 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22181 | |
| 22182 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22183 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22184 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 22185 | |
| 22186 | fi |
| 22187 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22188 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 22189 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22190 | if test "$cross_compiling" = yes; then |
| 22191 | ac_cv_broken_poll=no |
| 22192 | else |
| 22193 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22194 | /* confdefs.h. */ |
| 22195 | _ACEOF |
| 22196 | cat confdefs.h >>conftest.$ac_ext |
| 22197 | cat >>conftest.$ac_ext <<_ACEOF |
| 22198 | /* end confdefs.h. */ |
| 22199 | |
| 22200 | #include <poll.h> |
| 22201 | |
| 22202 | int main (void) |
| 22203 | { |
| 22204 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 22205 | |
| 22206 | close (42); |
| 22207 | |
| 22208 | int poll_test = poll (&poll_struct, 1, 0); |
| 22209 | |
| 22210 | if (poll_test < 0) |
| 22211 | { |
| 22212 | exit(0); |
| 22213 | } |
| 22214 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 22215 | { |
| 22216 | exit(0); |
| 22217 | } |
| 22218 | else |
| 22219 | { |
| 22220 | exit(1); |
| 22221 | } |
| 22222 | } |
| 22223 | |
| 22224 | _ACEOF |
| 22225 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22226 | if { (ac_try="$ac_link" |
| 22227 | case "(($ac_try" in |
| 22228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22229 | *) ac_try_echo=$ac_try;; |
| 22230 | esac |
| 22231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22232 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22233 | ac_status=$? |
| 22234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22235 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22236 | { (case "(($ac_try" in |
| 22237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22238 | *) ac_try_echo=$ac_try;; |
| 22239 | esac |
| 22240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22241 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22242 | ac_status=$? |
| 22243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22244 | (exit $ac_status); }; }; then |
| 22245 | ac_cv_broken_poll=yes |
| 22246 | else |
| 22247 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22248 | echo "$as_me: failed program was:" >&5 |
| 22249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22250 | |
| 22251 | ( exit $ac_status ) |
| 22252 | ac_cv_broken_poll=no |
| 22253 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22254 | 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] | 22255 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22256 | |
| 22257 | |
| 22258 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 22259 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22260 | if test "$ac_cv_broken_poll" = yes |
| 22261 | then |
| 22262 | |
| 22263 | cat >>confdefs.h <<\_ACEOF |
| 22264 | #define HAVE_BROKEN_POLL 1 |
| 22265 | _ACEOF |
| 22266 | |
| 22267 | fi |
| 22268 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22269 | # 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] | 22270 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 22271 | # tzname[] |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22272 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 22273 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22274 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 22275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22276 | else |
| 22277 | cat >conftest.$ac_ext <<_ACEOF |
| 22278 | /* confdefs.h. */ |
| 22279 | _ACEOF |
| 22280 | cat confdefs.h >>conftest.$ac_ext |
| 22281 | cat >>conftest.$ac_ext <<_ACEOF |
| 22282 | /* end confdefs.h. */ |
| 22283 | #include <sys/types.h> |
| 22284 | #include <$ac_cv_struct_tm> |
| 22285 | |
| 22286 | |
| 22287 | int |
| 22288 | main () |
| 22289 | { |
| 22290 | static struct tm ac_aggr; |
| 22291 | if (ac_aggr.tm_zone) |
| 22292 | return 0; |
| 22293 | ; |
| 22294 | return 0; |
| 22295 | } |
| 22296 | _ACEOF |
| 22297 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22298 | if { (ac_try="$ac_compile" |
| 22299 | case "(($ac_try" in |
| 22300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22301 | *) ac_try_echo=$ac_try;; |
| 22302 | esac |
| 22303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22304 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22305 | ac_status=$? |
| 22306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22307 | rm -f conftest.er1 |
| 22308 | cat conftest.err >&5 |
| 22309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22310 | (exit $ac_status); } && { |
| 22311 | test -z "$ac_c_werror_flag" || |
| 22312 | test ! -s conftest.err |
| 22313 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22314 | ac_cv_member_struct_tm_tm_zone=yes |
| 22315 | else |
| 22316 | echo "$as_me: failed program was:" >&5 |
| 22317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22318 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22319 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22320 | /* confdefs.h. */ |
| 22321 | _ACEOF |
| 22322 | cat confdefs.h >>conftest.$ac_ext |
| 22323 | cat >>conftest.$ac_ext <<_ACEOF |
| 22324 | /* end confdefs.h. */ |
| 22325 | #include <sys/types.h> |
| 22326 | #include <$ac_cv_struct_tm> |
| 22327 | |
| 22328 | |
| 22329 | int |
| 22330 | main () |
| 22331 | { |
| 22332 | static struct tm ac_aggr; |
| 22333 | if (sizeof ac_aggr.tm_zone) |
| 22334 | return 0; |
| 22335 | ; |
| 22336 | return 0; |
| 22337 | } |
| 22338 | _ACEOF |
| 22339 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22340 | if { (ac_try="$ac_compile" |
| 22341 | case "(($ac_try" in |
| 22342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22343 | *) ac_try_echo=$ac_try;; |
| 22344 | esac |
| 22345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22346 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22347 | ac_status=$? |
| 22348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22349 | rm -f conftest.er1 |
| 22350 | cat conftest.err >&5 |
| 22351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22352 | (exit $ac_status); } && { |
| 22353 | test -z "$ac_c_werror_flag" || |
| 22354 | test ! -s conftest.err |
| 22355 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22356 | ac_cv_member_struct_tm_tm_zone=yes |
| 22357 | else |
| 22358 | echo "$as_me: failed program was:" >&5 |
| 22359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22360 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22361 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22362 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22363 | |
| 22364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22365 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22366 | |
| 22367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22368 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22369 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 22370 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22371 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 22372 | |
| 22373 | cat >>confdefs.h <<_ACEOF |
| 22374 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 22375 | _ACEOF |
| 22376 | |
| 22377 | |
| 22378 | fi |
| 22379 | |
| 22380 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 22381 | |
| 22382 | cat >>confdefs.h <<\_ACEOF |
| 22383 | #define HAVE_TM_ZONE 1 |
| 22384 | _ACEOF |
| 22385 | |
| 22386 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22387 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 22388 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
| 22389 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
| 22390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22391 | else |
| 22392 | cat >conftest.$ac_ext <<_ACEOF |
| 22393 | /* confdefs.h. */ |
| 22394 | _ACEOF |
| 22395 | cat confdefs.h >>conftest.$ac_ext |
| 22396 | cat >>conftest.$ac_ext <<_ACEOF |
| 22397 | /* end confdefs.h. */ |
| 22398 | #include <time.h> |
| 22399 | |
| 22400 | int |
| 22401 | main () |
| 22402 | { |
| 22403 | #ifndef tzname |
| 22404 | (void) tzname; |
| 22405 | #endif |
| 22406 | |
| 22407 | ; |
| 22408 | return 0; |
| 22409 | } |
| 22410 | _ACEOF |
| 22411 | rm -f conftest.$ac_objext |
| 22412 | if { (ac_try="$ac_compile" |
| 22413 | case "(($ac_try" in |
| 22414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22415 | *) ac_try_echo=$ac_try;; |
| 22416 | esac |
| 22417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22418 | (eval "$ac_compile") 2>conftest.er1 |
| 22419 | ac_status=$? |
| 22420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22421 | rm -f conftest.er1 |
| 22422 | cat conftest.err >&5 |
| 22423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22424 | (exit $ac_status); } && { |
| 22425 | test -z "$ac_c_werror_flag" || |
| 22426 | test ! -s conftest.err |
| 22427 | } && test -s conftest.$ac_objext; then |
| 22428 | ac_cv_have_decl_tzname=yes |
| 22429 | else |
| 22430 | echo "$as_me: failed program was:" >&5 |
| 22431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22432 | |
| 22433 | ac_cv_have_decl_tzname=no |
| 22434 | fi |
| 22435 | |
| 22436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22437 | fi |
| 22438 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 22439 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 22440 | if test $ac_cv_have_decl_tzname = yes; then |
| 22441 | |
| 22442 | cat >>confdefs.h <<_ACEOF |
| 22443 | #define HAVE_DECL_TZNAME 1 |
| 22444 | _ACEOF |
| 22445 | |
| 22446 | |
| 22447 | else |
| 22448 | cat >>confdefs.h <<_ACEOF |
| 22449 | #define HAVE_DECL_TZNAME 0 |
| 22450 | _ACEOF |
| 22451 | |
| 22452 | |
| 22453 | fi |
| 22454 | |
| 22455 | |
| 22456 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 22457 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22458 | if test "${ac_cv_var_tzname+set}" = set; then |
| 22459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22460 | else |
| 22461 | cat >conftest.$ac_ext <<_ACEOF |
| 22462 | /* confdefs.h. */ |
| 22463 | _ACEOF |
| 22464 | cat confdefs.h >>conftest.$ac_ext |
| 22465 | cat >>conftest.$ac_ext <<_ACEOF |
| 22466 | /* end confdefs.h. */ |
| 22467 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22468 | #if !HAVE_DECL_TZNAME |
| 22469 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22470 | #endif |
| 22471 | |
| 22472 | int |
| 22473 | main () |
| 22474 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22475 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22476 | ; |
| 22477 | return 0; |
| 22478 | } |
| 22479 | _ACEOF |
| 22480 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22481 | if { (ac_try="$ac_link" |
| 22482 | case "(($ac_try" in |
| 22483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22484 | *) ac_try_echo=$ac_try;; |
| 22485 | esac |
| 22486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22487 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22488 | ac_status=$? |
| 22489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22490 | rm -f conftest.er1 |
| 22491 | cat conftest.err >&5 |
| 22492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22493 | (exit $ac_status); } && { |
| 22494 | test -z "$ac_c_werror_flag" || |
| 22495 | test ! -s conftest.err |
| 22496 | } && test -s conftest$ac_exeext && |
| 22497 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22498 | ac_cv_var_tzname=yes |
| 22499 | else |
| 22500 | echo "$as_me: failed program was:" >&5 |
| 22501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22502 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22503 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22504 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22505 | |
| 22506 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22507 | conftest$ac_exeext conftest.$ac_ext |
| 22508 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22509 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 22510 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22511 | if test $ac_cv_var_tzname = yes; then |
| 22512 | |
| 22513 | cat >>confdefs.h <<\_ACEOF |
| 22514 | #define HAVE_TZNAME 1 |
| 22515 | _ACEOF |
| 22516 | |
| 22517 | fi |
| 22518 | fi |
| 22519 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22520 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22521 | # check tzset(3) exists and works like we expect it to |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22522 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 22523 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22524 | if test "${ac_cv_working_tzset+set}" = set; then |
| 22525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22526 | else |
| 22527 | |
| 22528 | if test "$cross_compiling" = yes; then |
| 22529 | ac_cv_working_tzset=no |
| 22530 | else |
| 22531 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22532 | /* confdefs.h. */ |
| 22533 | _ACEOF |
| 22534 | cat confdefs.h >>conftest.$ac_ext |
| 22535 | cat >>conftest.$ac_ext <<_ACEOF |
| 22536 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22537 | |
| 22538 | #include <stdlib.h> |
| 22539 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22540 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22541 | |
| 22542 | #if HAVE_TZNAME |
| 22543 | extern char *tzname[]; |
| 22544 | #endif |
| 22545 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22546 | int main() |
| 22547 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22548 | /* Note that we need to ensure that not only does tzset(3) |
| 22549 | do 'something' with localtime, but it works as documented |
| 22550 | 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] | 22551 | This includes making sure that tzname is set properly if |
| 22552 | tm->tm_zone does not exist since it is the alternative way |
| 22553 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22554 | |
| 22555 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22556 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22557 | */ |
| 22558 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22559 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22560 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 22561 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 22562 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22563 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22564 | if (localtime(&groundhogday)->tm_hour != 0) |
| 22565 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22566 | #if HAVE_TZNAME |
| 22567 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 22568 | if (strcmp(tzname[0], "UTC") || |
| 22569 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 22570 | exit(1); |
| 22571 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22572 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 22573 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22574 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22575 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22576 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22577 | #if HAVE_TZNAME |
| 22578 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 22579 | exit(1); |
| 22580 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22581 | |
| 22582 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 22583 | tzset(); |
| 22584 | if (localtime(&groundhogday)->tm_hour != 11) |
| 22585 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22586 | #if HAVE_TZNAME |
| 22587 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 22588 | exit(1); |
| 22589 | #endif |
| 22590 | |
| 22591 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22592 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 22593 | exit(1); |
| 22594 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 22595 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22596 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22597 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22598 | exit(0); |
| 22599 | } |
| 22600 | |
| 22601 | _ACEOF |
| 22602 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22603 | if { (ac_try="$ac_link" |
| 22604 | case "(($ac_try" in |
| 22605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22606 | *) ac_try_echo=$ac_try;; |
| 22607 | esac |
| 22608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22609 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22610 | ac_status=$? |
| 22611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22612 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22613 | { (case "(($ac_try" in |
| 22614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22615 | *) ac_try_echo=$ac_try;; |
| 22616 | esac |
| 22617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22618 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22619 | ac_status=$? |
| 22620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22621 | (exit $ac_status); }; }; then |
| 22622 | ac_cv_working_tzset=yes |
| 22623 | else |
| 22624 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22625 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22627 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22628 | ( exit $ac_status ) |
| 22629 | ac_cv_working_tzset=no |
| 22630 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22631 | 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] | 22632 | fi |
| 22633 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22634 | |
| 22635 | fi |
| 22636 | |
| 22637 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 22638 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22639 | if test "$ac_cv_working_tzset" = yes |
| 22640 | then |
| 22641 | |
| 22642 | cat >>confdefs.h <<\_ACEOF |
| 22643 | #define HAVE_WORKING_TZSET 1 |
| 22644 | _ACEOF |
| 22645 | |
| 22646 | fi |
| 22647 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22648 | # Look for subsecond timestamps in struct stat |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22649 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 22650 | 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] | 22651 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 22652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22653 | else |
| 22654 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22655 | /* confdefs.h. */ |
| 22656 | _ACEOF |
| 22657 | cat confdefs.h >>conftest.$ac_ext |
| 22658 | cat >>conftest.$ac_ext <<_ACEOF |
| 22659 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22660 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22661 | int |
| 22662 | main () |
| 22663 | { |
| 22664 | |
| 22665 | struct stat st; |
| 22666 | st.st_mtim.tv_nsec = 1; |
| 22667 | |
| 22668 | ; |
| 22669 | return 0; |
| 22670 | } |
| 22671 | _ACEOF |
| 22672 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22673 | if { (ac_try="$ac_compile" |
| 22674 | case "(($ac_try" in |
| 22675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22676 | *) ac_try_echo=$ac_try;; |
| 22677 | esac |
| 22678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22679 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22680 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22682 | rm -f conftest.er1 |
| 22683 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22685 | (exit $ac_status); } && { |
| 22686 | test -z "$ac_c_werror_flag" || |
| 22687 | test ! -s conftest.err |
| 22688 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 22689 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22690 | else |
| 22691 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22693 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22694 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22695 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22696 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22698 | fi |
| 22699 | |
| 22700 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 22701 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22702 | if test "$ac_cv_stat_tv_nsec" = yes |
| 22703 | then |
| 22704 | |
| 22705 | cat >>confdefs.h <<\_ACEOF |
| 22706 | #define HAVE_STAT_TV_NSEC 1 |
| 22707 | _ACEOF |
| 22708 | |
| 22709 | fi |
| 22710 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22711 | # Look for BSD style subsecond timestamps in struct stat |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22712 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 22713 | 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] | 22714 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
| 22715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22716 | else |
| 22717 | cat >conftest.$ac_ext <<_ACEOF |
| 22718 | /* confdefs.h. */ |
| 22719 | _ACEOF |
| 22720 | cat confdefs.h >>conftest.$ac_ext |
| 22721 | cat >>conftest.$ac_ext <<_ACEOF |
| 22722 | /* end confdefs.h. */ |
| 22723 | #include <sys/stat.h> |
| 22724 | int |
| 22725 | main () |
| 22726 | { |
| 22727 | |
| 22728 | struct stat st; |
| 22729 | st.st_mtimespec.tv_nsec = 1; |
| 22730 | |
| 22731 | ; |
| 22732 | return 0; |
| 22733 | } |
| 22734 | _ACEOF |
| 22735 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22736 | if { (ac_try="$ac_compile" |
| 22737 | case "(($ac_try" in |
| 22738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22739 | *) ac_try_echo=$ac_try;; |
| 22740 | esac |
| 22741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22742 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22743 | ac_status=$? |
| 22744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22745 | rm -f conftest.er1 |
| 22746 | cat conftest.err >&5 |
| 22747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22748 | (exit $ac_status); } && { |
| 22749 | test -z "$ac_c_werror_flag" || |
| 22750 | test ! -s conftest.err |
| 22751 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22752 | ac_cv_stat_tv_nsec2=yes |
| 22753 | else |
| 22754 | echo "$as_me: failed program was:" >&5 |
| 22755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22756 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22757 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22758 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22759 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22761 | fi |
| 22762 | |
| 22763 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 22764 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22765 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 22766 | then |
| 22767 | |
| 22768 | cat >>confdefs.h <<\_ACEOF |
| 22769 | #define HAVE_STAT_TV_NSEC2 1 |
| 22770 | _ACEOF |
| 22771 | |
| 22772 | fi |
| 22773 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22774 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22775 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 22776 | 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] | 22777 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 22778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22779 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22780 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22781 | /* confdefs.h. */ |
| 22782 | _ACEOF |
| 22783 | cat confdefs.h >>conftest.$ac_ext |
| 22784 | cat >>conftest.$ac_ext <<_ACEOF |
| 22785 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22786 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22787 | int |
| 22788 | main () |
| 22789 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22790 | |
| 22791 | int rtn; |
| 22792 | rtn = mvwdelch(0,0,0); |
| 22793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22794 | ; |
| 22795 | return 0; |
| 22796 | } |
| 22797 | _ACEOF |
| 22798 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22799 | if { (ac_try="$ac_compile" |
| 22800 | case "(($ac_try" in |
| 22801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22802 | *) ac_try_echo=$ac_try;; |
| 22803 | esac |
| 22804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22805 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22806 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22808 | rm -f conftest.er1 |
| 22809 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22811 | (exit $ac_status); } && { |
| 22812 | test -z "$ac_c_werror_flag" || |
| 22813 | test ! -s conftest.err |
| 22814 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22815 | ac_cv_mvwdelch_is_expression=yes |
| 22816 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22817 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22819 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22820 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22821 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22822 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22824 | fi |
| 22825 | |
| 22826 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 22827 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22828 | |
| 22829 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 22830 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22831 | |
| 22832 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22833 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22834 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22835 | |
| 22836 | fi |
| 22837 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22838 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 22839 | 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] | 22840 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 22841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22842 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22843 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22844 | /* confdefs.h. */ |
| 22845 | _ACEOF |
| 22846 | cat confdefs.h >>conftest.$ac_ext |
| 22847 | cat >>conftest.$ac_ext <<_ACEOF |
| 22848 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22849 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22850 | int |
| 22851 | main () |
| 22852 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22853 | |
| 22854 | WINDOW *w; |
| 22855 | w->_flags = 0; |
| 22856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22857 | ; |
| 22858 | return 0; |
| 22859 | } |
| 22860 | _ACEOF |
| 22861 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22862 | if { (ac_try="$ac_compile" |
| 22863 | case "(($ac_try" in |
| 22864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22865 | *) ac_try_echo=$ac_try;; |
| 22866 | esac |
| 22867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22868 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22869 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22871 | rm -f conftest.er1 |
| 22872 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22874 | (exit $ac_status); } && { |
| 22875 | test -z "$ac_c_werror_flag" || |
| 22876 | test ! -s conftest.err |
| 22877 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22878 | ac_cv_window_has_flags=yes |
| 22879 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22880 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22882 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22883 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22884 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22885 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22887 | fi |
| 22888 | |
| 22889 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 22890 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22891 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22892 | |
| 22893 | if test "$ac_cv_window_has_flags" = yes |
| 22894 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22895 | |
| 22896 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22897 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22898 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22899 | |
| 22900 | fi |
| 22901 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22902 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 22903 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22904 | cat >conftest.$ac_ext <<_ACEOF |
| 22905 | /* confdefs.h. */ |
| 22906 | _ACEOF |
| 22907 | cat confdefs.h >>conftest.$ac_ext |
| 22908 | cat >>conftest.$ac_ext <<_ACEOF |
| 22909 | /* end confdefs.h. */ |
| 22910 | #include <curses.h> |
| 22911 | int |
| 22912 | main () |
| 22913 | { |
| 22914 | void *x=is_term_resized |
| 22915 | ; |
| 22916 | return 0; |
| 22917 | } |
| 22918 | _ACEOF |
| 22919 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22920 | if { (ac_try="$ac_compile" |
| 22921 | case "(($ac_try" in |
| 22922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22923 | *) ac_try_echo=$ac_try;; |
| 22924 | esac |
| 22925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22926 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22927 | ac_status=$? |
| 22928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22929 | rm -f conftest.er1 |
| 22930 | cat conftest.err >&5 |
| 22931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22932 | (exit $ac_status); } && { |
| 22933 | test -z "$ac_c_werror_flag" || |
| 22934 | test ! -s conftest.err |
| 22935 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 22936 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22937 | cat >>confdefs.h <<\_ACEOF |
| 22938 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 22939 | _ACEOF |
| 22940 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22941 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22942 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22943 | else |
| 22944 | echo "$as_me: failed program was:" >&5 |
| 22945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22946 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22947 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22948 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22949 | |
| 22950 | fi |
| 22951 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22953 | |
| 22954 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 22955 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22956 | cat >conftest.$ac_ext <<_ACEOF |
| 22957 | /* confdefs.h. */ |
| 22958 | _ACEOF |
| 22959 | cat confdefs.h >>conftest.$ac_ext |
| 22960 | cat >>conftest.$ac_ext <<_ACEOF |
| 22961 | /* end confdefs.h. */ |
| 22962 | #include <curses.h> |
| 22963 | int |
| 22964 | main () |
| 22965 | { |
| 22966 | void *x=resize_term |
| 22967 | ; |
| 22968 | return 0; |
| 22969 | } |
| 22970 | _ACEOF |
| 22971 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22972 | if { (ac_try="$ac_compile" |
| 22973 | case "(($ac_try" in |
| 22974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22975 | *) ac_try_echo=$ac_try;; |
| 22976 | esac |
| 22977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22978 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22979 | ac_status=$? |
| 22980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22981 | rm -f conftest.er1 |
| 22982 | cat conftest.err >&5 |
| 22983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22984 | (exit $ac_status); } && { |
| 22985 | test -z "$ac_c_werror_flag" || |
| 22986 | test ! -s conftest.err |
| 22987 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22988 | |
| 22989 | cat >>confdefs.h <<\_ACEOF |
| 22990 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 22991 | _ACEOF |
| 22992 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22993 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22994 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22995 | else |
| 22996 | echo "$as_me: failed program was:" >&5 |
| 22997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22998 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22999 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23000 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23001 | |
| 23002 | fi |
| 23003 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23005 | |
| 23006 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 23007 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23008 | cat >conftest.$ac_ext <<_ACEOF |
| 23009 | /* confdefs.h. */ |
| 23010 | _ACEOF |
| 23011 | cat confdefs.h >>conftest.$ac_ext |
| 23012 | cat >>conftest.$ac_ext <<_ACEOF |
| 23013 | /* end confdefs.h. */ |
| 23014 | #include <curses.h> |
| 23015 | int |
| 23016 | main () |
| 23017 | { |
| 23018 | void *x=resizeterm |
| 23019 | ; |
| 23020 | return 0; |
| 23021 | } |
| 23022 | _ACEOF |
| 23023 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23024 | if { (ac_try="$ac_compile" |
| 23025 | case "(($ac_try" in |
| 23026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23027 | *) ac_try_echo=$ac_try;; |
| 23028 | esac |
| 23029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23030 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23031 | ac_status=$? |
| 23032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23033 | rm -f conftest.er1 |
| 23034 | cat conftest.err >&5 |
| 23035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23036 | (exit $ac_status); } && { |
| 23037 | test -z "$ac_c_werror_flag" || |
| 23038 | test ! -s conftest.err |
| 23039 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23040 | |
| 23041 | cat >>confdefs.h <<\_ACEOF |
| 23042 | #define HAVE_CURSES_RESIZETERM 1 |
| 23043 | _ACEOF |
| 23044 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23045 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23046 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23047 | else |
| 23048 | echo "$as_me: failed program was:" >&5 |
| 23049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23050 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23051 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23052 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23053 | |
| 23054 | fi |
| 23055 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23057 | |
| 23058 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 23059 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23060 | |
| 23061 | if test -r /dev/ptmx |
| 23062 | then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23063 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23064 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 23065 | |
| 23066 | cat >>confdefs.h <<\_ACEOF |
| 23067 | #define HAVE_DEV_PTMX 1 |
| 23068 | _ACEOF |
| 23069 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23070 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23071 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23072 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 23073 | fi |
| 23074 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23075 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 23076 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23077 | |
| 23078 | if test -r /dev/ptc |
| 23079 | then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23080 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23081 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 23082 | |
| 23083 | cat >>confdefs.h <<\_ACEOF |
| 23084 | #define HAVE_DEV_PTC 1 |
| 23085 | _ACEOF |
| 23086 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23087 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23088 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23089 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 23090 | fi |
| 23091 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23092 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 23093 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23094 | if test "$cross_compiling" = yes; then |
| 23095 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 23096 | See \`config.log' for more details." >&5 |
| 23097 | echo "$as_me: error: cannot run test program while cross compiling |
| 23098 | See \`config.log' for more details." >&2;} |
| 23099 | { (exit 1); exit 1; }; } |
| 23100 | else |
| 23101 | cat >conftest.$ac_ext <<_ACEOF |
| 23102 | /* confdefs.h. */ |
| 23103 | _ACEOF |
| 23104 | cat confdefs.h >>conftest.$ac_ext |
| 23105 | cat >>conftest.$ac_ext <<_ACEOF |
| 23106 | /* end confdefs.h. */ |
| 23107 | #include <stdio.h> |
| 23108 | #include <stddef.h> |
| 23109 | #include <string.h> |
| 23110 | |
| 23111 | int main() |
| 23112 | { |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23113 | char buffer[256]; |
| 23114 | |
| 23115 | #ifdef HAVE_SSIZE_T |
| 23116 | typedef ssize_t Py_ssize_t; |
| 23117 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 23118 | typedef long Py_ssize_t; |
| 23119 | #else |
| 23120 | typedef int Py_ssize_t; |
| 23121 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23122 | |
| 23123 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 23124 | return 1; |
| 23125 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23126 | if (strcmp(buffer, "123")) |
| 23127 | return 1; |
| 23128 | |
| 23129 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 23130 | return 1; |
| 23131 | |
| 23132 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23133 | return 1; |
| 23134 | |
| 23135 | return 0; |
| 23136 | } |
| 23137 | _ACEOF |
| 23138 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23139 | if { (ac_try="$ac_link" |
| 23140 | case "(($ac_try" in |
| 23141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23142 | *) ac_try_echo=$ac_try;; |
| 23143 | esac |
| 23144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23145 | (eval "$ac_link") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23146 | ac_status=$? |
| 23147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23148 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23149 | { (case "(($ac_try" in |
| 23150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23151 | *) ac_try_echo=$ac_try;; |
| 23152 | esac |
| 23153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23154 | (eval "$ac_try") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23155 | ac_status=$? |
| 23156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23157 | (exit $ac_status); }; }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23158 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23159 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23160 | |
| 23161 | cat >>confdefs.h <<\_ACEOF |
| 23162 | #define PY_FORMAT_SIZE_T "z" |
| 23163 | _ACEOF |
| 23164 | |
| 23165 | else |
| 23166 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23167 | echo "$as_me: failed program was:" >&5 |
| 23168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23169 | |
| 23170 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23171 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23172 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23173 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23174 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23175 | fi |
| 23176 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23177 | |
| 23178 | |
| 23179 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 23180 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23181 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 23182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 23183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23184 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23185 | /* confdefs.h. */ |
| 23186 | _ACEOF |
| 23187 | cat confdefs.h >>conftest.$ac_ext |
| 23188 | cat >>conftest.$ac_ext <<_ACEOF |
| 23189 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 23190 | |
| 23191 | #ifdef HAVE_SYS_TYPES_H |
| 23192 | #include <sys/types.h> |
| 23193 | #endif |
| 23194 | #ifdef HAVE_SYS_SOCKET_H |
| 23195 | #include <sys/socket.h> |
| 23196 | #endif |
| 23197 | |
| 23198 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23199 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23200 | int |
| 23201 | main () |
| 23202 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23203 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23204 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23205 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23206 | return 0; |
| 23207 | ; |
| 23208 | return 0; |
| 23209 | } |
| 23210 | _ACEOF |
| 23211 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23212 | if { (ac_try="$ac_compile" |
| 23213 | case "(($ac_try" in |
| 23214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23215 | *) ac_try_echo=$ac_try;; |
| 23216 | esac |
| 23217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23218 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23219 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23221 | rm -f conftest.er1 |
| 23222 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23224 | (exit $ac_status); } && { |
| 23225 | test -z "$ac_c_werror_flag" || |
| 23226 | test ! -s conftest.err |
| 23227 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 23228 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 23229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23230 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23232 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23233 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 23234 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23235 | |
| 23236 | 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] | 23237 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23238 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 23239 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23240 | if test $ac_cv_type_socklen_t = yes; then |
| 23241 | : |
| 23242 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 23243 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 23244 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 23245 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23246 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 23247 | |
| 23248 | fi |
| 23249 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23250 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23251 | |
| 23252 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 23253 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 23254 | do |
| 23255 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 23256 | done |
| 23257 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23258 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 23259 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23260 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 23261 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 23262 | for dir in $SRCDIRS; do |
| 23263 | if test ! -d $dir; then |
| 23264 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 23265 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 23266 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23267 | { echo "$as_me:$LINENO: result: done" >&5 |
| 23268 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 23269 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23270 | # generate output files |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23271 | 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] | 23272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23273 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23274 | # This file is a shell script that caches the results of configure |
| 23275 | # 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] | 23276 | # scripts and configure runs, see configure's option --config-cache. |
| 23277 | # It is not useful on other systems. If it contains results you don't |
| 23278 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23279 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23280 | # config.status only pays attention to the cache file if you give it |
| 23281 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23282 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23283 | # `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] | 23284 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 23285 | # following values. |
| 23286 | |
| 23287 | _ACEOF |
| 23288 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 23289 | # The following way of writing the cache mishandles newlines in values, |
| 23290 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23291 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23292 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 23293 | # and sets the high bit in the cache file unless we assign to the vars. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23294 | ( |
| 23295 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 23296 | eval ac_val=\$$ac_var |
| 23297 | case $ac_val in #( |
| 23298 | *${as_nl}*) |
| 23299 | case $ac_var in #( |
| 23300 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 23301 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 23302 | esac |
| 23303 | case $ac_var in #( |
| 23304 | _ | IFS | as_nl) ;; #( |
| 23305 | *) $as_unset $ac_var ;; |
| 23306 | esac ;; |
| 23307 | esac |
| 23308 | done |
| 23309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23310 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23311 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 23312 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23313 | # `set' does not quote correctly, so add quotes (double-quote |
| 23314 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 23315 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23316 | "s/'/'\\\\''/g; |
| 23317 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23318 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23319 | *) |
| 23320 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23321 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23322 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23323 | esac | |
| 23324 | sort |
| 23325 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23326 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23327 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23328 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23329 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23330 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 23331 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23332 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 23333 | :end' >>confcache |
| 23334 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 23335 | if test -w "$cache_file"; then |
| 23336 | test "x$cache_file" != "x/dev/null" && |
| 23337 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 23338 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23339 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23340 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23341 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 23342 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23343 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23344 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23345 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 23346 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23347 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 23348 | # Let make expand exec_prefix. |
| 23349 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 23350 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23351 | DEFS=-DHAVE_CONFIG_H |
| 23352 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23353 | ac_libobjs= |
| 23354 | ac_ltlibobjs= |
| 23355 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 23356 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23357 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 23358 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 23359 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 23360 | # will be set to the directory where LIBOBJS objects are built. |
| 23361 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 23362 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23363 | done |
| 23364 | LIBOBJS=$ac_libobjs |
| 23365 | |
| 23366 | LTLIBOBJS=$ac_ltlibobjs |
| 23367 | |
| 23368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23369 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23370 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23371 | ac_clean_files_save=$ac_clean_files |
| 23372 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 23373 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 23374 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 23375 | cat >$CONFIG_STATUS <<_ACEOF |
| 23376 | #! $SHELL |
| 23377 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23378 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23379 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23380 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23382 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23383 | ac_cs_recheck=false |
| 23384 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23385 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 23386 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23388 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23389 | ## --------------------- ## |
| 23390 | ## M4sh Initialization. ## |
| 23391 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23392 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23393 | # Be more Bourne compatible |
| 23394 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23395 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 23396 | emulate sh |
| 23397 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23398 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 23399 | # is contrary to our usage. Disable this feature. |
| 23400 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23401 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 23402 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23403 | case `(set -o) 2>/dev/null` in |
| 23404 | *posix*) set -o posix ;; |
| 23405 | esac |
| 23406 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23407 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23408 | |
| 23409 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23410 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23411 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23412 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23413 | # Avoid depending upon Character Ranges. |
| 23414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 23415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 23416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 23417 | as_cr_digits='0123456789' |
| 23418 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 23419 | |
| 23420 | # The user is always right. |
| 23421 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23422 | echo "#! /bin/sh" >conf$$.sh |
| 23423 | echo "exit 0" >>conf$$.sh |
| 23424 | chmod +x conf$$.sh |
| 23425 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23426 | PATH_SEPARATOR=';' |
| 23427 | else |
| 23428 | PATH_SEPARATOR=: |
| 23429 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23430 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23431 | fi |
| 23432 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23433 | # Support unset when possible. |
| 23434 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 23435 | as_unset=unset |
| 23436 | else |
| 23437 | as_unset=false |
| 23438 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23439 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23440 | |
| 23441 | # IFS |
| 23442 | # We need space, tab and new line, in precisely that order. Quoting is |
| 23443 | # there to prevent editors from complaining about space-tab. |
| 23444 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 23445 | # splitting by setting IFS to empty value.) |
| 23446 | as_nl=' |
| 23447 | ' |
| 23448 | IFS=" "" $as_nl" |
| 23449 | |
| 23450 | # Find who we are. Look in the path if we contain no directory separator. |
| 23451 | case $0 in |
| 23452 | *[\\/]* ) as_myself=$0 ;; |
| 23453 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23454 | for as_dir in $PATH |
| 23455 | do |
| 23456 | IFS=$as_save_IFS |
| 23457 | test -z "$as_dir" && as_dir=. |
| 23458 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 23459 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23460 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23461 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23462 | ;; |
| 23463 | esac |
| 23464 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 23465 | # in which case we are not to be found in the path. |
| 23466 | if test "x$as_myself" = x; then |
| 23467 | as_myself=$0 |
| 23468 | fi |
| 23469 | if test ! -f "$as_myself"; then |
| 23470 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 23471 | { (exit 1); exit 1; } |
| 23472 | fi |
| 23473 | |
| 23474 | # Work around bugs in pre-3.0 UWIN ksh. |
| 23475 | for as_var in ENV MAIL MAILPATH |
| 23476 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 23477 | done |
| 23478 | PS1='$ ' |
| 23479 | PS2='> ' |
| 23480 | PS4='+ ' |
| 23481 | |
| 23482 | # NLS nuisances. |
| 23483 | for as_var in \ |
| 23484 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 23485 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 23486 | LC_TELEPHONE LC_TIME |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 23487 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23488 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 23489 | eval $as_var=C; export $as_var |
| 23490 | else |
| 23491 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 23492 | fi |
| 23493 | done |
| 23494 | |
| 23495 | # Required to use basename. |
| 23496 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23497 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 23498 | as_expr=expr |
| 23499 | else |
| 23500 | as_expr=false |
| 23501 | fi |
| 23502 | |
| 23503 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 23504 | as_basename=basename |
| 23505 | else |
| 23506 | as_basename=false |
| 23507 | fi |
| 23508 | |
| 23509 | |
| 23510 | # Name of the executable. |
| 23511 | as_me=`$as_basename -- "$0" || |
| 23512 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 23513 | X"$0" : 'X\(//\)$' \| \ |
| 23514 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 23515 | echo X/"$0" | |
| 23516 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 23517 | s//\1/ |
| 23518 | q |
| 23519 | } |
| 23520 | /^X\/\(\/\/\)$/{ |
| 23521 | s//\1/ |
| 23522 | q |
| 23523 | } |
| 23524 | /^X\/\(\/\).*/{ |
| 23525 | s//\1/ |
| 23526 | q |
| 23527 | } |
| 23528 | s/.*/./; q'` |
| 23529 | |
| 23530 | # CDPATH. |
| 23531 | $as_unset CDPATH |
| 23532 | |
| 23533 | |
| 23534 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23535 | as_lineno_1=$LINENO |
| 23536 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23537 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23538 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23540 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 23541 | # uniformly replaced by the line number. The first 'sed' inserts a |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23542 | # line-number line after each line using $LINENO; the second 'sed' |
| 23543 | # does the real work. The second script uses 'N' to pair each |
| 23544 | # line-number line with the line containing $LINENO, and appends |
| 23545 | # trailing '-' during substitution so that $LINENO is not a special |
| 23546 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23547 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23548 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 23549 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 23550 | sed -n ' |
| 23551 | p |
| 23552 | /[$]LINENO/= |
| 23553 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23554 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23555 | s/[$]LINENO.*/&-/ |
| 23556 | t lineno |
| 23557 | b |
| 23558 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23559 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23560 | :loop |
| 23561 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23562 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23563 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23564 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23565 | chmod +x "$as_me.lineno" || |
| 23566 | { 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] | 23567 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23569 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 23570 | # (the dirname of $[0] is not the place where we might find the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23571 | # original and so on. Autoconf is especially sensitive to this). |
| 23572 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23573 | # Exit status is that of the last command. |
| 23574 | exit |
| 23575 | } |
| 23576 | |
| 23577 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23578 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 23579 | as_dirname=dirname |
| 23580 | else |
| 23581 | as_dirname=false |
| 23582 | fi |
| 23583 | |
| 23584 | ECHO_C= ECHO_N= ECHO_T= |
| 23585 | case `echo -n x` in |
| 23586 | -n*) |
| 23587 | case `echo 'x\c'` in |
| 23588 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 23589 | *) ECHO_C='\c';; |
| 23590 | esac;; |
| 23591 | *) |
| 23592 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23593 | esac |
| 23594 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23595 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23596 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23597 | as_expr=expr |
| 23598 | else |
| 23599 | as_expr=false |
| 23600 | fi |
| 23601 | |
| 23602 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23603 | if test -d conf$$.dir; then |
| 23604 | rm -f conf$$.dir/conf$$.file |
| 23605 | else |
| 23606 | rm -f conf$$.dir |
| 23607 | mkdir conf$$.dir |
| 23608 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23609 | echo >conf$$.file |
| 23610 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23611 | as_ln_s='ln -s' |
| 23612 | # ... but there are two gotchas: |
| 23613 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 23614 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 23615 | # In both cases, we have to default to `cp -p'. |
| 23616 | 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] | 23617 | as_ln_s='cp -p' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23618 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 23619 | as_ln_s=ln |
| 23620 | else |
| 23621 | as_ln_s='cp -p' |
| 23622 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23623 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 23624 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23625 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23626 | if mkdir -p . 2>/dev/null; then |
| 23627 | as_mkdir_p=: |
| 23628 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23629 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23630 | as_mkdir_p=false |
| 23631 | fi |
| 23632 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23633 | if test -x / >/dev/null 2>&1; then |
| 23634 | as_test_x='test -x' |
| 23635 | else |
| 23636 | if ls -dL / >/dev/null 2>&1; then |
| 23637 | as_ls_L_option=L |
| 23638 | else |
| 23639 | as_ls_L_option= |
| 23640 | fi |
| 23641 | as_test_x=' |
| 23642 | eval sh -c '\'' |
| 23643 | if test -d "$1"; then |
| 23644 | test -d "$1/."; |
| 23645 | else |
| 23646 | case $1 in |
| 23647 | -*)set "./$1";; |
| 23648 | esac; |
| 23649 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 23650 | ???[sx]*):;;*)false;;esac;fi |
| 23651 | '\'' sh |
| 23652 | ' |
| 23653 | fi |
| 23654 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23655 | |
| 23656 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23657 | 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] | 23658 | |
| 23659 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23660 | 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] | 23661 | |
| 23662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23663 | exec 6>&1 |
| 23664 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23665 | # 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] | 23666 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23667 | # values after options handling. |
| 23668 | ac_log=" |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 23669 | This file was extended by python $as_me 3.0, which was |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23670 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23671 | |
| 23672 | CONFIG_FILES = $CONFIG_FILES |
| 23673 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 23674 | CONFIG_LINKS = $CONFIG_LINKS |
| 23675 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 23676 | $ $0 $@ |
| 23677 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23678 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 23679 | " |
| 23680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23681 | _ACEOF |
| 23682 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23683 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23684 | # Files that config.status was made for. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23685 | config_files="$ac_config_files" |
| 23686 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23687 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23688 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23689 | |
| 23690 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23691 | ac_cs_usage="\ |
| 23692 | \`$as_me' instantiates files from templates according to the |
| 23693 | current configuration. |
| 23694 | |
| 23695 | Usage: $0 [OPTIONS] [FILE]... |
| 23696 | |
| 23697 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23698 | -V, --version print version number and configuration settings, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23699 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23700 | -d, --debug don't remove temporary files |
| 23701 | --recheck update $as_me by reconfiguring in the same conditions |
| 23702 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23703 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23704 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23705 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23706 | |
| 23707 | Configuration files: |
| 23708 | $config_files |
| 23709 | |
| 23710 | Configuration headers: |
| 23711 | $config_headers |
| 23712 | |
| 23713 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 23714 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23715 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23716 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23717 | ac_cs_version="\\ |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 23718 | python config.status 3.0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23719 | configured by $0, generated by GNU Autoconf 2.61, |
| 23720 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23721 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23722 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23723 | This config.status script is free software; the Free Software Foundation |
| 23724 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23725 | |
| 23726 | ac_pwd='$ac_pwd' |
| 23727 | srcdir='$srcdir' |
| 23728 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23729 | _ACEOF |
| 23730 | |
| 23731 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23732 | # If no file are specified by the user, then we need to provide default |
| 23733 | # value. By we need to know if files were specified by the user. |
| 23734 | ac_need_defaults=: |
| 23735 | while test $# != 0 |
| 23736 | do |
| 23737 | case $1 in |
| 23738 | --*=*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23739 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 23740 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23741 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23742 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23743 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23744 | ac_option=$1 |
| 23745 | ac_optarg=$2 |
| 23746 | ac_shift=shift |
| 23747 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23748 | esac |
| 23749 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23750 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23751 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23752 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 23753 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23754 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 23755 | echo "$ac_cs_version"; exit ;; |
| 23756 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23757 | debug=: ;; |
| 23758 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23759 | $ac_shift |
| 23760 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23761 | ac_need_defaults=false;; |
| 23762 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23763 | $ac_shift |
| 23764 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23765 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23766 | --he | --h) |
| 23767 | # Conflict between --help and --header |
| 23768 | { echo "$as_me: error: ambiguous option: $1 |
| 23769 | Try \`$0 --help' for more information." >&2 |
| 23770 | { (exit 1); exit 1; }; };; |
| 23771 | --help | --hel | -h ) |
| 23772 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23773 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 23774 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 23775 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23776 | |
| 23777 | # This is an error. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23778 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 23779 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23780 | { (exit 1); exit 1; }; } ;; |
| 23781 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23782 | *) ac_config_targets="$ac_config_targets $1" |
| 23783 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23784 | |
| 23785 | esac |
| 23786 | shift |
| 23787 | done |
| 23788 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23789 | ac_configure_extra_args= |
| 23790 | |
| 23791 | if $ac_cs_silent; then |
| 23792 | exec 6>/dev/null |
| 23793 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23794 | fi |
| 23795 | |
| 23796 | _ACEOF |
| 23797 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23798 | if \$ac_cs_recheck; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23799 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 23800 | CONFIG_SHELL=$SHELL |
| 23801 | export CONFIG_SHELL |
| 23802 | 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] | 23803 | fi |
| 23804 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23805 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23806 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23807 | exec 5>>config.log |
| 23808 | { |
| 23809 | echo |
| 23810 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 23811 | ## Running $as_me. ## |
| 23812 | _ASBOX |
| 23813 | echo "$ac_log" |
| 23814 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23815 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23816 | _ACEOF |
| 23817 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23818 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23819 | |
| 23820 | cat >>$CONFIG_STATUS <<\_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23821 | |
| 23822 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23823 | for ac_config_target in $ac_config_targets |
| 23824 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23825 | case $ac_config_target in |
| 23826 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 23827 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 23828 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 23829 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
| 23830 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 23831 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 23832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23833 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 23834 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 23835 | { (exit 1); exit 1; }; };; |
| 23836 | esac |
| 23837 | done |
| 23838 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23840 | # If the user did not use the arguments to specify the items to instantiate, |
| 23841 | # then the envvar interface is used. Set only those that are not. |
| 23842 | # We use the long form for the default assignment because of an extremely |
| 23843 | # bizarre bug on SunOS 4.1.3. |
| 23844 | if $ac_need_defaults; then |
| 23845 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 23846 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 23847 | fi |
| 23848 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23849 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23850 | # 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] | 23851 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23852 | # Hook for its removal unless debugging. |
| 23853 | # Note that there is a small window in which the directory will not be cleaned: |
| 23854 | # 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] | 23855 | $debug || |
| 23856 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23857 | tmp= |
| 23858 | trap 'exit_status=$? |
| 23859 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 23860 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23861 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 23862 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23863 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23865 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23866 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23867 | test -n "$tmp" && test -d "$tmp" |
| 23868 | } || |
| 23869 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23870 | tmp=./conf$$-$RANDOM |
| 23871 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23872 | } || |
| 23873 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23874 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23875 | { (exit 1); exit 1; } |
| 23876 | } |
| 23877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23878 | # |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23879 | # Set up the sed scripts for CONFIG_FILES section. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23880 | # |
| 23881 | |
| 23882 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 23883 | # This happens for instance when ./config.status config.h |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23884 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23885 | |
| 23886 | _ACEOF |
| 23887 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23888 | |
| 23889 | |
| 23890 | ac_delim='%!_!# ' |
| 23891 | for ac_last_try in false false false false false :; do |
| 23892 | cat >conf$$subs.sed <<_ACEOF |
| 23893 | SHELL!$SHELL$ac_delim |
| 23894 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 23895 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 23896 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 23897 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 23898 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 23899 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 23900 | exec_prefix!$exec_prefix$ac_delim |
| 23901 | prefix!$prefix$ac_delim |
| 23902 | program_transform_name!$program_transform_name$ac_delim |
| 23903 | bindir!$bindir$ac_delim |
| 23904 | sbindir!$sbindir$ac_delim |
| 23905 | libexecdir!$libexecdir$ac_delim |
| 23906 | datarootdir!$datarootdir$ac_delim |
| 23907 | datadir!$datadir$ac_delim |
| 23908 | sysconfdir!$sysconfdir$ac_delim |
| 23909 | sharedstatedir!$sharedstatedir$ac_delim |
| 23910 | localstatedir!$localstatedir$ac_delim |
| 23911 | includedir!$includedir$ac_delim |
| 23912 | oldincludedir!$oldincludedir$ac_delim |
| 23913 | docdir!$docdir$ac_delim |
| 23914 | infodir!$infodir$ac_delim |
| 23915 | htmldir!$htmldir$ac_delim |
| 23916 | dvidir!$dvidir$ac_delim |
| 23917 | pdfdir!$pdfdir$ac_delim |
| 23918 | psdir!$psdir$ac_delim |
| 23919 | libdir!$libdir$ac_delim |
| 23920 | localedir!$localedir$ac_delim |
| 23921 | mandir!$mandir$ac_delim |
| 23922 | DEFS!$DEFS$ac_delim |
| 23923 | ECHO_C!$ECHO_C$ac_delim |
| 23924 | ECHO_N!$ECHO_N$ac_delim |
| 23925 | ECHO_T!$ECHO_T$ac_delim |
| 23926 | LIBS!$LIBS$ac_delim |
| 23927 | build_alias!$build_alias$ac_delim |
| 23928 | host_alias!$host_alias$ac_delim |
| 23929 | target_alias!$target_alias$ac_delim |
| 23930 | VERSION!$VERSION$ac_delim |
| 23931 | SOVERSION!$SOVERSION$ac_delim |
| 23932 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 23933 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 23934 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 23935 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 23936 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 23937 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 23938 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 23939 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 23940 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 23941 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 23942 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 23943 | MACHDEP!$MACHDEP$ac_delim |
| 23944 | SGI_ABI!$SGI_ABI$ac_delim |
| 23945 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 23946 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 23947 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 23948 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 23949 | CC!$CC$ac_delim |
| 23950 | CFLAGS!$CFLAGS$ac_delim |
| 23951 | LDFLAGS!$LDFLAGS$ac_delim |
| 23952 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 23953 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 23954 | EXEEXT!$EXEEXT$ac_delim |
| 23955 | OBJEXT!$OBJEXT$ac_delim |
| 23956 | CXX!$CXX$ac_delim |
| 23957 | MAINCC!$MAINCC$ac_delim |
| 23958 | CPP!$CPP$ac_delim |
| 23959 | GREP!$GREP$ac_delim |
| 23960 | EGREP!$EGREP$ac_delim |
| 23961 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 23962 | LIBRARY!$LIBRARY$ac_delim |
| 23963 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 23964 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 23965 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 23966 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 23967 | INSTSONAME!$INSTSONAME$ac_delim |
| 23968 | RUNSHARED!$RUNSHARED$ac_delim |
| 23969 | LINKCC!$LINKCC$ac_delim |
| 23970 | RANLIB!$RANLIB$ac_delim |
| 23971 | AR!$AR$ac_delim |
| 23972 | SVNVERSION!$SVNVERSION$ac_delim |
| 23973 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 23974 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 23975 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 23976 | LN!$LN$ac_delim |
| 23977 | OPT!$OPT$ac_delim |
| 23978 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 23979 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 23980 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 23981 | SO!$SO$ac_delim |
| 23982 | LDSHARED!$LDSHARED$ac_delim |
| 23983 | BLDSHARED!$BLDSHARED$ac_delim |
| 23984 | CCSHARED!$CCSHARED$ac_delim |
| 23985 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 23986 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 23987 | SHLIBS!$SHLIBS$ac_delim |
| 23988 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 23989 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 23990 | _ACEOF |
| 23991 | |
| 23992 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 23993 | break |
| 23994 | elif $ac_last_try; then |
| 23995 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23996 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23997 | { (exit 1); exit 1; }; } |
| 23998 | else |
| 23999 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24000 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24001 | done |
| 24002 | |
| 24003 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 24004 | if test -n "$ac_eof"; then |
| 24005 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 24006 | ac_eof=`expr $ac_eof + 1` |
| 24007 | fi |
| 24008 | |
| 24009 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24010 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 24011 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 24012 | _ACEOF |
| 24013 | sed ' |
| 24014 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 24015 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 24016 | :n |
| 24017 | t n |
| 24018 | s/'"$ac_delim"'$/,g/; t |
| 24019 | s/$/\\/; p |
| 24020 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 24021 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 24022 | rm -f conf$$subs.sed |
| 24023 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24024 | CEOF$ac_eof |
| 24025 | _ACEOF |
| 24026 | |
| 24027 | |
| 24028 | ac_delim='%!_!# ' |
| 24029 | for ac_last_try in false false false false false :; do |
| 24030 | cat >conf$$subs.sed <<_ACEOF |
| 24031 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 24032 | LDLAST!$LDLAST$ac_delim |
| 24033 | THREADOBJ!$THREADOBJ$ac_delim |
| 24034 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 24035 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 24036 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 24037 | TRUE!$TRUE$ac_delim |
| 24038 | LIBOBJS!$LIBOBJS$ac_delim |
| 24039 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 24040 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 24041 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 24042 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 24043 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 24044 | LIBM!$LIBM$ac_delim |
| 24045 | LIBC!$LIBC$ac_delim |
| 24046 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 24047 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 24048 | SRCDIRS!$SRCDIRS$ac_delim |
| 24049 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 24050 | _ACEOF |
| 24051 | |
| 24052 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then |
| 24053 | break |
| 24054 | elif $ac_last_try; then |
| 24055 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 24056 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 24057 | { (exit 1); exit 1; }; } |
| 24058 | else |
| 24059 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 24060 | fi |
| 24061 | done |
| 24062 | |
| 24063 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 24064 | if test -n "$ac_eof"; then |
| 24065 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 24066 | ac_eof=`expr $ac_eof + 1` |
| 24067 | fi |
| 24068 | |
| 24069 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24070 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 24071 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 24072 | _ACEOF |
| 24073 | sed ' |
| 24074 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 24075 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 24076 | :n |
| 24077 | t n |
| 24078 | s/'"$ac_delim"'$/,g/; t |
| 24079 | s/$/\\/; p |
| 24080 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 24081 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 24082 | rm -f conf$$subs.sed |
| 24083 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24084 | :end |
| 24085 | s/|#_!!_#|//g |
| 24086 | CEOF$ac_eof |
| 24087 | _ACEOF |
| 24088 | |
| 24089 | |
| 24090 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 24091 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 24092 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 24093 | # (actually we leave an empty line to preserve line numbers). |
| 24094 | if test "x$srcdir" = x.; then |
| 24095 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 24096 | s/:*\$(srcdir):*/:/ |
| 24097 | s/:*\${srcdir}:*/:/ |
| 24098 | s/:*@srcdir@:*/:/ |
| 24099 | s/^\([^=]*=[ ]*\):*/\1/ |
| 24100 | s/:*$// |
| 24101 | s/^[^=]*=[ ]*$// |
| 24102 | }' |
| 24103 | fi |
| 24104 | |
| 24105 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24106 | fi # test -n "$CONFIG_FILES" |
| 24107 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24108 | |
| 24109 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
| 24110 | do |
| 24111 | case $ac_tag in |
| 24112 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 24113 | esac |
| 24114 | case $ac_mode$ac_tag in |
| 24115 | :[FHL]*:*);; |
| 24116 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 24117 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 24118 | { (exit 1); exit 1; }; };; |
| 24119 | :[FH]-) ac_tag=-:-;; |
| 24120 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 24121 | esac |
| 24122 | ac_save_IFS=$IFS |
| 24123 | IFS=: |
| 24124 | set x $ac_tag |
| 24125 | IFS=$ac_save_IFS |
| 24126 | shift |
| 24127 | ac_file=$1 |
| 24128 | shift |
| 24129 | |
| 24130 | case $ac_mode in |
| 24131 | :L) ac_source=$1;; |
| 24132 | :[FH]) |
| 24133 | ac_file_inputs= |
| 24134 | for ac_f |
| 24135 | do |
| 24136 | case $ac_f in |
| 24137 | -) ac_f="$tmp/stdin";; |
| 24138 | *) # Look for the file first in the build tree, then in the source tree |
| 24139 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 24140 | # because $ac_f cannot contain `:'. |
| 24141 | test -f "$ac_f" || |
| 24142 | case $ac_f in |
| 24143 | [\\/$]*) false;; |
| 24144 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 24145 | esac || |
| 24146 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 24147 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 24148 | { (exit 1); exit 1; }; };; |
| 24149 | esac |
| 24150 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 24151 | done |
| 24152 | |
| 24153 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 24154 | # use $as_me), people would be surprised to read: |
| 24155 | # /* config.h. Generated by config.status. */ |
| 24156 | configure_input="Generated from "`IFS=: |
| 24157 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 24158 | if test x"$ac_file" != x-; then |
| 24159 | configure_input="$ac_file. $configure_input" |
| 24160 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 24161 | echo "$as_me: creating $ac_file" >&6;} |
| 24162 | fi |
| 24163 | |
| 24164 | case $ac_tag in |
| 24165 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 24166 | esac |
| 24167 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24168 | esac |
| 24169 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24170 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24171 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24172 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 24173 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24174 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24175 | echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24176 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24177 | s//\1/ |
| 24178 | q |
| 24179 | } |
| 24180 | /^X\(\/\/\)[^/].*/{ |
| 24181 | s//\1/ |
| 24182 | q |
| 24183 | } |
| 24184 | /^X\(\/\/\)$/{ |
| 24185 | s//\1/ |
| 24186 | q |
| 24187 | } |
| 24188 | /^X\(\/\).*/{ |
| 24189 | s//\1/ |
| 24190 | q |
| 24191 | } |
| 24192 | s/.*/./; q'` |
| 24193 | { as_dir="$ac_dir" |
| 24194 | case $as_dir in #( |
| 24195 | -*) as_dir=./$as_dir;; |
| 24196 | esac |
| 24197 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24198 | as_dirs= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24199 | while :; do |
| 24200 | case $as_dir in #( |
| 24201 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 24202 | *) as_qdir=$as_dir;; |
| 24203 | esac |
| 24204 | as_dirs="'$as_qdir' $as_dirs" |
| 24205 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24206 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24207 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24208 | X"$as_dir" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24209 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24210 | echo X"$as_dir" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24211 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24212 | s//\1/ |
| 24213 | q |
| 24214 | } |
| 24215 | /^X\(\/\/\)[^/].*/{ |
| 24216 | s//\1/ |
| 24217 | q |
| 24218 | } |
| 24219 | /^X\(\/\/\)$/{ |
| 24220 | s//\1/ |
| 24221 | q |
| 24222 | } |
| 24223 | /^X\(\/\).*/{ |
| 24224 | s//\1/ |
| 24225 | q |
| 24226 | } |
| 24227 | s/.*/./; q'` |
| 24228 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24229 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24230 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 24231 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 24232 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24233 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24234 | ac_builddir=. |
| 24235 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24236 | case "$ac_dir" in |
| 24237 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24238 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24239 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24240 | # A ".." for each directory in $ac_dir_suffix. |
| 24241 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 24242 | case $ac_top_builddir_sub in |
| 24243 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24244 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 24245 | esac ;; |
| 24246 | esac |
| 24247 | ac_abs_top_builddir=$ac_pwd |
| 24248 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 24249 | # for backward compatibility: |
| 24250 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24251 | |
| 24252 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24253 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24254 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24255 | ac_top_srcdir=$ac_top_builddir_sub |
| 24256 | ac_abs_top_srcdir=$ac_pwd ;; |
| 24257 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24258 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24259 | ac_top_srcdir=$srcdir |
| 24260 | ac_abs_top_srcdir=$srcdir ;; |
| 24261 | *) # Relative name. |
| 24262 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 24263 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 24264 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24265 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24266 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24268 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24269 | case $ac_mode in |
| 24270 | :F) |
| 24271 | # |
| 24272 | # CONFIG_FILE |
| 24273 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24274 | |
| 24275 | case $INSTALL in |
| 24276 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24277 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24278 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24279 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24280 | |
| 24281 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24282 | # If the template does not know about datarootdir, expand it. |
| 24283 | # FIXME: This hack should be removed a few years after 2.60. |
| 24284 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 24285 | |
| 24286 | case `sed -n '/datarootdir/ { |
| 24287 | p |
| 24288 | q |
| 24289 | } |
| 24290 | /@datadir@/p |
| 24291 | /@docdir@/p |
| 24292 | /@infodir@/p |
| 24293 | /@localedir@/p |
| 24294 | /@mandir@/p |
| 24295 | ' $ac_file_inputs` in |
| 24296 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 24297 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 24298 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 24299 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 24300 | _ACEOF |
| 24301 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24302 | ac_datarootdir_hack=' |
| 24303 | s&@datadir@&$datadir&g |
| 24304 | s&@docdir@&$docdir&g |
| 24305 | s&@infodir@&$infodir&g |
| 24306 | s&@localedir@&$localedir&g |
| 24307 | s&@mandir@&$mandir&g |
| 24308 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 24309 | esac |
| 24310 | _ACEOF |
| 24311 | |
| 24312 | # Neutralize VPATH when `$srcdir' = `.'. |
| 24313 | # Shell code in configure.ac might set extrasub. |
| 24314 | # FIXME: do we really want to maintain this feature? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24315 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24316 | sed "$ac_vpsub |
| 24317 | $extrasub |
| 24318 | _ACEOF |
| 24319 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24320 | :t |
| 24321 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24322 | s&@configure_input@&$configure_input&;t t |
| 24323 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 24324 | s&@srcdir@&$ac_srcdir&;t t |
| 24325 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 24326 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 24327 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 24328 | s&@builddir@&$ac_builddir&;t t |
| 24329 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 24330 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 24331 | s&@INSTALL@&$ac_INSTALL&;t t |
| 24332 | $ac_datarootdir_hack |
| 24333 | " $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] | 24334 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24335 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 24336 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 24337 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 24338 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 24339 | which seems to be undefined. Please make sure it is defined." >&5 |
| 24340 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 24341 | which seems to be undefined. Please make sure it is defined." >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 24342 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24343 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24344 | case $ac_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24345 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 24346 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24347 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24348 | ;; |
| 24349 | :H) |
| 24350 | # |
| 24351 | # CONFIG_HEADER |
| 24352 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24353 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24354 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24355 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 24356 | # substitutes the proper values into config.h.in to produce config.h. |
| 24357 | rm -f conftest.defines conftest.tail |
| 24358 | # First, append a space to every undef/define line, to ease matching. |
| 24359 | echo 's/$/ /' >conftest.defines |
| 24360 | # Then, protect against being on the right side of a sed subst, or in |
| 24361 | # an unquoted here document, in config.status. If some macros were |
| 24362 | # called several times there might be several #defines for the same |
| 24363 | # symbol, which is useless. But do not sort them, since the last |
| 24364 | # AC_DEFINE must be honored. |
| 24365 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 24366 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 24367 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 24368 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 24369 | # just an empty string. |
| 24370 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 24371 | ac_dB='\\)[ (].*,\\1define\\2' |
| 24372 | ac_dC=' ' |
| 24373 | ac_dD=' ,' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 24374 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24375 | uniq confdefs.h | |
| 24376 | sed -n ' |
| 24377 | t rset |
| 24378 | :rset |
| 24379 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 24380 | t ok |
| 24381 | d |
| 24382 | :ok |
| 24383 | s/[\\&,]/\\&/g |
| 24384 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 24385 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 24386 | ' >>conftest.defines |
| 24387 | |
| 24388 | # Remove the space that was appended to ease matching. |
| 24389 | # Then replace #undef with comments. This is necessary, for |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24390 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 24391 | # on some systems where configure will not decide to define it. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24392 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 24393 | echo 's/ $// |
| 24394 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 24395 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24396 | # Break up conftest.defines: |
| 24397 | ac_max_sed_lines=50 |
| 24398 | |
| 24399 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 24400 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 24401 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 24402 | # et cetera. |
| 24403 | ac_in='$ac_file_inputs' |
| 24404 | ac_out='"$tmp/out1"' |
| 24405 | ac_nxt='"$tmp/out2"' |
| 24406 | |
| 24407 | while : |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 24408 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24409 | # Write a here document: |
| 24410 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24411 | # First, check the format of the line: |
| 24412 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 24413 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 24414 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 24415 | b |
| 24416 | :def |
| 24417 | _ACEOF |
| 24418 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24419 | echo 'CEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24420 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 24421 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 24422 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 24423 | grep . conftest.tail >/dev/null || break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24424 | rm -f conftest.defines |
| 24425 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24426 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24427 | rm -f conftest.defines conftest.tail |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24428 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24429 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24430 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24431 | if test x"$ac_file" != x-; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24432 | echo "/* $configure_input */" >"$tmp/config.h" |
| 24433 | cat "$ac_result" >>"$tmp/config.h" |
| 24434 | 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] | 24435 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 24436 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 24437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24438 | rm -f $ac_file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24439 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24440 | fi |
| 24441 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24442 | echo "/* $configure_input */" |
| 24443 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24444 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24445 | rm -f "$tmp/out12" |
| 24446 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 24447 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24448 | |
| 24449 | esac |
| 24450 | |
| 24451 | done # for ac_tag |
| 24452 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 24453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24454 | { (exit 0); exit 0; } |
| 24455 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24456 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24457 | ac_clean_files=$ac_clean_files_save |
| 24458 | |
| 24459 | |
| 24460 | # configure is writing to config.log, and then calls config.status. |
| 24461 | # config.status does its own redirection, appending to config.log. |
| 24462 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 24463 | # by configure, so config.status won't be able to write to it; its |
| 24464 | # output is simply discarded. So we exec the FD to /dev/null, |
| 24465 | # effectively closing config.log, so it can be properly (re)opened and |
| 24466 | # appended to by config.status. When coming back to configure, we |
| 24467 | # need to make the FD available again. |
| 24468 | if test "$no_create" != yes; then |
| 24469 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24470 | ac_config_status_args= |
| 24471 | test "$silent" = yes && |
| 24472 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24473 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24474 | $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] | 24475 | exec 5>>config.log |
| 24476 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 24477 | # would make configure fail if this is the last instruction. |
| 24478 | $ac_cs_success || { (exit 1); exit 1; } |
| 24479 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 24480 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 24481 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 24482 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 24483 | if test ! -f Modules/Setup |
| 24484 | then |
| 24485 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 24486 | fi |
| 24487 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 24488 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 24489 | if test ! -f Modules/Setup.local |
| 24490 | then |
| 24491 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 24492 | fi |
| 24493 | |
| 24494 | echo "creating Makefile" |
| 24495 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 24496 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 24497 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 24498 | mv config.c Modules |